Hibernate broken in Gutsy

Bug #156833 reported by madhusudansingh
6
Affects Status Importance Assigned to Milestone
kpowersave (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: kpowersave

Description :

OS used (in each case) :
--------------------------------

Kubuntu Linux

Hardware :
--------------

Dell OptiPlex 745, with ATI card :

01:00.0 VGA compatible controller: ATI Technologies Inc RV516 [Radeon X1300/X1550 Series]
01:00.1 Display controller: ATI Technologies Inc RV516 [Radeon X1300/X1550 Series] (Secondary)

RAM = 3GB.
Swap space = 4 GB.

++++++++++++++++++++++

With Feisty :
---------------

Used ati drivers :
(II) LoadModule: "fglrx"
(II) Loading /usr/lib/xorg/modules/drivers//fglrx_drv.so
(II) Module fglrx: vendor="FireGL - ATI Technologies Inc."
        compiled for 7.1.0, module version = 8.40.4
        Module class: X.Org Video Driver
        ABI class: X.Org Video Driver, version 1.0

Hibernate worked out of the box (right click on KPowerSave - Suspend to Disk). The system hibernated and woke up correctly (almost - USB thumb drives that were plugged in were not detected with a popup, but that is digressing here). The success rate was close to 100% (cannot recall a failed hibernate over 2-3 months of use).

+++++++++++++++++++++++

With Gutsy :
---------------

Used the included ati drivers (which are older than the version I used with Feisty - see above). Hibernation hangs.

Found this link :

http://www.mylittleubuntuguide.com/2007/10/21/gutsy-suspend-hibernate-workingat-a-cost/

Restored the ati driver to the newest stable version (same version as I had under Feisty). Hibernation hangs. No text on screen, just a monitor that is not getting a signal, with the USB keyboard / mouse all asleep and unable to wake up. Only solution - hard reboot by pressing down the power button. This is repeatable, 100% of the time.

Initially, could not find anything in the logs (/var/log/messages and /var/log/syslog) to indicate what is hanging up the hibernate. After restoration of the ati driver version to the newest one, I find that /var/log/suspend2disk.log is created :

suspend2disk initiated: 2007-10-24 13:10:09
Debug info follows here, please include in your bug reports. Thanks.
--------------------------------------------------------------------
Loaded modules:
Module Size Used by
binfmt_misc 12936 1
freq_table 5792 0
rfcomm 42136 2
l2cap 26240 11 rfcomm
bluetooth 57060 4 rfcomm,l2cap
af_packet 24840 8
ppdev 10244 0
button 8976 0
video 18060 0
bay 6912 0
dock 10656 1 bay
container 5504 0
sbs 19592 0
ac 6148 0
battery 11012 0
lp 12580 0
snd_hda_intel 263712 4
snd_pcm_oss 44672 0
snd_pcm 80388 3 snd_hda_intel,snd_pcm_oss
snd_mixer_oss 17664 1 snd_pcm_oss
snd_seq_dummy 4740 0
snd_seq_oss 33152 0
joydev 11328 0
snd_seq_midi 9600 0
snd_rawmidi 25728 1 snd_seq_midi
xpad 9988 0
snd_seq_midi_event 8448 2 snd_seq_oss,snd_seq_midi
snd_seq 53232 6 snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_seq_midi_event
fglrx 738976 17
wlan_scan_sta 15104 1
snd_timer 24324 3 snd_pcm,snd_seq
ipv6 273892 21
wacom 17664 0
psmouse 39952 0
snd_seq_device 9228 5 snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_rawmidi,snd_seq
ath_rate_sample 14208 1
intel_agp 25620 0
iTCO_wdt 11940 0
parport_pc 37412 1
usbhid 29536 0
hid 28928 1 usbhid
ath_pci 98336 0
wlan 206660 4 wlan_scan_sta,ath_rate_sample,ath_pci
serio_raw 8068 0
iTCO_vendor_support 4868 1 iTCO_wdt
parport 37448 3 ppdev,lp,parport_pc
snd 54660 15 snd_hda_intel,snd_pcm_oss,snd_pcm,snd_mixer_oss,snd_seq_oss,snd_rawmidi,snd_seq,snd_timer,snd_seq_device
ath_hal 192720 3 ath_rate_sample,ath_pci
soundcore 8800 1 snd
pcspkr 4224 0
shpchp 34580 0
pci_hotplug 32704 1 shpchp
agpgart 35016 2 fglrx,intel_agp >>>>>>>>>>>>>>> (Why is intel_agp getting loaded ?) <<<<<<<<<<<<<<<<<<<
snd_page_alloc 11400 2 snd_hda_intel,snd_pcm
evdev 11136 5
xt_tcpudp 4224 136
nf_conntrack_ipv4 19724 99
xt_state 3456 99
ipt_REJECT 5760 2
nf_conntrack_ftp 11136 0
nf_conntrack_irc 8088 0
nf_conntrack 65288 4 nf_conntrack_ipv4,xt_state,nf_conntrack_ftp,nf_conntrack_irc
nfnetlink 6936 2 nf_conntrack_ipv4,nf_conntrack
iptable_filter 3968 1
ip_tables 13924 1 iptable_filter
x_tables 16260 4 xt_tcpudp,xt_state,ipt_REJECT,ip_tables
ext3 133896 6
jbd 60456 1 ext3
mbcache 9732 1 ext3
sg 36764 0
sr_mod 17828 0
cdrom 37536 1 sr_mod
sd_mod 30336 8
usb_storage 73024 0
ide_core 116804 1 usb_storage
libusual 18448 1 usb_storage
ata_piix 17540 7
ata_generic 8452 0
libata 125168 2 ata_piix,ata_generic
scsi_mod 147084 5 sg,sr_mod,sd_mod,usb_storage,libata
tg3 110980 0
ehci_hcd 36492 0
uhci_hcd 26640 0
usbcore 138632 8 xpad,wacom,usbhid,usb_storage,libusual,ehci_hcd,uhci_hcd
thermal 14344 0
processor 32072 1 thermal
fan 5764 0
fuse 47124 1
apparmor 40728 0
commoncap 8320 1 apparmor

Memory info:
             total used free shared buffers cached
Mem: 3114316 1007512 2106804 0 22484 414964
-/+ buffers/cache: 570064 2544252
Swap: 4096532 0 4096532

/proc/cmdline: root=UUID=e17cd4a0-a091-4ea0-b88c-05bc18d0a435 ro quiet splash
------------------------------------------------------------------------------
========we are going to sleep, preparing.========
running kernel is grub menu entry 0 (vmlinuz-2.6.22-14-generic)
== checking runlevel ==
  no shutdown/reboot in progress, good.
== Unmounting FAT/NTFS filesystems: ==
  none found in /etc/mtab
== FAT/NTFS filesystems unmounted ==
Stopping services: ('slmodemd irda upsd apcupsd anacron' configured)
stopping anacron:
## * Stopping anac(h)ronistic cron anacron 
[ OK ]

------------------------------------------------------------------------------
Unloading modules: ('usb_storage sbp2 ohci_hcd uhci_hcd stir4200 ohci1394 rt2500 prism54 ath_pci r8169 lt_modem Intel536 Intel537 ndiswrapper' configured)
checking usb_storage
# trying to unload: usb_storage
unloaded: usb_storage
checking sbp2
checking ohci_hcd
checking uhci_hcd
# trying to unload: uhci_hcd
unloaded: uhci_hcd
checking stir4200
checking ohci1394
checking rt2500
checking prism54
checking ath_pci
# trying to unload: ath_pci
unloaded: ath_pci
checking r8169
checking lt_modem
checking Intel536
checking Intel537
checking ndiswrapper
------------------------------------------------------------------------------
prepare_sleep finished for suspend2disk
------------------------------------------------------------------------------
preparing boot-loader: selecting entry 0, kernel /boot/2.6.22-14-generic
/boot/grub/menu.lst: default is not set to saved, not preparing bootloader
  time needed for sync: 0.9 seconds, time needed for grub: 0.0 seconds.
calculated image_size: 500

+++++++++++++++++++++++++++++++++++

Curious Fact :
-----------------

Contents of /etc/default/acpi-support :

------------
# Comment the next line to disable ACPI suspend to RAM
ACPI_SLEEP=true

# Comment the next line to disable suspend to disk
ACPI_HIBERNATE=true

# Change the following to "standby" to use ACPI S1 sleep, rather than S3.
# This will save less power, but may work on more machines
ACPI_SLEEP_MODE=mem

# Add modules to this list to have them removed before suspend and reloaded
# on resume. An example would be MODULES="em8300 yenta_socket"
#
# Note that network cards and USB controllers will automatically be unloaded
# unless they're listed in MODULES_WHITELIST
MODULES="usb_storage"

# Add modules to this list to leave them in the kernel over suspend/resume
MODULES_WHITELIST=""

# Should we save and restore state using the VESA BIOS Extensions?
SAVE_VBE_STATE=true

# The file that we use to save the vbestate
VBESTATE=/var/lib/acpi-support/vbestate

# Should we attempt to warm-boot the video hardware on resume?
POST_VIDEO=true

# Save and restore video state?
# SAVE_VIDEO_PCI_STATE=true

# Should we switch the screen off with DPMS on suspend?
USE_DPMS=true

# Use Radeontool to switch the screen off? Seems to be needed on some machines
# RADEON_LIGHT=true

# Uncomment the next line to switch away from X and back again after resume.
# This is needed for some hardware, but should be unnecessary on most.
# DOUBLE_CONSOLE_SWITCH=true

# Set the following to "platform" if you want to use ACPI to shut down
# your machine on hibernation
HIBERNATE_MODE=shutdown

# Comment this out to disable screen locking on resume
LOCK_SCREEN=true

# Uncomment this line to have DMA disabled before suspend and reenabled
# afterwards
# DISABLE_DMA=true

# Uncomment this line to attempt to reset the drive on resume. This seems
# to be needed for some Sonys
# RESET_DRIVE=true

# Add services to this list to stop them before suspend and restart them in
# the resume process.
STOP_SERVICES="mysql dbus guarddog"

# Restart Infra Red services on resume - off by default as it crashes some
# machines
RESTART_IRDA=false

# Switch to laptop-mode on battery power - off by default as it causes odd
# hangs on some machines
ENABLE_LAPTOP_MODE=false

Hibernate mode is set to "shutdown".

Now, from the logs (after restore to the latest ati driver version) :

Oct 24 13:10:10 localhost kernel: [ 358.156080] PM: suspend-to-disk mode set to 'platform'

This is wierd.

++++++++++++++++++++

Brief Summary :

With unchanged hardware and ati driver versions, hibernation worked under Feisty. Does not work under Gutsy. I was/am not using any desktop effects in either case - no compiz (its installed, but I do not use it).

Revision history for this message
Marc Quinton (mquinton) wrote :

I have same problem on gutsy, with an ATI RC410 [Radeon Xpress 200] card.
- with fglrx driver can't hibernate,
- with ATI driver, can't seen video.

Revision history for this message
Jonathan Anderson (jonathan-anderson) wrote :

This is likely a duplicate of Bug #121653. FGLRX doesn't support 2.6.23, which could really mean "doesn't support the new SLUB allocator" (which Ubuntu uses in 2.6.22).

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.