Xfce Wiki

Sub domains
 

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
xfce:xfce4-power-manager:faq [2012/03/05 10:26] – created nickxfce:xfce4-power-manager:faq [2021/02/08 08:53] (current) – update icon kevinbowen
Line 1: Line 1:
-====== Frequently Asked Questions ======+~~NOTOC~~ 
 +{{ :xfce:xfce.powermanager.png?no link|}} 
 +======  xfce4-power-manager - Frequently Asked Questions ======
  
-Why the icons look very similar to the icon of gnome power manager? +  * **[[#Why are the options for suspend/hibernate not there or I can not select them?|Why are the options for suspend/hibernate not there or I can not select them?]]** 
-! No, they are not similar; they are the same. Just there is no point of re-drawing icons. gnome power manager icons are good enough. Not all the gnome power manager icons are used. Please note that for version 0.8.3.1 the icons are renamed to avoid possible conflicts with a gnome power manager installation.  +  * **[[#I have put my computer into suspend or hibernate modebut the computer is not waking up.|I have put my computer into suspend or hibernate mode, but the computer is not waking up.]]** 
-? What is the difference between suspend and hibernate+  * **[[#How can I make logind handle button events instead of xfce4-power-manager|How can I make logind handle button events instead of xfce4-power-manager]]**
-! Suspend is a power save feature. When suspending, the computer is still using power, since the running applications are kept in the memory, but it is the lowest power level that the computer can use. While Hibernate saves the system state on the hard drive and turns off the power, when you start up your computer again those data will be loaded and the system back up.  +
-? Why the options of suspend/hibernate are not there or I can not select them? +
-! Many possible reasonsfor example your kernel is not compiled with suspend/hibernate optionsAnother possible reason is the fact that you don'have engough premission to use them.  +
-? I had put my computer into suspend or hibernate mode, but the computer is not waking up? +
-! This was subject for many bug reports, please note that the power manager has nothing to do with these problems, since the kernel is responsible of these tasks. The kernel team are puting a lot of efforts into fixing these kind of problems, if you still have troubles please report a bug to your distribution provider, they can contact the kernel team and possibly they can provide you a work-around.  +
-? I'm not able to control my laptop brightness and/or my brightness plug in is reporting no device found? +
-! One possible reason is the fact that the correct kernel driver is missing or doesn't exist for your laptop brightness panel, you can debug this fact by running this command:+
  
 +----
 +
 +===== Why are the options for suspend/hibernate not there or I can not select them? =====
 +! There are many possible reasons. For example, your kernel could be compiled without suspend/hibernate options. It could also be that you don't have the right permissions to use them.
 +
 +Assuming your kernel and computer's hardware does support suspend/hibernate, you can see what xfce4-power-manager is trying to do by starting it in debug mode. To do that first, stop the current running instance of xfce4-power-manager:
 +
 +  xfce4-power-manager -q
 +
 +Then run it in debug mode:
 +
 +  xfce4-power-manager --no-daemon --debug
 +
 +
 +You'll then be able to see messages like:
 +! TRACE[xfpm-polkit.c:406] xfpm_polkit_check_auth_intern(): Action=org.freedesktop.login1.suspend is authorized=FALSE
 +! TRACE[xfpm-polkit.c:406] xfpm_polkit_check_auth_intern(): Action=org.freedesktop.login1.hibernate is authorized=FALSE
 +
 +Which means xfce4-power-manager is trying to use systemd-logind, but your system or distribution's policy is preventing it (authorized=FALSE).
 +
 +! TRACE[xfpm-polkit.c:407] xfpm_polkit_check_auth_intern(): Action=org.freedesktop.upower.suspend is authorized=FALSE
 +! TRACE[xfpm-polkit.c:407] xfpm_polkit_check_auth_intern(): Action=org.freedesktop.upower.hibernate is authorized=FALSE
 +
 +These messages indicate that xfce4-power-manager is trying to use upower, but again is blocked by system/distribution policies.
 +
 +! TRACE[xfpm-polkit.c:407] xfpm_polkit_check_auth_intern(): Action=org.freedesktop.consolekit.system.suspend is authorized=FALSE
 +! TRACE[xfpm-polkit.c:407] xfpm_polkit_check_auth_intern(): Action=org.freedesktop.consolekit.system.hibernate is authorized=FALSE
 +
 +Here, xfce4-power-manager is using ConsoleKit2 and is blocked by system/distribution policy.
 +
 +! TRACE[xfpm-power.c:236] xfpm_power_check_polkit_auth(): using xfpm internal suspend backend
 +
 +Finally, if none of those other tools are detected then xfce4-power-manager falls back to an internal method to perform these actions. It will use an org.xfce.power.xfce4-pm-helper policy file to determine if it's authorized to perform those system actions. For the internal fallback (and ConsoleKit2) you'll need to ensure you have the pm-utils package installed if you're using Linux. FreeBSD, OpenBSD, and DragonFlyBSD based systems will just work.
 +
 +
 +----
 +
 +===== I have put my computer into suspend or hibernate mode, but the computer is not waking up. =====
 +! This was the subject of many bug reports. Please note that the power manager has nothing to do with these problems, since the kernel is responsible for these tasks. The kernel team is putting a lot of effort into fixing these kind of problems. However, if you still have problems please report a bug to your distributor and hopefully they can contact the kernel team and possibly provide a work-around. 
 +
 +----
 +
 +===== How can I make logind handle button events instead of xfce4-power-manager =====
 +! By default xfce4-power-manager inhibits logind handling suspend/hibernate and its keys. This is to prevent conflicts that xfce4-power-manager and logind can have. If you wish to have xfce4-power-manager not inhibit logind for a particular function, just set the value in xfconf's Settings Editor or with xfconf-queries as shown below.
 +
 +To have logind handle the lid open/close event:
 +  xfconf-query -c xfce4-power-manager -p /xfce4-power-manager/logind-handle-lid-switch -n -t bool -s true
 +To have logind handle the power key:
 +  xfconf-query -c xfce4-power-manager -p /xfce4-power-manager/logind-handle-power-key -n -t bool -s true
 +To have logind handle the suspend key:
 +  xfconf-query -c xfce4-power-manager -p /xfce4-power-manager/logind-handle-suspend-key -n -t bool -s true
 +To have logind handle the hibernate key:
 +  xfconf-query -c xfce4-power-manager -p /xfce4-power-manager/logind-handle-hibernate-key -n -t bool -s true
 +
 +
 +[[|Back to Top]]
 +----
 +[[:xfce:xfce4-power-manager:start:|Back to xfce4-power-manager main page]]