Skip to contentSkip to conversation

2.6.19: ACPI reports AC not present after resume from STD

DISCUSSION Andrey Borzenkov 3 participants 5 messages Dec 3, 2006 ACPI

lore
Share & tools
lore
#0 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I started to notice it some time ago; I can't say exactly if this was not present in earlier versions because recently I switched from STR (which gave me no end of troubles) to STD. So I may have not seen it before.

Suspend to disk while on battery. Plug in AC, resume. ACPI continues to show AC adapter as not present:

{pts/0}% cat /proc/acpi/ac_adapter/ADP1/state
state: off-line

replugging AC correctly changes state to on-line.

The system is Toshiba Portege 4000; I am not sure which information may be required in this case so please tell what is needed (unfortunately I will be off next two weeks without access to this system).

regards

- -andrey
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)

iD8DBQFFcsJYR6LMutpd94wRAqSeAJ4n3lHqbdvgBeXxeIc9ZUTDe/X2jgCgyfU5 w+heEYYnA3Al/U9xHovOkQ4=
=F+Zu
-----END PGP SIGNATURE-----

#1 lore raw

Hi!

Quoted 11 lines

I started to notice it some time ago; I can't say exactly if this was not present in earlier versions because recently I switched from STR (which gave me no end of troubles) to STD. So I may have not seen it before.

Suspend to disk while on battery. Plug in AC, resume. ACPI continues to show AC adapter as not present:

{pts/0}% cat /proc/acpi/ac_adapter/ADP1/state
state: off-line

replugging AC correctly changes state to on-line.

try echo platform > /sys/power/disk.
Pavel

Signature · 1 line
Thanks for all the (sleeping) penguins.
#2 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Quoted 9 lines · Pavel Machek

Hi!

Quoted 7 lines

I started to notice it some time ago; I can't say exactly if this was not present in earlier versions because recently I switched from STR (which gave me no end of troubles) to STD. So I may have not seen it before.

Suspend to disk while on battery. Plug in AC, resume. ACPI continues to show AC adapter as not present:

Quoted 6 lines
Quoted 4 lines

{pts/0}% cat /proc/acpi/ac_adapter/ADP1/state
state: off-line

replugging AC correctly changes state to on-line.

try echo platform > /sys/power/disk.

Nope.

{pts/0}% pmsuspend disk
... after resume
{pts/0}% cat /sys/power/disk
platform
{pts/0}% cat /proc/acpi/ac_adapter/ADP1/state
state: off-line
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)

iD8DBQFFctamR6LMutpd94wRAqnCAJwKi4wXUj2FRkD2tyq+c0gqAghnrgCgyKYZ lep/19gowY3OTGIkpzcasfU=
=4Cgb
-----END PGP SIGNATURE-----

#3 lore raw
Quoted 23 lines · Andrey Borzenkov

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Quoted 10 lines · Pavel Machek

Hi!

Quoted 7 lines

I started to notice it some time ago; I can't say exactly if this was not present in earlier versions because recently I switched from STR (which gave me no end of troubles) to STD. So I may have not seen it before.

Suspend to disk while on battery. Plug in AC, resume. ACPI continues to show AC adapter as not present:

Quoted 7 lines
Quoted 5 lines

{pts/0}% cat /proc/acpi/ac_adapter/ADP1/state
state: off-line

replugging AC correctly changes state to on-line.

try echo platform > /sys/power/disk.

Quoted 9 lines

Nope.

{pts/0}% pmsuspend disk
... after resume
{pts/0}% cat /sys/power/disk
platform
{pts/0}% cat /proc/acpi/ac_adapter/ADP1/state
state: off-line

please look if patches in 7122 work for you.

#4 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Quoted 24 lines · Alexey Starikovskiy
Quoted 23 lines · Andrey Borzenkov

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Quoted 10 lines · Pavel Machek

Hi!

Quoted 8 lines

I started to notice it some time ago; I can't say exactly if this was not present in earlier versions because recently I switched from STR (which gave me no end of troubles) to STD. So I may have not seen it before.

Suspend to disk while on battery. Plug in AC, resume. ACPI continues to show AC adapter as not present:

Quoted 6 lines
Quoted 4 lines

{pts/0}% cat /proc/acpi/ac_adapter/ADP1/state
state: off-line

replugging AC correctly changes state to on-line.

try echo platform > /sys/power/disk.

Nope.

Quoted 8 lines
Quoted 6 lines

{pts/0}% pmsuspend disk
... after resume
{pts/0}% cat /sys/power/disk
platform
{pts/0}% cat /proc/acpi/ac_adapter/ADP1/state
state: off-line

please look if patches in 7122 work for you.

No. I applied patches from comments 38 and 52 (modified, it did not apply cleanly to 2.6.19). As far as I understood, those two were final. -----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)

iD8DBQFFcvS3R6LMutpd94wRAp9oAKCM7+6G4SsgFEGLgkW1jxM3VMQHqQCdFSDQ 14w+QsgDtxWusmfdzCMOdqo=
=QDyt
-----END PGP SIGNATURE-----