Xfce Forum

Sub domains
 

You are not logged in.

#1 2014-01-07 22:13:47

Mellowbob
Member
Registered: 2011-10-16
Posts: 217

[Solved] Power manager missing Power Off

I've recently installed xubuntu 13.10 on a laptop and can't figure out why the Power Off feature is missing in the Xfce Power Manager. Both in battery and a/c modes the options for "when lid is closed" read Suspend, Hibernate, LockScreen and Nothing.

I'd just like the machine to turn off when I close the lid. Must be an option somewhere to enable this???

Thanks.

Offline

#2 2014-01-07 22:58:36

ToZ
Moderator
From: Canada
Registered: 2011-06-02
Posts: 7,076

Re: [Solved] Power manager missing Power Off

Try setting:

HandleLidSwitch=poweroff

...in /etc/systemd/logind.conf. You'll need to reboot for this to take effect.

Systemd integration in Xubuntu 13.10 now also handles lid actions.

Offline

#3 2014-01-07 23:12:54

Mellowbob
Member
Registered: 2011-10-16
Posts: 217

Re: [Solved] Power manager missing Power Off

Thanks. That works.

Any idea why it isn't in the powermanger applet? I know it was in earlier versions.

Offline

#4 2014-01-08 02:47:14

ToZ
Moderator
From: Canada
Registered: 2011-06-02
Posts: 7,076

Re: [Solved] Power manager missing Power Off

To be honest, I don't ever recall the shutdown option existing in xfce4-power-manager, but I'll take your word for it.
What I do know is that the version of xfce4-power-manager shipping with 13.10 hasn't yet been patched to work properly with systemd. I believe these changes will land in 14.04.

Although Ubuntu doesn't directly use systemd, there has been some integration. This came to a head in 13.10 with respect to lid management because both xfce4-power-manager and systemd are managing lid and power actions. Issues such as double-suspends and the one you are experiencing seem to be the most common issues. Hopefully this all gets sorted out properly in 14.04.

Offline

#5 2014-01-08 03:19:26

Mellowbob
Member
Registered: 2011-10-16
Posts: 217

Re: [Solved] Power manager missing Power Off

I know than on 12.04 there was an option. What I don't know (and the disk is wiped) if that was an xfce or gnome power manger. Mind you, it didn't work half the time ... so it wasn't the greatest option smile

Offline

#6 2014-01-08 07:19:33

MountainDewManiac
Member
From: Where Mr. Bankruptcy is Prez
Registered: 2013-03-24
Posts: 1,107

Re: [Solved] Power manager missing Power Off

I don't have that option on my system. Mint 14 XFCE, based on Ubuntu. Can't remember which version number, 12.04 I thought, but it might be 12.10, I suppose; Quantal something if that helps.

xfce-power-manager 1.2.0. Not sure what version of systemd; I forgot to check when computer was running. Doesn't boot every time, hard drive is flaky, display extremely red-tinted even on initial screen when turned on (old, been dropped a few times, several Winters with old kerosene heater, and it's 43°F in here right now, IDK, screen looked less red last time I got it to work).

Regards,
MDM


Mountain Dew Maniac

How to Ask for Help <=== Click on this link

Offline

#7 2014-01-08 21:22:37

Mellowbob
Member
Registered: 2011-10-16
Posts: 217

Re: [Solved] Power manager missing Power Off

My apologies! The laptop I'd been playing with was actually running Ubuntu 11.04. No xfce at all. Just booted it with the old disk in a USB adaptor to double check things.

But, the power manager does have <shutdown> as an option. I guess is from the old days when gnome actually gave folks more than one option smile

Offline

#8 2020-10-08 06:28:43

bimlas
Member
Registered: 2020-03-20
Posts: 7
Website

Re: [Solved] Power manager missing Power Off

On a desktop PC, I want the system to shut down after a certain amount of time, but only the suspend option is available in the power manager, the poweroff is not listed. I also use Linux Mint and Xubuntu on two separate machines, but I didn’t find that option on either.

