answered
2020-01-17 10:07:20 +0200
Physically unreliable/broken power key button could perhaps cause something like that i.e. bursts of pressed, released, pressed, released, ... events are emitted instead of a single pressed event followed by a released event.
There is some logic in sfos to mitigate such problems to the extent that these bursts are at least not treated as double/triple/etc presses.
If the misbehavior continues after the you physically lift finger from the button, it could indicate that the button is also susceptible to getting stuck to pressed state.
One easy check would be: If you can't invoke long press power key menu -> problems.
To know for sure, you could check from command line what kind of input events are emitted when power key is pressed - something like:
# install event tracer
devel-su
pkcon refresh
pkcon install mce-tools
# run event tracer
evdev_trace -t
Depending on device type there might be some noise from sensors etc, but with one power key press you should see something like:
/dev/input/event0: 1579247003.826 - 0x01/EV_KEY - 0x074/KEY_POWER - 1
/dev/input/event0: 1579247003.826 - 0x00/EV_SYN - 0x000/SYN_REPORT - 0
# ^ press
/dev/input/event0: 1579247004.120 - 0x01/EV_KEY - 0x074/KEY_POWER - 0
/dev/input/event0: 1579247004.120 - 0x00/EV_SYN - 0x000/SYN_REPORT - 0
# ^ release
[If there is too much noise to make sense of the activity, you can limit the trace only to the input device dealing with power key events. For example in the above listing the events are emitted from /dev/input/event0 -> using "evdev_trace -t 0" reports events only from that input device.]
Hi, @water, welcome to TJC.
When you post a question, please try to use the tag system. You can then include the device type you are using (Jolla, XperiaX, etc) and also the version of your current OS (example; 3.2.1.12). The more information you can give first off narrows down the comments like mine and possibly leads to quicker help or at least a diagnosis from which a fix could be formulated, either by end-users like us, or Jolla see a problem and issue a fix on next OS update.
As you are low on karma points, if you leave a comment below on your device type, os version, etc, I can update your tags for you.
Spam Hunter ( 2020-01-16 13:55:40 +0200 )editDear @Edz Thanks your advice. I will try it.Thanks.
water ( 2020-01-17 13:25:42 +0200 )edit@water All display wake ups should be logged, so inspecting system journal might shed some light on what is going on.
spiiroin ( 2020-01-17 15:09:44 +0200 )editDear @Edz Where can I see system journal?
water ( 2020-01-18 02:49:34 +0200 )edit