OESF Portables Forum
Model Specific Forums => Gemini PDA => Gemini PDA - Linux => Topic started by: Eric BF on July 28, 2018, 04:19:18 am
-
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 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:
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 journalctl -fa
the ream of output is incredible and unlike any other Debian system I have ever used!
-
Have you tried using another key to wake the screen, like Shift?
-
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.
-
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:
(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 (https://github.com/gemian/repowerd/commit/a629960a0d52d3a006899ad145f2eb1eed9bf843) 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.