The screen rotates on close

Overview Forums Pocket-Kali The screen rotates on close

Viewing 5 reply threads
  • Author
    Posts
    • #12879
      bolt
      Participant

      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 🙂

    • #12880
      bolt
      Participant

      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.

    • #12882
      Re4son
      Keymaster

      Great find.
      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.

      Many thanks,
      Re4son

    • #12883
      bolt
      Participant

      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:
      https://dhampir.no/stuff/gpd_pocket/screen-watcher/gpd-screen-watcher
      I use this to start it at login, from /root/.config/autostart/
      https://dhampir.no/stuff/gpd_pocket/screen-watcher/gpd-screen-watcher.desktop

      Public domain, if anyone wants to use them.

      I’ll probably spew out more of these on my blog

    • #12884
      Re4son
      Keymaster

      Awesome stuff. Thanks for sharing.

    • #12885
      bolt
      Participant

      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.

Viewing 5 reply threads
  • You must be logged in to reply to this topic.