xorg: further fixes for radeon/fglrx switch
This commit is contained in:
parent
806b8138d5
commit
91d9c11c5e
@ -163,7 +163,7 @@ if [ -e $XORGCONF ]; then
|
|||||||
[ -e /sys/module/nouveau/parameters/modeset ] && NOUVEAU_MODESET=`cat /sys/module/nouveau/parameters/modeset`
|
[ -e /sys/module/nouveau/parameters/modeset ] && NOUVEAU_MODESET=`cat /sys/module/nouveau/parameters/modeset`
|
||||||
[ "$NOUVEAU_MODESET" = "-1" ] && NOUVEAU_MODESET=1
|
[ "$NOUVEAU_MODESET" = "-1" ] && NOUVEAU_MODESET=1
|
||||||
[ -e /sys/module/radeon/parameters/modeset ] && RADEON_MODESET=`cat /sys/module/radeon/parameters/modeset`
|
[ -e /sys/module/radeon/parameters/modeset ] && RADEON_MODESET=`cat /sys/module/radeon/parameters/modeset`
|
||||||
[ "$RADEON_MODESET" = "-1" ] && NOUVEAU_MODESET=1
|
[ "$RADEON_MODESET" = "-1" ] && RADEON_MODESET=1
|
||||||
|
|
||||||
if [ "$VIDEODRIVER" = "nvidia" -a "$NOUVEAU_MODESET" = "1" ]; then
|
if [ "$VIDEODRIVER" = "nvidia" -a "$NOUVEAU_MODESET" = "1" ]; then
|
||||||
# replace nvidia with nouveau
|
# replace nvidia with nouveau
|
||||||
@ -185,10 +185,12 @@ if [ -e $XORGCONF ]; then
|
|||||||
VIDEODRIVER=""
|
VIDEODRIVER=""
|
||||||
elif [ "$VIDEODRIVER" = "radeon" -a "$RADEON_MODESET" != "1" ]; then
|
elif [ "$VIDEODRIVER" = "radeon" -a "$RADEON_MODESET" != "1" ]; then
|
||||||
# replace radeon with fglrx
|
# replace radeon with fglrx
|
||||||
mv $XORGCONF $XORGCONF.postplug.radeon.save
|
#mv $XORGCONF $XORGCONF.postplug.radeon.save
|
||||||
rmmod radeon
|
rmmod radeon
|
||||||
rm -f /etc/modprobe.d/postplug-radeon.conf
|
rm -f /etc/modprobe.d/postplug-radeon.conf
|
||||||
VIDEODRIVER="fglrx"
|
VIDEODRIVER="fglrx"
|
||||||
|
ATI_DRV=1
|
||||||
|
CONFCREATED=1
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -461,7 +463,8 @@ fi
|
|||||||
|
|
||||||
# radeon: enable a conservative power profile (mid) by default
|
# radeon: enable a conservative power profile (mid) by default
|
||||||
if [ -e /sys/class/drm/card0/device/power_profile ]; then
|
if [ -e /sys/class/drm/card0/device/power_profile ]; then
|
||||||
echo mid > /sys/class/drm/card0/device/power_profile
|
[ "$XORG_POWER_PROFILE" ] || XORG_POWER_PROFILE="mid"
|
||||||
|
echo $XORG_POWER_PROFILE > /sys/class/drm/card0/device/power_profile
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Configure keyboard
|
# Configure keyboard
|
||||||
|
@ -61,6 +61,10 @@ NETWORK_NEWDEVICE=off
|
|||||||
# (on/off, default: on)
|
# (on/off, default: on)
|
||||||
XORG_DETECT_SCREEN_SIZE=on
|
XORG_DETECT_SCREEN_SIZE=on
|
||||||
|
|
||||||
|
# xorg server: power profile for Radeon driver
|
||||||
|
# (auto/low/mid/high, default: mid)
|
||||||
|
#XORG_POWER_PROFILE=mid
|
||||||
|
|
||||||
# force sound card reconfiguration
|
# force sound card reconfiguration
|
||||||
# (on/off, default: off)
|
# (on/off, default: off)
|
||||||
SOUND_FORCE_RESCAN=off
|
SOUND_FORCE_RESCAN=off
|
||||||
|
Loading…
Reference in New Issue
Block a user