March 7, 2018 at 5:50 am #12879
I disabled sleeping on lid close on my GPD Pocket, so I could keep scanning or whatever while it’s in my pocket, but when I close it, the screen rotates to the default orientation (top towards left side), messing up my window positions. It rotates back when I open it, but the windows don’t all end up where they were. How can I stop it rotating? I tried setting a custom rotation with xrandr, but closing and re-opening will always reset it.
Oh, and the forum link at https://whitedome.com.au/re4son/pocket-kali/ is wrong 🙂
March 7, 2018 at 7:06 am #12880
Answering my own question here, the problem is the UPower service, which can be either disabled by doing “systemctl mask upower”, or the IgnoreLid option can be set to true in /etc/UPower/UPower.conf
I recommend the latter (IgnoreLid), as UPower is required for gnome to get a battery indicator in the GUI.
March 7, 2018 at 8:18 am #12882Re4sonKeymaster
I usually just go to power settings, disable “turn off screen when lid is closed” and dial down the screen brightness. I’ll try you trick next.
Thanks for letting me know about the dead link – I’ve fixed it.
March 7, 2018 at 8:59 am #12883
To make the screen actually turn off, and stay that way even if I poke the machine, put it in the case with the magnetic flap, or otherwise disturb the hall sensor (I have a magnet that will trigger the hall sensor about 30cm from the laptop), I wrote a small script that checks /proc/acpi/button/lid/LID0/state and runs xset dpms on change, as well as every 10 seconds to handle the aforementioned interference.
It’s available here:
I use this to start it at login, from /root/.config/autostart/
Public domain, if anyone wants to use them.
I’ll probably spew out more of these on my blog…
March 8, 2018 at 8:09 am #12884Re4sonKeymaster
Awesome stuff. Thanks for sharing.
March 8, 2018 at 9:42 am #12885
Likewise. I went from carrying my GPD Pocket once in a while to it being an essential piece of my everyday gear after getting Kali on it. Love your work.
- You must be logged in to reply to this topic.