Based on this thread, I copy the system information.

$ xfce4-power-manager -V                                  

Xfce Power Manager 1.6.6

Part of the Xfce Goodies Project
http://goodies.xfce.org

Licensed under the GNU GPL.
$ xfce4-power-manager --debug --no-daemon

** (xfce4-power-manager:36245): WARNING **: 08:16:37.697: Failed to get name owner: GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Could not get owner of name 'org.freedesktop.PowerManagement': no such name


** (xfce4-power-manager:36245): WARNING **: 08:16:37.697: Failed to get name owner: GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Could not get owner of name 'org.xfce.PowerManager': no such name

TRACE[xfpm-main.c:210] xfpm_start(): Starting the power manager
TRACE[xfpm-xfconf.c:651] xfpm_xfconf_init(): lock screen FALSE
TRACE[xfpm-xfconf.c:164] xfpm_xfconf_load(): Using default configuration for general-notification
TRACE[xfpm-xfconf.c:164] xfpm_xfconf_load(): Using default configuration for critical-power-level
TRACE[xfpm-xfconf.c:164] xfpm_xfconf_load(): Using default configuration for show-brightness-popup
TRACE[xfpm-xfconf.c:164] xfpm_xfconf_load(): Using default configuration for handle-brightness-keys
TRACE[xfpm-xfconf.c:164] xfpm_xfconf_load(): Using default configuration for critical-power-action
TRACE[xfpm-xfconf.c:164] xfpm_xfconf_load(): Using default configuration for power-button-action
TRACE[xfpm-xfconf.c:164] xfpm_xfconf_load(): Using default configuration for hibernate-button-action
TRACE[xfpm-xfconf.c:164] xfpm_xfconf_load(): Using default configuration for sleep-button-action
TRACE[xfpm-xfconf.c:164] xfpm_xfconf_load(): Using default configuration for battery-button-action
TRACE[xfpm-xfconf.c:164] xfpm_xfconf_load(): Using default configuration for lid-action-on-ac
TRACE[xfpm-xfconf.c:164] xfpm_xfconf_load(): Using default configuration for brightness-level-on-ac
TRACE[xfpm-xfconf.c:164] xfpm_xfconf_load(): Using default configuration for brightness-level-on-battery
TRACE[xfpm-xfconf.c:164] xfpm_xfconf_load(): Using default configuration for brightness-slider-min-level
TRACE[xfpm-xfconf.c:164] xfpm_xfconf_load(): Using default configuration for dpms-enabled
TRACE[xfpm-xfconf.c:164] xfpm_xfconf_load(): Using default configuration for dpms-on-ac-sleep
TRACE[xfpm-xfconf.c:164] xfpm_xfconf_load(): Using default configuration for dpms-on-ac-off
TRACE[xfpm-xfconf.c:164] xfpm_xfconf_load(): Using default configuration for dpms-on-battery-sleep
TRACE[xfpm-xfconf.c:164] xfpm_xfconf_load(): Using default configuration for dpms-on-battery-off
TRACE[xfpm-xfconf.c:164] xfpm_xfconf_load(): Using default configuration for dpms-sleep-mode
TRACE[xfpm-xfconf.c:164] xfpm_xfconf_load(): Using default configuration for inactivity-on-ac
TRACE[xfpm-xfconf.c:164] xfpm_xfconf_load(): Using default configuration for inactivity-on-battery
TRACE[xfpm-xfconf.c:164] xfpm_xfconf_load(): Using default configuration for inactivity-sleep-mode-on-ac
TRACE[xfpm-xfconf.c:164] xfpm_xfconf_load(): Using default configuration for inactivity-sleep-mode-on-battery
TRACE[xfpm-xfconf.c:164] xfpm_xfconf_load(): Using default configuration for brightness-on-ac
TRACE[xfpm-xfconf.c:164] xfpm_xfconf_load(): Using default configuration for brightness-on-battery
TRACE[xfpm-xfconf.c:164] xfpm_xfconf_load(): Using default configuration for network-manager-sleep
TRACE[xfpm-xfconf.c:164] xfpm_xfconf_load(): Using default configuration for logind-handle-power-key
TRACE[xfpm-xfconf.c:164] xfpm_xfconf_load(): Using default configuration for logind-handle-suspend-key
TRACE[xfpm-xfconf.c:164] xfpm_xfconf_load(): Using default configuration for logind-handle-hibernate-key
TRACE[xfpm-xfconf.c:164] xfpm_xfconf_load(): Using default configuration for heartbeat-command

