Comment 8 for bug 10686

Revision history for this message
Massimo Dal Zotto (dz) wrote :

I have finally solved this problem on my laptop with Ubuntu 7.04.

This bug is not related to acpi-support but to gnome-power-manager.

The problem is that the suspend event and the screen lock are handled by gnome-power-manager daemon, which intercepts the suspend button event, activates the gnome-screensaver accordingly to the gnome-power-manager settings and then calls the acpi suspend script which does all the rest.

To disable the screen lock on suspend you must open a gconf-editor and disable the following options:

  /apps/gnome-power-manager/lock_on_hibernate = false
  /apps/gnome-power-manager/lock_on_suspend = false
  /apps/gnome-power-manager/lock_on_blank_screen = false

However with this settings when you press the suspend butto you get no screensaver at all and therefore no visible feedback until the laptop is switched off. I solved this second problem by creating a /etc/acpi/suspend.d/06-gnome-screensaver.sh script which starts the gnome-screensaver at the beginning of the sleep sequence. Now I have screensaver on suspend but no screen lock dialog on resume.

It would be nice if gnome-power-manager would rename the current lock_on_* options to screensaver_on_* and add a new lock_screen option to decide if locking the screen or simply activating a screensaver.