Resume from standby not working from USB event
Daniel Eichhorn
dani.eichhorn at squix.ch
Sat Sep 27 19:05:44 UTC 2008
Hi everybody
I'm really getting desperate here. I turned an old Sony Vaio SR11K
into a digital frame for watching TV, Movies, listening to music etc.
I could manage a lot of problems so far, but I can't get the laptop to
wake up from an USB event, such as pressing the Power Button on my USB
remote. I adapted the hibernate configuration to send the laptop only
to S1 mode, since it USB0 only seems to support this state:
> cat /proc/acpi/wakeup
Device S-state Status Sysfs node
PWRB S4 *enabled
USB0 S1 enabled pci:0000:00:07.2
CRD0 S3 disabled pci:0000:00:0c.0
MODE S3 disabled pci:0000:00:0a.0
As you can see here I also managed to enabled USB0 to wakeup from S1
mode. I changed a line in /etc/hibernate/sysfs-ram.conf to
UseSysfsPowerState standby
and now it really goes to S1 mode. After executing sudo hibernate-ram
the screen gets black and the machine turns of.
When I press now the Power button on the remote, the machine turns on
(somewhat), the fan starts turning but there's only a blinking cursor
on about the forth line. The vaio doesn't react to keyboard input nor
remote buttons (also tried the (CTRL+) ALT-Fx) to switch the tty. The
only way to proceed from here is to cold restart the laptop. So far so
good, but now the really weird thing: The whole thing works, if I
press any keyboard button, when the machine is in sleep state.
But since the whole laptop is integrated into a frame and the keyboard
is not accessible pressing a button is not an option. The behavior is
exactly the same if I simply write standby to the appropriate /proc/
acpi/ file.
So why doesn't the machine only doesn't wakeup when I try to activate
from USB device (I also tried a mouse plugged to USB0: same thing).
Here is the output form dmesg | grep ACPI:
[ 0.000000] BIOS-e820: 000000000fff0000 - 000000000ffff800 (ACPI
data)
[ 0.000000] BIOS-e820: 000000000ffff800 - 0000000010000000 (ACPI
NVS)
[ 0.000000] ACPI: RSDP signature @ 0xC00F8010 checksum 0
[ 0.000000] ACPI: RSDP 000F8010, 0014 (r0 SONY )
[ 0.000000] ACPI: RSDT 0FFFCF29, 002C (r1 SONY D1 20000905
PTL 0)
[ 0.000000] ACPI: FACP 0FFFF764, 0074 (r2 SONY D1 20000905
PTL F4240)
[ 0.000000] ACPI: DSDT 0FFFCF55, 280F (r1 SONY D1 20000905
MSFT 1000007)
[ 0.000000] ACPI: FACS 0FFFFFC0, 0040
[ 0.000000] ACPI: BOOT 0FFFF7D8, 0028 (r1 SONY D1 20000905
PTL 1)
[ 0.000000] ACPI: DMI BIOS year==0, assuming ACPI-capable machine
[ 0.000000] ACPI: DMI detected: Sony
[ 0.000000] ACPI: PM-Timer IO Port: 0x8008
[ 19.475933] ACPI: Core revision 20070126
[ 19.476171] ACPI: Looking for DSDT in initramfs... error, file /
DSDT.aml not found.
[ 19.487960] ACPI: bus type pci registered
[ 19.524968] ACPI: EC: Look up EC in DSDT
[ 19.531951] ACPI: Interpreter enabled
[ 19.531962] ACPI: (supports S0 S1 S3 S4 S5)
[ 19.532015] ACPI: Using PIC for interrupt routing
[ 19.552807] ACPI: EC: GPE = 0x9, I/O: command/status = 0x66, data =
0x62
[ 19.552821] ACPI: EC: driver started in poll mode
[ 19.552971] ACPI: PCI Root Bridge [PCI0] (0000:00)
[ 19.553522] PCI quirk: region 8000-803f claimed by PIIX4 ACPI
[ 19.554213] ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT]
[ 19.560335] ACPI: PCI Interrupt Link [LNKA] (IRQs *9)
[ 19.560612] ACPI: PCI Interrupt Link [LNKB] (IRQs 9) *0, disabled.
[ 19.560883] ACPI: PCI Interrupt Link [LNKC] (IRQs 9) *0, disabled.
[ 19.561183] ACPI: PCI Interrupt Link [LNKD] (IRQs 9) *0, disabled.
[ 19.561700] pnp: PnP ACPI init
[ 19.561729] ACPI: bus type pnp registered
[ 19.570159] pnp: PnP ACPI: found 10 devices
[ 19.570172] ACPI: ACPI bus type pnp unregistered
[ 19.570186] PnPBIOS: Disabled by ACPI PNP
[ 19.571072] PCI: Using ACPI for IRQ routing
[ 19.571790] ACPI: PCI Interrupt Link [LNKD] enabled at IRQ 9
[ 19.571810] ACPI: PCI Interrupt 0000:00:07.2[D] -> Link [LNKD] ->
GSI 9 (level, low) -> IRQ 9
[ 19.571828] ACPI: PCI Interrupt 0000:00:08.0[A] -> Link [LNKD] ->
GSI 9 (level, low) -> IRQ 9
[ 19.572412] ACPI: PCI Interrupt Link [LNKC] enabled at IRQ 9
[ 19.572421] ACPI: PCI Interrupt 0000:00:09.0[A] -> Link [LNKC] ->
GSI 9 (level, low) -> IRQ 9
[ 19.573005] ACPI: PCI Interrupt Link [LNKB] enabled at IRQ 9
[ 19.573014] ACPI: PCI Interrupt 0000:00:0a.0[A] -> Link [LNKB] ->
GSI 9 (level, low) -> IRQ 9
[ 19.573031] ACPI: PCI Interrupt 0000:00:0c.0[A] -> Link [LNKB] ->
GSI 9 (level, low) -> IRQ 9
[ 19.573616] ACPI: PCI Interrupt Link [LNKA] enabled at IRQ 9
[ 19.573626] ACPI: PCI Interrupt 0000:01:00.0[A] -> Link [LNKA] ->
GSI 9 (level, low) -> IRQ 9
[ 19.602569] ACPI: PCI Interrupt 0000:00:0c.0[A] -> Link [LNKB] ->
GSI 9 (level, low) -> IRQ 9
[ 23.593288] ACPI: CPU0 (power states: C1[C1] C2[C2])
[ 23.593307] ACPI: Processor [CPU0] (supports 8 throttling states)
[ 23.603184] ACPI: Thermal Zone [ATF0] (50 C)
[ 25.574156] ACPI: PCI Interrupt 0000:00:07.2[D] -> Link [LNKD] ->
GSI 9 (level, low) -> IRQ 9
[ 25.684928] ACPI: PCI Interrupt 0000:00:08.0[A] -> Link [LNKD] ->
GSI 9 (level, low) -> IRQ 9
[ 38.271428] ACPI: Power Button (CM) [PWRB]
[ 41.616107] ACPI: EC: non-query interrupt received, switching to
interrupt mode
[ 42.410930] ACPI: AC Adapter [ACAD] (on-line)
[ 42.422763] ACPI: Battery Slot [BAT1] (battery absent)
[ 43.128392] ACPI: PCI Interrupt 0000:00:09.0[A] -> Link [LNKC] ->
GSI 9 (level, low) -> IRQ 9
[ 46.300718] ACPI: PCI Interrupt 0000:02:00.0[A] -> Link [LNKB] ->
GSI 9 (level, low) -> IRQ 9
If I would have to guess, there must be a difference between the USB0
device and the keyboard (maybe a IRQ) which lets the machine wake up
completely with one and let it stay in zombie mode with the other...
I'm grateful for any idea, I just run out of options...
Dani
More information about the ubuntu-users
mailing list