We have moved to a new Sailfish OS Forum. Please start new discussions there.
2

[Bug]automatically turns on and off the screen

asked 2020-01-16 00:27:42 +0200

water gravatar image

updated 2020-01-17 13:34:07 +0200

I pressed the power button. After that, the smartphone automatically turns on and off the screen. it is sometimes happen, and it is happening yet. about 3 minute black screen, and 3 seconds light screen, and black screen……or about 5 minute black screen, and 3 seconds light screen….. This will last forever. Why is this?

Thank you.

About product Sailfish OS 3.2 Xperia 10 - Dual SIM

edit retag flag offensive close delete

Comments

1

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 )edit
1

Dear @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 )edit

Dear @Edz Where can I see system journal?

water ( 2020-01-18 02:49:34 +0200 )edit

1 Answer

Sort by » oldest newest most voted
1

answered 2020-01-17 10:07:20 +0200

spiiroin gravatar image

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.]

edit flag offensive delete publish link more
Login/Signup to Answer

Question tools

Follow
5 followers

Stats

Asked: 2020-01-16 00:27:42 +0200

Seen: 300 times

Last updated: Jan 17 '20