etc-gentoo/hprofile/profiles/vga/scripts/nouveau.start

18 lines
450 B
Bash

#
# vga/scripts/nouveau.start
#
modprobe ${1} || die "Failed to insert ${1} kernel module"
if [[ -e /sys/kernel/debug/vgaswitcheroo/switch ]]; then
echo DIS >/sys/kernel/debug/vgaswitcheroo/switch
# echo OFF >/sys/kernel/debug/vgaswitcheroo/switch
fi
[[ $(eselect opengl show) != xorg-x11 ]] && eselect opengl set xorg-x11
[[ $(eselect xvmc show) != xorg-x11 ]] && eselect opengl set xorg-x11
#
# vim:fenc=utf-8:ft=sh:ci:pi:sts=0:sw=4:ts=4:
#