You are not logged in.

#1 2018-11-26 16:44

jschall
Member
Registered: 2018-09-16
Posts: 51

Pinebook - Display stays on with lid closed

New 1080p Pinebook, running Q4OS/TDE from the EMMC. Logged in as administrator.

When I close the lid (without logging out) nothing happens. The display stays on, and eventually the screensaver starts.

How can I configure Q4OS to turn off the display when I close the lid?

I decided to try with a different distro - I booted to AOSC/MATE from the microSD card, and LO! - when I slide the fridge-door magnet beside the Back Space/Right Bracket keys (where the Hall-effect lid switch is located), the screen turns off, and I get to the AOSC Login screen. Same when I close the lid.

There is something about my Q4OS/TDE installation that is preventing the lid switch from functioning.

Offline

#2 2018-11-27 18:44

q4osteam
Q4OS Team
Registered: 2015-12-06
Posts: 4,501
Website

Re: Pinebook - Display stays on with lid closed

We will take a look on that and report back, thanks for the report.

Offline

#3 2018-11-28 20:56

q4osteam
Q4OS Team
Registered: 2015-12-06
Posts: 4,501
Website

Re: Pinebook - Display stays on with lid closed

jschall wrote:

There is something about my Q4OS/TDE installation that is preventing the lid switch from functioning.

Yes, we can confirm a bug, that prevents lid switch from functioning properly. As we could find out, the issue lies in the Debian "Systemd" manager. The command "/lib/systemd/systemd-logind" doesn't detect Pinebook lid switch events at all for Debian Stretch based distros. The AOSC is based on Ubuntu, so it's the difference. Unfortunately, fixing this bug is quite complicated, it would involve low level systemd correction. We will add it into our internal task list and try to resolve, or at least workaround, it until an official fix will be available.

Offline

#4 2018-12-01 13:47

jschall
Member
Registered: 2018-09-16
Posts: 51

Re: Pinebook - Display stays on with lid closed

Thank you for that explanation, @q4osteam.

Q4OS is currently using systemd version 232, while version 237 is available on KDE Neon. KDE Neon detects the lid switch.

Do you think updating systemd would correct this problem for Q4OS?

Offline

#5 2018-12-01 13:54

q4osteam
Q4OS Team
Registered: 2015-12-06
Posts: 4,501
Website

Re: Pinebook - Display stays on with lid closed

Yes, you could try to ugrade "systemd" package from Debian Stretch backports repository, it's a clean way to get more recent packages version, see https://backports.debian.org/Instructions/ . Please report back, if possible.

Offline

#6 2018-12-05 09:25

q4osteam
Q4OS Team
Registered: 2015-12-06
Posts: 4,501
Website

Re: Pinebook - Display stays on with lid closed

We have found a solution, so this bug should be fixed within the next Q4OS for Pinebook image revision.

Offline

#7 2018-12-05 16:17

jschall
Member
Registered: 2018-09-16
Posts: 51

Re: Pinebook - Display stays on with lid closed

@q4osteam - Thanks for that link.

I need a bit of coaching. The instructions say:

"For stretch add this line

deb http://ftp.debian.org/debian stretch-backports main

to your sources.list".

Where can I find MY sources.list file? Catfish finds many of them on my Q4OS Pinebook installation.

Offline

#8 2018-12-05 20:30

q4osteam
Q4OS Team
Registered: 2015-12-06
Posts: 4,501
Website

Re: Pinebook - Display stays on with lid closed

You need to run the command:
$ echo 'deb http://ftp.debian.org/debian stretch-backports main' | sudo tee /etc/apt/sources.list.d/debianbackports.list
It will add backports repository into the "/etc/apt/sources.list.d/debianbackports.list" file.

Offline

#9 2018-12-06 17:54

jschall
Member
Registered: 2018-09-16
Posts: 51

Re: Pinebook - Display stays on with lid closed

I did that, then ran apt-get update and reboot.

Synaptic says systemd is still version 232.

I look forward to your solution.

Offline

#10 2018-12-06 20:06

Dai_trying
Member
From: UK
Registered: 2015-12-14
Posts: 2,992

Re: Pinebook - Display stays on with lid closed

If you want to use a backport package you will need to install it specifically, ie

sudo apt -t stretch-backports install systemd

Offline

#11 2018-12-06 21:17

jschall
Member
Registered: 2018-09-16
Posts: 51

Re: Pinebook - Display stays on with lid closed

Thank you, @Dai_trying.

systemd is now up-to-date, version 239.

But it didn't fix the problem - the display still stays on with the lid closed.

@q4osteam has found a solution for inclusion in a future release.

Offline

#12 2018-12-06 22:09

Dai_trying
Member
From: UK
Registered: 2015-12-14
Posts: 2,992

Re: Pinebook - Display stays on with lid closed

Maybe the devs will release an update that will solve this for you, also did you reboot after applying the upgrade?

Offline

#13 2018-12-07 08:31

q4osteam
Q4OS Team
Registered: 2015-12-06
Posts: 4,501
Website

Re: Pinebook - Display stays on with lid closed

Yes, the lid close issue will be fixed within the next Q4OS release.

@jschall
You should also upgrade "udev" package:
$ sudo apt -t stretch-backports --purge --reinstall install udev

Offline

#14 2018-12-07 21:58

jschall
Member
Registered: 2018-09-16
Posts: 51

Re: Pinebook - Display stays on with lid closed

Thank you for that information, @q4osteam.

I updated udev to 239 and rebooted.

Good news! The lid switch now SORT OF works!

Now, if I close  the lid very slowly, the Pinebook SOMETIMES suspends.

Same thing if I hover the fridge magnet above the Hall sensor beside the"]" key, it goes into suspend.

What do you think of that?

Offline

Board footer

Powered by FluxBB