Fedora-xgl
From skinetwork
[edit] Fedora-XGL, Beryl (3d desktop) on Fedora Core 6 using ATI cards driver fglrx
My video card: Display controller: ATI Technologies Inc RV370 secondary [Sapphire X550 Silent]
I have written down these steps quickly so that I wouldn't forget to setup the fedora-xgl 3d desktop in fedora core 6.
- I got the fglrx drivers from ati.com. Do not use the "radeon" driver that comes with fedora. In certain cases it works but I preferred to get the one from ati.
- To see if you are using the fglrx driver check you xorg.conf file for Driver "fglrx" line.
- Also do not enable tv dual head screen for the ati configuration yet. It might mess with our xgl 3d desktop. If you have used
$ aticonfig --initial
that by default should create the dual screen To disable that and use only one screen use the below command
$ aticonfig --dtop=single
- Once done with the above steps, to start configuration of our 3d desktop, we need to install certain packages which by default are not provided with fedora repos.
- Get the fedora xgl reporsitory and install it.
$ rpm -Uvh http://fedoraxgl.tuxfamily.org/repository/fedora-xgl-repository-1.0-3.noarch.rpm $ rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-AL-CAPCOM
- Before preceeding with the installation, remove any compiz package fedora might have installed for you. I did these step:
$ rpm -qa | grep compiz $ rpm -e compiz-devel-0.0.13-0.32.20060817git.fc6 $ rpm -e compiz-0.0.13-0.32.20060817git.fc6
The above returned compiz and compiz devel which are conflicting installation, so erased.
- The fedora-xgl repositories are not updated for fedora 6 version yet. However, we could used fedora 5 repos. To do this open /etc/yum.repos.d/fedora-xgl.repo and replace all instances of $releasever to 5, since $releasever will be 6 otherwise and failed in fetching the repmond.xml. My /etc/yum.repos.d/fedora.xgl.repo looks like this
[fedora-xgl]
name=Fedora $releasever - $basearch - Base Xgl repository
baseurl=
http://fedoraxgl.tuxfamily.org/repository/5/$basearch
http://users.telenet.be/quenta/5/$basearch
gpgcheck=0
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AL-CAPCOM
[fedora-xgl-source]
name=Fedora Xgl tmp testing repository
baseurl=
http://fedoraxgl.tuxfamily.org/repository/5/SRPMS
http://users.telenet.be/quenta/repository/5/SRPMS
gpgcheck=0
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AL-CAPCOM
- Time for installing few packages
$ yum install --enablerepo=fedora-xgl glitz-glx libsvg libsvg-cairo xorg-x11-server-Xgl xgl-hardware-list compiz $ cd /etc/yum.repos.d/ $ wget http://wilsonet.com/packages/beryl/beryl.repo $ yum install beryl-core beryl-manager beryl-plugins beryl-settings emerald emerald-themes $ yum install beryl-kde $ yum install beryl-gnome
- To make sure our 3d works, let check on few things. At the terminal enter
$ gnome-xgl-info $ gnome-xgl-switch --enable-xgl --auto
G ATI Technologies 1 kmod-fglrx is installed for the kernel release 1.2895.fc6 1 -accel glx:pbuffer -accel xv:pbuffer
You might not see exactly as above. The first line states the card. G stands for good. Second line looks if fglrx is installed and enabled. Third tells if the hardware is compatible or noot.
If you see 0 and 0 for lines two and three, most possibly you haven't installed kmod-fglrx and/or haven't enabled ati-fglrx. Do do this
$ yum install kmod-fglrx $ yum install beryl-kde // Disable SELinux $ init 3
Now do not forget to enable the driver
$ ati-fglrx-config-display enable $ init 5
Before doing in init 5 lets do some tweaks to xorg.conf to make sure things works. In the device section, add the following lines
Option "AddARGBGLXVisuals" "True" Option "DisableGLXRootClipping" "True"
Check to see the following lines exist in your xorg.conf (See the xorg.conf file below)
Section "DRI"
Group 0
Mode 0666
EndSection
In the Module section add following if not already present, for ati only.
Load "extmod" Load "dri"
I also added these lines to xorg.conf
Section "Extensions" Option "Composite" "0" EndSection
I am pasting my xorg.conf file here for changes I did.
# Xorg configuration created by system-config-display
Section "ServerLayout"
Identifier "single head configuration"
Screen 0 "Screen0" 0 0
InputDevice "Keyboard0" "CoreKeyboard"
EndSection
Section "Files"
EndSection
Section "Module"
Load "extmod"
Load "dri"
EndSection
Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
Option "XkbModel" "pc105"
Option "XkbLayout" "us"
EndSection
Section "Monitor"
### Comment all HorizSync and VertSync values to use DDC:
### Comment all HorizSync and VertSync values to use DDC:
### Comment all HorizSync and VertSync values to use DDC:
### Comment all HorizSync and VertSync values to use DDC:
### Comment all HorizSync and VertSync values to use DDC:
### Comment all HorizSync and VertSync values to use DDC:
### Comment all HorizSync and VertSync values to use DDC:
### Comment all HorizSync and VertSync values to use DDC:
### Comment all HorizSync and VertSync values to use DDC:
### Comment all HorizSync and VertSync values to use DDC:
Identifier "Monitor0"
ModelName "LCD Panel 1440x900"
### Comment all HorizSync and VertSync values to use DDC:
HorizSync 31.5 - 81.0
VertRefresh 59.0 - 75.0
Option "dpms"
EndSection
Section "Monitor"
Identifier "aticonfig-Monitor[1]"
Option "VendorName" "ATI Proprietary Driver"
Option "ModelName" "Generic Autodetecting Monitor"
Option "DPMS" "true"
EndSection
Section "Device"
Identifier "Videocard0"
Driver "fglrx"
Option "DesktopSetup" "single"
Option "Mode2" "800x600,1024x768"
Option "ForceMonitors" "crt1,notv"
Option "AddARGBGLXVisuals" "True"
Option "DisableGLXRootClipping" "True"
Option "VideoOverlay" "on"
BusID "PCI:9:0:0"
EndSection
Section "Device"
Identifier "aticonfig-Device[1]"
Driver "fglrx"
Option "AddARGBGLXVisuals" "True"
Option "DisableGLXRootClipping" "True"
Option "VideoOverlay" "on"
BusID "PCI:9:0:0"
Screen 1
EndSection
Section "Screen"
Identifier "Screen0"
Device "Videocard0"
Monitor "Monitor0"
DefaultDepth 24
SubSection "Display"
Viewport 0 0
Depth 24
Modes "1440x900" "1400x1050" "1280x1024" "1280x960" "1280x800" "1152x864" "1024x768" "800x600" "640x480"
EndSubSection
EndSection
Section "Screen"
Identifier "aticonfig-Screen[1]"
Device "aticonfig-Device[1]"
Monitor "aticonfig-Monitor[1]"
DefaultDepth 24
SubSection "Display"
Viewport 0 0
Depth 24
EndSubSection
EndSection
Section "DRI"
Group 0
Mode 0666
EndSection
Section "Extensions"
Option "Composite" "0"
EndSection
Configure xgl with the following command:
$ gnome-xgl-switch --enable-xgl --auto
There is a script in /etc/init.d/ati-fglrx which takes care of loading fglrx kernel module or checking to see if its already present. You can try:
$ service ati-fglrx status
The .ko failed to insert in the Xen Dom0 Kernel I am running on. Currently I am using 3d desktop only on fc6 and was not successfull yet on fc6xen. I didn't try it enought though, I shall change this article if I will find it running.
At this point a reboot would do the trick in loading fglrx into kernel.
$ shutdown -r now
After reboot, select gnome session to login and you should already have loaded with 3d desktop. Select the menu and you should see the effects. Open the console and type in
$ beryl-manager
This should start the beryl-manager in the task manager. Use
$ beryl-settings
to change the window manager settings.
