Difference between revisions of "Installing Ubuntu 7.04 (Feisty Fawn) on a ThinkPad T60"

From ThinkWiki
Jump to: navigation, search
(Fixing Suspend to RAM)
 
(42 intermediate revisions by 13 users not shown)
Line 1: Line 1:
Ubuntu Feisty Fawn is still under development (''alpha status'') and works fine on a T60 UT-049GE and 2007-72U.  
+
Ubuntu 7.04 Feisty Fawn is the current release and works fine on:
 +
* T60 UT-049GE and 2007-72U.
 +
* [[Installing Ubuntu 7.04 Feisty Fawn on a ThinkPad T60p|T60p]]
  
The installation worked without any problems. The new network manager is great as it now supports a useful roaming mode. The system runs stable since 3 days of work. No crash, no severe bugs. I would recommend it for experimental systems lovers. :)
+
This is a distribution to watch for Thinkpad users.
  
 +
== Features ==
  
== ATI Driver, Wireless, and Powernowd Suspend to RAM Fixes ==
+
The new Network Manager is great and now supports a useful roaming mode.
  
''(Feel free to clean this up with proper wiki markup)''
+
The system includes the new [[Linux]] kernel 2.6.20 which provides almost-perfect ACPI functionality.
  
'''"Out of the box:"'''
+
Feisty polishes Thinkpad support for media buttons (ACPI), and gives a much more usable machine immediately following installation than Edgy.   
*Suspend to RAM fails during suspend, leaving the moon blinking indefinitely.
 
*The Ubuntu apt-installed fglrx packages give the driver version 8.33.6, which is one of the versions that supposedly "breaks" suspend to RAMResuming from an otherwise successful suspend will cause the machine to resume with a blank screen without the fix below.
 
*The Intel Pro Wireless 3945 wireless card will often stop working even after a successful suspend, requiring a restart.
 
  
These two steps will fix suspend to RAM so that it works reliably after you've installed the ATI fglrx driver.  I'm assuming you have the Intel Pro Wireless option; ignore the part with the iwp3945 if you don't have that wireless card.
+
== Installation ==
  
=== Fixing Suspend to RAM ===
+
The installation has no problems.
  
#'''Disable powernowd during suspend'''
+
!attention: when I booted the live cd of Feisty, I got a message that I could install the drivers for my ATI X1400, I did this. Later on, while installing Feisty, X got broken. I tried again to install Feisty (without installing the drivers when using the live cd) and this time X didn't break.
#:Open a terminal and type: sudo gedit /etc/acpi/suspend.d/10-thinkpad-standby-led.sh
 
#:Add to the bottom of the file: /etc/init.d/powernowd stop
 
#:Save the file and go back to the terminal.
 
#:Type: sudo gedit /etc/acpi/resume.d/90-thinkpad-unstandby-led.sh
 
#:Add to the bottom of the file: /etc/init.d/powernowd start
 
#:These two edits will disable the powernowd when you suspend, and re-enable it when you resume.  For whatever reason, powernowd causes intermittent suspend problems.
 
'''2. Edit /etc/acpi-support file to unload wireless module during suspend and disable video card warm boot'''
 
  
Open a terminal and type: sudo gedit /etc/default/acpi-support
+
== Known Problems ==
 +
(Please note that these fixes will not help with Ubuntu 7.10.  Problems with Suspend/Resume on that version of Ubuntu are due to yet another ATI driver problem with the kernel used in 7.10, so we are at their mercy for releasing a bugfix)
 +
=== Suspend to RAM ===
  
Find the line MODULES="" and change it to MODULES="ipw3945" so that your wireless card module won't disappear after you resume.
+
Suspend to RAM fails during suspend, leaving the Moon blinking indefinitely.
  
Next, find the line POST_VIDEO=true and change it to POST_VIDEO=false to eliminate the blank-screen-resume problem.
+
*At one point, the Ubuntu apt-installed fglrx packages had the driver version 8.33.6, which is one of the versions that supposedly "breaks" suspend to RAM.  Resuming from an otherwise successful suspend will cause the machine to resume with a blank screen without the fix below.  That said, the current version in Feisty is now 8.34.8, whose release notes say "A system hang no longer occurs when attempting to resume from hibernation mode," so if you simply allow Ubuntu to update itself from the internet you can skip that step.  Note however if you install the 64-bit version of Ubuntu, you may have problems with suspend to RAM not coming back on wakeup, at least with the ATI graphics option on a recent (mid-2007) T60P.
 +
