Comment 0 for bug 958520

Revision history for this message
Michael Kogan (michael-kogan) wrote : Suspend on lid close works only after one manual suspend

Using Xubuntu 11.10 on a Toshiba Satellite LD350-11S with an ATI HD3100 using fglrx. Following observations:

1. Manual suspend (via "sudo pm-suspend" or via Xfce's power-settings apllet's menu) always works.
2. Suspend on lid close works only if a manual suspend has been triggered before.
3. acpi_listen gives no output on lid close if a manual suspend hasn't been triggered before.
4. acpi_listen gives the correct output on lid close
      button/lid LID0 00000080 00000001
if a manual suspend has been triggered before.
5. A password is demanded on resume on every manual suspend.
6. No password is demanded on resume on every lid close/open suspend/resume.
7. /proc/acpi/button/lid/*/state reports the lid state correctly.

By adding debug lines to /etc/acpi/lid.sh I have observed that:
8. /etc/acpi/lid.sh isn't called if a manual suspend hasn't been triggered before.
9. /etc/acpi/lid.sh is called if a manual suspend has been triggered before, but exits on the first if check with `CheckPolicy` = 0 and thus triggering no further actions.

The problem appears with both a Xubuntu and a Fluxbox session running so it's not an xfce4-power-manager problem.

Please ask if you need any further information.