[Acer TravelMate 4000] suspend/resume failure during wakeup

Bug #350351 reported by diaboflo
14
Affects Status Importance Assigned to Milestone
HAL
Fix Released
Medium
hal (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

system apparently goes to sleep fine.

when I hit a key
- fan start
- backlight turns on
- hdd-led flashes a couple of times

thats it. no image, no reaction to caps-lock.

I managed to get resume to work with the proprietary fglrx driver, so its probably an ati graphics issue. I'll provide more detailed debugging infomation later today.

ProblemType: KernelOops
Annotation: This occured during a previous suspend and prevented it from resuming properly.
Architecture: i386
DistroRelease: Ubuntu 9.04
ExecutablePath: /usr/share/apport/apportcheckresume
Failure: suspend/resume
InterpreterPath: /usr/bin/python2.6
Lsusb:
 Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
 Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
 Bus 003 Device 002: ID 0a12:0001 Cambridge Silicon Radio, Ltd Bluetooth Dongle (HCI mode)
 Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
 Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
MachineType: Acer TravelMate 4000
Package: linux-image-2.6.28-11-generic 2.6.28-11.38
ProcAttrCurrent: unconfined
ProcCmdLine: root=UUID=ef2291c3-edc1-4ebd-9b02-a4c1d58b9252 ro quiet splash
ProcCmdline: /usr/bin/python /usr/share/apport/apportcheckresume
ProcEnviron: PATH=(custom, no user)
ProcVersionSignature: Ubuntu 2.6.28-11.38-generic
SourcePackage: linux
StressLog: Error: [Errno 2] No such file or directory: '/var/lib/pm-utils/stress.log'
Tags: resume suspend
Title: [Acer TravelMate 4000] suspend/resume failure
UserGroups:

Revision history for this message
diaboflo (ubuntu-diaboflo) wrote :
Revision history for this message
diaboflo (ubuntu-diaboflo) wrote :

As explained here:
https://wiki.ubuntu.com/DebuggingKernelSuspend

I ran
sudo -i; sync; echo 1 > /sys/power/pm_trace; pm-suspend

As expected resume would work, as detailed above. after powering down, rebooting, loggin in, and starting a terminal dmesg produced dmesg.txt

There is no line matching "hash matches". did I do something wrong?

Revision history for this message
diaboflo (ubuntu-diaboflo) wrote :

This is how it used to work:

- Kubuntu Hardy Heron (so probably kernel 2.6.24.14)
- fglrx driver from ubuntu apt repositories
- pm-suspend --quirk-vbe-post --quirk-vbemode-restore --quirk-save-pci

Maybe that gives a clue?

I have an ATI RadeOn Mobility 9700.

Revision history for this message
diaboflo (ubuntu-diaboflo) wrote :

So now I tried tracing with the quirks I used back then:

$ sudo -i
# sync; echo 1 > /sys/power/pm_trace; pm-suspend --quirk-vbe-post --quirk-vbemode-restore --quirk-save-pci

result:
- system goes to sleep
- in wake up:
  - hdd-led flashes
  - caps-lock can be toggled
  - no video, blinking led indicates no wireless connection
  - but otherwise the system seems to be working:
    - screen flickers when changing tty with ctrl-alt-F[1-7]
    - blindly login in and entering "sudo /etc/init.d/gdm restart" audibly restarts gdm
    - blindly dumped dmesg into dmesg.txt

Revision history for this message
diaboflo (ubuntu-diaboflo) wrote :

Steps to a little bit of headway:

- configure video with xrandr to use only the external VGA (xrandr --output VGA-0 --auto --output LVDS --off)
- suspend with: sudo pm-suspend --quirk-vbe-post
- system goes to sleep
- press a button
- system wakes up
- press ctrl-alt-F7
- the video comes back on

Problems:
- the internal display can't be turned on. I tried xrandr --output LVDS --auto.
- the process "vbetool post" causes 100% cpu load, and has to be terminated
- can't suspend twice: issuing sudo pm-suspend --quirk-vbe-post once more, has same effect as "echo"

Revision history for this message
diaboflo (ubuntu-diaboflo) wrote :

the only error that I see is

[ 142.028984] pm_op(): pci_pm_resume+0x0/0x70 returns -16
[ 142.028987] PM: Device 0000:00:00.0 failed to resume: error -16

??

Revision history for this message
diaboflo (ubuntu-diaboflo) wrote :

Here is how I can resume, heavy workaround though (both in jaunty beta and intrepid):

suspend with quirks:
- sudo pm-suspend --vbe-post --quirk-vbestate-restore --quirk-dpms-on

during resume
- hit ctrl-alt-F7
- the process "vbetool post" hangs causing 100% cpu usage, and has to be terminated using "sudo killall vbetool" (blindly or on an external display, as the internal one is black)
- hit ctrl-alt-F1
- hit ctrl-alt-F7

So probably this bug belongs also to the vbetool package, and is related to
https://bugs.launchpad.net/ubuntu/+source/vbetool/+bug/130979
and
https://bugs.launchpad.net/ubuntu/+source/vbetool/+bug/350577

Apart from that I guess these quirks should be marked for this model in the hal fdi files. will attach a patch later.

Revision history for this message
diaboflo (ubuntu-diaboflo) wrote :

/usr/lib/pm-utils/sleep.d/99video calls "vbetool post", that does something very important, then hangs, so I kill it, rest of the resume is normal.

Revision history for this message
In , Freedesktop-diaboflo (freedesktop-diaboflo) wrote :

Created an attachment (id=24572)
patch for /usr/share/hal/fdi/information/10freedesktop/20-video-quirk-pm-acer.fdi

I have an Acer travelmate 4002 wlmi with an ATI radeon mobility 9700. with ubuntu up to jaunty beta and the radeon driver the machine does not wake up from suspend to ram. if I path /usr/share/hal/fdi/information/10freedesktop/20-video-quirk-pm-acer.fdi to not use the quirks s3-bios and s3-mode but instaed vbe-post, vbemode-restore and dpms-on, it wakes up. how ever, the internal display is disabled and "vbetool post" hangs using 100% cpu. if I kill it, the resume continues and the inter display turns on.

More details in ubuntu's launchpad:

https://bugs.launchpad.net/ubuntu/+source/linux/+bug/350351

Wake up used to work with the proprietary fglrx drive if that is any help.

Revision history for this message
diaboflo (ubuntu-diaboflo) wrote :

created a patch for /usr/share/hal/fdi/information/10freedesktop/20-video-quirk-pm-acer.fdi .

with that file patched, I can suspend using gnome power manager, and wake up, but killing vbetool as discribed above will crash the mashine. so its better than the original situation, but not a complete fix.

Revision history for this message
diaboflo (ubuntu-diaboflo) wrote :
Changed in hal:
status: Unknown → Confirmed
Revision history for this message
In , Danny Kukawka (danny-kukawka) wrote :

commit 970c705b54ce1d8bcb1b470858c0d0a1d3d6f71e
Author: Danny Kukawka <email address hidden>
Date: Thu Jul 30 18:27:58 2009 +0200

    add suspend quirk for a Acer Travelmate 4002 wlmi

    Added suspend quirk for a Acer Travelmate 4002 wlmi as reported
    in fd.o#21059 by <email address hidden>

Changed in hal:
status: Confirmed → Fix Released
affects: linux (Ubuntu) → hal (Ubuntu)
Changed in hal:
importance: Unknown → Medium
Changed in hal:
importance: Medium → Unknown
Changed in hal:
importance: Unknown → Medium
Revision history for this message
dino99 (9d9) wrote :
Changed in hal (Ubuntu):
status: New → Invalid
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.