You are not logged in.

#1 2018-09-29 18:04:43

smoneck
Member
Registered: 2014-05-14
Posts: 105

[SOLVED] Screen does not turn off when lid is closed

journal logs:

> systemd-logind[500]: Lid opened.
> systemd-logind[500]: Lid closed.

Any ideas? Thanks a lot!

Last edited by smoneck (2018-09-30 20:28:50)

Offline

#2 2018-09-30 02:55:58

Docbroke
Member
From: India
Registered: 2015-06-13
Posts: 1,433

Re: [SOLVED] Screen does not turn off when lid is closed

This feature may not be provided by your desktop environment, or you may have to activate it. If you are not running any DE you may have to setup it using additional tools.

Offline

#3 2018-09-30 11:10:23

smoneck
Member
Registered: 2014-05-14
Posts: 105

Re: [SOLVED] Screen does not turn off when lid is closed

This is not a DE issue. It should even work on the Arch image booted from USB. And it does for another laptop.
I rather suspect that udev is not properly catching the event. Anyone any ideas on where this is (to be) configured?

Last edited by smoneck (2018-09-30 11:14:41)

Offline

#4 2018-09-30 11:18:05

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: [SOLVED] Screen does not turn off when lid is closed

Are you using a DE at all?

Some of them over-ride the settings in logind.conf.


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#5 2018-09-30 11:25:13

smoneck
Member
Registered: 2014-05-14
Posts: 105

Re: [SOLVED] Screen does not turn off when lid is closed

Slithery wrote:

Are you using a DE at all?

No, I directly boot into i3. And afaik logind is not responsible for switching the screen of ... or at least that how I interpret the options of HandleLidSwitch.

Offline

#6 2018-09-30 20:28:34

smoneck
Member
Registered: 2014-05-14
Posts: 105

Re: [SOLVED] Screen does not turn off when lid is closed

Fixed it now. Since I don't know a way to create my custom systemd-logind actions for HandleLidSwitch, I utilized acpid.

/etc/acpi/handler.sh

button/lid)
    case "$3" in
        close)
            logger 'LID closed'
            XAUTHORITY=/home/USERNAME/.Xauthority DISPLAY=:0 xset dpms force off
            ;;
        open)
            logger 'LID opened'
            XAUTHORITY=/home/USERNAME/.Xauthority DISPLAY=:0 xset dpms force on
            ;;
        *)
            logger "ACPI action undefined: $3"
            ;;

Offline

Board footer

Powered by FluxBB