[4.3.0.12] Power button stops working and screen stays on

REPRODUCIBILITY (% or how often): Happened about once a day, now after a call and a Messenger call.
BUILD ID = OS VERSION (Settings > About product): 4.3.0.12
HARDWARE (XA2, X10, X10 II, …): X10
UI LANGUAGE: English
REGRESSION: (compared to previous public release: Yes, No, ?): Yes

DESCRIPTION:

Power button does not react. Can wakeup with volume keys. Screen does not turn off after timeout.

PRECONDITIONS:

STEPS TO REPRODUCE:

EXPECTED RESULT:

ACTUAL RESULT:

ADDITIONAL INFORMATION:

dmesg:
[89682.396379] ipa ipa_inc_acquire_wakelock:3494 client enum 2 mask already set.
ref cnt = 6
[89685.201486] HTB: quantum of class 10010 is big. Consider r2q change.
[89699.066306] ipa ipa_inc_acquire_wakelock:3494 client enum 1 mask already set.
ref cnt = 2
[89713.543490] ipa ipa_inc_acquire_wakelock:3494 client enum 1 mask already set.
ref cnt = 6
[89726.567501] healthd: battery l=100 v=4235 t=29.0 h=2 st=2 c=-101 chg=u
[89730.355512] ipa ipa_inc_acquire_wakelock:3494 client enum 2 mask already set.
ref cnt = 6
[89733.482110] ipa ipa_inc_acquire_wakelock:3494 client enum 1 mask already set.
ref cnt = 6
[89770.051731] ipa ipa_inc_acquire_wakelock:3494 client enum 2 mask already set.
ref cnt = 6
[89776.289236] ipa ipa_inc_acquire_wakelock:3494 client enum 1 mask already set.
ref cnt = 6
[89778.463443] ipa ipa_inc_acquire_wakelock:3494 client enum 1 mask already set.
ref cnt = 6
[89784.400774] HTB: quantum of class 10010 is big. Consider r2q change.
[89784.486787] HTB: quantum of class 10010 is big. Consider r2q change.
[89786.566696] healthd: battery l=100 v=4242 t=29.0 h=2 st=2 c=-113 chg=u
[89793.169674] HTB: quantum of class 10010 is big. Consider r2q change.
[89799.803313] ipa ipa_inc_acquire_wakelock:3494 client enum 1 mask already set.
ref cnt = 2
[89806.049650] HTB: quantum of class 10010 is big. Consider r2q change.
[89812.057762] HTB: quantum of class 10010 is big. Consider r2q change.
[89815.616415] ipa ipa_inc_acquire_wakelock:3494 client enum 1 mask already set.
ref cnt = 2
[89834.213983] HTB: quantum of class 10010 is big. Consider r2q change.
[89835.011365] HTB: quantum of class 10010 is big. Consider r2q change.
[89846.566701] healthd: battery l=100 v=4252 t=29.0 h=2 st=2 c=-177 chg=u
[89849.564144] HTB: quantum of class 10010 is big. Consider r2q change.
[89863.098895] HTB: quantum of class 10010 is big. Consider r2q change.
[89875.957401] HTB: quantum of class 10010 is big. Consider r2q change.
[89906.566300] healthd: battery l=100 v=4251 t=28.0 h=2 st=2 c=-156 chg=u
[89922.224813] HTB: quantum of class 10010 is big. Consider r2q change.
[89935.082352] HTB: quantum of class 10010 is big. Consider r2q change.
[89942.613853] HTB: quantum of class 10010 is big. Consider r2q change.
[89955.476527] HTB: quantum of class 10010 is big. Consider r2q change.
[89966.564270] healthd: battery l=100 v=4252 t=28.0 h=2 st=2 c=-150 chg=u
[89972.210236] HTB: quantum of class 10010 is big. Consider r2q change.
[89985.086970] HTB: quantum of class 10010 is big. Consider r2q change.
[89991.727714] HTB: quantum of class 10010 is big. Consider r2q change.
[90000.492362] binder: 6623 RLIMIT_NICE not set
[90000.494897] binder: 6781 RLIMIT_NICE not set
[90000.495704] R0: [power@1.3-servi][2151186917908] [21:46:59.044392] wlan: [31
11:I :HDD] wlan_hdd_modules_are_enabled: 851: Modules not enabled, Present statu
s: 3
[90003.398809] HTB: quantum of class 10010 is big. Consider r2q change.
[90014.528391] HTB: quantum of class 10010 is big. Consider r2q change.
[90015.326826] HTB: quantum of class 10010 is big. Consider r2q change.
[90025.451401] ipa ipa_inc_acquire_wakelock:3494 client enum 1 mask already set.
ref cnt = 2
[90026.563477] healthd: battery l=100 v=4252 t=28.0 h=2 st=5 c=-147 chg=u
[90028.187169] HTB: quantum of class 10010 is big. Consider r2q change.
[90028.932324] HTB: quantum of class 10010 is big. Consider r2q change.
[90041.795226] HTB: quantum of class 10010 is big. Consider r2q change.
[90052.853920] ipa ipa_inc_acquire_wakelock:3494 client enum 1 mask already set.
ref cnt = 6
[90054.406841] HTB: quantum of class 10010 is big. Consider r2q change.
[90067.244634] HTB: quantum of class 10010 is big. Consider r2q change.
[90078.289407] HTB: quantum of class 10010 is big. Consider r2q change.
[90086.562622] healthd: battery l=100 v=4245 t=28.0 h=2 st=2 c=-89 chg=u
[90117.419859] HTB: quantum of class 10010 is big. Consider r2q change.
[90118.539145] ipa ipa_inc_acquire_wakelock:3494 client enum 1 mask already set.
ref cnt = 2
[90119.311175] HTB: quantum of class 10010 is big. Consider r2q change.
[90126.431216] HTB: quantum of class 10010 is big. Consider r2q change.
[90129.019297] HTB: quantum of class 10010 is big. Consider r2q change.
[90141.890290] HTB: quantum of class 10010 is big. Consider r2q change.
[90143.406230] HTB: quantum of class 10010 is big. Consider r2q change.
[90146.563031] healthd: battery l=100 v=4252 t=27.0 h=2 st=2 c=-135 chg=u
[90151.772700] ipa ipa_inc_acquire_wakelock:3494 client enum 2 mask already set.
ref cnt = 6
[90153.600468] HTB: quantum of class 10010 is big. Consider r2q change.
[90177.356719] HTB: quantum of class 10010 is big. Consider r2q change.
[90183.685871] ipa ipa_inc_acquire_wakelock:3494 client enum 1 mask already set.
ref cnt = 6
[90186.054711] HTB: quantum of class 10010 is big. Consider r2q change.
[90202.993019] HTB: quantum of class 10010 is big. Consider r2q change.
[90207.265605] healthd: battery l=100 v=4230 t=27.0 h=2 st=5 c=17 chg=u
[90224.699209] HTB: quantum of class 10010 is big. Consider r2q change.
[90237.565314] HTB: quantum of class 10010 is big. Consider r2q change.
[90239.568309] HTB: quantum of class 10010 is big. Consider r2q change.
[90252.438475] HTB: quantum of class 10010 is big. Consider r2q change.
[90254.374448] HTB: quantum of class 10010 is big. Consider r2q change.
[90267.042350] healthd: battery l=100 v=4252 t=27.0 h=2 st=5 c=-141 chg=u
[90267.248340] HTB: quantum of class 10010 is big. Consider r2q change.
[90301.795649] ipa ipa_inc_acquire_wakelock:3494 client enum 1 mask already set.
ref cnt = 6
[90302.041567] HTB: quantum of class 10010 is big. Consider r2q change.
[90318.157745] HTB: quantum of class 10010 is big. Consider r2q change.
[90326.832787] healthd: battery l=100 v=4247 t=27.0 h=2 st=5 c=-94 chg=u
[90365.276538] ipa ipa_inc_acquire_wakelock:3494 client enum 1 mask already set.
ref cnt = 6
[90381.740299] ipa ipa_inc_acquire_wakelock:3494 client enum 1 mask already set.
ref cnt = 6
[90386.569870] healthd: battery l=100 v=4253 t=27.0 h=2 st=5 c=-131 chg=u
[90409.046504] HTB: quantum of class 10010 is big. Consider r2q change.
[90427.925071] HTB: quantum of class 10010 is big. Consider r2q change.
[90438.409913] HTB: quantum of class 10010 is big. Consider r2q change.
[90447.808191] healthd: battery l=100 v=4253 t=26.0 h=2 st=5 c=-133 chg=u
[90468.324293] HTB: quantum of class 10010 is big. Consider r2q change.
[90477.891136] ipa ipa_inc_acquire_wakelock:3494 client enum 1 mask already set.
ref cnt = 2
[90509.041360] healthd: battery l=100 v=4234 t=26.0 h=2 st=5 c=1 chg=u
[90519.085870] HTB: quantum of class 10010 is big. Consider r2q change.
[90534.446695] HTB: quantum of class 10010 is big. Consider r2q change.
[90542.995844] HTB: quantum of class 10010 is big. Consider r2q change.
[90548.937300] HTB: quantum of class 10010 is big. Consider r2q change.
[90566.974711] ipa ipa_inc_acquire_wakelock:3494 client enum 2 mask already set.
ref cnt = 6

