! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
The suspend due to inactivity in "battery mode" is broken (V. 1.5.2 and 1.6.0)
Status:
RESOLVED: MOVED
Product:
Xfce4-power-manager
Component:
General

Comments

Description Gerold Schellstede 2016-03-15 12:28:47 CET
Hello,

on my Laptops xfce4-power-manager is adjusted to go into suspend mode after 15 minutes of inactivity (in battery mode as well as in power-supply mode). This does not work at all "in battery mode" which means noting happens and the machine is still running while everything works properly in power-supply mode. I checked dmesg --> noting related found. 

Additionally I tested also the suspend due to a low battery status (naturally in battery mode) and this works either. 

The suspend functions work also properly if triggered through the xfce-logout-button. 

For testing purposes I activated suspend by closing the lid (also a feature of the power-manager). To my surprise this works also like a charm (in both, battery and power-supply mode). 

To sum up: Only the suspend due to inactivity in "battery mode" is broken.

Best regards
Gerold
Comment 1 Tim Passingham 2016-05-04 23:09:44 CEST
And the reason I have just found is that a line is missing from the xfce4-power-manager configuration xml file.

It needs:

inactivity-sleep-mode-on-battery  integer 1


I set this parameter by using the 'Settings Editor' and adding the new action to the list under xfc4-power-manager.  This causes the change to be made in config/xfce4/xfconf/xfce-perchannel-xml/xfce4-power-manager.xml

Value 1 is for 'Suspend' (deduced from the value for other actions in the same file).


I am using a completely clean xubuntu 16.04 installation, on a 64 bit Samsung Laptop.  Like you, suspend also works for me for closing the lid and so on, just not for inactivity, claiming:
 
"GDBus.Error:org.freedesktop.login1:SleepVerbNotSupported"

I spent a heck a lot of time searching for a solution in amongst the maze of stuff there is about power saving (mostly about hibernation).  I had to keep reminding myself that the 'Suspend' action on the settings GUI didn't seem to be reflected in the xml configuration file.
Comment 2 Tim Passingham 2016-05-05 16:43:47 CEST
I found another missing element on my xubuntu 16.04 system.

It needed critical-power-level, as an integer.  Without this the critical power action did not seem to be enacted.

Does this need reporting against xubuntu, or will reporting here be enough?

There may be other settings missing that I've not yet encountered.

When changing the values using the normal configuration GUI, the values seem to be saved, but I know not where.  They don't seem to take effect.

My latest file (edited using the settings editor rather than directly) is:

<?xml version="1.0" encoding="UTF-8"?>

<channel name="xfce4-power-manager" version="1.0">
  <property name="xfce4-power-manager" type="empty">
    <property name="power-button-action" type="empty"/>
    <property name="lock-screen-suspend-hibernate" type="bool" value="false"/>
    <property name="logind-handle-lid-switch" type="bool" value="false"/>
    <property name="blank-on-ac" type="empty"/>
    <property name="blank-on-battery" type="int" value="10"/>
    <property name="dpms-enabled" type="empty"/>
    <property name="dpms-on-ac-sleep" type="empty"/>
    <property name="dpms-on-ac-off" type="empty"/>
    <property name="dpms-on-battery-sleep" type="uint" value="15"/>
    <property name="dpms-on-battery-off" type="uint" value="20"/>
    <property name="brightness-switch-restore-on-exit" type="int" value="1"/>
    <property name="brightness-switch" type="int" value="0"/>
    <property name="lid-action-on-battery" type="uint" value="1"/>
    <property name="lid-action-on-ac" type="uint" value="0"/>
    <property name="inactivity-on-battery" type="uint" value="29"/>
    <property name="critical-power-action" type="uint" value="3"/>
    <property name="sleep-button-action" type="uint" value="1"/>
    <property name="brightness-on-battery" type="uint" value="60"/>
    <property name="hibernate-button-action" type="uint" value="0"/>
    <property name="show-tray-icon" type="int" value="0"/>
    <property name="inactivity-sleep-mode-on-battery" type="int" value="1"/>
    <property name="critical-power-level" type="uint" value="10"/>
  </property>
