1 line
1.2 KiB
Plaintext
1 line
1.2 KiB
Plaintext
<!-- SC_OFF --><div class="md"><p>I am working on a pinephone and using light-gtk-greeter. I am trying to make the power button act like it would on an Android or iPhone. If the session is unlocked, press the power button to lock session and turn off display. If the display is off and the button is pressed, turn display on. When the display is off the touchscreen should also be disabled so as not to have the screen pressed while in your pocket. I can use <code>xset -display :0.0 dpms force off</code> when the phone is unlocked. However when I am on the light-gtk-greeter screen the xset command won't work. I think it may have something to do with the greeter being owned by lightdm, I'm not sure.</p> <p>How can I interact with the display while on the greeter screen?</p> </div><!-- SC_ON -->   submitted by   <a href="https://www.reddit.com/user/knownothing58"> /u/knownothing58 </a> <br/> <span><a href="https://www.reddit.com/r/archlinux/comments/r60pjy/how_does_one_turn_display_on_and_off_with_dpms_in/">[link]</a></span>   <span><a href="https://www.reddit.com/r/archlinux/comments/r60pjy/how_does_one_turn_display_on_and_off_with_dpms_in/">[comments]</a></span> |