Incoming / outgoing calls? Overlapping? Is that “Messenger call” something handled by an Android app?

Whenever there is an incoming call: display is woken up as soon as possible (=proximity sensor not covered), blanking timeouts do not apply, and power key is reserved for silencing the ringing.

The symptoms could perhaps be explained by something like: call state does not change from “incoming” to “active” (or “none”), and/or “power key to silence ringing” not handled correctly in case of android app.

If you can still reproduce the situation: journal content from around power key press time might contain more relevant info.

Messenger (Facebook) is an Android app yes.
Both were missed incoming calls.

Happened again after an incoming answered Messenger call.

Got this from journalctl after pressing power key:

Nov 10 18:46:14 Sailfish mce[2137]: powerkey.c: pwrkey_d
atapipe_keypress_event_cb(): powerkey pressed
Nov 10 18:46:14 Sailfish mce[2137]: powerkey.c: pwrkey_d
atapipe_keypress_event_cb(): powerkey released

This should have been from around the time of the call:

Nov 10 18:28:48 Sailfish mce[2137]: tklock.c: tklock_dat
apipe_uiexception_type_cb(): uiexception_type = none → call
Nov 10 18:28:48 Sailfish kernel: binder: 6479 RLIMIT_NICE not set
Nov 10 18:28:48 Sailfish kernel: binder: 5898 RLIMIT_NICE not set
Nov 10 18:28:48 Sailfish pulseaudio[26612]: E: [pulseaudio] parameters.c: No suc
h mode: null
Nov 10 18:28:48 Sailfish kernel: binder: 5898 RLIMIT_NICE not set
Nov 10 18:28:48 Sailfish kernel: binder: 5898 RLIMIT_NICE not set
Nov 10 18:28:48 Sailfish kernel: binder: 6454 RLIMIT_NICE not set
Nov 10 18:28:48 Sailfish kernel: binder: 5898 RLIMIT_NICE not set
Nov 10 18:28:48 Sailfish lipstick[5427]: [W] unknown:72
file:///usr/share/lipstick-jolla-home-qt5/notifications/NotificationActionRow.
qml:72:19: QML Button: Binding loop detected for property “width”
Nov 10 18:28:48 Sailfish mce[2137]: tklock.c: tklock_dbu
s_notification_beg_cb(): notification begin from name=:1.87 owner=:1.87 pid=5427
uid=100000 gid=999 priv=1 cmd=/usr/bin/lipstick -plugin evdevtouch -plugin evde
vkeyboard:keym
Nov 10 18:28:48 Sailfish mce[2137]: tklock.c: tklock_dat
apipe_uiexception_type_cb(): uiexception_type = call → notif
Nov 10 18:28:48 Sailfish kernel: binder: 6454 RLIMIT_NICE not set
Nov 10 18:28:48 Sailfish kernel: binder: 6454 RLIMIT_NICE not set
Nov 10 18:28:48 Sailfish mce[2137]: modules/proximity.c:
mp_datapipe_set_proximity_sensor_actual(): state: UNDEF → OPEN
Nov 10 18:28:48 Sailfish mce[2137]: tklock.c: tklock_uie xception_rethink(): display state req: ON
Nov 10 18:28:48 Sailfish mce[2137]: modules/display.c: m
dy_display_state_leave(): current display state = POWER_UP
Nov 10 18:28:48 Sailfish mce[2137]: mce-io.c: mce_write_
number_string_to_file(): brightness: can’t flush /sys/class/backlight/panel0-bac
klight/brightness: Invalid argument
Nov 10 18:28:48 Sailfish lipstick[5427]: [D] unknown:0 - unsleepDisplay
Nov 10 18:28:48 Sailfish kernel: dsi-ctrl:[dsi_ctrl_setup_isr] [DSI_0] IRQ 318
registered
Nov 10 18:28:48 Sailfish kernel: dsi_panel_driver_touch