(xfce4-power-manager:36245): GLib-GObject-WARNING **: 08:16:37.731: ../../../gobject/gsignal.c:2617: signal 'Changed' is invalid for instance '0x556e53f19970' of type 'GDBusProxy'
TRACE[xfpm-polkit.c:284] xfpm_polkit_init_data(): Using unix session polkit subject
TRACE[xfpm-polkit.c:342] xfpm_polkit_check_auth_intern(): polkit request: (('unix-process', {'pid': <uint32 36245>, 'start-time': <uint64 340547>}), 'org.freedesktop.login1.power-off', @a{ss} {}, uint32 0, '')
TRACE[xfpm-polkit.c:363] xfpm_polkit_check_auth_intern(): Action=org.freedesktop.login1.power-off is authorized=TRUE
TRACE[xfpm-polkit.c:342] xfpm_polkit_check_auth_intern(): polkit request: (('unix-process', {'pid': <uint32 36245>, 'start-time': <uint64 340547>}), 'org.freedesktop.login1.reboot', @a{ss} {}, uint32 0, '')
TRACE[xfpm-polkit.c:363] xfpm_polkit_check_auth_intern(): Action=org.freedesktop.login1.reboot is authorized=TRUE
TRACE[xfpm-polkit.c:342] xfpm_polkit_check_auth_intern(): polkit request: (('unix-process', {'pid': <uint32 36245>, 'start-time': <uint64 340547>}), 'org.freedesktop.login1.suspend', @a{ss} {}, uint32 0, '')
TRACE[xfpm-polkit.c:363] xfpm_polkit_check_auth_intern(): Action=org.freedesktop.login1.suspend is authorized=TRUE
TRACE[xfpm-polkit.c:342] xfpm_polkit_check_auth_intern(): polkit request: (('unix-process', {'pid': <uint32 36245>, 'start-time': <uint64 340547>}), 'org.freedesktop.login1.hibernate', @a{ss} {}, uint32 0, '')
TRACE[xfpm-polkit.c:363] xfpm_polkit_check_auth_intern(): Action=org.freedesktop.login1.hibernate is authorized=FALSE
TRACE[xfpm-power.c:210] xfpm_power_check_polkit_auth(): using logind suspend backend
TRACE[xfpm-polkit.c:342] xfpm_polkit_check_auth_intern(): polkit request: (('unix-process', {'pid': <uint32 36245>, 'start-time': <uint64 340547>}), 'org.freedesktop.login1.suspend', @a{ss} {}, uint32 0, '')
TRACE[xfpm-polkit.c:363] xfpm_polkit_check_auth_intern(): Action=org.freedesktop.login1.suspend is authorized=TRUE
TRACE[xfpm-polkit.c:342] xfpm_polkit_check_auth_intern(): polkit request: (('unix-process', {'pid': <uint32 36245>, 'start-time': <uint64 340547>}), 'org.freedesktop.login1.hibernate', @a{ss} {}, uint32 0, '')
TRACE[xfpm-polkit.c:363] xfpm_polkit_check_auth_intern(): Action=org.freedesktop.login1.hibernate is authorized=FALSE
TRACE[xfpm-power.c:1449] xfpm_update_blank_time(): Timeout: 10
TRACE[xfpm-power.c:1449] xfpm_update_blank_time(): Timeout: 10
TRACE[xfpm-button.c:182] xfpm_button_xevent_key(): Grabbed key 124 : ((XfpmButtonKey) BUTTON_POWER_OFF)

