Ubuntu Gutsy Installation Guide: Difference between revisions

From cchtml.com
Line 3: Line 3:




==Specific Issues==
It's serious
 
=== 3D desktop effects ===
The new ATI drivers use AIGLX so there is not need to install XGL that older drivers (< 8.40) required.
 
Remove this section from to the /etc/X11/xorg.conf file.
The new xorg server enables "Composite" by default.
<pre>
# Section "Extensions"
#        Option  "Composite" "0"
# EndSection
</pre>
 
Compiz does not know about the fglrx driver. You can either skip the checks
 
<pre>mkdir -p ~/.config/compiz && echo SKIP_CHECKS=yes >> ~/.config/compiz/compiz-manager</pre>
 
or add it to the compiz white list, and clear the blacklist pci Ids variable '''*Recommended*'''
 
<pre>sudo gedit /usr/bin/compiz</pre>
 
<pre>
# Driver whitelist
WHITELIST="fglrx nvidia intel ati radeon i810"
</pre>
 
<pre>
# blacklist based on the pci ids
# BLACKLIST_PCIIDS="$T"
BLACKLIST_PCIIDS=""
</pre>
 
 
You might have to modify the path for line 30 and 31
<pre>
  COMPIZ_BIN_PATH="/usr/bin/" # For window decorators and compiz
  PLUGIN_PATH="/usr/lib/compiz/"
</pre>
The COMPIZ_NAME on line 35 should also be modified accordingly
<pre>
  COMPIZ_NAME="compiz.real" # Final name for compiz (compiz.real)
</pre>
 
After the necessary configurations, just restart X and enjoy the cool effects.
 
If it still does not work, locate /etc/xdg/compiz/compiz-manager.ubuntu [this line may instead be in /etc/xdg/compiz/compiz-manager] and see if it contains an infinite loop in it. If it does, comment out the line that causes the infinite loop.
<pre>
# . /etc/xdg/compiz/compiz-manager.ubuntu
</pre>
 
For Kubuntu you need some extra steps:
<pre>
sudo apt-get install compiz compiz-kde compizconfig-settings-manager compiz-core compiz-fusion-plugins-main compiz-plugins
</pre>
 
To test 3D Effects, press ALT+F2 and type "compiz --replace".
 
To configure use the tool KMenu->Settings->Avanced Desktop Effect Settings.
 
=== Suspend/Hibernation work with 7.12===
 
With Gutsy release, there was a big problem using the ATI proprietary drivers.  The Suspend/Hibernate function stopped working. The problem was due to the new SLUB allocator incorporated in 2.6.22 / 2.6.23 Kernel.
 
'''The problem has been solved in the AMD Catalyst 7.12 driver release.'''
'''UPDATE: The problem has NOT been solved in the AMD Catalyst 7.12 driver release.'''
 
Suspend/hibernate is not working for FireGL 5250.
For FireGL 5200, suspend works with the 7.12 fglrx kernel module loaded (which did not work before this release) , but does not work if X is running.
 
For Thinkpad T60 with ATI X1400, to get the laptop to wake up from suspend, I had to change the following in /etc/default/acpi-support:
 
SAVE_VBE_STATE=false
 
POST_VIDEO=false
 
Even with the above settings (like POST_VIDEO=false, etc.) my ASUS Z96J with an X1600 does not suspend.
 
This bug has been a serious issue for several months now.  There is a lot of frustration over this, because Ubuntu/Canonical has not been helpful.  They've said things like suggesting not using fglrx (thanks a lot, that really helps).
 
Current status on this bug can be found here: https://bugs.launchpad.net/ubuntu/+source/linux-source-2.6.22/+bug/121653/
 
===If you get  /usr/X11R6/lib/modules/dri/fglrx_dri.so not found===
 
sudo ln -s /usr/lib/ /usr/X11R6/lib/modules
 
===If you get  /usr/X11R6/lib64/modules/dri/fglrx_dri.so not found===
 
sudo ln -s /usr/lib/ /usr/X11R6/lib64/modules
 
===Segmentation Fault with glxinfo/fglrxinfo===
If <code>fglrxinfo</code> or <code>glxinfo</code> returns a Segmentation fault like this:
<pre>
$ fglrxinfo
display: :0.0  screen: 0
OpenGL vendor string: ATI Technologies Inc.
OpenGL renderer string: ATI Radeon Xpress Series
OpenGL version string: 1.4 (2.1.7170 Release)
 
Segmentation fault
</pre>
 
Set output of libGL to verbose with
<pre>$ export LIBGL_DEBUG=verbose</pre>
 
Run <code>fglrxinfo</code> or <code>glxinfo</code> again
<pre>libGL: XF86DRIGetClientDriverName: 8.44.3 fglrx (screen 0)
libGL: OpenDriver: trying /usr/lib/dri/fglrx_dri.so
libGL error: dlopen /usr/lib/dri/fglrx_dri.so failed (/usr/lib/dri/fglrx_dri.so: cannot open shared object file: Permission denied)
libGL error: unable to load driver: fglrx_dri.so
display: :0.0  screen: 0
OpenGL vendor string: ATI Technologies Inc.
OpenGL renderer string: ATI Radeon Xpress Series
OpenGL version string: 1.4 (2.1.7170 Release)
 
Segmentation fault</pre>
 
Don't know if its always fglrx_dri.so, but the fix is to add read permissions to the file.
 