pinctrl_set_state: invalid ‘sde_touch_active’ pinstate
Nov 10 18:28:48 Sailfish kernel: @@@@ panel power on @@@
@
Nov 10 18:28:49 Sailfish kernel: somc_panel_color_manage
r: somc_panel_inject_crtc_overrides (754): Override: Already have original funcs
! Is setup called twice??
Nov 10 18:28:49 Sailfish kernel: somc_panel_color_manage
r: somc_panel_pcc_setup (857): Cannot read uv data: missing command
Nov 10 18:28:49 Sailfish kernel: somc_panel_color_manage
r: somc_panel_pcc_setup (861): u,v is flashed 0.
Nov 10 18:28:49 Sailfish kernel: somc_panel_color_manage
r: somc_panel_colormgr_apply_calibrations: Couldn’t apply PCC calibration
Nov 10 18:28:49 Sailfish kernel: somc_panel_color_manage
r: somc_panel_colormgr_apply_calibrations: Cannot send HSIC calibrationNov 10 18:28:49 Sailfish mce[2137]: modules/display.c: m
dy_brightness_set_level(): active brightness: -1 → 76 (success after 1 failures
)
Nov 10 18:28:49 Sailfish mce[2137]: modules/display.c: m
dy_display_state_enter(): current display state = ON
Nov 10 18:28:50 Sailfish kernel: binder: 5898 RLIMIT_NICE not set
Nov 10 18:28:50 Sailfish kernel: binder: 5898 RLIMIT_NICE not set
Nov 10 18:28:50 Sailfish kernel: binder: 5898 RLIMIT_NICE not set
Nov 10 18:28:50 Sailfish kernel: binder: 5898 RLIMIT_NICE not set
Nov 10 18:28:50 Sailfish kernel: binder: 5898 RLIMIT_NICE not set
Nov 10 18:28:50 Sailfish kernel: binder: 5898 RLIMIT_NICE not set
Nov 10 18:28:50 Sailfish kernel: binder: 5898 RLIMIT_NICE not set
Nov 10 18:28:50 Sailfish kernel: binder: 5898 RLIMIT_NICE not set
Nov 10 18:28:50 Sailfish kernel: binder: 5898 RLIMIT_NICE not set
Nov 10 18:28:50 Sailfish kernel: binder: 5898 RLIMIT_NICE not set
Nov 10 18:28:50 Sailfish kernel: binder: 5898 RLIMIT_NICE not set

Switched to Messenger Lite and that has not so far caused this issue.