(xfce4-power-manager:36245): xfce4-power-manager-WARNING **: 08:16:37.754: could not map keysym 1008ffa8 to keycode

TRACE[xfpm-button.c:182] xfpm_button_xevent_key(): Grabbed key 213 : ((XfpmButtonKey) BUTTON_HIBERNATE)
TRACE[xfpm-button.c:182] xfpm_button_xevent_key(): Grabbed key 150 : ((XfpmButtonKey) BUTTON_SLEEP)
TRACE[xfpm-button.c:182] xfpm_button_xevent_key(): Grabbed key 233 : ((XfpmButtonKey) BUTTON_MON_BRIGHTNESS_UP)
TRACE[xfpm-button.c:182] xfpm_button_xevent_key(): Grabbed key 232 : ((XfpmButtonKey) BUTTON_MON_BRIGHTNESS_DOWN)
TRACE[xfpm-button.c:182] xfpm_button_xevent_key(): Grabbed key 244 : ((XfpmButtonKey) BUTTON_BATTERY)
TRACE[xfpm-button.c:182] xfpm_button_xevent_key(): Grabbed key 238 : ((XfpmButtonKey) BUTTON_KBD_BRIGHTNESS_UP)
TRACE[xfpm-button.c:182] xfpm_button_xevent_key(): Grabbed key 237 : ((XfpmButtonKey) BUTTON_KBD_BRIGHTNESS_DOWN)
TRACE[xfpm-manager.c:647] xfpm_manager_inhibit_sleep_systemd(): Inhibiting systemd sleep: handle-power-key:handle-suspend-key:handle-hibernate-key:handle-lid-switch

(xfce4-power-manager:36245): GLib-CRITICAL **: 08:16:37.760: g_error_free: assertion 'error != NULL' failed

(xfce4-power-manager:36245): xfce4-power-manager-WARNING **: 08:16:37.766: Failed to get keyboard max brightness level : GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: No such interface “org.freedesktop.UPower.KbdBacklight” on object at path /org/freedesktop/UPower/KbdBacklight
$ xfce4-power-manager --dump

** (xfce4-power-manager:36906): WARNING **: 08:20:14.706: Failed to get name owner: GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Could not get owner of name 'org.xfce.PowerManager': no such name

** (xfce4-power-manager:36906): WARNING **: 08:20:14.706: Failed to get name owner: GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Could not get owner of name 'org.freedesktop.PowerManagement': no such name

** (xfce4-power-manager:36906): WARNING **: 08:20:14.706: Failed to get name owner: GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Could not get owner of name 'org.xfce.PowerManager': no such name

(xfce4-power-manager:36906): GLib-GObject-WARNING **: 08:20:14.732: ../../../gobject/gsignal.c:2617: signal 'Changed' is invalid for instance '0x560de748f170' of type 'GDBusProxy'

(xfce4-power-manager:36906): xfce4-power-manager-WARNING **: 08:20:14.753: could not map keysym 1008ffa8 to keycode

(xfce4-power-manager:36906): GLib-CRITICAL **: 08:20:14.758: g_error_free: assertion 'error != NULL' failed

(xfce4-power-manager:36906): xfce4-power-manager-WARNING **: 08:20:14.763: Failed to get keyboard max brightness level : GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: No such interface ?org.freedesktop.UPower.KbdBacklight? on object at path /org/freedesktop/UPower/KbdBacklight
---------------------------------------------------
       Xfce power manager version 1.6.6
