This service will be undergoing maintenance at 00:00 UTC, 2016-08-01. It is expected to last about 1 hours
Bug 169476 - Leave power buttons to gnome-power-manager
Leave power buttons to gnome-power-manager
Status: CLOSED CURRENTRELEASE
Product: Fedora
Classification: Fedora
Component: acpid (Show other bugs)
rawhide
All Linux
medium Severity medium
: ---
: ---
Assigned To: Phil Knirsch
:
: 111958 (view as bug list)
Depends On:
Blocks: FC5Target
  Show dependency treegraph
 
Reported: 2005-09-28 13:26 EDT by Matthias Clasen
Modified: 2015-03-04 20:15 EST (History)
8 users (show)

See Also:
Fixed In Version: FC6
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2007-05-16 04:58:26 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:


Attachments (Terms of Use)

  None (edit)
Description Matthias Clasen 2005-09-28 13:26:20 EDT
With gnome-power-manager in rawhide, we have a conflict over who handles
the power button.
Comment 1 Richard Hughes 2005-09-28 13:34:15 EDT
what do we need the acpid daemon for? for me the only thing it only did was
watch the power button..

With regard to pmud, acpid and apmd, they can all be removed (to extras?) for
FC5 in my opinion. HAL handles most stuff now and is a better solution than the
arch specific hacks and scripts that those legacy daemons are.
Comment 2 Jef Spaleta 2005-11-06 13:46:42 EST
gnome-power-manager is going to be running all the time even for people running
kde desktops?  

-jef
Comment 3 Bart Vanbrabant 2006-01-20 07:11:16 EST
The sample config file /etc/acpi/events/sample.conf really shouldn't handle the
shutdown when gnome-power-manager is running. Because it's really confusing now.
You get the gnome-shutdown dialog when pressing the powerbutton but before you
can press a button you're system goes down because of the acpid action.
Comment 4 Phil Knirsch 2006-02-10 08:33:24 EST
I'll be looking into that. Maybe making the script there a little more
intelligent and checking wether X11 and/or gnome-power-manager is running before
doing any actions might work, but need to test this out myself first.

Read ya, Phil
Comment 5 Phil Knirsch 2006-02-10 08:49:09 EST
*** Bug 111958 has been marked as a duplicate of this bug. ***
Comment 7 Simon Goodall 2006-03-26 10:32:25 EST
This is still a problem in fc5. Shouldn't the sample script be disabled. After
all it is a *sample*.
Comment 8 Matthias Saou 2006-07-04 08:39:15 EDT
And still in FC development (pre FC6). I ran into that problem too :
- Press the power button in GNOME
- See the shutdown dialog box appear... for about 1 second
- See the computer shut down...

As Simon just wrote : Why not just comment out the two lines from sample.conf?
Who really expects to install acpid and use only the power button? Until really
useful defaults are in place (see #81142), it would be worth simply disabling
this (now) conflicting behavior.
Comment 9 Renato Ramonda 2006-08-02 11:18:01 EDT
I'd like to second the motion for the sample.conf to be commented out: I ran in
the usual problem with my new laptop. 

I press the power button, see for half a second the end session dialog, and the
machine starts to power down.

The postinstall script of gnome-power-manager could actually comment those lines
out, and upon uninstall maybe re-decomment them.

Or simply put them in, but commented by default.
Comment 10 Leslie Satenstein 2006-12-21 11:14:53 EST
I am running FC6 Xen and my grandson touched the front power button (desktop pc)
instead of the button for the dvd drive.

Power manager setting is set to ASK, on button depress, but the system shut down,

There needs to be either a built-in delay or to fix the gnome intercept to ask
for action to take. (shutdown or sleep)
 
Comment 11 Phil Knirsch 2007-05-16 04:58:26 EDT
FC6 should contain the power.conf script that checks if there is a
gnome-power-manager running and if it does leaves it up to gnome-power-manager
to do the work.

Tried and tested it on a fresh FC6 and FC-devel here.

Read ya, Phil
Comment 12 Leslie Satenstein 2007-05-16 17:21:18 EDT
FC7 appears to have the right kind of fix for the desktop pc.
It presents a popup screen with options.

Horrah!!

Note You need to log in before you can comment on or make changes to this bug.