http://wiki.cchtml.com/api.php?action=feedcontributions&user=134.37.255.5&feedformat=atomcchtml.com - User contributions [en]2024-03-29T10:42:04ZUser contributionsMediaWiki 1.39.4http://wiki.cchtml.com/index.php?title=Ubuntu_Gutsy_Installation_Guide&diff=4531Ubuntu Gutsy Installation Guide2008-12-01T22:04:16Z<p>134.37.255.5: /* Installation */</p>
<hr />
<div>todoabigfavour<br />
<br />
== Post-Installation Checks and Tweaks ==<br />
===Verifying===<br />
Run the following command to check its output to ensure the fglrx driver is installed properly:<br />
<br />
64bit Users only ( 32bit users can continue to the fglrxinfo test ), after rebooting you may have noticed that you cant open aticonfig and the fglrxinfo test below may not show ati in the info from the test, to fix this in terminal do the following command<br />
<pre><br />
sudo ln -s /usr/lib/libGL.so.1.2 /usr/lib/libGL.so.1<br />
</pre><br />
<br />
<pre><br />
$fglrxinfo <br />
display: :0.0 screen: 0<br />
OpenGL vendor string: ATI Technologies Inc.<br />
OpenGL renderer string: ATI MOBILITY RADEON X300<br />
OpenGL version string: 2.1.7415 Release<br />
</pre><br />
The <code>OpenGL vendor string</code> should read '''ATI''' and not '''Mesa'''.<br />
<br />
'''If it still says ''Mesa'' and not ''ATI'', even after re-enabling the driver from the Restricted-manager:'''<br />
You can try the following:<br />
:*<pre>$ less /var/log/Xorg.0.log |grep EE</pre> if this command returns <code>(EE) fglrx(0): incompatible kernel module detected - HW accelerated OpenGL will not work</code> then remove the kernel module and reinstall it.<br />
:: <pre>$ sudo dkms remove -m fglrx -v 8.471 --all</pre><br />
<br />
:*Remove all the packages provided by the <code>xserver-xorg-video-all</code> meta-package (search for it using Synaptic or Adept), then restart the machine. The X Server should now use the new fglrx driver by force (provided the driver is being used in ''xorg.conf'').<br />
::If you can't log in after this, you'll have to log in to a terminal in the login screen, and reinstall the <code>xserver-xorg-video-all</code> package. Your problem is probably somewhere else. (taken from [http://ubuntuforums.org/showpost.php?p=3655658&postcount=139]).<br />
<br />
:*Remove the package xserver-xgl. <br />
::'''Explanation:''' If you installed this previously in order to make compiz work, it will not allow direct rendering on your display. You can check out if this is what it causing the problem by running<br />
::<pre>DISPLAY=:0 glxinfo | grep render</pre><br />
::If it returns an ATI renderer, it means that xgl is being displayed indirectly on the display 1. (Taken from [http://ubuntuforums.org/showthread.php?t=740287])<br />
::'''Warning:''' This might make your compiz stop working as it is configured to use XGl. A solution might be to run the Envy script in order to configure compiz.<br />
<br />
Note: Here is the [[glxinfo]] of a good install (for those interested).<br />
<br />
=== Enable laptop mode on battery power ===<br />
<br />
Enabling laptop mode on battery power gives you much better battery life, however be aware that sometimes it causes odd hangs.<br />
<br />
Switch ENABLE_LAPTOP_MODE to true <br />
{{Box File|/etc/default/acpi-support|<br />
<pre><br />
# Switch to laptop-mode on battery power - off by default as it causes odd<br />
# hangs on some machines<br />
ENABLE_LAPTOP_MODE=true<br />
</pre><br />
}}<br />
<br />
Switch FGLRX_ACPI_SWITCH_POWERSTATES to true<br />
{{Box File|/etc/default/fglrx|<br />
<pre><br />
# Uncomment the next line to enable powerstate switching on ACPI<br />
# events for lid open/close and AC adapter on/off<br />
FGLRX_ACPI_SWITCH_POWERSTATES=true<br />
</pre><br />
}}<br />
<br />
=== Additional configure with aticonfig tool ===<br />
You can configure the driver even further with the '''aticonfig''' tool, more information can be found at [[Configuring]].<br />
<br />
For example: <br><br />
* use powerplay option to switch power state for battery friendly or performance mode<br />
* use dual head or one big desktop mode <br />
* turn second monitor on/off on the fly<br />
<br />
<br />
<br />
==Specific Issues==<br />
<br />
=== 3D desktop effects ===<br />
The new ATI drivers use AIGLX so there is not need to install XGL that older drivers (< 8.40) required.<br />
<br />
Remove this section from to the /etc/X11/xorg.conf file.<br />
The new xorg server enables "Composite" by default.<br />
<pre><br />
# Section "Extensions"<br />
# Option "Composite" "0"<br />
# EndSection<br />
</pre><br />
<br />
Compiz does not know about the fglrx driver. You can either skip the checks<br />
<br />
<pre>mkdir -p ~/.config/compiz && echo SKIP_CHECKS=yes >> ~/.config/compiz/compiz-manager</pre><br />
<br />
or add it to the compiz white list, and clear the blacklist pci Ids variable '''*Recommended*'''<br />
<br />
<pre>sudo gedit /usr/bin/compiz</pre><br />
<br />
<pre><br />
# Driver whitelist<br />
WHITELIST="fglrx nvidia intel ati radeon i810"<br />
</pre><br />
<br />
<pre><br />
# blacklist based on the pci ids <br />
# BLACKLIST_PCIIDS="$T"<br />
BLACKLIST_PCIIDS=""<br />
</pre><br />
<br />
<br />
You might have to modify the path for line 30 and 31<br />
<pre><br />
COMPIZ_BIN_PATH="/usr/bin/" # For window decorators and compiz<br />
PLUGIN_PATH="/usr/lib/compiz/"<br />
</pre><br />
The COMPIZ_NAME on line 35 should also be modified accordingly<br />
<pre><br />
COMPIZ_NAME="compiz.real" # Final name for compiz (compiz.real) <br />
</pre><br />
<br />
After the necessary configurations, just restart X and enjoy the cool effects.<br />
<br />
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.<br />
<pre><br />
# . /etc/xdg/compiz/compiz-manager.ubuntu<br />
</pre><br />
<br />
For Kubuntu you need some extra steps:<br />
<pre><br />
sudo apt-get install compiz compiz-kde compizconfig-settings-manager compiz-core compiz-fusion-plugins-main compiz-plugins<br />
</pre><br />
<br />
To test 3D Effects, press ALT+F2 and type "compiz --replace".<br />
<br />
To configure use the tool KMenu->Settings->Avanced Desktop Effect Settings.<br />
<br />
=== Suspend/Hibernation work with 7.12===<br />
<br />
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. <br />
<br />
'''The problem has been solved in the AMD Catalyst 7.12 driver release.'''<br />
'''UPDATE: The problem has NOT been solved in the AMD Catalyst 7.12 driver release.'''<br />
<br />
Suspend/hibernate is not working for FireGL 5250.<br />
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.<br />
<br />
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:<br />
<br />
SAVE_VBE_STATE=false<br />
<br />
POST_VIDEO=false<br />
<br />
Even with the above settings (like POST_VIDEO=false, etc.) my ASUS Z96J with an X1600 does not suspend. <br />
<br />
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).<br />
<br />
Current status on this bug can be found here: https://bugs.launchpad.net/ubuntu/+source/linux-source-2.6.22/+bug/121653/<br />
<br />
===If you get /usr/X11R6/lib/modules/dri/fglrx_dri.so not found===<br />
<br />
sudo ln -s /usr/lib/ /usr/X11R6/lib/modules<br />
<br />
===If you get /usr/X11R6/lib64/modules/dri/fglrx_dri.so not found===<br />
<br />
sudo ln -s /usr/lib/ /usr/X11R6/lib64/modules<br />
<br />
===Segmentation Fault with glxinfo/fglrxinfo===<br />
If <code>fglrxinfo</code> or <code>glxinfo</code> returns a Segmentation fault like this:<br />
<pre><br />
$ fglrxinfo<br />
display: :0.0 screen: 0<br />
OpenGL vendor string: ATI Technologies Inc.<br />
OpenGL renderer string: ATI Radeon Xpress Series<br />
OpenGL version string: 1.4 (2.1.7170 Release)<br />
<br />
Segmentation fault<br />
</pre><br />
<br />
Set output of libGL to verbose with<br />
<pre>$ export LIBGL_DEBUG=verbose</pre><br />
<br />
Run <code>fglrxinfo</code> or <code>glxinfo</code> again<br />
<pre>libGL: XF86DRIGetClientDriverName: 8.44.3 fglrx (screen 0)<br />
libGL: OpenDriver: trying /usr/lib/dri/fglrx_dri.so<br />
libGL error: dlopen /usr/lib/dri/fglrx_dri.so failed (/usr/lib/dri/fglrx_dri.so: cannot open shared object file: Permission denied)<br />
libGL error: unable to load driver: fglrx_dri.so<br />
display: :0.0 screen: 0<br />
OpenGL vendor string: ATI Technologies Inc.<br />
OpenGL renderer string: ATI Radeon Xpress Series<br />
OpenGL version string: 1.4 (2.1.7170 Release)<br />
<br />
Segmentation fault</pre><br />
<br />
Don't know if its always fglrx_dri.so, but the fix is to add read permissions to the file.<br />
<br />
Check if read permission is not there<br />
<pre>ls -l /usr/lib/dri/ |grep fglrx_dri<br />
-rw-rw---- 1 root root 17462688 2008-01-13 17:42 fglrx_dri.so<br />
</pre><br />
<br />
Add read permission<br />
<pre>$ sudo chmod +r /usr/lib/dri/fglrx_dri.so</pre><br />
<br />
Check read permission<br />
<pre>ls -l /usr/lib/dri/ |grep fglrx_dri<br />
-rw-rw-r-- 1 root root 17462688 2008-01-13 17:42 fglrx_dri.so<br />
</pre><br />
<br />
=== libGL error ===<br />
* fglrxinfo gives: libGL.so.1: cannot open shared object file.<br />
* Check the permission of the libGL.so.1.2 file with command:<br />
ls -l /usr/lib/libGL*<br />
* The file permission of libGL.so.1.2 should be "-rw-rw-r--". If the permission reads "-rw-rw----", do command<br />
sudo chmod o+r /usr/lib/libGL.so.1.2<br />
* If the permission is correct, fixed with command:<br />
sudo ln -s /usr/lib/libGL.so.1.2 /usr/lib/libGL.so.1<br />
<br />
<br />
=== Monitor detection (1680x1050 Resolution Issue)--- SOLVED ===<br />
<br />
As specified in the release notes, "Connecting a display device that supports 1680x1050 to a system running Linux may result in a<br />
maximum display resolution of 1280x1024 only being available". (from [http://ubuntuforums.org/showthread.php?t=645974 thread])<br />
<br />
['''It works with the latest driver''']<br />
<br />
Fglrx driver does not detect some monitors correctly, so you have to do it manually (google about your monitor spec with keyword: xorg.conf).<br />
<br />
'''For example:''' Samsung 205BW 1680x1050 monitor needs manually set: <br />
{{Box File|/etc/X11/xorg.conf|<br />
<pre><br />
Section "Monitor"<br />
Option "DPMS"<br />
Identifier "samsung-monitor"<br />
VendorName "Samsung"<br />
ModelName "SyncMaster 205BW"<br />
HorizSync 31.4 - 80.0<br />
VertRefresh 56.000 - 75.000<br />
Modeline "1680x1050" 146.25 1680 1784 1960 2240 1050 1053 1059 1089<br />
EndSection<br />
<br />
Section "Screen"<br />
Identifier "samsung-screen"<br />
Device "samsung-device"<br />
Monitor "samsung-monitor"<br />
Defaultdepth 24<br />
SubSection "Display"<br />
Depth 24<br />
Modes "1680x1050"<br />
EndSubSection<br />
EndSection<br />
</pre><br />
}}<br />
<br />
<br />
=== A possible problem with fglrx.ko conflicts ===<br />
<br />
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.<br />
<br />
It's necessary, because sometimes this file is written by other packages, and so there's no 3D acceleration.<br />
Check that the file /lib/modules/$(uname -r)/misc/fglrx.ko has been created.<br />
<br />
''Create the following folder''<br />
<br />
<pre><br />
sudo mkdir /lib/modules/$(uname -r)/volatile<br />
</pre><br />
<br />
Note: the volatile directory might already exist at this stage then simply continue with the next step. <br />
<br />
''Create a symbolic link''<br />
<br />
<pre><br />
sudo ln -sf /lib/modules/$(uname -r)/misc/fglrx.ko /lib/modules/$(uname -r)/volatile/fglrx.ko<br />
</pre><br />
<br />
<br />
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:<br />
<br />
<pre><br />
sudo gedit /etc/init.d/ati-module-fix<br />
</pre><br />
<br />
And put this in it:<br />
<pre><br />
#!/bin/sh -e<br />
<br />
# For loading ATI display drivers<br />
<br />
ln -sf /lib/modules/$(uname -r)/misc/fglrx.ko /lib/modules/$(uname -r)/volatile/fglrx.ko<br />
exit 0<br />
<br />
</pre><br />
<br />
Make it executable<br />
<br />
<pre><br />
sudo chmod ugo+x /etc/init.d/ati-module-fix<br />
</pre><br />
<br />
Now, make this run ''before'' gdm <br />
<br />
To check the gdm sequence number, <br />
<pre><br />
ls /etc/rc2.d/<br />
</pre><br />
<br />
The value for [seqno] in the section below should be the gdm sequence number -1.<br />
<br />
<pre><br />
sudo update-rc.d ati-module-fix defaults [seqno]<br />
</pre><br />
<br />
=== Hang at logout ===<br />
<br />
If you experience hangs when logging out (of X) try disabling atieventsd with this command:<br />
<br />
<pre>sudo /usr/sbin/update-rc.d -f atieventsd remove</pre><br />
<br />
== Revert to Xorg driver ==<br />
<br />
If (for any reason) the fglrx install fails, you can revert to the Xorg driver by executing<br />
<pre>sudo dpkg-reconfigure xserver-xorg</pre><br />
and selecting the "ati" driver, or simply restoring the previous /etc/X11/xorg.conf file, if you made a backup. <br />
<br />
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:<br />
<br />
<pre>sudo apt-get install --reinstall libgl1-mesa-glx</pre><br />
<br />
==See Also==<br />
*[[Frequently Asked Questions]]<br />
*[[Performance Issues]]<br />
*[[Troubleshooting]]<br />
<br />
[[Category:Installation Documentation]]</div>134.37.255.5