Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 268588 - sys-apps/hal does not sleep when pressing my sleep or power button
Summary: sys-apps/hal does not sleep when pressing my sleep or power button
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Freedesktop bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-04 12:40 UTC by Philipp Leonhardt
Modified: 2009-08-31 20:27 UTC (History)
0 users

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


Attachments
message.log (messages.log,15.78 KB, text/plain)
2009-05-04 13:36 UTC, Philipp Leonhardt
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Philipp Leonhardt 2009-05-04 12:40:57 UTC
gnome-power-manager does nothing on pressing suspend or power button.
I have configured my Xserver with hal and evdev.
But i dont want to set
--enable-legacy-buttons
in the g-p-m (gnome-power-manager) ebuild because in 2.27 it will totally be running over hal.

hal says me suspend button is /dev/input/event3 and power button
/dev/input/event0
xev shows nothing on pressing power related buttons but i read this is normal.

Is there something i have to set on hal???
Comment 1 Gilles Dartiguelongue (RETIRED) gentoo-dev 2009-05-04 12:54:06 UTC
hal, dbus and consolekit version please. Please also paste, say the last 200 lines of your /var/log/message.log after pressing the buttons.
Comment 2 Philipp Leonhardt 2009-05-04 13:36:44 UTC
Created attachment 190308 [details]
message.log
Comment 3 Philipp Leonhardt 2009-05-04 13:40:51 UTC
Here it is =P


[ebuild   R   ] sys-auth/consolekit-0.3.0-r1  USE="pam -debug -doc -policykit"

[ebuild   R   ] sys-kernel/gentoo-sources-2.6.29-r2  USE="-build -symlink"

[ebuild   R   ] sys-apps/dbus-1.2.3-r1  USE="X -debug -doc (-selinux)"

[ebuild   R   ] sys-apps/hal-0.5.12_rc1-r2  USE="X acpi consolekit disk-partition laptop -apm -crypt -debug -dell -doc -policykit (-selinux)"

[ebuild   R   ] x11-base/xorg-server-1.6.1  USE="hal ipv6 nptl sdl xorg -3dfx -debug -dmx -kdrive -minimal -tslib" INPUT_DEVICES="evdev keyboard mouse synaptics -acecad -aiptek -calcomp -citron -digitaledge -dmc -dynapro -elo2300 -elographics -fpit -hyperpen -jamstudio -joystick -magellan -microtouch -mutouch -palmax -penmount -spaceorb -summa -tek4957 -tslib -ur98 -virtualbox -vmmouse -void -wacom" VIDEO_CARDS="intel -apm -ark -ast -chips -cirrus -dummy -epson -fbdev -fglrx -geode -glint -i128 -i740 (-impact) -imstt -mach64 -mga -neomagic -nv -nvidia -r128 -radeon -radeonhd -rendition -s3 -s3virge -savage -siliconmotion -sis -sisusb (-sunbw2) (-suncg14) (-suncg3) (-suncg6) (-sunffb) (-sunleo) (-suntcx) -tdfx -tga -trident -tseng -v4l -vermilion -vesa -via -virtualbox -vmware -voodoo -xgi"

[ebuild   R   ] x11-drivers/xf86-input-evdev-2.2.1  USE="hal -debug"

[ebuild   R   ] gnome-extra/gnome-power-manager-2.26.1  USE="X -debug -doc -policykit -test"
Comment 4 Gilles Dartiguelongue (RETIRED) gentoo-dev 2009-05-04 14:08:11 UTC
ok so it does not seem to be policykit related. What happens if you write pm-suspend/pm-hibernate in a root console (in X)
Comment 5 Philipp Leonhardt 2009-05-04 14:20:08 UTC
suspending and powering off over console commands or mouseklicks on gnome-power-manager works perfectly but since --disable-legacy-buttons on g-p-m
the hotkeys with "fn" or sonthing else do not work.
Comment 6 Philipp Leonhardt 2009-05-04 17:20:41 UTC
I've read some posts on other distros and concentraded my search on devicekit
there are some patches and fedora uses a 20090401git because of suspending problems. And if they build g-p-m with --enable-legacy-buttons and use the fixed devicekit-power it looks like there are two suspending commands on one button press.
So fedora is used with --disable-legacy-buttons

i will test it and report
Comment 7 Philipp Leonhardt 2009-05-04 19:29:35 UTC
ok Devicekit-power from git does not help
newest dbus version does not help

gnome-power-manager with debug flag and verbose mode says nothing when suspend or power button is pressed

Which way gnome-power-manager recives acpi events from xorg and not from hal?
Its DeviceKit right???
Comment 8 Gilles Dartiguelongue (RETIRED) gentoo-dev 2009-07-28 23:06:57 UTC
hum I re-enabled legacy keys in latest gnome-power-manager bump. Could you try with 2.26.3 ?
Comment 9 Gilles Dartiguelongue (RETIRED) gentoo-dev 2009-08-31 20:27:41 UTC
Please get back to us.