Hibernation much slower when running on battery?

Bug #34191 reported by Sylvek
22
Affects Status Importance Assigned to Milestone
acpi-support (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

I have a Sony VAIO Z1RMP (laptop)
Sleep & Hibernate working fine under Breezy with acpi-support
Now under Dapper i have this trouble with gnome-power-manager

I do not change my /etc/default/acpi-support

- Sleep on Ram works with and without sector line. (but i lose usb support)
- Hibernate works under sector line (but i lose usb support)
- Hibernate freeze under battery

Symptom :
when i want to suspend (to disk) my sony, the process works fine.
- The lcd set correctly to off,
- The hdd write ram memory to disk stopping
- and write some else just before to stop it and poweroff the computer

But when it's under battery the HDD write some else juste before to stop but the HDD LED freeze and my computer don't poweroff... i must reboot manualy my sony.

Changed in acpi-support:
assignee: nobody → ubuntu-laptop
Revision history for this message
Cristian Aravena Romero (caravena) wrote :

Sylvek:

Pliss create page [1]wiki for information of hadware and revise laptop similars.
[1] https://wiki.ubuntu.com/LaptopTestingTeam

Revision history for this message
Sylvek (smaucourt-deactivatedaccount) wrote :
Revision history for this message
Sylvek (smaucourt-deactivatedaccount) wrote :

i'm doing a test.

#tail -f /var/log/kern.org
when i unplug the connector line i have this lines.

Mar 11 14:38:12 localhost kernel: [4295918.943000] hdc: drive_cmd: status=0x51 { DriveReady SeekComplete Error }
Mar 11 14:38:12 localhost kernel: [4295918.943000] hdc: drive_cmd: error=0x04 { AbortedCommand }
Mar 11 14:38:12 localhost kernel: [4295918.943000] ide: failed opcode was: 0xec
Mar 11 14:38:12 localhost kernel: [4295919.036000] hdc: drive_cmd: status=0x51 { DriveReady SeekComplete Error }
Mar 11 14:38:12 localhost kernel: [4295919.036000] hdc: drive_cmd: error=0x04 { AbortedCommand }
Mar 11 14:38:12 localhost kernel: [4295919.036000] ide: failed opcode was: 0xec
Mar 11 14:38:14 localhost kernel: [4295921.295000] hdc: drive_cmd: status=0x51 { DriveReady SeekComplete Error }
Mar 11 14:38:14 localhost kernel: [4295921.295000] hdc: drive_cmd: error=0x04 { AbortedCommand }
Mar 11 14:38:14 localhost kernel: [4295921.295000] ide: failed opcode was: 0xe3
Mar 11 14:38:14 localhost kernel: [4295921.308000] hdc: drive_cmd: status=0x51 { DriveReady SeekComplete Error }
Mar 11 14:38:14 localhost kernel: [4295921.308000] hdc: drive_cmd: error=0x04 { AbortedCommand }
Mar 11 14:38:14 localhost kernel: [4295921.308000] ide: failed opcode was: 0xef
Mar 11 14:38:25 localhost kernel: [4295931.813000] hdc: drive_cmd: status=0x51 { DriveReady SeekComplete Error }
Mar 11 14:38:25 localhost kernel: [4295931.813000] hdc: drive_cmd: error=0x04 { AbortedCommand }
Mar 11 14:38:25 localhost kernel: [4295931.813000] ide: failed opcode was: 0xec
Mar 11 14:38:25 localhost kernel: [4295931.907000] hdc: drive_cmd: status=0x51 { DriveReady SeekComplete Error }
Mar 11 14:38:25 localhost kernel: [4295931.907000] hdc: drive_cmd: error=0x04 { AbortedCommand }
Mar 11 14:38:25 localhost kernel: [4295931.907000] ide: failed opcode was: 0xec
Mar 11 14:38:29 localhost kernel: [4295936.056000] hdc: drive_cmd: status=0x51 { DriveReady SeekComplete Error }
Mar 11 14:38:29 localhost kernel: [4295936.056000] hdc: drive_cmd: error=0x04 { AbortedCommand }
Mar 11 14:38:29 localhost kernel: [4295936.056000] ide: failed opcode was: 0xe3
Mar 11 14:38:29 localhost kernel: [4295936.068000] hdc: drive_cmd: status=0x51 { DriveReady SeekComplete Error }
Mar 11 14:38:29 localhost kernel: [4295936.068000] hdc: drive_cmd: error=0x04 { AbortedCommand }
Mar 11 14:38:29 localhost kernel: [4295936.068000] ide: failed opcode was: 0xef

Revision history for this message
Cristian Aravena Romero (caravena) wrote : Re: [Bug 34191] Freezing hibernation under battery

2006/3/11, Sylvek <email address hidden>:
> Mar 11 14:38:12 localhost kernel: [4295918.943000] hdc: drive_cmd: status=0x51 { DriveReady SeekComplete Error }

[...]

Write in cosole:
$ sudo hdparm -d0 /dev/hdc

Many Thanks,
Cristian

Revision history for this message
Sylvek (smaucourt-deactivatedaccount) wrote : Re: Freezing hibernation under battery

i do a test this morning with the new kernel image 2.6.15-18 i686
on battery mode.
# sleep --> it's working with usb on resume
# hibernate -> it's working with usb in resume (!!)

in my kern.log i have this line:
Mar 12 11:50:07 localhost kernel: [4296156.206000] ACPI: PCI interrupt for device 0000:02:0b.0 disabled
Mar 12 11:50:07 localhost kernel: [4296156.232000] ACPI: PCI interrupt for device 0000:02:08.0 disabled
Mar 12 11:51:07 localhost kernel: [4296159.688000] Freezing cpus ...
Mar 12 11:51:09 localhost kernel: [4296159.689000] Stopping tasks: ===========================================================================================|

When the hibernate function freeze ... i don't have the line "Freezing cpus" in my logs ...

Revision history for this message
Sylvek (smaucourt-deactivatedaccount) wrote :

# hibernate without sleep before --> it's not working
Mar 12 12:07:56 localhost kernel: [4294800.316000] pcmcia: Detected deprecated PCMCIA ioctl usage.
Mar 12 12:07:56 localhost kernel: [4294800.317000] pcmcia: This interface will soon be removed from the kernel; please expect breakage unless you upgrade to new tools.
Mar 12 12:07:56 localhost kernel: [4294800.317000] pcmcia: see http://www.kernel.org/pub/linux/utils/kernel/pcmcia/pcmcia.html for details.
Mar 12 12:07:56 localhost kernel: [4294800.846000] ACPI: PCI interrupt for device 0000:02:0b.0 disabled
Mar 12 12:07:56 localhost kernel: [4294800.861000] ACPI: PCI interrupt for device 0000:02:08.0 disabled

And i must reboot

Mar 12 12:09:51 localhost kernel: Inspecting /boot/System.map-2.6.15-18-686
Mar 12 12:09:51 localhost kernel: Loaded 23021 symbols from /boot/System.map-2.6.15-18-686.
Mar 12 12:09:51 localhost kernel: Symbols match kernel version 2.6.15.
Mar 12 12:09:51 localhost kernel: No module symbols loaded - kernel modules not enabled.
Mar 12 12:09:51 localhost kernel: [4294667.296000] Linux version 2.6.15-18-686 (buildd@rothera) (gcc version 4.0.3 20060304 (prerelease) (Ubuntu 4.0.2-10ubuntu1)) #1 SMP PREEMPT Thu Mar 9 15:29:22 UTC 2006

Revision history for this message
Paul Sladen (sladen) wrote :

Did you have any flash-memory or something similar inserted at any point when you were testing---I have a feeling there maybe something to do with ATA/IDE enumeration that is still broken.

Revision history for this message
Sylvek (smaucourt-deactivatedaccount) wrote :

No :-( i do my tests without usb storage plugged or other.
My laptop have got a MemoryStick support without memory inside.
After checking; /dev/hdc is my CDRom drive and i think it's not the "problem"
How may I know what is the device 0000:02:08.0 & device 0000:02:0b.0 ??

If it's working with AC plugged & not with battery.. what is the difference between this both mode?

Revision history for this message
Paul Sladen (sladen) wrote :

You can run:

  lspci

to find out what they map to.

Revision history for this message
Sylvek (smaucourt-deactivatedaccount) wrote :

0000:00:00.0 Host bridge: Intel Corporation 82855PM Processor to I/O Controller (rev 03)
0000:00:01.0 PCI bridge: Intel Corporation 82855PM Processor to AGP Controller (rev 03)
0000:00:1d.0 USB Controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #1 (rev 03)
0000:00:1d.1 USB Controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #2 (rev 03)
0000:00:1d.2 USB Controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #3 (rev 03)
0000:00:1d.7 USB Controller: Intel Corporation 82801DB/DBM (ICH4/ICH4-M) USB2 EHCI Controller (rev 03)
0000:00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev 83)
0000:00:1f.0 ISA bridge: Intel Corporation 82801DBM (ICH4-M) LPC Interface Bridge (rev 03)
0000:00:1f.1 IDE interface: Intel Corporation 82801DBM (ICH4-M) IDE Controller (rev 03)
0000:00:1f.3 SMBus: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) SMBus Controller (rev 03)
0000:00:1f.5 Multimedia audio controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) AC'97 Audio Controller (rev 03)
0000:00:1f.6 Modem: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) AC'97 Modem Controller (rev 03)
0000:01:00.0 VGA compatible controller: ATI Technologies Inc Radeon Mobility M6 LY
0000:02:05.0 CardBus bridge: Ricoh Co Ltd RL5c475 (rev b8)
0000:02:05.1 FireWire (IEEE 1394): Ricoh Co Ltd R5C551 IEEE 1394 Controller
0000:02:08.0 Ethernet controller: Intel Corporation 82801DB PRO/100 VE (MOB) Ethernet Controller (rev 83)
0000:02:0b.0 Network controller: Intel Corporation PRO/Wireless LAN 2100 3B Mini PCI Adapter (rev 04)