With policykit support
With network manager support
---------------------------------------------------
Can suspend: True
Can hibernate: False
Authorized to suspend: True
Authorized to hibernate: False
Authorized to shutdown: True
Has battery: False
Has brightness panel: False
Has power button: True
Has hibernate button: True
Has sleep button: True
Has battery button: True
Has LID: False
$ xfconf-query -c xfce4-power-manager -lv
/xfce4-power-manager/lid-action-on-battery          1
/xfce4-power-manager/lock-screen-suspend-hibernate  false
/xfce4-power-manager/logind-handle-lid-switch       false
/xfce4-power-manager/show-panel-label               0
/xfce4-power-manager/show-tray-icon                 false
$ xset q
Keyboard Control:
  auto repeat:  on    key click percent:  0    LED mask:  00000002
  XKB indicators:
    00: Caps Lock:   off    01: Num Lock:    on     02: Scroll Lock: off
    03: Compose:     off    04: Kana:        off    05: Sleep:       off
    06: Suspend:     off    07: Mute:        off    08: Misc:        off
    09: Mail:        off    10: Charging:    off    11: Shift Lock:  off
    12: Group 2:     off    13: Mouse Keys:  off
  auto repeat delay:  500    repeat rate:  20
  auto repeating keys:  00ffffffdffffbbf
                        fadfffefffedffff
                        9fffffffffffffff
                        fff7ffffffffffff
  bell percent:  0    bell pitch:  400    bell duration:  100
Pointer Control:
  acceleration:  2/1    threshold:  4
Screen Saver:
  prefer blanking:  yes    allow exposures:  yes
  timeout:  600    cycle:  600
Colors:
  default colormap:  0x20    BlackPixel:  0x0    WhitePixel:  0xffffff
Font Path:
  /usr/share/fonts/X11/misc,/usr/share/fonts/X11/Type1,built-ins
DPMS (Energy Star):
  Standby: 600    Suspend: 0    Off: 900
  DPMS is Enabled
  Monitor is On

Offline

#9 2020-10-08 10:36:50

ToZ
Moderator
From: Canada
Registered: 2011-06-02
Posts: 7,076

Re: [Solved] Power manager missing Power Off

@bimlas, have a look at https://forum.xfce.org/viewtopic.php?id=12248. The option to shutdown on idle doesn't currently exist.

Are you using a screensaver and if so, which one? xfce4-screensaver has a "logout" option that allows you to run a custom command after a specified amount of time. You could use a shutdown command here.

Offline

#10 2020-10-08 17:11:22

bimlas
Member
Registered: 2020-03-20
Posts: 7
Website

Re: [Solved] Power manager missing Power Off

@ToZ,

I tried the following commands, but none of them worked, none of them seem to have run:

shutdown
/usr/sbin/shutdown
notify-send --urgency critical 'test message' 

I also tried restarting powermanager (`xfce4-power-manager --restart`), but the commands didn't work after that either.

Last edited by bimlas (2020-10-08 17:12:10)

Offline

#11 2020-10-08 18:20:07

ToZ
Moderator
From: Canada
Registered: 2011-06-02
Posts: 7,076

Re: [Solved] Power manager missing Power Off

Try the following command:

xfce4-session-logout -f -h

Offline

#12 2020-10-08 19:35:20

bimlas
Member
Registered: 2020-03-20
Posts: 7
Website

Re: [Solved] Power manager missing Power Off

@ToZ

It doesn't work either. I tried restarting the computer after setup to make sure all the daemons restarted, but it didn't help either.

What log do I need to look up to find information?

Offline

#13 2020-10-09 00:47:42

ToZ
Moderator
From: Canada
Registered: 2011-06-02
Posts: 7,076

Re: [Solved] Power manager missing Power Off

Yeah, its not working for me either now that I test it. The command doesn't seem to be run - looks like its ignored or perhaps I'm misunderstanding its purpose. I would suggest creating a bug report.

To debug xfce4-screensaver, you would first kill the xfce4-screensaver process then run:

xfce4-screensaver --no-daemon --debug

Offline

Board footer

Powered by FluxBB