OESF Portal | OESF Forum | OESF Wiki | LinuxPDA | #planetgemini chat on matrix.org | #gemini-pda chat on Freenode | #zaurus and #alarmz chat on Freenode | ELSI (coming soon) | Ibiblio

IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> What happens when screen re-awakens?
Eric BF
post Jul 28 2018, 12:19 AM
Post #1





Group: Members
Posts: 77
Joined: 25-June 18
Member No.: 824,997



Hello,

I'm using Debian on the Gemini but with stumpwm in lieu of lxqt. The nice thing about stumpwm is that it is completely keyboard driven and doesn't waste screen space on frivolous things like icons etc. :-)

I have
CODE
xset s 60
so that my screen blanks after 60 seconds. I don't use a lock screen. When I hit the ESC key to re-awaken the screen, whatever handles this re-awakening resets a number of aspects related to display, including setting the brightness to max, and to the keyboard, such as undoing setting sticky keys. Sticky keys make using the system hand-held much easier. A bit annoying having to reconfigure display and keyboard every time after waking up the system.

My question is simple: where can I find the configuration, if any, for what happens when the power on button is pressed? Some extracts from journalctl:

CODE
Jul 28 00:27:45 gemini kernel: kpd: Power Key generate, pressed=1
Jul 28 00:27:45 gemini kernel: kpd: kpd: (pressed) HW keycode =116 using PMIC
Jul 28 00:27:45 gemini kernel: (pressed) HW keycode powerkey
Jul 28 00:27:45 gemini kernel: [EXTD-HDMI]:hdmi_power_enable
Jul 28 00:27:45 gemini kernel: [EXTD-HDMI]:return in 1080
Jul 28 00:27:45 gemini kernel: DISP/MTKFB [FB Driver] enter late_resume
Jul 28 00:27:46 gemini kernel: ====wys===lcm_poweron=start====
Jul 28 00:27:46 gemini kernel: ====wys===lcm_poweron==end====
Jul 28 00:27:46 gemini kernel: kpd: Power Key generate, pressed=0
Jul 28 00:27:46 gemini kernel: kpd: kpd: (released) HW keycode =116 using PMIC
Jul 28 00:27:46 gemini kernel: ====wys===lcm_resume==end====
Jul 28 00:27:46 gemini kernel: DISP/MTKFB [FB Driver] leave late_resume
Jul 28 00:27:46 gemini kernel: [VcoreFS]SCREEN ON
Jul 28 00:27:46 gemini kernel: [PWM] backlight is on (825), ddp_pwm power:(1)


thanks,
eric

PS - anybody have any idea if it is possible to reduce the amount of logging this system does? If you do
CODE
journalctl -fa
the ream of output is incredible and unlike any other Debian system I have ever used!
Go to the top of the page
 
+Quote Post
dumas
post Jul 28 2018, 03:17 AM
Post #2





Group: Members
Posts: 2
Joined: 4-May 18
Member No.: 822,106



Have you tried using another key to wake the screen, like Shift?
Go to the top of the page
 
+Quote Post
Eric BF
post Jul 28 2018, 10:45 AM
Post #3





Group: Members
Posts: 77
Joined: 25-June 18
Member No.: 824,997



QUOTE(dumas @ Jul 28 2018, 11:17 AM) *
Have you tried using another key to wake the screen, like Shift?

Strangely enough, screen blanking seems to put the system into a state where only the ESC key wakes it up. Not what I expected.

And even more strangely, the ESC key is tansmitted to the currently active window which can sometimes have unexpected results!

So screen blanking, which is what I would expect from my xset setting, is acting like a cross between screen blanking and some type of sleep mode. Not a suspend mode as I can log in to the Gemini from another system via ssh either through a wifi connection or through the USB C connection.
Go to the top of the page
 
+Quote Post
Eric BF
post Jul 29 2018, 12:05 AM
Post #4





Group: Members
Posts: 77
Joined: 25-June 18
Member No.: 824,997



QUOTE(dumas @ Jul 28 2018, 11:17 AM) *
Have you tried using another key to wake the screen, like Shift?

As noted above, no other key is active when the system is asleep. However, this is not quite true: the silver button on the right of the unit is awake. I can bind this to whatever I want (in stumpwm) so I can use this to not only wake the system up but also reset the various aspects I want (brightness, sticky keys). For instance, in stumpwm, I can set the key as follows:

CODE
(define-key *top-map* (kbd "XF86Send") "exec sh SOMEFILE")


as the silver key sends the XF86Send key event to the X server.

As an aside, in my exploration of this issue, I have found the relevant code for what happens when the system goes to sleep and wakes up. This diff shows the actual commands executed (xrandr and xset). I am not sure why the commands used reset the sticky key setting but the brightness reset is probably to be expected.
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 8th December 2019 - 02:42 AM