saving uncommitted changes in /etc prior to emerge run
This commit is contained in:
17
hprofile/profiles/vga/scripts/intel.start
Normal file
17
hprofile/profiles/vga/scripts/intel.start
Normal file
@@ -0,0 +1,17 @@
|
||||
#
|
||||
# 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:
|
||||
#
|
||||
Reference in New Issue
Block a user