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

18 lines
470 B
Plaintext
Raw Normal View History

#
# vga/scripts/intel.start
#
modprobe i915 || die "Failed to insert i915 kernel module"
if [[ -e /sys/kernel/debug/vgaswitcheroo/switch ]]; then
echo IGD >/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) != 'intel-i915/i965' ]] && eselect xvmc set 'intel-i915/i965'
#
# vim:fenc=utf-8:ft=sh:ci:pi:sts=0:sw=4:ts=4:
#