You are not logged in.

#1 2013-04-18 14:32:38

krovisser
Member
Registered: 2013-04-18
Posts: 31

Disable sleep on laptop lid close

Hi,

Arch convert, coming from Gentoo. I installed Arch linux+XFCE on my old Dell laptop. I use it for tuning my car, and like to save battery power and space by closing the lid and tucking the laptop away while datalogging.

With Gentoo I had it set with xfce4-power-manager to just turn off the LCD instead of going to sleep. With Arch however, something seems to be ignoring these settings and making the system sleep anyway.

I have not enabled acpid. Should I? How can I tell what listener is triggering the sleep?

Offline

#2 2013-04-18 14:40:24

TheHebes
Member
From: New England
Registered: 2011-07-07
Posts: 138

Re: Disable sleep on laptop lid close

I would assume systemd is controlling everything. Have you looked at this?

https://wiki.archlinux.org/index.php/Sy … management

Try poking around in that file and see what happens.


Laptops:
MSI GS60 Ghost
Asus Zenbook Pro UX501VW
Lenovo Thinkpad X120e

Offline

#3 2014-03-02 16:25:19

krovisser
Member
Registered: 2013-04-18
Posts: 31

Re: Disable sleep on laptop lid close

I had to reinstall on another laptop, and couldn't remember the trick. The following pages are more helpful than the Arch Wiki:

http://www.freedesktop.org/software/sys … .conf.html

Basically, edit /etc/systemd/logind.conf so that systemd doesn't do anything:

HandleLidSwitch=ignore

Also:

http://unix.stackexchange.com/questions … laptop-lid

Last edited by krovisser (2014-03-02 16:25:37)

Offline

#4 2014-03-02 17:14:55

Raynman
Member
Registered: 2011-10-22
Posts: 1,539

Re: Disable sleep on laptop lid close

The info is still on the wiki, only now at https://wiki.archlinux.org/index.php/Po … th_systemd

But it can't hurt to remind people that you can learn a lot from man pages (online or offline).

Offline

Board footer

Powered by FluxBB