21 lines
627 B
Bash
21 lines
627 B
Bash
#
|
|
# vga/scripts/radeon.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
|
|
|
|
echo low >/sys/class/drm/card0/device/power_profile
|
|
[[ $(eselect opengl show) != xorg-x11 ]] && eselect opengl set xorg-x11
|
|
[[ $(eselect xvmc show) != xorg-x11 ]] && eselect xvmc set xorg-x11
|
|
echo profile >/sys/class/drm/card0/power_method # or 'dynpm'
|
|
echo auto >/sys/class/drm/card0/power_profile # or 'low|mid'
|
|
|
|
#
|
|
# vim:fenc=utf-8:ft=sh:ci:pi:sts=0:sw=4:ts=4:
|
|
#
|