Revision history for this message
Sylvek (smaucourt-deactivatedaccount) wrote :

i update with the last package my ubuntu. I do a test

in battery mode.
# sleep (via power btn & select sleep)
# resume
# hibernate (via power btn & select hibernate)
# resume

all works..
i added dmesg traces.

and will try with sleep btn & hibernate btn keyboard..

Revision history for this message
Sylvek (smaucourt-deactivatedaccount) wrote : sleep dmesg

dmesg after boot, sleep & resume

Revision history for this message
Sylvek (smaucourt-deactivatedaccount) wrote : hibernate dmesg

dmesg after resume (sleep), hibernate & resume

Revision history for this message
Sylvek (smaucourt-deactivatedaccount) wrote : Re: Freezing hibernation under battery

i confirm this bug with the last update (27/03/2006 - 11:00 pm)

Revision history for this message
Sylvek (smaucourt-deactivatedaccount) wrote : acpi-support (from /etc/default)

I don't understand how Dapper works.
into breezy.. the acpi event (when i want to hibernate) launch the script /etc/acpi/hibernate.sh (via hibernatebtn.sh..)
under dapper the system is different?

when i launch manuely the script (hibernate.sh) my computer goes to hibernation!!

-----
viper@bonsai:/etc/acpi$ sudo hibernate.sh
Password:
sudo: hibernate.sh: command not found
viper@bonsai:/etc/acpi$ sudo ./hibernate.sh
Internet Systems Consortium DHCP Client V3.0.3
Copyright 2004-2005 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/products/DHCP