</channel>
Comment 3 Tim Passingham 2016-05-05 16:49:46 CEST
I found another missing element in the xml file.  'critical-power-level' needs to be added, on my xubuntu 16.04 system at least,otherwise the action does not take place at the right time (if at all).

If I changed the value on the configuration GUI it was saved, but I don't know where, and it didn't take effect.  By adding this element the action now takes place at the specified time.

Does this need to be reported to xubuntu as well (or instead)?

My file is now as below (edited using the Settings Editor, not directly).  Is anything else missing?

<?xml version="1.0" encoding="UTF-8"?>

<channel name="xfce4-power-manager" version="1.0">
  <property name="xfce4-power-manager" type="empty">
    <property name="power-button-action" type="empty"/>
    <property name="lock-screen-suspend-hibernate" type="bool" value="false"/>
    <property name="logind-handle-lid-switch" type="bool" value="false"/>
    <property name="blank-on-ac" type="empty"/>
    <property name="blank-on-battery" type="int" value="10"/>
    <property name="dpms-enabled" type="empty"/>
    <property name="dpms-on-ac-sleep" type="empty"/>
    <property name="dpms-on-ac-off" type="empty"/>
    <property name="dpms-on-battery-sleep" type="uint" value="15"/>
    <property name="dpms-on-battery-off" type="uint" value="20"/>
    <property name="brightness-switch-restore-on-exit" type="int" value="1"/>
    <property name="brightness-switch" type="int" value="0"/>
    <property name="lid-action-on-battery" type="uint" value="1"/>
    <property name="lid-action-on-ac" type="uint" value="0"/>
    <property name="inactivity-on-battery" type="uint" value="29"/>
    <property name="critical-power-action" type="uint" value="3"/>
    <property name="sleep-button-action" type="uint" value="1"/>
    <property name="brightness-on-battery" type="uint" value="60"/>
    <property name="hibernate-button-action" type="uint" value="0"/>
    <property name="show-tray-icon" type="int" value="0"/>
    <property name="inactivity-sleep-mode-on-battery" type="int" value="1"/>
    <property name="critical-power-level" type="uint" value="10"/>
  </property>
</channel>
Comment 4 Tim Passingham 2016-05-05 16:51:15 CEST
Sorry, I added the same issue twice.  The first disappeared and then came back.
Comment 5 Gerold Schellstede 2016-08-03 12:10:17 CEST
Still the same in 1.6.0
Comment 6 Tim Richardson 2016-12-16 19:52:56 CET
I have xfce added to my ubuntu 16.04.1 install. It reports as v 1.4.4

I noticed via the settings editor,  the critical battery level was missing from the XML file, and the GUI showed the default 10%.

As soon as I used the GUI to modify the value to 9%, the setting was created in the XML file.

I did have the battery suspend settings in the XML file already. If they were missing, I guess that they were added by my previous edits to those settings.
Comment 7 Git Bot editbugs 2020-05-27 01:39:53 CEST
-- GitLab Migration Automatic Message --

This bug has been migrated to xfce.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.xfce.org/xfce/xfce4-power-manager/-/issues/17.

Please create an account or use an existing account on one of our supported OAuth providers. 

If you want to fork to submit patches and merge requests please continue reading here: https://docs.xfce.org/contribute/dev/git/start#gitlab_forks_and_merge_requests

Also feel free to reach out to us on the mailing list https://mail.xfce.org/mailman/listinfo/xfce4-dev

Bug #12497

Reported by:
Gerold Schellstede
Reported on: 2016-03-15
Last modified on: 2020-05-27

People

Assignee:
Ali Abdallah
CC List:
6 users

Version

Attachments

Additional information