Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 6th June 2012, 08:11 AM
pythoner Offline
Registered User
 
Join Date: Apr 2012
Location: Germany
Posts: 8
linuxfirefox
F17 - Powerbutton Problem

Hy folks,

I got a strange behaviour and all i could find about was in the Archived F17 Development Section.

under F17 (Gnome3 and KDE alike) i cant set an Option for what to do when the Powerbutton ist pressed. My System immidiatly Shuts down without a Warning and without Saving anything. Every Setting i do about that in Gnome or KDE is "overruled"

Anybody got the same behaviour and Maybe a Solution?

Thanks in advance (and Sorry for my poor English)
Reply With Quote
  #2  
Old 6th June 2012, 08:27 AM
hmmsjan Online
Registered User
 
Join Date: Jun 2009
Location: Alkmaar The Netherlands
Posts: 195
linuxchrome
Re: F17 - Powerbutton Problem

Dear pythoner,

Got in KDE the shutdown dialog on screen here.

"upowerd" is activated on my system.

Good luck
__________________
H.Janssen
Alkmaar
The Netherlands
Reply With Quote
  #3  
Old 6th June 2012, 09:05 AM
pythoner Offline
Registered User
 
Join Date: Apr 2012
Location: Germany
Posts: 8
linuxfirefox
Re: F17 - Powerbutton Problem

Ok, now i feel stupid

How do i activate upowerd? i got upower active but that doesnt do the Trick.

Thanks for your quick reply!
Reply With Quote
  #4  
Old 6th June 2012, 09:59 AM
hmmsjan Online
Registered User
 
Join Date: Jun 2009
Location: Alkmaar The Netherlands
Posts: 195
linuxchrome
Re: F17 - Powerbutton Problem

Dear pythoner,

I must admit, I have no idea. I've the package upower-0.9.16-1.fc17.i686 on my system,
and according to the manual pages, it should be activated via dbus.
But dbus configuration and so on still has too much magic for me as simple user.....

Good luck

--------------------------

Seems that this upowerd has nothing to do with it. You can kill the process and KDE still reacts to the button.
May be via kded4.
__________________
H.Janssen
Alkmaar
The Netherlands

Last edited by hmmsjan; 6th June 2012 at 11:05 AM. Reason: New insights
Reply With Quote
  #5  
Old 6th June 2012, 01:10 PM
secipolla Offline
Registered User
 
Join Date: May 2011
Posts: 700
linuxfirefox
Re: F17 - Powerbutton Problem

Look closely at the options for that in the System Settings because you most probably will have an option to show or not the exit dialogue.
Reply With Quote
  #6  
Old 6th June 2012, 02:26 PM
pythoner Offline
Registered User
 
Join Date: Apr 2012
Location: Germany
Posts: 8
linuxfirefox
Re: F17 - Powerbutton Problem

I already have activated the shutdown dialog in gnome (set some value via dconf editor to interactive).

When i push the button the Dialog comes up and at the same moment the system shuts down. It is like the Powerbutton got root rights
Reply With Quote
  #7  
Old 6th June 2012, 08:57 PM
hmmsjan Online
Registered User
 
Join Date: Jun 2009
Location: Alkmaar The Netherlands
Posts: 195
linuxchrome
Re: F17 - Powerbutton Problem

Dear Pythoner,

The program taking care of the powerbutton in kde is the kded4 daemon

But...

I can exactly mimic your problem by starting the acpid daemon.

Upon pressing the power button, the script /etc/acpi/action/power.sh is fired up. Yes, power button
with root rights, shutdown -f is called.

This script should check for more decent powerbutton handlers, but for some reason it does not work.
On my system, the acpid is NOT running by default.

Good luck.
__________________
H.Janssen
Alkmaar
The Netherlands
Reply With Quote
  #8  
Old 6th June 2012, 10:01 PM
secipolla Offline
Registered User
 
Join Date: May 2011
Posts: 700
linuxfirefox
Re: F17 - Powerbutton Problem

As hmmsjan said. acpi is powering of the computer immediately while the GNOME/KDE power manager would show the dialogue.
So either remove acpi or disable it.
Reply With Quote
  #9  
Old 7th June 2012, 06:21 AM
pythoner Offline
Registered User
 
Join Date: Apr 2012
Location: Germany
Posts: 8
linuxfirefox
Re: F17 - Powerbutton Problem

Thanks for your Replies folks!

