You are not logged in.

#1 2016-02-03 10:50:37

f3flight
Member
Registered: 2015-03-04
Posts: 27

[SOLVED] Systemd - substitute "suspend" with "freeze"

Hi all!

I own a Broadwell-U tablet Dell Venue 11 Pro 7140 and have Arch installed on it. The thing is, much like Surface Pro 3, this tablet does not support suspend-to-RAM (not even in Windows). I know that "Connected Standby" is not implemented in Linux, but there is "freeze" state which is at least something and may help conserve battery somewhat compared to leaving the machine running.

My question is - is it possible to completely substitute suspend state activities with "freeze"? Like maybe editing systemd units/targets? I can disable suspend everywhere but then I will have to always manually trigger freeze - instead I would like to substitute suspend with freeze.
Any help much appreciated!

Last edited by f3flight (2016-02-03 20:50:16)

Offline

#2 2016-02-03 11:44:12

progandy
Member
Registered: 2012-05-17
Posts: 4,969

Re: [SOLVED] Systemd - substitute "suspend" with "freeze"

I think you can override the command run by systemd-suspend.service.


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

#3 2016-02-03 14:43:57

f3flight
Member
Registered: 2015-03-04
Posts: 27

Re: [SOLVED] Systemd - substitute "suspend" with "freeze"

progandy wrote:

I think you can override the command run by systemd-suspend.service.

Thank you, I have done that now and looks like it sort of works, but instead of suspending the tablet ends up on lock screen. Then it keeps switching the screen off and on. There must be something else to modify, not just overriding ExecStart for systemd-suspend.service.
This does not happen if I just execute "echo freeze > /sys/power/state".

Last edited by f3flight (2016-02-03 14:52:02)

Offline

#4 2016-02-03 17:12:44

Xabre
Member
From: Serbia
Registered: 2009-03-19
Posts: 739

Re: [SOLVED] Systemd - substitute "suspend" with "freeze"

man systemd-sleep.conf

Offline

#5 2016-02-03 20:23:24

f3flight
Member
Registered: 2015-03-04
Posts: 27

Re: [SOLVED] Systemd - substitute "suspend" with "freeze"

Xabre wrote:

man systemd-sleep.conf

Thanks, I'll read that doc and update the thread.

Last edited by f3flight (2016-02-03 20:25:33)

Offline

#6 2016-02-03 20:49:09

f3flight
Member
Registered: 2015-03-04
Posts: 27

Re: [SOLVED] Systemd - substitute "suspend" with "freeze"

The man contained exactly what was needed. I have created /etc/systemd/sleep.conf with the same content as in the man:

[Sleep]
SuspendState=freeze

and now I have freeze instead of suspend, and it works well. I have removed the unnecessary override for systemd-suspend.service. Thanks so much! Marking as solved.

Last edited by f3flight (2016-02-03 20:49:58)

Offline

Board footer

Powered by FluxBB