Check if read permission is not there
<pre>ls -l /usr/lib/dri/ |grep fglrx_dri
-rw-rw---- 1 root root 17462688 2008-01-13 17:42 fglrx_dri.so
</pre>
 
Add read permission
<pre>$ sudo chmod +r /usr/lib/dri/fglrx_dri.so</pre>
 
Check read permission
<pre>ls -l /usr/lib/dri/ |grep fglrx_dri
-rw-rw-r-- 1 root root 17462688 2008-01-13 17:42 fglrx_dri.so
</pre>
 
=== libGL error ===
* fglrxinfo gives:  libGL.so.1: cannot open shared object file.
* Check the permission of the libGL.so.1.2 file with command:
  ls -l /usr/lib/libGL*
* The file permission of libGL.so.1.2 should be "-rw-rw-r--".  If the permission reads "-rw-rw----", do command
  sudo chmod o+r /usr/lib/libGL.so.1.2
* If the permission is correct, fixed with command:
sudo ln -s /usr/lib/libGL.so.1.2 /usr/lib/libGL.so.1
 
 
=== Monitor detection (1680x1050 Resolution Issue)--- SOLVED ===
 
As specified in the release notes, "Connecting a display device that supports 1680x1050 to a system running Linux may result in a
maximum display resolution of 1280x1024 only being available". (from [http://ubuntuforums.org/showthread.php?t=645974 thread])
 
['''It works with the latest driver''']
 
Fglrx driver does not detect some monitors correctly, so you have to do it manually (google about your monitor spec with keyword: xorg.conf).
 
'''For example:''' Samsung 205BW 1680x1050 monitor needs manually set: 
{{Box File|/etc/X11/xorg.conf|
<pre>
Section "Monitor"
      Option "DPMS"
      Identifier "samsung-monitor"
      VendorName "Samsung"
      ModelName "SyncMaster 205BW"
      HorizSync 31.4 - 80.0
      VertRefresh 56.000 - 75.000
      Modeline "1680x1050" 146.25 1680 1784 1960 2240 1050 1053 1059 1089
EndSection
 
Section "Screen"
Identifier "samsung-screen"
Device "samsung-device"
Monitor "samsung-monitor"
Defaultdepth 24
SubSection "Display"
Depth 24
Modes "1680x1050"
EndSubSection
EndSection
</pre>
}}
 
 
=== A possible problem with fglrx.ko conflicts ===
 
NOTE: I've run into strange problem building fglrx-kernel-source_8.443.1-1_i386.deb. If pentium-builder is installed, dkms fails to build fglrx.ko for make error (mixed implicit and static pattern rules. Stop.). It is caused by gcc.real and other indirections and wrong gcc version detection. Removing pentium-builder cures the problem.
 
It's necessary, because sometimes this file is written by other packages, and so there's no 3D acceleration.
Check that the file /lib/modules/$(uname -r)/misc/fglrx.ko has been created.
 
''Create the following folder''
 
<pre>
sudo mkdir /lib/modules/$(uname -r)/volatile
</pre>
 
Note: the volatile directory might already exist at this stage then simply continue with the next step.
 
''Create a symbolic link''
 
<pre>
sudo ln -sf /lib/modules/$(uname -r)/misc/fglrx.ko /lib/modules/$(uname -r)/volatile/fglrx.ko
</pre>
 
 
NOTE : On my Gutsy install, after a reboot this link was always removed automatically leaving me without an fglrx module loaded, and thus no ATI rendering. There have been several ways of getting around this suggested here, and here is the one that worked for me:
 
<pre>
sudo gedit /etc/init.d/ati-module-fix
</pre>
 
And put this in it:
<pre>
#!/bin/sh -e
 
# For loading ATI display drivers
 
ln -sf /lib/modules/$(uname -r)/misc/fglrx.ko /lib/modules/$(uname -r)/volatile/fglrx.ko
exit 0
 
</pre>
 
Make it executable
 
<pre>
sudo chmod ugo+x /etc/init.d/ati-module-fix
</pre>
 
Now, make this run ''before'' gdm
 
To check the gdm sequence number,
<pre>
ls /etc/rc2.d/
</pre>
 
The value for [seqno] in the section below should be the gdm sequence number -1.
 
<pre>
sudo update-rc.d ati-module-fix defaults [seqno]
</pre>
 
=== Hang at logout ===
 
If you experience hangs when logging out (of X) try disabling atieventsd with this command:
 
<pre>sudo /usr/sbin/update-rc.d -f atieventsd remove</pre>


== Revert to Xorg driver ==
== Revert to Xorg driver ==

Revision as of 20:34, 27 September 2008

i'm fine good work


It's serious

Revert to Xorg driver

If (for any reason) the fglrx install fails, you can revert to the Xorg driver by executing

sudo dpkg-reconfigure xserver-xorg

and selecting the "ati" driver, or simply restoring the previous /etc/X11/xorg.conf file, if you made a backup.

You also need to remove the xorg-driver-fglrx or your manually installed drivers to get the 3D acceleration back, since it is provided by file /usr/lib/libGL.so.1.2 which belongs to libgl1-mesa package and which is moved to backup and replaced at the installation of xorg-driver-fglrx (or the manually built) package. In case the removal of the fglrx drivers fails to restore the file from libgl1-mesa, you have to reinstall the package by running:

sudo apt-get install --reinstall libgl1-mesa-glx

See Also