Is there n disadvantage when i disable acpi on my System? I run Fedora on my Notebook and acpi is handling the Powermanagement, right?

Maybe i will open a Bugreport. But i never done that before......
Reply With Quote
  #10  
Old 7th June 2012, 01:27 PM
secipolla Offline
Registered User
 
Join Date: May 2011
Posts: 700
linuxfirefox
Re: F17 - Powerbutton Problem

Well, AFAIK, acpi will handle it everywhere, like in the command-line too while the KDE/GNOME power managers will handle only when you're logged into those GUIs.
I think you can just be without acpi, after all you can type 'poweroff' or 'pm-suspend' (I think that's the command for suspend) when you're just using the command-line.
Or if you want to use acpi instead then you could remove the GUI power managers. But maybe you will have to configure acpi yourself to have full functionality (I don't have it here but when I had it in Debian, by default it would come only with poweroff configured).

As for the conflict itself, IDK if it's a bug or not. Maybe you should ask on the GNOME/KDE mailing lists.
Reply With Quote
  #11  
Old 7th June 2012, 06:20 PM
hmmsjan Online
Registered User
 
Join Date: Jun 2009
Location: Alkmaar The Netherlands
Posts: 195
windows_xp_2003firefox
Re: F17 - Powerbutton Problem

Dear all,

I think this is a bug. In the acpi powerdown script is code to check whether kded4 or a gnome power manager is running. This script depends on the "ck-list-sessions" command. This command returns nothing on my system, despite a running kde session. Thus: the powerdown script thinks it's safe to poweroff.
Indeed I think this has to be submitted as bug.

Again, on my system the only action script for acpi is powerdown, everything else is handled by the window manager software , so I assume for GUI users it's safe to disable acpid.


Kind regards
__________________
H.Janssen
Alkmaar
The Netherlands

Last edited by hmmsjan; 7th June 2012 at 06:23 PM.
Reply With Quote
  #12  
Old 8th June 2012, 11:56 AM
pythoner Offline
Registered User
 
Join Date: Apr 2012
Location: Germany
Posts: 8
linuxfirefox
Re: F17 - Powerbutton Problem

Im glad that the mistake was found and Im very, very grateful to hmmsjan for being so helpful and replicating my Problem!

I would ask a fovour if i may:

You seem to have everything sorted out with this Problem. Could you maybe open a Bugreport for that Issue? You got more intel about my Problem than i got

Anyways: Many, many thanks to you!!!
Reply With Quote
  #13  
Old 8th June 2012, 12:17 PM
hmmsjan Online
Registered User
 
Join Date: Jun 2009
Location: Alkmaar The Netherlands
Posts: 195
windows_xp_2003firefox
Re: F17 - Powerbutton Problem

Dear Pythoner,

A similar issue is already reported:

https://bugzilla.redhat.com/show_bug.cgi?id=746982

If you insist to have acpid running, just follow solution 2 in the xfce link, and make acpid happy doing nothing.
Please note the solution for the case an upgrade would bring back the problem!


Good luck!
__________________
H.Janssen
Alkmaar
The Netherlands
Reply With Quote
  #14  
Old 14th June 2012, 05:34 AM
pythoner Offline
Registered User
 
Join Date: Apr 2012
Location: Germany
Posts: 8
linuxfirefox
Re: F17 - Powerbutton Problem

@hmmsjan

Thanks for the Link but the fix isnt working on my System.
i think i wait for a fix or let F17 slide, sadly

EDIT: With the Gnome live x64 everything works fine. the live KDE x64 got the same issue. Im trying nos the x64 DVD.....

Last edited by pythoner; 14th June 2012 at 06:39 AM.
Reply With Quote
  #15  
Old 15th June 2012, 07:08 AM
hmmsjan Online
Registered User
 
Join Date: Jun 2009
Location: Alkmaar The Netherlands
Posts: 195
linuxchrome
Re: F17 - Powerbutton Problem

Dear Pythoner,

Pity... It could be that it has to do with transition to systemd and leaving powermanagement to the
display manager. One of the essential programs for the old situation is no longer available in F17,
(ck-xinit-session) so GUI sessions are no longer registered within ConsoleKit, so not known with acpi.
Fedora is the state-of-the-art Linux, so this intermediate inconsistensy might happen... :

Good luck and thanks for the feedback.
__________________
H.Janssen
Alkmaar
The Netherlands
Reply With Quote
Reply

Tags
f17, powerbutton, problem

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


Current GMT-time: 06:45 (Monday, 20-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat