PINE64
Lid switch not working - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: Pinebook (https://forum.pine64.org/forumdisplay.php?fid=76)
+--- Forum: General Discussion on Pinebook (https://forum.pine64.org/forumdisplay.php?fid=77)
+--- Thread: Lid switch not working (/showthread.php?tid=6876)



Lid switch not working - jschall - 11-25-2018

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 test to see if the lid switch is actually working?


RE: Lid switch not working - Luke - 11-25-2018

Its a hall switch, so use a magnet.


RE: Lid switch not working - jschall - 11-25-2018

@Luke: Thanks for the reply .

I know what a Hall switch is.

I have some fridge-door magnets.

Where should I try to turn off the screen with the magnet?

I tried with 4 fridge-door magnets in the corners, but the display didn't turn off.


RE: Lid switch not working - Luke - 11-25-2018

The switch is located on the daughterboard, just over the SD and USB port. So try the magnet there instead.


RE: Lid switch not working - jschall - 11-25-2018

Nope. Nada. I moved a fridge magnet along the casing beside the right side of the keyboard.

Thanks for the suggestion, Luke.

I do note that there are four magnets two in the top corners, with polarity "up", and two in the bottom corners, with polarity "down". But holding a magnet near them doesn't trigger the switch.


RE: Lid switch not working - jschall - 11-26-2018

So, 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, the screen turns off, and I get to the AOSC Login screen.

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


RE: Lid switch not working - Luke - 11-26-2018

(11-26-2018, 09:21 AM)jschall Wrote: So, 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, the screen turns off, and I get to the AOSC Login screen.

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

Please report it to Q4OS.


RE: Lid switch not working - jschall - 11-29-2018

I reported to Q4OS Support. There is a bug.

q4osteam wrote:

"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."


RE: Lid switch not working - cvmiller - 11-30-2018

Hmm, I think this has been fixed in later implementations of systemd. For example, I am running systemd v237 on KDE Neon, and it sleeps just fine with the lid closed (unless you plug it in, then it wakes up).

You can see what version of systemd you are using by typing in a terminal
/lib/systemd/systemd --version

When I tried Q4OS, about 2 weeks ago, it was using systemd v232, which is kind of old.


RE: Lid switch not working - jschall - 12-01-2018

Thank you, @cvmiller. That could be the problem.