Talk:Fglrx Quick Switch

From Gentoo Wiki
Jump to:navigation Jump to:search
Note
Before creating a discussion or leaving a comment, please read about using talk pages. To create a new discussion, click here. Comments on an existing discussion should be signed using ~~~~:
A comment [[User:Larry|Larry]] 13:52, 13 May 2024 (UTC)
: A reply [[User:Sally|Sally]] 12:32, 5 November 2024 (UTC)
:: Your reply ~~~~

xserverrc solution to switch config files and opengl profiles

is a pain, it doesn't work correctly with most display managers and eselect requires proper privilegies, so you can't start X with a scripts like startx with it. I've changed a script from Nouveau_&_nvidia-drivers_switching article to work with ati & radeon drivers (and patched grub.d files):

FILE /etc/local.d/radeon.start
#!/bin/sh
depend() {
       need localmount
       before xdm
}

if [[ $(lsmod|grep radeon) == '' ]] ; then
       if [[ $(eselect opengl show) != ati ]] ; then
               eselect opengl set ati &>/dev/null
       fi
       if [ -f /etc/X11/fglrx.conf ] ; then
               mv /etc/X11/fglrx.conf /etc/X11/xorg.conf
       fi
else
       if [ -f /etc/X11/xorg.conf ] ; then
               mv /etc/X11/xorg.conf /etc/X11/fglrx.conf 
       fi
       if [[ $(eselect opengl show) != xorg-x11 ]] ; then
               eselect opengl set xorg-x11 &>/dev/null
       fi
fi

which is more universal in a way, but i have no idea what to do with cards that require older xserver (as i have none). Any suggestions? That guy (talk) 07:57, 31 July 2013 (UTC)

xorg-server-1.12.4 is no longer in portage

xorg-server-1.12.4 is no longer in portage according to https://packages.gentoo.org/packages/x11-base/xorg-server Nabster (talk) 12:06, 1 December 2018 (UTC)