etc-gentoo/hprofile/profiles/vga/scripts/nouveau.stop
Hans Wurst 4d9533ca0a Blah
2015-07-31 02:34:53 +02:00

26 lines
502 B
Bash

#
# vga/scripts/nouveau.stop
#
#
# FIXME: Comment out & edit if necessary to unload
# nouveau/drm/kms/ttm i.e. to be able to load nVidia.
#
if [[ ! -e sys/kernel/debug/vgaswitcheroo/switch ]]; then
echo 0 >/sys/class/vtconsole/vtcon1/bind
if ! rmmod nouveau; then
die "Failed to remove ${1} kernel module"
else
[[ -x /etc/init.d/consolefont ]] &&
/etc/init.d/consolefont restart
rmmod ttm
rmmod drm_kms_helper
rmmod dri
fi
fi
#
# vim:fenc=utf-8:ft=sh:ci:pi:sts=0:sw=4:ts=4:
#