- Todo List
- Kernel Configuration
- Making the Hardware Components work
- Useful Links
Once you have installed and set up the graphics card with the fglrx and the radeon driver (including multi-monitor setups), it's helpful to make the switch from one setup to another rather easy.
Basically, switching involves exchanging the xorg.conf file and the GL library file. But since the drivers are different in other respects too (suspend/resume, 3D acceleration), it's also convenient to change configuration files
at the same time, for example the xscreensaver configuration file to run different screensavers (radeon: no 3D; fglrx: all the 3D you can find ;)) or the hibernate.conf file for suspending the ThinkPad.
The attached radeonswitch script does exactly that.
You can switch the configuration either at boot time (if you set up GRUB/LILO to do so, see below) or while the system is up and running.
If you only want switch while the system is running, no special installation is needed. If you want to switch at boot time, as root issue
mv /path/to/downloaded/radeonswitch /etc/init.d
chmod 755 /etc/init.d/radeonswitch
update-rc.d radeonswitch defaults 95
to integrate it into the boot sequence of the Debian system.
Put the xorg.conf files for the various configurations you use into /etc/X11, renaming them to xorg.conf.<config>. For <config>, use a word starting with fglrx for the fglrx driver or a word starting with radeon for the radeon driver, e.g. xorg.conf.fglrx.tv is my TV-Out configuration for the fglrx driver. The example configuration files on this site all use this naming convention.
If you want to switch other configuration files, add them to the CONFIGS variable at the beginning of the radeonswitch file (an example can be found as comment inside the script) and provide one version with a .fglrx suffix and one with a .radeon suffix. For example the I created one /home/spiney/.xscreensaver.fglrx file with almost all 3D screensavers active and another /home/spiney/.xscreensaver.radeon with mostly 2D screensavers configured. The file corresponding to the chosen driver will be copied to /home/spiney.xscreensaver when radeonswitch is run.
Usage from the command line
As root issue
/etc/init.d/radeonswitch set <config>
to switch to the corresponding configuration and restart X.
You have to configure your boot loader to switch the driver at system startup. For GRUB this means adding
to your kernel configuration line in /boot/grub/menu.lst. For LILO (not tested) it should work with adding
to your /etc/lilo.conf line and running
to install the new LILO configuration.
Of course you have to provide multiple menu entries for GRUB or LILO, otherwise you can't really switch. If you provide menu entries where RADEONDRIVER is not appended, the graphics card setup will be left as it is.
Use this script own your own risk! I give no warranty whatsoever that the script works as intended, so if it accidentally deletes your whole harddisk, you're on your own. But I'm using it myself for quite some time now, so that's unlikely. Bug reports or feature requests are very welcome, feel free to use the feedback page.