Listening on LPF/eth1/00:04:23:72:7c:89
Sending on LPF/eth1/00:04:23:72:7c:89
Sending on Socket/fallback
DHCPRELEASE on eth1 to 192.168.0.1 port 67
 * Shutting down ALSA... [ ok ]
Laptop mode enabled, not active.
Warning: Interface name is `eth0' at line 2, can't be mapped reliably.
Warning: Interface name is `eth0' at line 2, can't be mapped reliably.
FATAL: Module ac is in use.
FATAL: Module battery is in use.
Internet Systems Consortium DHCP Client V3.0.3
Copyright 2004-2005 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/products/DHCP

 * Setting up ALSA... [ ok ]
Listening on LPF/eth1/00:04:23:72:7c:89
Sending on LPF/eth1/00:04:23:72:7c:89
Sending on Socket/fallback
DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 6
DHCPOFFER from 192.168.0.1
DHCPREQUEST on eth1 to 255.255.255.255 port 67
DHCPACK from 192.168.0.1
bash: xscreensaver-command: command not found
grep: /proc/acpi/fan/*/state: Aucun fichier ou répertoire de ce type
viper@bonsai:/etc/acpi$ bound to 192.168.0.4 -- renewal in 99405 seconds.
-----

when i use the option "hibernate" (into window Log Out) .. my computer crash!

there is an issu via acpi-support?

Revision history for this message
Sylvek (smaucourt-deactivatedaccount) wrote : Re: Freezing hibernation under battery

Yah! in fact i want and when i do my computer to hibernate mode (with battery) that make very much time!! (but work...)

i do some others tests

Revision history for this message
Sylvek (smaucourt-deactivatedaccount) wrote :

i confirm .. under battery, my computer take > than 3 min to hibernate (!!) ... under ac that take < than 15 seconds...

Revision history for this message
John Cooper (choffee) wrote :

I get the same here, nearly 5mins to hibernate on battery all of it writing to disk. Works fine on ac.

Revision history for this message
Jerome S. Gotangco (jsgotangco) wrote :

On a Toshiba Tecra M2, hibernate is snappy but resuming from disk makes the system very slow despite not having any activity.

Matt Zimmerman (mdz)
Changed in acpi-support:
assignee: ubuntu-laptop → nobody
Matt Zimmerman (mdz)
Changed in acpi-support:
status: Unconfirmed → Confirmed
Revision history for this message
Mary Gardiner (puzzlement) wrote :

This seems fixed for me as of 0.72, probably related to this changelog entry:

acpi-support (0.72) dapper; urgency=low

  * Re-disable laptop-mode by default, to work around LP#12483
    - Has the pleasant side effect of making the comment match the code

 -- Matt Zimmerman <email address hidden> Sat, 22 Apr 2006 05:34:12 -0700

Revision history for this message
Sylvek (smaucourt-deactivatedaccount) wrote :

i'll try tonight but in my acpi-support config file my laptop-mode option is enable.
i'll try without this option too.

Revision history for this message
Sylvek (smaucourt-deactivatedaccount) wrote :

i have acpi-support 0.73 installed and it doesn't work for me :-(

Revision history for this message
Geoff Hoff (gahoff) wrote :

Multiple bug reports on this. Try editing /etc/laptop-mode/laptop-mode.conf and change CONTROL_HD_WRITECACHE=1 to CONTROL_HD_WRITECACHE=0

Revision history for this message
Sylvek (smaucourt-deactivatedaccount) wrote :

it's working now :-) but slowest than ac sector i think

Revision history for this message
Martin Bergner (martin-bergner) wrote :

I will mark this fixed since there was a patched package published

Changed in acpi-support:
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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