Bug#542099: gdm: power management not configurable on login screen

John-Marc Chandonia jmc at dolorespark.org
Mon Aug 17 19:55:04 UTC 2009


Package: gdm
Version: 2.20.7-4
Severity: wishlist
Tags: patch


gdm should interact with gnome-power-manager to allow different
power management policies to be configured for the login screen.
For example, I want my laptop to suspend when the lid is closed
and running on battery power, but I just want the screen to blank
when the lid is closed when running on AC.

Ideally, power management settings for the login screen should be 
configurable from the gdmsetup menu.  If not, maybe the settings of a 
user (e.g., root) could be used instead.

As a workaround, I wrote the attached patch to do what I want, and 
installed it as /etc/acpi/local/lid.sh.pre.  However, there should be a 
more elegant solution for users who don't have the expertise to dig 
through the maze of twisty little acpi scripts.


-- System Information:
Debian Release: 5.0
  APT prefers stable
  APT policy: (900, 'stable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.28.9 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages gdm depends on:
ii  adduser                3.110             add and remove users and groups
ii  debconf [debconf-2.0]  1.5.24            Debian configuration management sy
ii  gksu                   2.0.0-8           graphical frontend to su
ii  gnome-session [x-sessi 2.22.3-2          The GNOME 2 Session Manager
ii  gnome-terminal [x-term 2.22.3-3          The GNOME 2 terminal emulator appl
ii  libart-2.0-2           2.3.20-2          Library of functions for 2D graphi
ii  libatk1.0-0            1.22.0-1          The ATK accessibility toolkit
ii  libattr1               1:2.4.43-2        Extended attribute shared library
ii  libc6                  2.9-12            GNU C Library: Shared libraries
ii  libcairo2              1.8.6-2+b1        The Cairo 2D vector graphics libra
ii  libdbus-1-3            1.2.1-5+lenny1    simple interprocess messaging syst
ii  libdbus-glib-1-2       0.80-4            simple interprocess messaging syst
ii  libdmx1                1:1.0.2-3         X11 Distributed Multihead extensio
ii  libfontconfig1         2.6.0-3           generic font configuration library
ii  libfreetype6           2.3.7-2+lenny1    FreeType 2 font engine, shared lib
ii  libglade2-0            1:2.6.2-1         library to load .glade files at ru
ii  libglib2.0-0           2.20.1-2          The GLib library of C routines
ii  libgnomecanvas2-0      2.20.1.1-1        A powerful object-oriented display
ii  libgtk2.0-0            2.16.1-2          The GTK+ graphical user interface 
ii  libpam-modules         1.0.1-5           Pluggable Authentication Modules f
ii  libpam-runtime         1.0.1-5           Runtime support for the PAM librar
ii  libpam0g               1.0.1-5           Pluggable Authentication Modules l
ii  libpango1.0-0          1.24.0-3+b1       Layout and rendering of internatio
ii  librsvg2-2             2.26.0-1          SAX-based renderer library for SVG
ii  librsvg2-common        2.26.0-1          SAX-based renderer library for SVG
ii  libselinux1            2.0.65-5          SELinux shared libraries
ii  libwrap0               7.6.q-16          Wietse Venema's TCP wrappers libra
ii  libx11-6               2:1.2.2-1         X11 client-side library
ii  libxau6                1:1.0.3-3         X11 authorisation library
ii  libxdmcp6              1:1.0.2-3         X11 Display Manager Control Protoc
ii  libxext6               2:1.0.4-1         X11 miscellaneous extension librar
ii  libxi6                 2:1.1.4-1         X11 Input extension library
ii  libxinerama1           2:1.0.3-2         X11 Xinerama extension library
ii  libxml2                2.7.3.dfsg-2+b1   GNOME XML library
ii  lsb-base               3.2-20            Linux Standard Base 3.2 init scrip
ii  metacity [x-window-man 1:2.22.0-2        A lightweight GTK2 based Window Ma
ii  twm [x-window-manager] 1:1.0.4-2         Tab window manager
ii  xterm [x-terminal-emul 235-2             X terminal emulator
ii  zlib1g                 1:1.2.3.3.dfsg-12 compression library - runtime

Versions of packages gdm recommends:
pn  gdm-themes                   <none>      (no description available)
ii  whiptail                     0.52.2-11.3 Displays user-friendly dialog boxe
pn  xserver-xephyr | xnest       <none>      (no description available)
ii  xserver-xorg                 1:7.3+18    the X.Org X server
ii  zenity                       2.22.1-2    Display graphical dialog boxes fro

Versions of packages gdm suggests:
pn  libpam-gnome-keyring          <none>     (no description available)
ii  locales                       2.9-12     GNU C Library: National Language (
ii  pm-utils                      1.1.2.4-1  utilities and scripts for power ma

-- debconf information:
  gdm/daemon_name: /usr/bin/gdm
* shared/default-x-display-manager: gdm
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gdm_power_management.sh
Type: text/x-shellscript
Size: 495 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-gnome-maintainers/attachments/20090817/3e867785/attachment.bin>


More information about the pkg-gnome-maintainers mailing list