You are not logged in.

#1 2014-01-23 10:40:22

akspecs
Member
Registered: 2012-02-11
Posts: 179

[UNRESOLVED] [cinnamon] does not hibernate when battery is critical

Hey.

As the title states, my cinnamon DE does not hibernate when my laptop reaches the critical action level.  If it's of any relevance it's a Thinkpad X1 Carbon.  I don't have acpid and pm-utils installed - but hibernate works fine without these.

Manually, I can tell my system to hibernate both through the systemd systemctl hibernate command and the cinnamon GUI hibernate option in the shutdown menu.  Hibernate works.  The setting in the cinnamon power settings menu does not.  I want my laptop to hibernate when it reaches a critical state by my definition (something like 4 minutes and 20 seconds of battery left, and I want the critical warning to appear at 5 minutes to go).

I've gone through dconf to org.cinnamon.settings-daemon.plugins.power and made sure that my critical-battery-action is indeed hibernate and I've even modified the time-action, time-critical, time-low settings.  All of these settings appear to have modified correctly, other than the time-action setting (or the critical-battery-action setting) because I've tested by waiting for my battery to get to a critically low state (as by my definition, with 5 minutes left i.e. 300 seconds) and have had the critically low warning appear exactly with 5 minutes of battery left.  But after the 5 minute mark, after receiving the critical battery on screen notification the device does not hibernate itself unless I manually tell it to through the gui or terminal.  For the sake of the test I did nothing until my computer shut itself off with practically no battery left.

For the record, cinnamon correctly handles sleep when I close the lid after disabling it in /etc/systemd/logind.conf (cinnamon sleeps on close lid with only battery, and does nothing on power).

I've also tried making a udev rule but I think I'm too much of a noob.  A udev rule test touching/writing a file in /tmp didn't work as I had expected.  Does this look right?

# Hibernate the system when battery level drops to 2%
SUBSYSTEM=="power_supply", ATTR{status}=="Discharging", ATTR{capacity}=="2", RUN+="/usr/bin/systemctl hibernate"

Any advice would be greatly appreciated.

Last edited by akspecs (2014-02-27 18:56:42)

Offline

#2 2014-02-02 01:11:14

Geomancer
Member
Registered: 2014-02-02
Posts: 2

Re: [UNRESOLVED] [cinnamon] does not hibernate when battery is critical

I have no idea what's up with cinnamon's power settings but I'm going through the same thing. One workaround that I found in order to enable hibernate is to install and configure laptop mode tools and acpid.

Edit: Ignore this post, I think I've figured out how to fix the issue and will do a clean install to ensure I've got it right later. I'll post again with my method.

Last edited by Geomancer (2014-02-02 01:20:59)

Offline

#3 2014-02-02 23:24:17

akspecs
Member
Registered: 2012-02-11
Posts: 179

Re: [UNRESOLVED] [cinnamon] does not hibernate when battery is critical

Geomancer wrote:

I think I've figured out how to fix the issue and will do a clean install to ensure I've got it right later. I'll post again with my method.

  I would really appreciate it.

Last edited by akspecs (2014-02-02 23:24:40)

Offline

#4 2014-02-04 10:09:57

Geomancer
Member
Registered: 2014-02-02
Posts: 2

Re: [UNRESOLVED] [cinnamon] does not hibernate when battery is critical

My apologies but my attempts fell through, I managed to get cinnamon using an interactive menu by killing systemd-logind but I couldn't manage to get it working properly. The method above of hibernating by using laptop-tools and acpid does work if you do want to use it as a temporary fix. I'll keep researching this and if I do manage to stumble across anything I will make sure to post it here.

Offline

Board footer

Powered by FluxBB