*The optional Intel Pro Wireless 3945 wireless card will often stop working even after a successful suspend, requiring a restart.
 +
* FR, 2007may9: Actually, I have a different experience with suspend and hibernate, with a T60 15.4" (core 2 duo 2GHz, intel graphic chip 945GM): Both suspend and hibernate work for me. Initially, I had an issue with a slightly corrupted video after resume from suspend (a couple of lines near the bottom right of the screen), that I fixed by using the intel X driver instead of the i810 (that comes stock with ubuntu feisty fawn). Just load xserver-xorg-driver-intel, that will uninstall xserver-xorg-driver-i810. No other modifications necessary, stock acpi-support and xorg.conf. I can also hibernate, but I loose sound when resuming. Restarting alsa does not restore it. UPDATE: I had trouble with the video getting corrupted during the vt switch (vt 7->1) that occurs during the suspend to RAM (or hibernate). These were solved by : (1) using uswsusp (s2ram and s2disk) as s2ram -f -a 3 (forces s3_bios and s3_mode), appending acpi_sleep=s3_bios,s3_mode vga=0 to the kernel boot parameters (/boot/grub/menu.lst) and removing splash from the same kernel options. I have done that 8 days ago, and gone through 3 countries, around 50 s2ram and 4-5 s2disk without a hinch (note: I'm still using the intel video drivers)
  
Save the file.
+
==== Solution ====
 +
===== Disable powernowd during suspend =====
 +
This solution will disable the powernowd when going into Suspend, and re-enable it upon resume.  For whatever reason, powernowd causes intermittent suspend problems.
 +
# Open a terminal and type: <code>sudo gedit /etc/acpi/suspend.d/10-thinkpad-standby-led.sh</code>
 +
# Add to the bottom of the file: <code>/etc/init.d/powernowd stop</code>
 +
# Save the file and go back to the terminal.
 +
# Type: <code>sudo gedit /etc/acpi/resume.d/90-thinkpad-unstandby-led.sh</code>
 +
# Add to the bottom of the file: <code>/etc/init.d/powernowd start</code>
 +
 
 +
===== Unload IPW3945 module =====
 +
If the Intel Pro Wireless card is installed, prevent it from disappearing during Suspend.
 +
 
 +
# Open a terminal and type: <code>sudo gedit /etc/default/acpi-support</code>
 +
# Find the line <code>MODULES=""</code> and change it to <code>MODULES="ipw3945"</code>.
 +
# Save the file.
 +
 
 +
===== Disable video card warm boot =====
 +
Prevent blank screen on Resume.
 +
# Open a terminal and type: <code>sudo gedit /etc/default/acpi-support</code>
 +
# Next, find the line <code>POST_VIDEO=true</code> and change it to <code>POST_VIDEO=false</code>.
 +
# Save the file.
 +
 
 +
If running the 64-bit version of Ubuntu on a T60P with the ATI graphics option, and suspend problems persist, consider installing the 32-bit version.
 +
 
 +
=== Related Ubuntu bugs ===
 +
