Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 151455 - gnome-extra/gnome-power-manager-2.16.1 does not suspend or hibernate
Summary: gnome-extra/gnome-power-manager-2.16.1 does not suspend or hibernate
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-10-15 05:00 UTC by Martin Wegner
Modified: 2006-10-15 19:52 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Wegner 2006-10-15 05:00:13 UTC
When I click on "Suspend" or "Hibernate" in my shutdown dialog in Gnome, just an empty information dialog raises (light bulb) and nothing happens. The event log of gnome power manager just says "Hibernating computer because user clicked ..." then "Resuming computer" and then just "Hibernate problem", the same with suspend.

Also the setting of display brightness does not work.

Laptop is a Asus Z9257Va here.

hald and dbus are both running.

$ emerge -pv hald dbus

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] sys-apps/hal-0.5.7.1-r1  USE="acpi crypt doc -debug -dmi -pcmcia (-selinux)" 0 kB 
[ebuild   R   ] sys-apps/dbus-0.62-r1  USE="X doc gtk python qt3 qt4 -debug -mono (-selinux)" 0 kB 

$ uname -a
Linux wlaptop 2.6.18-suspend2-mw #1 PREEMPT Tue Sep 26 16:46:09 CEST 2006 i686 Intel(R) Pentium(R) M processor 1.73GHz GenuineIntel GNU/Linux

$ emerge --info
Portage 2.1.2_pre3-r2 (default-linux/x86/2006.1/desktop, gcc-4.1.1, glibc-2.5-r0, 2.6.18-suspend2-mw i686)
=================================================================
System uname: 2.6.18-suspend2-mw i686 Intel(R) Pentium(R) M processor 1.73GHz
Gentoo Base System version 1.12.5
Last Sync: Sun, 15 Oct 2006 09:50:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.3.1-r1, 2.0.30
dev-lang/python:     2.3.5-r3, 2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.13-r4
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium-m -O3 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-march=pentium-m -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ ftp://212.219.56.134/sites/www.ibiblio.org/gentoo/"
LANG="C"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="x86 X Xaw3d aac acl acpi alsa apache2 bash-completion berkdb bitmap-fonts browserplugin bzip2 bzlib cairo cdparanoia cdr cli crypt cups dba dbus dga divx4linux dlloader doc dri dvd dvdr dvi editor eds elibc_glibc emboss encode escreen exif fam fbcon ffmpeg firefox flac foomaticdb ftp gd gdbm gif gimpprint gnome gstreamer gtk gtk2 hal i8x0 imap imlib input_devices_keyboard input_devices_mouse input_devices_synaptics insecure-savers ipv6 isdnlog jabber java jpeg jpeg2k kernel_linux libcaca libg++ mad mbox mmx mmxext mozdevelop mozsvg mp3 mpeg mysql ncurses nls no-htdocs nptl nptlonly nsplugin offensive ogg oggvorbis opengl oscar oss pam pcre pdf pear perl png postfix ppds pppd python qt3 qt4 quicktime readline real reflection rtc samba sdl server session silverxp spell spl sse sse2 ssl stencil-buffer svg tcltk tcpd theora tiff tools truetype truetype-fonts type1-fonts udev unicode usb userland_GNU userlocales video_cards_fglrx vim-with-x visualization vorbis win32codecs wmf xanim xchattext xml xorg xprint xsl xv xvid zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Gilles Dartiguelongue (RETIRED) gentoo-dev 2006-10-15 05:29:44 UTC
Suspend and Hibernate doesn't work out of the box on gentoo because it's particularly difficult to make it work on most systems. Here gpm's functions rely on a working subsystem. You need to install and configure sys-power/hibernate-script.

About brightness, did you have the asus_acpi module activated in kernel ?
Comment 2 Martin Wegner 2006-10-15 14:04:35 UTC
(In reply to comment #1)
> Suspend and Hibernate doesn't work out of the box on gentoo because it's
> particularly difficult to make it work on most systems. Here gpm's functions
> rely on a working subsystem. You need to install and configure
> sys-power/hibernate-script.

I have sys-power/hibernate-script installed and configured. A simple call to "hibernate" in a console suspends my laptop. This was the method, I used until now.

> 
> About brightness, did you have the asus_acpi module activated in kernel ?
> 

Yes, it's compiled into my kernel:

$ grep "ACPI_ASUS" /usr/src/linux/.config
CONFIG_ACPI_ASUS=y

Comment 3 Gilles Dartiguelongue (RETIRED) gentoo-dev 2006-10-15 14:40:55 UTC
1) hu, strange, it works for me

2) Can you change the brightness by echoing something between 1 and 8 to /proc/acpi/asus_acpi/brightness (don't remember the exact path)
if not, it's an upstream bug, I have a M6BR something that works very well here.
Comment 4 Martin Wegner 2006-10-15 14:55:48 UTC
(In reply to comment #3)
> 1) hu, strange, it works for me
> 

I think I was able to investigate this issue a bit further: I started gpm manually with

$ gnome-power-manager --no-daemon --verbose

And in the output I found these warnings which I think definitely belong to my errors:

*** WARNING ***
[gpm_hal_handle_error] gpm-hal.c:265 (23:41:37):         Hibernate failed
(A security policy in place prevents this sender from sending this message to this recipient, see message bus configuration file (rejected message had interface "org.freedesktop.Hal.Device.SystemPowerManagement" member "Hibernate" error name "(unset)" destination "org.freedesktop.Hal"))

and

*** WARNING ***
[gpm_hal_handle_error] gpm-hal.c:265 (23:45:21):         power save failed
(A security policy in place prevents this sender from sending this message to this recipient, see message bus configuration file (rejected message had interface "org.freedesktop.Hal.Device.SystemPowerManagement" member "SetPowerSave" error name "(unset)" destination "org.freedesktop.Hal"))

and

*** WARNING ***
[gpm_brightness_set_hw] gpm-brightness.c:308 (23:45:21):         A security policy in place prevents this sender from sending this message to this recipient, see message bus configuration file (rejected message had interface "org.freedesktop.Hal.Device.LaptopPanel" member "SetBrightness" error name "(unset)" destination "org.freedesktop.Hal")

Some of them appeared several times.

And I think, I found, why the error message I see is empty (see my initial description):
(gnome-power-manager:14789): Gtk-WARNING **: Failed to set text from markup due to error parsing markup: Unknown tag 'a' on line 1 char 98

> 2) Can you change the brightness by echoing something between 1 and 8 to
> /proc/acpi/asus_acpi/brightness (don't remember the exact path)
> if not, it's an upstream bug, I have a M6BR something that works very well
> here.

The file is /proc/acpi/asus/brn here and I can echo values 1 to 15 into it. And yes, it works, but as you may see above it could be the same reason as the one why hibernating does not work.

Comment 5 Gilles Dartiguelongue (RETIRED) gentoo-dev 2006-10-15 15:12:36 UTC
1) I'm not sure gpm is using this but, do you have a /var/run/console/${USER} file ? I check tomorrow if it works without it.

2) I'll check that path too, but as you say, it might be related to the previous issue you are experiencing.
Comment 6 Saleem Abdulrasool (RETIRED) gentoo-dev 2006-10-15 19:52:06 UTC
Make sure that you are in the plugdev group.  Reopen if it does not work after adding yourself to the plugdev group and restarting your machine.