* [https://bugs.launchpad.net/ubuntu/+source/xresprobe/+bug/106395 Flat panel resolution 1680x1050 not detected for laptop with ATI X1400]
 +
 
 +
== Tips dist-upgrading from Ubuntu 6.10 ==
 +
=== fglrx ===
 +
 
 +
If you have an ATI graphics card, Mesa may be active, by default, despite your xorg.conf configuration in Ubuntu 6.10.
 +
Check whether there is hardware acceleration:
 +
 
 +
{{cmduser|fglrxinfo}}
 +
 
 +
The above should print "OpenGL vendor string: ATI Technologies Inc", among other output. If "Mesa" is present, then reinstall the fglrx driver:
 +
 
 +
{{cmduser|sudo apt-get remove xorg-driver-fglrx fglrx-control}}
 +
 
 +
{{cmduser|sudo apt-get install xorg-driver-fglrx fglrx-control}}
 +
 
 +
{{cmduser|sudo depmod -a}}
 +
 
 +
Then logout, kill the X server with control+alt+delete, and login again. Now the command 'fglrxinfo' will print the proper vendor string.
 +
 
 +
 
 +
If the error persists and there is no 3D acceleration: comment out the line involving 'fglrx' in /etc/modprobe.d/lrm-video , then
 +
 
 +
{{cmduser|sudo modprobe -v fglrx}}
 +
 
 +
and restart the X server (control+alt+del). Check that the driver is loaded:
 +
 
 +
{{cmduser|lsmod}}
 +
    fglrx                540004  11
 +
    agpgart                35400  2 fglrx,intel_agp
 +
 
 +
 
 +
The driver fglrx should be listed.
 +
 
 +
 
 +
If this error is reported in the Xorg logs (under System / Administration / System Logs):
 +
 
 +
  (EE) AIGLX error: dlsym for __driCreateNewScreen_20050727 failed (/usr/lib/dri/fglrx_dri.so: undefined symbol: __driCreateNewScreen_20050727)
 +
  (EE) AIGLX: reverting to software rendering
 +
 
 +
Turn off AIGLX by adding the following to /etc/X11/xorg.conf:
 +
 
 +
  Section "ServerFlags"
 +
    Option "AIGLX" "off"
 +
  EndSection
 +
 
 +
 
 +
To avoid the garbled display problem, remember that /etc/X11/xorg.conf should have the Composite option disabled.  It should only be enabled for Compiz, which is not ready for Ubuntu 7.04 with ATI cards.
 +
 
 +
  Section "Extensions"
 +
    Option      "Composite" "0"
 +
  EndSection
 +
 
 +
== Metacity window manager==
 +
 
 +
If an unofficial compiz beta was installed at some point, then there will be two disruptive settings files under your home directory.  These will prevent Metacity from displaying window decorations.
 +
 
 +
<pre>
 +
.gnomerc
 +
.dmrc
 +
</pre>
 +
 
 +
Look at .gnomerc , which may contain a line specifying a window manager listed under .gnome-compiz-manager/openbox .
 +
The second file, .dmrc, may be pointing to a Compiz desktop session that no longer exists in the system.
 +
Remove both files.
 +
 
 +
== Resources ==
 +
* [https://bugs.launchpad.net/ubuntu/+source/metacity/+bug/104903 Gnome-compiz-manager thrusts itself into .gnomerc]
 +
 
 +
== References ==
 +
* [[Installing Ubuntu 6.10 (Edgy Eft) on a ThinkPad T60|Ubuntu 6.10 Edgy Eft Installation Guide]]
 +
 
 +
== See also ==
 +
* [[Ubuntu 7.10 on a Thinkpad T60]]
 +
 
 +
 
 +
[[Category:Ubuntu 7.04]] [[Category:T60]]

Latest revision as of 23:59, 10 March 2008

Ubuntu 7.04 Feisty Fawn is the current release and works fine on:

  • T60 UT-049GE and 2007-72U.
  • T60p

This is a distribution to watch for Thinkpad users.

Features

The new Network Manager is great and now supports a useful roaming mode.

The system includes the new Linux kernel 2.6.20 which provides almost-perfect ACPI functionality.

Feisty polishes Thinkpad support for media buttons (ACPI), and gives a much more usable machine immediately following installation than Edgy.

Installation

The installation has no problems.

!attention: when I booted the live cd of Feisty, I got a message that I could install the drivers for my ATI X1400, I did this. Later on, while installing Feisty, X got broken. I tried again to install Feisty (without installing the drivers when using the live cd) and this time X didn't break.

Known Problems

(Please note that these fixes will not help with Ubuntu 7.10. Problems with Suspend/Resume on that version of Ubuntu are due to yet another ATI driver problem with the kernel used in 7.10, so we are at their mercy for releasing a bugfix)

Suspend to RAM

Suspend to RAM fails during suspend, leaving the Moon blinking indefinitely.

  • At one point, the Ubuntu apt-installed fglrx packages had the driver version 8.33.6, which is one of the versions that supposedly "breaks" suspend to RAM. Resuming from an otherwise successful suspend will cause the machine to resume with a blank screen without the fix below. That said, the current version in Feisty is now 8.34.8, whose release notes say "A system hang no longer occurs when attempting to resume from hibernation mode," so if you simply allow Ubuntu to update itself from the internet you can skip that step. Note however if you install the 64-bit version of Ubuntu, you may have problems with suspend to RAM not coming back on wakeup, at least with the ATI graphics option on a recent (mid-2007) T60P.
  • The optional Intel Pro Wireless 3945 wireless card will often stop working even after a successful suspend, requiring a restart.
  • FR, 2007may9: Actually, I have a different experience with suspend and hibernate, with a T60 15.4" (core 2 duo 2GHz, intel graphic chip 945GM): Both suspend and hibernate work for me. Initially, I had an issue with a slightly corrupted video after resume from suspend (a couple of lines near the bottom right of the screen), that I fixed by using the intel X driver instead of the i810 (that comes stock with ubuntu feisty fawn). Just load xserver-xorg-driver-intel, that will uninstall xserver-xorg-driver-i810. No other modifications necessary, stock acpi-support and xorg.conf. I can also hibernate, but I loose sound when resuming. Restarting alsa does not restore it. UPDATE: I had trouble with the video getting corrupted during the vt switch (vt 7->1) that occurs during the suspend to RAM (or hibernate). These were solved by : (1) using uswsusp (s2ram and s2disk) as s2ram -f -a 3 (forces s3_bios and s3_mode), appending acpi_sleep=s3_bios,s3_mode vga=0 to the kernel boot parameters (/boot/grub/menu.lst) and removing splash from the same kernel options. I have done that 8 days ago, and gone through 3 countries, around 50 s2ram and 4-5 s2disk without a hinch (note: I'm still using the intel video drivers)

Solution

Disable powernowd during suspend

This solution will disable the powernowd when going into Suspend, and re-enable it upon resume. For whatever reason, powernowd causes intermittent suspend problems.

  1. Open a terminal and type: sudo gedit /etc/acpi/suspend.d/10-thinkpad-standby-led.sh
  2. Add to the bottom of the file: /etc/init.d/powernowd stop
  3. Save the file and go back to the terminal.
  4. Type: sudo gedit /etc/acpi/resume.d/90-thinkpad-unstandby-led.sh
  5. Add to the bottom of the file: /etc/init.d/powernowd start
Unload IPW3945 module

If the Intel Pro Wireless card is installed, prevent it from disappearing during Suspend.

  1. Open a terminal and type: sudo gedit /etc/default/acpi-support
  2. Find the line MODULES="" and change it to MODULES="ipw3945".
  3. Save the file.
Disable video card warm boot

Prevent blank screen on Resume.

  1. Open a terminal and type: sudo gedit /etc/default/acpi-support
  2. Next, find the line POST_VIDEO=true and change it to POST_VIDEO=false.
  3. Save the file.

If running the 64-bit version of Ubuntu on a T60P with the ATI graphics option, and suspend problems persist, consider installing the 32-bit version.

Related Ubuntu bugs

Tips dist-upgrading from Ubuntu 6.10

fglrx

If you have an ATI graphics card, Mesa may be active, by default, despite your xorg.conf configuration in Ubuntu 6.10. Check whether there is hardware acceleration:

$ fglrxinfo

The above should print "OpenGL vendor string: ATI Technologies Inc", among other output. If "Mesa" is present, then reinstall the fglrx driver:

$ sudo apt-get remove xorg-driver-fglrx fglrx-control

$ sudo apt-get install xorg-driver-fglrx fglrx-control

$ sudo depmod -a

Then logout, kill the X server with control+alt+delete, and login again. Now the command 'fglrxinfo' will print the proper vendor string.


If the error persists and there is no 3D acceleration: comment out the line involving 'fglrx' in /etc/modprobe.d/lrm-video , then

$ sudo modprobe -v fglrx

and restart the X server (control+alt+del). Check that the driver is loaded:

$ lsmod

   fglrx                 540004  11
   agpgart                35400  2 fglrx,intel_agp


The driver fglrx should be listed.


If this error is reported in the Xorg logs (under System / Administration / System Logs):

  (EE) AIGLX error: dlsym for __driCreateNewScreen_20050727 failed (/usr/lib/dri/fglrx_dri.so: undefined symbol: __driCreateNewScreen_20050727)
  (EE) AIGLX: reverting to software rendering

Turn off AIGLX by adding the following to /etc/X11/xorg.conf:

 Section "ServerFlags"
   Option "AIGLX" "off"
 EndSection


To avoid the garbled display problem, remember that /etc/X11/xorg.conf should have the Composite option disabled. It should only be enabled for Compiz, which is not ready for Ubuntu 7.04 with ATI cards.

 Section "Extensions"
   Option      "Composite" "0"
 EndSection

Metacity window manager

If an unofficial compiz beta was installed at some point, then there will be two disruptive settings files under your home directory. These will prevent Metacity from displaying window decorations.

.gnomerc
.dmrc

Look at .gnomerc , which may contain a line specifying a window manager listed under .gnome-compiz-manager/openbox . The second file, .dmrc, may be pointing to a Compiz desktop session that no longer exists in the system. Remove both files.

Resources

References

See also