ubports / ubuntu-touch

Ubuntu Touch's issue inbox is now migrated to GitLab.
https://gitlab.com/ubports/ubuntu-touch
1.28k stars 110 forks source link

Device keeps waking every few minutes #291

Open Arc676 opened 6 years ago

Arc676 commented 6 years ago

Steps to reproduce

  1. Leave the device alone for a while.

Expected behavoir

The device should remain in suspend mode with the screen off.

Actual behavior

Every few minutes the device wakes to the lock screen.

Logfiles and additional information

I have read that apps requesting root access can wake the device. I'm not sure if its relevant, but I noticed that Terminal now requests my password when I open it. As far as I can remember this did not happen until I changed my password. I tried changing my password back to the one I set during installation but this did not help.

Output of dmesg near the waking:

[ 2213.043823] bq27541_get_psp current = -123 mA
[ 2213.049102] bq27541_get_psp voltage_now= 4185000 uV
[ 2213.052276] bq27541_get_psp status: Not charging ret= 0x0181
[ 2213.053802] bq27541_get_psp current = -123 mA
[ 2213.054473] bq27541_get_psp voltage_now= 4185000 uV
[ 2213.055114] bq27541_get_capacity = 96% ret= 95
[ 2213.055786] bq27541_get_psp temperature= 221 (0.1\xffffffa2XC)
[ 2213.881652] wake lock alarm_rtc, expired
[ 2213.881958] suspend: enter suspend
[ 2213.881988] PM: suspend entry 2017-10-09 09:44:07.145838643 UTC
[ 2213.882049] PM: Preparing system for mem sleep
[ 2213.882141] PM: Syncing filesystems...
[ 2213.951293] Freezing user space processes ... (elapsed 0.001 seconds) done.
[ 2213.958374] sync done.
[ 2214.199493] Freezing remaining freezable tasks ... (elapsed 0.003 seconds) done.
[ 2214.203552] PM: Entering mem sleep
[ 2214.203582] Suspending console(s) (use no_console_suspend to debug)
[ 2214.212799] msm_fb_ext_suspend: Turning off HPD circuitry
[ 2214.215820] smb345_suspend+
[ 2214.215850] smb345_suspend-
[ 2214.241210] PM: suspend of devices complete after 33.966 msecs
[ 2214.242736] PM: late suspend of devices complete after 1.464 msecs
[ 2214.246337] active wake lock alarm_rtc, time left 97
[ 2214.246337] power_suspend_late return -11
[ 2214.246429] dpm_run_callback(): power_suspend_late+0x0/0x58 returns -11
[ 2214.246459] PM: Device power.0 failed to suspend noirq: error -11
[ 2214.247924] PM: noirq resume of devices complete after 1.464 msecs
[ 2214.251190] PM: early suspend of devices complete after 1.464 msecs
[ 2214.251220] PM: Some devices failed to power down
[ 2214.252807] smb345_resume+
[ 2214.252838] smb345_resume-
[ 2214.253997] msm_fb_ext_resume: Turning on HPD circuitry
[ 2214.259490] PM: resume of devices complete after 8.239 msecs
[ 2214.260711] PM: Finishing wakeup.
[ 2214.260711] Restarting tasks ... done.
[ 2214.295745] PM: suspend exit 2017-10-09 09:44:07.559626488 UTC
[ 2214.295776] suspend: exit suspend, ret = -11 (2017-10-09 09:44:07.559657006 UTC)
[ 2214.295776] active wake lock alarm_rtc, time left 92
[ 2214.295776] suspend: abort suspend
[ 2214.352081] bq27541_get_psp status: Not charging ret= 0x0181
[ 2214.353027] bq27541_get_psp status: Not charging ret= 0x0181
[ 2214.354675] bq27541_get_psp voltage_now= 4175000 uV
[ 2214.355255] bq27541_get_capacity = 96% ret= 95
[ 2214.355804] bq27541_get_psp temperature= 221 (0.1\xffffffa2XC)
[ 2214.356903] bq27541_get_psp current = -90 mA
[ 2214.358337] bq27541_get_capacity check capacity, cap = 385, smb_retry = 0
[ 2214.358734] bq27541_get_psp status: Not charging ret= 0x0d68
[ 2214.359924] bq27541_get_capacity check capacity, cap = 4175, smb_retry = 1
[ 2214.360656] bq27541_get_psp voltage_now= 4175000 uV
[ 2214.361358] bq27541_get_capacity = 96% ret= 95
[ 2214.361907] bq27541_get_capacity = 91% ret= 90
[ 2214.362609] bq27541_get_psp voltage_now= 2951000 uV
[ 2214.363067] bq27541_get_psp error: temperature ret=4175, old_temp=221 
[ 2214.363067] bq27541_get_psp temperature= 221 (0.1\xffffffa2XC)
[ 2214.364929] bq27541_get_psp current = -90 mA
[ 2214.365417] bq27541_get_psp current = 2385 mA
[ 2214.366577] bq27541_get_psp error: temperature ret=385, old_temp=221 
[ 2214.366607] bq27541_get_psp temperature= 221 (0.1\xffffffa2XC)
[ 2214.367065] bq27541_get_psp status: Not charging ret= 0x0d68
[ 2214.367797] bq27541_get_psp status: Discharging ret= 0x104f
[ 2214.368499] bq27541_get_psp voltage_now= 2951000 uV
[ 2214.369049] bq27541_get_capacity = 96% ret= 95
[ 2214.370056] bq27541_get_psp temperature= 221 (0.1\xffffffa2XC)
[ 2214.371185] bq27541_get_psp current = -90 mA
[ 2214.372497] bq27541_get_psp status: Not charging ret= 0x0181
[ 2214.373077] bq27541_get_psp voltage_now= 4175000 uV
[ 2214.373626] bq27541_get_capacity = 96% ret= 95
[ 2214.374176] bq27541_get_psp temperature= 221 (0.1\xffffffa2XC)
[ 2214.375305] bq27541_get_psp current = -90 mA
[ 2214.381164] bq27541_get_psp voltage_now= 4175000 uV
[ 2214.383880] bq27541_get_psp status: Not charging ret= 0x0181
[ 2214.385559] bq27541_get_psp current = -90 mA
[ 2214.386260] bq27541_get_psp voltage_now= 4175000 uV
[ 2214.386932] bq27541_get_capacity = 96% ret= 95
[ 2214.387603] bq27541_get_psp temperature= 221 (0.1\xffffffa2XC)
[ 2215.211212] wake lock alarm_rtc, expired
[ 2215.211364] suspend: enter suspend
[ 2215.211395] PM: suspend entry 2017-10-09 09:44:08.475245388 UTC
[ 2215.211456] PM: Preparing system for mem sleep
[ 2215.211547] PM: Syncing filesystems...
[ 2215.283996] Freezing user space processes ... (elapsed 0.001 seconds) done.
[ 2215.294708] sync done.
[ 2215.529663] Freezing remaining freezable tasks ... (elapsed 0.003 seconds) done.
[ 2215.533752] PM: Entering mem sleep
[ 2215.533782] Suspending console(s) (use no_console_suspend to debug)
[ 2215.543151] msm_fb_ext_suspend: Turning off HPD circuitry
[ 2215.546173] smb345_suspend+
[ 2215.546203] smb345_suspend-
[ 2215.572265] PM: suspend of devices complete after 34.851 msecs
[ 2215.573791] PM: late suspend of devices complete after 1.464 msecs
[ 2215.577392] active wake lock alarm_rtc, time left 97
[ 2215.577423] power_suspend_late return -11
[ 2215.577484] dpm_run_callback(): power_suspend_late+0x0/0x58 returns -11
[ 2215.577514] PM: Device power.0 failed to suspend noirq: error -11
[ 2215.579010] PM: noirq resume of devices complete after 1.464 msecs
[ 2215.582183] PM: early suspend of devices complete after 1.464 msecs
[ 2215.582214] PM: Some devices failed to power down
[ 2215.584259] smb345_resume+
[ 2215.584289] smb345_resume-
[ 2215.585449] msm_fb_ext_resume: Turning on HPD circuitry
[ 2215.591827] PM: resume of devices complete after 9.613 msecs
[ 2215.598663] PM: Finishing wakeup.
[ 2215.598663] Restarting tasks ... done.
[ 2215.656738] PM: suspend exit 2017-10-09 09:44:08.920618925 UTC
[ 2215.656768] suspend: exit suspend, ret = -11 (2017-10-09 09:44:08.920649442 UTC)
[ 2215.656768] suspend: too many immediate wakeups, back off
[ 2215.656799] active wake lock alarm_rtc, time left 89
[ 2215.656799] active wake lock suspend_backoff, time left 1000
[ 2215.656799] suspend: abort suspend
[ 2215.680480] bq27541_get_psp status: Not charging ret= 0x0181
[ 2215.681121] bq27541_get_psp status: Not charging ret= 0x0181
[ 2215.681671] bq27541_get_psp voltage_now= 4184000 uV
[ 2215.682250] bq27541_get_capacity = 96% ret= 95
[ 2215.682800] bq27541_get_psp temperature= 221 (0.1\xffffffa2XC)
[ 2215.683929] bq27541_get_psp current = -117 mA
[ 2215.685577] bq27541_get_capacity check capacity, cap = 385, smb_retry = 0
[ 2215.685974] bq27541_get_psp status: Not charging ret= 0x0d68
[ 2215.687194] bq27541_get_capacity check capacity, cap = 4184, smb_retry = 1
[ 2215.687927] bq27541_get_psp voltage_now= 4184000 uV
[ 2215.690093] bq27541_get_capacity = 96% ret= 95
[ 2215.690826] bq27541_get_capacity = 91% ret= 90
[ 2215.691619] bq27541_get_psp voltage_now= 2951000 uV
[ 2215.692138] bq27541_get_psp error: temperature ret=4184, old_temp=221 
[ 2215.692138] bq27541_get_psp temperature= 221 (0.1\xffffffa2XC)
[ 2215.693969] bq27541_get_psp current = -117 mA
[ 2215.694458] bq27541_get_psp current = 2331 mA
[ 2215.695495] bq27541_get_psp error: temperature ret=385, old_temp=221 
[ 2215.695526] bq27541_get_psp temperature= 221 (0.1\xffffffa2XC)
[ 2215.696014] bq27541_get_psp status: Not charging ret= 0x0d68
[ 2215.696807] bq27541_get_psp status: Not charging ret= 0x1058
[ 2215.697509] bq27541_get_psp voltage_now= 2951000 uV
[ 2215.698059] bq27541_get_capacity = 96% ret= 95
[ 2215.698638] bq27541_get_psp temperature= 221 (0.1\xffffffa2XC)
[ 2215.700103] bq27541_get_psp current = -117 mA
[ 2215.701354] bq27541_get_psp status: Not charging ret= 0x0181
[ 2215.701904] bq27541_get_psp voltage_now= 4184000 uV
[ 2215.702484] bq27541_get_capacity = 96% ret= 95
[ 2215.703033] bq27541_get_psp temperature= 221 (0.1\xffffffa2XC)
[ 2215.704162] bq27541_get_psp current = -117 mA
[ 2215.709075] bq27541_get_psp voltage_now= 4184000 uV
[ 2215.712310] bq27541_get_psp status: Not charging ret= 0x0181
[ 2215.713928] bq27541_get_psp current = -117 mA
[ 2215.714599] bq27541_get_psp voltage_now= 4184000 uV
[ 2215.715270] bq27541_get_capacity = 96% ret= 95
[ 2215.716247] bq27541_get_psp temperature= 221 (0.1\xffffffa2XC)
[ 2225.659454] wake lock suspend_backoff, expired
[ 2225.659606] suspend: enter suspend
[ 2225.659667] PM: suspend entry 2017-10-09 09:44:18.923487560 UTC
[ 2225.659698] PM: Preparing system for mem sleep
[ 2225.659790] PM: Syncing filesystems...
[ 2225.697845] Freezing user space processes ... (elapsed 0.007 seconds) done.
[ 2225.716247] sync done.
[ 2225.949493] Freezing remaining freezable tasks ... (elapsed 0.003 seconds) done.
[ 2225.953491] PM: Entering mem sleep
[ 2225.953521] Suspending console(s) (use no_console_suspend to debug)
[ 2225.962829] msm_fb_ext_suspend: Turning off HPD circuitry
[ 2225.965972] smb345_suspend+
[ 2225.966003] smb345_suspend-
[ 2225.990936] PM: suspend of devices complete after 33.752 msecs
[ 2225.992431] PM: late suspend of devices complete after 1.464 msecs
[ 2225.996032] active wake lock alarm_rtc, time left 97
[ 2225.996063] power_suspend_late return -11
[ 2225.996124] dpm_run_callback(): power_suspend_late+0x0/0x58 returns -11
[ 2225.996154] PM: Device power.0 failed to suspend noirq: error -11
[ 2225.997650] PM: noirq resume of devices complete after 1.464 msecs
[ 2226.000823] PM: early suspend of devices complete after 1.525 msecs
[ 2226.000854] PM: Some devices failed to power down
[ 2226.002471] smb345_resume+
[ 2226.002471] smb345_resume-
[ 2226.003631] msm_fb_ext_resume: Turning on HPD circuitry
[ 2226.009063] PM: resume of devices complete after 8.209 msecs
[ 2226.010375] PM: Finishing wakeup.
[ 2226.010406] Restarting tasks ... done.
[ 2226.032714] PM: suspend exit 2017-10-09 09:44:19.296595474 UTC
[ 2226.032714] suspend: exit suspend, ret = -11 (2017-10-09 09:44:19.296595474 UTC)
[ 2226.101257] bq27541_get_psp status: Not charging ret= 0x0181
[ 2226.101898] bq27541_get_psp status: Not charging ret= 0x0181
[ 2226.102447] bq27541_get_psp voltage_now= 4184000 uV
[ 2226.102996] bq27541_get_capacity = 96% ret= 95
[ 2226.103576] bq27541_get_psp temperature= 221 (0.1\xffffffa2XC)
[ 2226.104675] bq27541_get_psp current = -32 mA
[ 2226.106170] bq27541_get_capacity check capacity, cap = 385, smb_retry = 0
[ 2226.106567] bq27541_get_psp status: Discharging ret= 0x0d67
[ 2226.107360] bq27541_get_capacity check capacity, cap = 4184, smb_retry = 1
[ 2226.107757] bq27541_get_psp voltage_now= 4184000 uV
[ 2226.108489] bq27541_get_capacity = 96% ret= 95
[ 2226.108978] bq27541_get_capacity = 91% ret= 90
[ 2226.113677] bq27541_get_psp error: temperature ret=4184, old_temp=221 
[ 2226.113677] bq27541_get_psp temperature= 221 (0.1\xffffffa2XC)
[ 2226.114562] bq27541_get_psp voltage_now= 2951000 uV
[ 2226.116210] bq27541_get_psp current = -32 mA
[ 2226.120056] bq27541_get_psp status: Not charging ret= 0x0181
[ 2226.121215] bq27541_get_psp voltage_now= 4184000 uV
[ 2226.121887] bq27541_get_capacity = 96% ret= 95
[ 2226.123016] bq27541_get_psp temperature= 221 (0.1\xffffffa2XC)
[ 2226.125305] bq27541_get_psp current = -32 mA
[ 2226.126647] bq27541_get_psp status: Not charging ret= 0x0181
[ 2226.127197] bq27541_get_psp voltage_now= 4184000 uV
[ 2226.129089] bq27541_get_capacity = 96% ret= 95
[ 2226.131591] bq27541_get_psp error: temperature ret=65504, old_temp=221 
[ 2226.131591] bq27541_get_psp temperature= 221 (0.1\xffffffa2XC)
[ 2226.135314] bq27541_get_psp current = 3107 mA
[ 2226.136169] bq27541_get_psp current = 2951 mA
[ 2226.137023] bq27541_get_psp error: temperature ret=4184, old_temp=221 
[ 2226.137023] bq27541_get_psp temperature= 221 (0.1\xffffffa2XC)
[ 2226.137786] bq27541_get_psp status: Not charging ret= 0x0181
[ 2226.138824] bq27541_get_psp voltage_now= 4184000 uV
[ 2226.142211] bq27541_get_psp status: Not charging ret= 0x0181
[ 2226.143829] bq27541_get_psp current = -32 mA
[ 2226.144470] bq27541_get_psp voltage_now= 4184000 uV
[ 2226.145202] bq27541_get_capacity = 96% ret= 95
[ 2226.145843] bq27541_get_psp temperature= 221 (0.1\xffffffa2XC)
[ 2226.959411] wake lock alarm_rtc, expired
[ 2226.959533] suspend: enter suspend
[ 2226.959594] PM: suspend entry 2017-10-09 09:44:20.223444854 UTC
[ 2226.959625] PM: Preparing system for mem sleep
[ 2226.959716] PM: Syncing filesystems...
[ 2227.034790] Freezing user space processes ... (elapsed 0.001 seconds) done.
[ 2227.046722] sync done.
[ 2227.279510] Freezing remaining freezable tasks ... (elapsed 0.003 seconds) done.
[ 2227.283538] PM: Entering mem sleep
[ 2227.283569] Suspending console(s) (use no_console_suspend to debug)
[ 2227.292846] msm_fb_ext_suspend: Turning off HPD circuitry
[ 2227.295867] smb345_suspend+
[ 2227.295898] smb345_suspend-
[ 2227.321228] PM: suspend of devices complete after 34.027 msecs
[ 2227.322753] PM: late suspend of devices complete after 1.464 msecs
[ 2227.326354] active wake lock alarm_rtc, time left 97
[ 2227.326385] power_suspend_late return -11
[ 2227.326446] dpm_run_callback(): power_suspend_late+0x0/0x58 returns -11
[ 2227.326477] PM: Device power.0 failed to suspend noirq: error -11
[ 2227.327972] PM: noirq resume of devices complete after 1.434 msecs
[ 2227.331146] PM: early suspend of devices complete after 1.434 msecs
[ 2227.331176] PM: Some devices failed to power down
[ 2227.332763] smb345_resume+
[ 2227.332794] smb345_resume-
[ 2227.333953] msm_fb_ext_resume: Turning on HPD circuitry
[ 2227.339477] PM: resume of devices complete after 8.270 msecs
[ 2227.340759] PM: Finishing wakeup.
[ 2227.340759] Restarting tasks ... done.
[ 2227.374328] PM: suspend exit 2017-10-09 09:44:20.638209257 UTC
[ 2227.374328] suspend: exit suspend, ret = -11 (2017-10-09 09:44:20.638209257 UTC)
[ 2227.374359] active wake lock alarm_rtc, time left 92
[ 2227.374359] suspend: abort suspend
[ 2227.430419] bq27541_get_psp status: Not charging ret= 0x0181
[ 2227.431396] bq27541_get_psp status: Not charging ret= 0x0181
[ 2227.431976] bq27541_get_psp voltage_now= 4177000 uV
[ 2227.432495] bq27541_get_capacity = 96% ret= 95
[ 2227.433044] bq27541_get_psp temperature= 221 (0.1\xffffffa2XC)
[ 2227.436431] bq27541_get_psp current = -81 mA
[ 2227.437957] bq27541_get_psp status: Discharging ret= 0x005f
[ 2227.438385] bq27541_get_capacity = 91% ret= 90
[ 2227.439208] bq27541_get_psp voltage_now= 4177000 uV
[ 2227.443756] bq27541_get_capacity = 96% ret= 95
[ 2227.444305] bq27541_get_psp temperature= 221 (0.1\xffffffa2XC)
[ 2227.444702] bq27541_get_psp voltage_now= 4177000 uV
[ 2227.446533] bq27541_get_psp current = -81 mA
[ 2227.448120] bq27541_get_psp status: Not charging ret= 0x0181
[ 2227.448760] bq27541_get_psp voltage_now= 4177000 uV
[ 2227.449310] bq27541_get_capacity = 96% ret= 95
[ 2227.450225] bq27541_get_psp temperature= 221 (0.1\xffffffa2XC)
[ 2227.451599] bq27541_get_psp current = -81 mA
[ 2227.453613] bq27541_get_psp status: Not charging ret= 0x0181
[ 2227.454254] bq27541_get_psp voltage_now= 4177000 uV
[ 2227.454895] bq27541_get_capacity = 96% ret= 95
[ 2227.455505] bq27541_get_psp temperature= 221 (0.1\xffffffa2XC)
[ 2227.456634] bq27541_get_psp current = -81 mA
[ 2227.460083] bq27541_get_psp voltage_now= 4177000 uV
[ 2227.463958] bq27541_get_psp status: Discharging ret= 0xffaf
[ 2227.464447] bq27541_get_psp current = 3016 mA
[ 2227.465667] bq27541_get_psp error: temperature ret=4177, old_temp=221 
[ 2227.465667] bq27541_get_psp temperature= 221 (0.1\xffffffa2XC)
[ 2227.466461] bq27541_get_psp current = 385 mA
[ 2227.466857] bq27541_get_psp status: Discharging ret= 0x0d67
[ 2227.467407] bq27541_get_psp voltage_now= 4177000 uV
[ 2227.468078] bq27541_get_capacity = 96% ret= 95
[ 2227.468749] bq27541_get_psp temperature= 221 (0.1\xffffffa2XC)
[ 2227.475494] request_suspend_state: wakeup (3->0) at 2227466158879 (2017-10-09 09:44:20.739375032 UTC)
[ 2227.475524] late_resume: call handlers
[ 2227.475555] [ektf3k]:[elan] elan_ktf3k_ts_resume: enter
[ 2227.476165] [ektf3k]:[elan] dump repsponse: 58
[ 2227.476196] late_resume: done
[ 2227.476562] mipi_dsi_panel_power+, on=1
[ 2227.549377] mipi_dsi_panel_power-
[ 2227.555023] mipi_JDI_lcd_on+
[ 2227.555023] mipi_JDI_lcd_on, JDI display on command+, command bl
[ 2227.699432] mipi_JDI_lcd_on, JDI display on command-
[ 2227.699432] mipi_JDI_lcd_on-
[ 2227.710388] EXT_COMMON: hdmi_common_wta_hpd: '1' (unchanged)
[ 2227.719757] mdp4_overlay_mdp_perf_upd mdp clk is changed [1] from 0 to 200000000
[ 2227.819458] mipi_JDI_set_backlight: pwm enable
[ 2235.440521] init: ubuntu-location-provider-here-after-wizard main process (17768) killed by TERM signal
[ 2287.532897] bq27541_get_psp status: Not charging ret= 0x0181
[ 2287.534332] bq27541_get_psp status: Not charging ret= 0x0181
[ 2287.535827] bq27541_get_psp voltage_now= 4161000 uV
[ 2287.536804] bq27541_get_capacity = 95% ret= 94
[ 2287.537750] bq27541_get_psp temperature= 226 (0.1\xffffffa2XC)
[ 2287.541748] bq27541_get_psp current = -177 mA
[ 2287.544525] bq27541_get_capacity = 95% ret= 94
[ 2287.546722] bq27541_get_psp status: Not charging ret= 0x1041
[ 2287.547668] bq27541_get_psp voltage_now= 4161000 uV
[ 2287.548950] bq27541_get_psp voltage_now= 4161000 uV
[ 2287.551269] bq27541_get_capacity = 95% ret= 94
[ 2287.553375] bq27541_get_psp temperature= 226 (0.1\xffffffa2XC)
[ 2287.554138] bq27541_get_psp current = 4161 mA
[ 2287.555694] bq27541_get_psp current = -177 mA
[ 2287.560363] bq27541_get_psp status: Not charging ret= 0x0181
[ 2287.561676] bq27541_get_psp error: temperature ret=646, old_temp=226 
[ 2287.561706] bq27541_get_psp temperature= 226 (0.1\xffffffa2XC)
[ 2287.562072] bq27541_get_psp voltage_now= 4161000 uV
[ 2287.563568] bq27541_get_capacity = 95% ret= 94
[ 2287.565338] bq27541_get_psp temperature= 226 (0.1\xffffffa2XC)
[ 2287.566955] bq27541_get_psp status: Not charging ret= 0x1041
[ 2287.568267] bq27541_get_psp current = -177 mA
[ 2287.574920] bq27541_get_psp status: Not charging ret= 0x0181
[ 2287.576263] bq27541_get_psp voltage_now= 4161000 uV
[ 2287.577209] bq27541_get_capacity = 95% ret= 94
[ 2287.578155] bq27541_get_psp temperature= 226 (0.1\xffffffa2XC)
[ 2287.582672] bq27541_get_psp current = -177 mA
[ 2287.590270] bq27541_get_psp voltage_now= 4161000 uV
[ 2287.625885] bq27541_get_psp status: Not charging ret= 0x0181
[ 2287.632629] bq27541_get_psp current = -177 mA
[ 2287.636657] bq27541_get_psp voltage_now= 4161000 uV
[ 2287.637573] bq27541_get_capacity = 95% ret= 94
[ 2287.638488] bq27541_get_psp temperature= 226 (0.1\xffffffa2XC)
NeoTheThird commented 6 years ago

Thanks for reporting. It's not related to the terminal. The reason for it requesting your password is that we re-enabled a security feature that was disabled in the version of the terminal on the openstore before: https://github.com/ubports/terminal-app/commit/542a7f719b01791a7f5195142191afdb6cb6dbe4

If you don't like that feature, you can disable it in the terminal app settings, but it's i'm afraid it's not related to the screen waking up.

Arc676 commented 6 years ago

Thanks for the tip. However, I can't seem to find that option in the Terminal settings. Clicking on the gear icon just gives me keyboard shortcuts, font size, and color scheme. Where is that option?

Arc676 commented 6 years ago

Update: the wakes appear to be at arbitrary intervals. Sometimes it wakes, suspends, and wakes again a minute later. Other times it goes for entire hours without waking.

Turning off Wi-Fi did not appear prevent this from happening, so it's probably not any sort of network-related problem (I'm assuming).

APokorny commented 6 years ago

can you include /var/log/repowerd.log when this happens..

Arc676 commented 6 years ago

Excerpt of repowerd.log near the event (time zone removed)

2017-10-12T17:18:25.048122 ubuntu-phablet repowerd[763]: message repeated 12 times: [ UPowerPowerSource: change_device(/org/freedesktop/UPower/devices/battery_battery), is_present=1, state=5, percentage=48.00, temperature=19.80]
2017-10-12T17:18:57.065111 ubuntu-phablet repowerd[763]: UPowerPowerSource: change_device(/org/freedesktop/UPower/devices/battery_battery), is_present=1, state=5, percentage=48.00, temperature=19.70
2017-10-12T17:18:57.128088 ubuntu-phablet repowerd[763]: UPowerPowerSource: change_device(/org/freedesktop/UPower/devices/battery_battery), is_present=1, state=5, percentage=48.00, temperature=19.70
2017-10-12T17:18:59.037173 ubuntu-phablet repowerd[763]: UPowerPowerSource: change_device(/org/freedesktop/UPower/devices/battery_battery), is_present=1, state=5, percentage=48.00, temperature=19.80
2017-10-12T17:19:02.051994 ubuntu-phablet repowerd[763]: UPowerPowerSource: change_device(/org/freedesktop/UPower/devices/battery_battery), is_present=1, state=5, percentage=48.00, temperature=19.70
2017-10-12T17:20:00.047909 ubuntu-phablet repowerd[763]: message repeated 15 times: [ UPowerPowerSource: change_device(/org/freedesktop/UPower/devices/battery_battery), is_present=1, state=5, percentage=48.00, temperature=19.70]
2017-10-12T17:20:12.004057 ubuntu-phablet repowerd[763]: UnityScreenService: dbus_emit_Wakeup()
2017-10-12T17:20:12.006833 ubuntu-phablet repowerd[763]: UnityScreenService: dbus_requestSysState(:1.99,ubuntu push client,1)
2017-10-12T17:20:12.006894 ubuntu-phablet repowerd[763]: LibsuspendSuspendControl: disallow_suspend(UnityScreenService)
2017-10-12T17:20:12.006925 ubuntu-phablet repowerd[763]: LibsuspendSuspendControl: exiting suspend
2017-10-12T17:20:12.007931 ubuntu-phablet repowerd[763]: UnityScreenService: dbus_requestSysState(:1.99,ubuntu push client,1) => 6
2017-10-12T17:20:12.042790 ubuntu-phablet repowerd[763]: UPowerPowerSource: change_device(/org/freedesktop/UPower/devices/battery_battery), is_present=1, state=5, percentage=48.00, temperature=19.70
2017-10-12T17:20:16.343162 ubuntu-phablet repowerd[763]: message repeated 2 times: [ UPowerPowerSource: change_device(/org/freedesktop/UPower/devices/battery_battery), is_present=1, state=5, percentage=48.00, temperature=19.70]
2017-10-12T17:20:17.045432 ubuntu-phablet repowerd[763]: UnityScreenService: dbus_requestWakeup(:1.99,ubuntu push client,1507800317)
2017-10-12T17:20:17.045676 ubuntu-phablet repowerd[763]: UnityScreenService: dbus_requestWakeup(:1.99,ubuntu push client,1507800317) => 6
2017-10-12T17:20:17.056052 ubuntu-phablet repowerd[763]: UnityScreenService: dbus_clearSysState(:1.99,6)
2017-10-12T17:20:17.056235 ubuntu-phablet repowerd[763]: LibsuspendSuspendControl: allow_suspend(UnityScreenService)
2017-10-12T17:20:17.056357 ubuntu-phablet repowerd[763]: LibsuspendSuspendControl: Preparing for suspend
2017-10-12T17:20:19.015380 ubuntu-phablet repowerd[763]: DefaultStateMachine: handle_power_button_press
2017-10-12T17:20:19.015411 ubuntu-phablet repowerd[763]: LibsuspendSuspendControl: disallow_suspend(DefaultStateMachine)
2017-10-12T17:20:19.015472 ubuntu-phablet repowerd[763]: LibsuspendSuspendControl: exiting suspend
2017-10-12T17:20:19.027038 ubuntu-phablet repowerd[763]: UbuntuPerformanceBooster: enable_interactive_mode()
2017-10-12T17:20:19.027099 ubuntu-phablet repowerd[763]: UnityDisplayPowerControl: turn_on()
2017-10-12T17:20:19.027465 ubuntu-phablet repowerd[763]: BacklightBrightnessControl: Transitioning brightness 0.00 => 0.11 in 11.00 steps 9090.91us each
2017-10-12T17:20:19.143340 ubuntu-phablet repowerd[763]: BacklightBrightnessControl: Transitioning brightness 0.00 => 0.11 done
2017-10-12T17:20:19.143614 ubuntu-phablet repowerd[763]: UnityScreenService: dbus_emit_brightness(0.105882), brightness_value=27
2017-10-12T17:20:19.144102 ubuntu-phablet repowerd[763]: UnityScreenService: dbus_emit_DisplayPowerStateChange(1,2)
2017-10-12T17:20:19.147274 ubuntu-phablet repowerd[763]: DefaultStateMachine: handle_power_button_release
2017-10-12T17:20:19.156209 ubuntu-phablet repowerd[763]: UPowerPowerSource: change_device(/org/freedesktop/UPower/devices/battery_battery), is_present=1, state=5, percentage=48.00, temperature=19.70
2017-10-12T17:20:21.219844 ubuntu-phablet repowerd[763]: DefaultStateMachine: handle_power_button_press
2017-10-12T17:20:21.383594 ubuntu-phablet repowerd[763]: DefaultStateMachine: handle_power_button_release
2017-10-12T17:20:21.383808 ubuntu-phablet repowerd[763]: BacklightBrightnessControl: Transitioning brightness 0.11 => 0.00 in 11.00 steps 9090.91us each
2017-10-12T17:20:21.521315 ubuntu-phablet repowerd[763]: BacklightBrightnessControl: Transitioning brightness 0.11 => 0.00 done
2017-10-12T17:20:21.522139 ubuntu-phablet repowerd[763]: UnityScreenService: dbus_emit_brightness(0.000000), brightness_value=0
2017-10-12T17:20:21.530379 ubuntu-phablet repowerd[763]: UnityDisplayPowerControl: turn_off()
2017-10-12T17:20:21.533003 ubuntu-phablet repowerd[763]: UnityScreenService: dbus_emit_DisplayPowerStateChange(0,2)
2017-10-12T17:20:21.533888 ubuntu-phablet repowerd[763]: UbuntuPerformanceBooster: disable_interactive_mode()
2017-10-12T17:20:21.534010 ubuntu-phablet repowerd[763]: LibsuspendSuspendControl: allow_suspend(DefaultStateMachine)
2017-10-12T17:20:21.534163 ubuntu-phablet repowerd[763]: LibsuspendSuspendControl: Preparing for suspend
2017-10-12T17:20:25.236716 ubuntu-phablet repowerd[763]: UPowerPowerSource: change_device(/org/freedesktop/UPower/devices/battery_battery), is_present=1, state=5, percentage=48.00, temperature=19.70
2017-10-12T17:20:25.314894 ubuntu-phablet repowerd[763]: UPowerPowerSource: change_device(/org/freedesktop/UPower/devices/battery_battery), is_present=1, state=5, percentage=48.00, temperature=19.70
2017-10-12T17:20:30.024590 ubuntu-phablet repowerd[763]: DefaultStateMachine: handle_power_button_press
2017-10-12T17:20:30.024651 ubuntu-phablet repowerd[763]: LibsuspendSuspendControl: disallow_suspend(DefaultStateMachine)
2017-10-12T17:20:30.024682 ubuntu-phablet repowerd[763]: LibsuspendSuspendControl: exiting suspend
2017-10-12T17:20:30.052433 ubuntu-phablet repowerd[763]: UbuntuPerformanceBooster: enable_interactive_mode()
2017-10-12T17:20:30.052494 ubuntu-phablet repowerd[763]: UnityDisplayPowerControl: turn_on()
2017-10-12T17:20:30.052890 ubuntu-phablet repowerd[763]: BacklightBrightnessControl: Transitioning brightness 0.00 => 0.11 in 11.00 steps 9090.91us each
2017-10-12T17:20:30.151974 ubuntu-phablet repowerd[763]: UPowerPowerSource: change_device(/org/freedesktop/UPower/devices/battery_battery), is_present=1, state=5, percentage=48.00, temperature=19.70
2017-10-12T17:20:30.157128 ubuntu-phablet repowerd[763]: BacklightBrightnessControl: Transitioning brightness 0.00 => 0.11 done
2017-10-12T17:20:30.157372 ubuntu-phablet repowerd[763]: UnityScreenService: dbus_emit_brightness(0.105882), brightness_value=27
2017-10-12T17:20:30.157830 ubuntu-phablet repowerd[763]: UnityScreenService: dbus_emit_DisplayPowerStateChange(1,2)
2017-10-12T17:20:30.158348 ubuntu-phablet repowerd[763]: DefaultStateMachine: handle_power_button_release
2017-10-12T17:20:30.158379 ubuntu-phablet repowerd[763]: DefaultStateMachine: handle_power_button_press
2017-10-12T17:20:30.163380 ubuntu-phablet repowerd[763]: DefaultStateMachine: handle_power_button_release
2017-10-12T17:20:30.163594 ubuntu-phablet repowerd[763]: BacklightBrightnessControl: Transitioning brightness 0.11 => 0.00 in 11.00 steps 9090.91us each
2017-10-12T17:20:30.265680 ubuntu-phablet repowerd[763]: BacklightBrightnessControl: Transitioning brightness 0.11 => 0.00 done
2017-10-12T17:20:30.265832 ubuntu-phablet repowerd[763]: UnityScreenService: dbus_emit_brightness(0.000000), brightness_value=0
2017-10-12T17:20:30.266320 ubuntu-phablet repowerd[763]: UnityDisplayPowerControl: turn_off()
2017-10-12T17:20:30.266808 ubuntu-phablet repowerd[763]: UnityScreenService: dbus_emit_DisplayPowerStateChange(0,2)
2017-10-12T17:20:30.267083 ubuntu-phablet repowerd[763]: UbuntuPerformanceBooster: disable_interactive_mode()
2017-10-12T17:20:30.267144 ubuntu-phablet repowerd[763]: LibsuspendSuspendControl: allow_suspend(DefaultStateMachine)
2017-10-12T17:20:30.267174 ubuntu-phablet repowerd[763]: LibsuspendSuspendControl: Preparing for suspend
2017-10-12T17:20:33.026844 ubuntu-phablet repowerd[763]: DefaultStateMachine: handle_power_button_press
2017-10-12T17:20:33.026905 ubuntu-phablet repowerd[763]: LibsuspendSuspendControl: disallow_suspend(DefaultStateMachine)
2017-10-12T17:20:33.026966 ubuntu-phablet repowerd[763]: LibsuspendSuspendControl: exiting suspend
2017-10-12T17:20:33.035170 ubuntu-phablet repowerd[763]: UbuntuPerformanceBooster: enable_interactive_mode()
2017-10-12T17:20:33.035200 ubuntu-phablet repowerd[763]: UnityDisplayPowerControl: turn_on()
2017-10-12T17:20:33.035597 ubuntu-phablet repowerd[763]: BacklightBrightnessControl: Transitioning brightness 0.00 => 0.11 in 11.00 steps 9090.91us each
2017-10-12T17:20:33.141386 ubuntu-phablet repowerd[763]: BacklightBrightnessControl: Transitioning brightness 0.00 => 0.11 done
2017-10-12T17:20:33.141630 ubuntu-phablet repowerd[763]: UnityScreenService: dbus_emit_brightness(0.105882), brightness_value=27
2017-10-12T17:20:33.141782 ubuntu-phablet repowerd[763]: UnityScreenService: dbus_emit_DisplayPowerStateChange(1,2)
2017-10-12T17:20:33.149956 ubuntu-phablet repowerd[763]: UPowerPowerSource: change_device(/org/freedesktop/UPower/devices/battery_battery), is_present=1, state=5, percentage=48.00, temperature=19.70
2017-10-12T17:20:33.219981 ubuntu-phablet repowerd[763]: DefaultStateMachine: handle_power_button_release
2017-10-12T17:20:34.376017 ubuntu-phablet repowerd[763]: DefaultStateMachine: handle_user_activity_extending_power_state
2017-10-12T17:20:35.570778 ubuntu-phablet repowerd[763]: message repeated 2 times: [ DefaultStateMachine: handle_user_activity_extending_power_state]
2017-10-12T17:20:36.129698 ubuntu-phablet repowerd[763]: UnityScreenService: dbus_requestSysState(:1.74,active,1)
2017-10-12T17:20:36.129789 ubuntu-phablet repowerd[763]: LibsuspendSuspendControl: disallow_suspend(UnityScreenService)
2017-10-12T17:20:36.129850 ubuntu-phablet repowerd[763]: UnityScreenService: dbus_requestSysState(:1.74,active,1) => 7
2017-10-12T17:20:37.233544 ubuntu-phablet repowerd[763]: DefaultStateMachine: handle_user_activity_extending_power_state
2017-10-12T17:21:31.954002 ubuntu-phablet repowerd[763]: message repeated 42 times: [ DefaultStateMachine: handle_user_activity_extending_power_state]
2017-10-12T17:21:33.303275 ubuntu-phablet repowerd[763]: UPowerPowerSource: change_device(/org/freedesktop/UPower/devices/battery_battery), is_present=1, state=5, percentage=48.00, temperature=20.10
2017-10-12T17:21:34.120170 ubuntu-phablet repowerd[763]: DefaultStateMachine: handle_user_activity_extending_power_state
2017-10-12T17:21:37.173820 ubuntu-phablet repowerd[763]: DefaultStateMachine: handle_user_activity_extending_power_state
2017-10-12T17:21:39.376334 ubuntu-phablet repowerd[763]: UnityScreenService: dbus_clearSysState(:1.74,7)
2017-10-12T17:21:39.376395 ubuntu-phablet repowerd[763]: LibsuspendSuspendControl: allow_suspend(UnityScreenService)
2017-10-12T17:21:50.998618 ubuntu-phablet repowerd[763]: DefaultStateMachine: handle_user_activity_extending_power_state
2017-10-12T17:21:51.086936 ubuntu-phablet repowerd[763]: UnityScreenService: dbus_requestSysState(:1.74,active,1)
2017-10-12T17:21:51.086997 ubuntu-phablet repowerd[763]: LibsuspendSuspendControl: disallow_suspend(UnityScreenService)
2017-10-12T17:21:51.087058 ubuntu-phablet repowerd[763]: UnityScreenService: dbus_requestSysState(:1.74,active,1) => 8
2017-10-12T17:21:59.209586 ubuntu-phablet repowerd[763]: DefaultStateMachine: handle_user_activity_extending_power_state
2017-10-12T17:22:19.532981 ubuntu-phablet repowerd[763]: message repeated 9 times: [ DefaultStateMachine: handle_user_activity_extending_power_state]
2017-10-12T17:22:25.005210 ubuntu-phablet repowerd[763]: UPowerPowerSource: change_device(/org/freedesktop/UPower/devices/battery_battery), is_present=1, state=5, percentage=48.00, temperature=21.30
2017-10-12T17:22:25.056876 ubuntu-phablet repowerd[763]: DefaultStateMachine: handle_user_activity_extending_power_state
2017-10-12T17:22:26.601646 ubuntu-phablet repowerd[763]: message repeated 2 times: [ DefaultStateMachine: handle_user_activity_extending_power_state]
2017-10-12T17:22:33.402427 ubuntu-phablet repowerd[763]: UPowerPowerSource: change_device(/org/freedesktop/UPower/devices/battery_battery), is_present=1, state=5, percentage=48.00, temperature=21.70
2017-10-12T17:22:48.659415 ubuntu-phablet repowerd[763]: DefaultStateMachine: handle_user_activity_extending_power_state
2017-10-12T17:23:30.724418 ubuntu-phablet repowerd[763]: message repeated 26 times: [ DefaultStateMachine: handle_user_activity_extending_power_state]
2017-10-12T17:23:33.561027 ubuntu-phablet repowerd[763]: UPowerPowerSource: change_device(/org/freedesktop/UPower/devices/battery_battery), is_present=1, state=5, percentage=46.00, temperature=23.50
2017-10-12T17:23:35.029685 ubuntu-phablet repowerd[763]: DefaultStateMachine: handle_user_activity_extending_power_state
2017-10-12T17:24:24.897147 ubuntu-phablet repowerd[763]: message repeated 28 times: [ DefaultStateMachine: handle_user_activity_extending_power_state]
2017-10-12T17:24:24.970176 ubuntu-phablet repowerd[763]: UPowerPowerSource: change_device(/org/freedesktop/UPower/devices/battery_battery), is_present=1, state=5, percentage=46.00, temperature=24.30
2017-10-12T17:24:25.425590 ubuntu-phablet repowerd[763]: DefaultStateMachine: handle_user_activity_extending_power_state
2017-10-12T17:24:33.102592 ubuntu-phablet repowerd[763]: message repeated 6 times: [ DefaultStateMachine: handle_user_activity_extending_power_state]
2017-10-12T17:24:33.715232 ubuntu-phablet repowerd[763]: UPowerPowerSource: change_device(/org/freedesktop/UPower/devices/battery_battery), is_present=1, state=5, percentage=46.00, temperature=24.40
2017-10-12T17:24:33.849662 ubuntu-phablet repowerd[763]: DefaultStateMachine: handle_user_activity_extending_power_state
2017-10-12T17:25:14.775474 ubuntu-phablet repowerd[763]: message repeated 21 times: [ DefaultStateMachine: handle_user_activity_extending_power_state]
2017-10-12T17:25:17.000266 ubuntu-phablet repowerd[763]: UnityScreenService: dbus_emit_Wakeup()
2017-10-12T17:25:17.004050 ubuntu-phablet repowerd[763]: UnityScreenService: dbus_requestSysState(:1.99,ubuntu push client,1)
2017-10-12T17:25:17.004142 ubuntu-phablet repowerd[763]: LibsuspendSuspendControl: disallow_suspend(UnityScreenService)
2017-10-12T17:25:17.004203 ubuntu-phablet repowerd[763]: UnityScreenService: dbus_requestSysState(:1.99,ubuntu push client,1) => 9
2017-10-12T17:25:18.005424 ubuntu-phablet repowerd[763]: DefaultStateMachine: handle_user_activity_extending_power_state
2017-10-12T17:25:20.588096 ubuntu-phablet repowerd[763]: DefaultStateMachine: handle_user_activity_extending_power_state
2017-10-12T17:25:22.033134 ubuntu-phablet repowerd[763]: UnityScreenService: dbus_requestWakeup(:1.99,ubuntu push client,1507800622)
2017-10-12T17:25:22.033286 ubuntu-phablet repowerd[763]: UnityScreenService: dbus_requestWakeup(:1.99,ubuntu push client,1507800622) => 7
2017-10-12T17:25:22.037742 ubuntu-phablet repowerd[763]: UnityScreenService: dbus_clearSysState(:1.99,9)
2017-10-12T17:25:22.041404 ubuntu-phablet repowerd[763]: DefaultStateMachine: handle_user_activity_extending_power_state
2017-10-12T17:25:33.679374 ubuntu-phablet repowerd[763]: message repeated 8 times: [ DefaultStateMachine: handle_user_activity_extending_power_state]
2017-10-12T17:25:33.891349 ubuntu-phablet repowerd[763]: UPowerPowerSource: change_device(/org/freedesktop/UPower/devices/battery_battery), is_present=1, state=5, percentage=46.00, temperature=25.20
2017-10-12T17:25:35.074973 ubuntu-phablet repowerd[763]: DefaultStateMachine: handle_user_activity_extending_power_state
2017-10-12T17:26:24.613700 ubuntu-phablet repowerd[763]: message repeated 40 times: [ DefaultStateMachine: handle_user_activity_extending_power_state]
2017-10-12T17:26:24.999503 ubuntu-phablet repowerd[763]: UPowerPowerSource: change_device(/org/freedesktop/UPower/devices/battery_battery), is_present=1, state=5, percentage=46.00, temperature=25.80
2017-10-12T17:26:25.175254 ubuntu-phablet repowerd[763]: DefaultStateMachine: handle_user_activity_extending_power_state
2017-10-12T17:26:33.697562 ubuntu-phablet repowerd[763]: message repeated 4 times: [ DefaultStateMachine: handle_user_activity_extending_power_state]
2017-10-12T17:26:34.043479 ubuntu-phablet repowerd[763]: UPowerPowerSource: change_device(/org/freedesktop/UPower/devices/battery_battery), is_present=1, state=5, percentage=46.00, temperature=25.90
2017-10-12T17:26:34.360740 ubuntu-phablet repowerd[763]: DefaultStateMachine: handle_user_activity_extending_power_state
2017-10-12T17:27:23.924766 ubuntu-phablet repowerd[763]: message repeated 28 times: [ DefaultStateMachine: handle_user_activity_extending_power_state]
2017-10-12T17:27:34.268272 ubuntu-phablet repowerd[763]: UPowerPowerSource: change_device(/org/freedesktop/UPower/devices/battery_battery), is_present=1, state=5, percentage=45.00, temperature=25.60
2017-10-12T17:27:37.027915 ubuntu-phablet repowerd[763]: DefaultStateMachine: handle_user_activity_extending_power_state
2017-10-12T17:28:21.976676 ubuntu-phablet repowerd[763]: message repeated 38 times: [ DefaultStateMachine: handle_user_activity_extending_power_state]
2017-10-12T17:28:25.039085 ubuntu-phablet repowerd[763]: UPowerPowerSource: change_device(/org/freedesktop/UPower/devices/battery_battery), is_present=1, state=5, percentage=45.00, temperature=26.00
2017-10-12T17:28:27.356040 ubuntu-phablet repowerd[763]: DefaultStateMachine: handle_user_activity_extending_power_state
2017-10-12T17:28:31.277061 ubuntu-phablet repowerd[763]: message repeated 5 times: [ DefaultStateMachine: handle_user_activity_extending_power_state]
2017-10-12T17:28:31.891471 ubuntu-phablet repowerd[763]: UnityScreenService: dbus_clearSysState(:1.74,8)
2017-10-12T17:28:31.891532 ubuntu-phablet repowerd[763]: LibsuspendSuspendControl: allow_suspend(UnityScreenService)
2017-10-12T17:28:32.009208 ubuntu-phablet repowerd[763]: DefaultStateMachine: handle_user_activity_extending_power_state
2017-10-12T17:28:33.775474 ubuntu-phablet repowerd[763]: message repeated 2 times: [ DefaultStateMachine: handle_user_activity_extending_power_state]
2017-10-12T17:28:34.117210 ubuntu-phablet repowerd[763]: UnityScreenService: dbus_requestSysState(:1.74,active,1)
2017-10-12T17:28:34.117271 ubuntu-phablet repowerd[763]: LibsuspendSuspendControl: disallow_suspend(UnityScreenService)
2017-10-12T17:28:34.117332 ubuntu-phablet repowerd[763]: UnityScreenService: dbus_requestSysState(:1.74,active,1) => 10
2017-10-12T17:28:34.342490 ubuntu-phablet repowerd[763]: UPowerPowerSource: change_device(/org/freedesktop/UPower/devices/battery_battery), is_present=1, state=5, percentage=45.00, temperature=26.10
2017-10-12T17:28:34.824149 ubuntu-phablet repowerd[763]: UnityScreenService: dbus_clearSysState(:1.74,10)
2017-10-12T17:28:34.824210 ubuntu-phablet repowerd[763]: LibsuspendSuspendControl: allow_suspend(UnityScreenService)
2017-10-12T17:28:39.277091 ubuntu-phablet repowerd[763]: DefaultStateMachine: handle_user_activity_extending_power_state
2017-10-12T17:28:39.709312 ubuntu-phablet repowerd[763]: UnityScreenService: dbus_requestSysState(:1.74,active,1)
2017-10-12T17:28:39.709373 ubuntu-phablet repowerd[763]: LibsuspendSuspendControl: disallow_suspend(UnityScreenService)
2017-10-12T17:28:39.709403 ubuntu-phablet repowerd[763]: UnityScreenService: dbus_requestSysState(:1.74,active,1) => 11
2017-10-12T17:28:41.595389 ubuntu-phablet repowerd[763]: DefaultStateMachine: handle_power_button_press
2017-10-12T17:28:41.824790 ubuntu-phablet repowerd[763]: DefaultStateMachine: handle_power_button_release
2017-10-12T17:28:41.825584 ubuntu-phablet repowerd[763]: BacklightBrightnessControl: Transitioning brightness 0.11 => 0.00 in 11.00 steps 9090.91us each
2017-10-12T17:28:41.957999 ubuntu-phablet repowerd[763]: BacklightBrightnessControl: Transitioning brightness 0.11 => 0.00 done
2017-10-12T17:28:41.959037 ubuntu-phablet repowerd[763]: UnityScreenService: dbus_emit_brightness(0.000000), brightness_value=0
2017-10-12T17:28:41.966819 ubuntu-phablet repowerd[763]: UnityDisplayPowerControl: turn_off()
2017-10-12T17:28:41.969321 ubuntu-phablet repowerd[763]: UnityScreenService: dbus_emit_DisplayPowerStateChange(0,2)
2017-10-12T17:28:41.970267 ubuntu-phablet repowerd[763]: UbuntuPerformanceBooster: disable_interactive_mode()
2017-10-12T17:28:41.970420 ubuntu-phablet repowerd[763]: LibsuspendSuspendControl: allow_suspend(DefaultStateMachine)
2017-10-12T17:28:44.234061 ubuntu-phablet repowerd[763]: UnityScreenService: dbus_clearSysState(:1.74,11)
2017-10-12T17:28:44.234122 ubuntu-phablet repowerd[763]: LibsuspendSuspendControl: allow_suspend(UnityScreenService)
2017-10-12T17:28:44.234153 ubuntu-phablet repowerd[763]: LibsuspendSuspendControl: Preparing for suspend
2017-10-12T17:28:52.078653 ubuntu-phablet repowerd[763]: UPowerPowerSource: change_device(/org/freedesktop/UPower/devices/battery_battery), is_present=1, state=5, percentage=45.00, temperature=26.20
2017-10-12T17:29:04.056753 ubuntu-phablet repowerd[763]: UPowerPowerSource: change_device(/org/freedesktop/UPower/devices/battery_battery), is_present=1, state=5, percentage=45.00, temperature=25.90
2017-10-12T17:29:10.069261 ubuntu-phablet repowerd[763]: UPowerPowerSource: change_device(/org/freedesktop/UPower/devices/battery_battery), is_present=1, state=5, percentage=45.00, temperature=25.80
2017-10-12T17:29:11.056569 ubuntu-phablet repowerd[763]: UPowerPowerSource: change_device(/org/freedesktop/UPower/devices/battery_battery), is_present=1, state=5, percentage=45.00, temperature=25.80
2017-10-12T17:29:16.076091 ubuntu-phablet repowerd[763]: UPowerPowerSource: change_device(/org/freedesktop/UPower/devices/battery_battery), is_present=1, state=5, percentage=45.00, temperature=25.70
2017-10-12T17:29:25.062821 ubuntu-phablet repowerd[763]: UPowerPowerSource: change_device(/org/freedesktop/UPower/devices/battery_battery), is_present=1, state=5, percentage=45.00, temperature=25.50
2017-10-12T17:29:30.067156 ubuntu-phablet repowerd[763]: UPowerPowerSource: change_device(/org/freedesktop/UPower/devices/battery_battery), is_present=1, state=5, percentage=45.00, temperature=25.50
2017-10-12T17:29:36.067335 ubuntu-phablet repowerd[763]: UPowerPowerSource: change_device(/org/freedesktop/UPower/devices/battery_battery), is_present=1, state=5, percentage=45.00, temperature=25.40
2017-10-12T17:29:37.078653 ubuntu-phablet repowerd[763]: UPowerPowerSource: change_device(/org/freedesktop/UPower/devices/battery_battery), is_present=1, state=5, percentage=45.00, temperature=25.30
2017-10-12T17:29:43.042426 ubuntu-phablet repowerd[763]: message repeated 7 times: [ UPowerPowerSource: change_device(/org/freedesktop/UPower/devices/battery_battery), is_present=1, state=5, percentage=45.00, temperature=25.30]
2017-10-12T17:29:45.073499 ubuntu-phablet repowerd[763]: UPowerPowerSource: change_device(/org/freedesktop/UPower/devices/battery_battery), is_present=1, state=5, percentage=45.00, temperature=25.20
2017-10-12T17:29:49.005491 ubuntu-phablet repowerd[763]: message repeated 4 times: [ UPowerPowerSource: change_device(/org/freedesktop/UPower/devices/battery_battery), is_present=1, state=5, percentage=45.00, temperature=25.20]
Arc676 commented 6 years ago

It would appear that these lines have something to do with it, as they appeared again in the logs after an unsolicited wake.

... ubuntu-phablet repowerd[763]: UnityScreenService: dbus_emit_Wakeup()
... ubuntu-phablet repowerd[763]: UnityScreenService: dbus_requestSysState(:1.99,ubuntu push client,1)
... ubuntu-phablet repowerd[763]: LibsuspendSuspendControl: disallow_suspend(UnityScreenService)
... ubuntu-phablet repowerd[763]: LibsuspendSuspendControl: exiting suspend
Arc676 commented 6 years ago

Update: I can't confirm this 100% because it was charging overnight, but during the time I was awake I do not believe the device ever waked while charging.

Arc676 commented 6 years ago

Switched my device from the Canonical image to the UBPorts image. There was a single incident where the device woke for half a second and crashed (immediately after installing). I had to power it back on. If it happens again, I will update this thread.

Arc676 commented 6 years ago

Just confirmed that the issue still occurs with Ubuntu 15.04 (r1), UBPorts image.

More repowerd.log snippets from around the event

2017-10-28T10:49:43.030772+08:00 ubuntu-phablet repowerd[789]: UPowerPowerSource: change_device(/org/freedesktop/UPower/devices/battery_battery), is_present=1, state=5, percentage=97.00, temperature=21.70
2017-10-28T10:50:43.126809+08:00 ubuntu-phablet repowerd[789]: message repeated 10 times: [ UPowerPowerSource: change_device(/org/freedesktop/UPower/devices/battery_battery), is_present=1, state=5, percentage=97.00, temperature=21.70]
2017-10-28T10:50:55.134031+08:00 ubuntu-phablet repowerd[789]: UPowerPowerSource: change_device(/org/freedesktop/UPower/devices/battery_battery), is_present=1, state=5, percentage=97.00, temperature=21.60
2017-10-28T10:51:00.003020+08:00 ubuntu-phablet repowerd[789]: LibsuspendSuspendControl: disallow_suspend(Wakeup_1413)
2017-10-28T10:51:00.003081+08:00 ubuntu-phablet repowerd[789]: LibsuspendSuspendControl: exiting suspend
2017-10-28T10:51:00.006864+08:00 ubuntu-phablet repowerd[789]: UnityScreenService: dbus_emit_Wakeup()
2017-10-28T10:51:00.010678+08:00 ubuntu-phablet repowerd[789]: UnityScreenService: dbus_requestSysState(:1.101,ubuntu push client,1)
2017-10-28T10:51:00.010739+08:00 ubuntu-phablet repowerd[789]: LibsuspendSuspendControl: disallow_suspend(UnityScreenService)
2017-10-28T10:51:00.010769+08:00 ubuntu-phablet repowerd[789]: UnityScreenService: dbus_requestSysState(:1.101,ubuntu push client,1) => 15
2017-10-28T10:51:00.138245+08:00 ubuntu-phablet repowerd[789]: UPowerPowerSource: change_device(/org/freedesktop/UPower/devices/battery_battery), is_present=1, state=5, percentage=97.00, temperature=21.60
2017-10-28T10:51:03.010010+08:00 ubuntu-phablet repowerd[789]: LibsuspendSuspendControl: allow_suspend(Wakeup_1413)
2017-10-28T10:51:05.040092+08:00 ubuntu-phablet repowerd[789]: UnityScreenService: dbus_requestWakeup(:1.101,ubuntu push client,1509159365)
2017-10-28T10:51:05.040215+08:00 ubuntu-phablet repowerd[789]: UnityScreenService: dbus_requestWakeup(:1.101,ubuntu push client,1509159365) => 15
2017-10-28T10:51:05.043114+08:00 ubuntu-phablet repowerd[789]: UnityScreenService: dbus_clearSysState(:1.101,15)
2017-10-28T10:51:05.043205+08:00 ubuntu-phablet repowerd[789]: LibsuspendSuspendControl: allow_suspend(UnityScreenService)
2017-10-28T10:51:05.043266+08:00 ubuntu-phablet repowerd[789]: LibsuspendSuspendControl: Preparing for suspend
2017-10-28T10:51:11.129431+08:00 ubuntu-phablet repowerd[789]: UPowerPowerSource: change_device(/org/freedesktop/UPower/devices/battery_battery), is_present=1, state=5, percentage=97.00, temperature=21.60
2017-10-28T10:51:22.062613+08:00 ubuntu-phablet repowerd[789]: message repeated 3 times: [ UPowerPowerSource: change_device(/org/freedesktop/UPower/devices/battery_battery), is_present=1, state=5, percentage=97.00, temperature=21.60]
2017-10-28T10:51:24.075449+08:00 ubuntu-phablet repowerd[789]: UPowerPowerSource: change_device(/org/freedesktop/UPower/devices/battery_battery), is_present=1, state=2, percentage=97.00, temperature=21.60
2017-10-28T10:51:24.075510+08:00 ubuntu-phablet repowerd[789]: LibsuspendSuspendControl: disallow_suspend(UPowerPowerSource14)
2017-10-28T10:51:24.075510+08:00 ubuntu-phablet repowerd[789]: LibsuspendSuspendControl: disallow_suspend(UPowerPowerSource14)
2017-10-28T10:51:24.075571+08:00 ubuntu-phablet repowerd[789]: LibsuspendSuspendControl: exiting suspend
2017-10-28T10:51:25.038765+08:00 ubuntu-phablet repowerd[789]: DefaultStateMachine: handle_power_source_change
2017-10-28T10:51:25.038826+08:00 ubuntu-phablet repowerd[789]: LibsuspendSuspendControl: disallow_suspend(DefaultStateMachine)
2017-10-28T10:51:25.038856+08:00 ubuntu-phablet repowerd[789]: UbuntuPerformanceBooster: enable_interactive_mode()
2017-10-28T10:51:25.038917+08:00 ubuntu-phablet repowerd[789]: UnityDisplayPowerControl: turn_on()
2017-10-28T10:51:25.039527+08:00 ubuntu-phablet repowerd[789]: BacklightBrightnessControl: Transitioning brightness 0.00 => 0.13 in 14.00 steps 7142.86us each
2017-10-28T10:51:25.039618+08:00 ubuntu-phablet repowerd[789]: UPowerPowerSource: change_device(/org/freedesktop/UPower/devices/battery_battery), is_present=1, state=5, percentage=97.00, temperature=21.60
2017-10-28T10:51:25.039649+08:00 ubuntu-phablet repowerd[789]: LibsuspendSuspendControl: disallow_suspend(UPowerPowerSource15)
2017-10-28T10:51:25.133089+08:00 ubuntu-phablet repowerd[789]: UPowerPowerSource: change_device(/org/freedesktop/UPower/devices/battery_battery), is_present=1, state=5, percentage=97.00, temperature=21.60
2017-10-28T10:51:25.142330+08:00 ubuntu-phablet repowerd[789]: BacklightBrightnessControl: Transitioning brightness 0.00 => 0.13 done
2017-10-28T10:51:25.142452+08:00 ubuntu-phablet repowerd[789]: UnityScreenService: dbus_emit_brightness(0.133333), brightness_value=34
2017-10-28T10:51:25.142543+08:00 ubuntu-phablet repowerd[789]: UnityScreenService: dbus_emit_DisplayPowerStateChange(1,4)
2017-10-28T10:51:25.143153+08:00 ubuntu-phablet repowerd[789]: DefaultStateMachine: handle_power_source_change
2017-10-28T10:51:27.041015+08:00 ubuntu-phablet repowerd[789]: LibsuspendSuspendControl: allow_suspend(UPowerPowerSource14)
2017-10-28T10:51:27.041167+08:00 ubuntu-phablet repowerd[789]: LibsuspendSuspendControl: allow_suspend(UPowerPowerSource15)
2017-10-28T10:51:35.154379+08:00 ubuntu-phablet repowerd[789]: DefaultStateMachine: handle_alarm(display_off)
2017-10-28T10:51:35.154746+08:00 ubuntu-phablet repowerd[789]: BacklightBrightnessControl: Transitioning brightness 0.13 => 0.00 in 14.00 steps 7142.86us each
2017-10-28T10:51:35.271933+08:00 ubuntu-phablet repowerd[789]: BacklightBrightnessControl: Transitioning brightness 0.13 => 0.00 done
2017-10-28T10:51:35.272147+08:00 ubuntu-phablet repowerd[789]: UnityScreenService: dbus_emit_brightness(0.000000), brightness_value=0
2017-10-28T10:51:35.273093+08:00 ubuntu-phablet repowerd[789]: UnityDisplayPowerControl: turn_off()
2017-10-28T10:51:35.273551+08:00 ubuntu-phablet repowerd[789]: UnityScreenService: dbus_emit_DisplayPowerStateChange(0,1)
2017-10-28T10:51:35.274069+08:00 ubuntu-phablet repowerd[789]: UbuntuPerformanceBooster: disable_interactive_mode()
2017-10-28T10:51:35.274130+08:00 ubuntu-phablet repowerd[789]: LibsuspendSuspendControl: allow_suspend(DefaultStateMachine)
2017-10-28T10:51:35.274191+08:00 ubuntu-phablet repowerd[789]: LibsuspendSuspendControl: Preparing for suspend
2017-10-28T10:51:37.141416+08:00 ubuntu-phablet repowerd[789]: UPowerPowerSource: change_device(/org/freedesktop/UPower/devices/battery_battery), is_present=1, state=5, percentage=97.00, temperature=21.60
2017-10-28T10:51:53.131076+08:00 ubuntu-phablet repowerd[789]: message repeated 3 times: [ UPowerPowerSource: change_device(/org/freedesktop/UPower/devices/battery_battery), is_present=1, state=5, percentage=97.00, temperature=21.60]
Arc676 commented 6 years ago

I'd like to confirm that sometimes the device quietly crashes while in standby mode. I'm not sure if it's relevant to this issue. It's just that the device has never crashed while I was using it, only during these wakes (or just in the background without me noticing).

Arc676 commented 6 years ago

I brought the device on a flight. Never waked while it was in airplane mode. Either it was fixed in an update and I didn't notice, or it's a networking issue.

Will update if I notice it waking now that it's out of flight mode.

Flohack74 commented 6 years ago

Ok will close for the moment. Can be reopened later....

Arc676 commented 6 years ago

The device is indeed still waking without user input and without notifications. It would appear that the necessary conditions include running on battery power (never seems to happen when charging overnight) and not in flight mode.

Arc676 commented 6 years ago

Further testing suggests that it indeed a networking related issue; if I turn off wifi, it does not appear to wake. Please let me know if there is a separate log I can check so I can post it here.

As a temporary solution, I'm just going to turn off wifi when through device is not in use.

ghost commented 6 years ago

tested about six hours straight, no random wake issues with mine, maybe you have a faulty power button

NeoTheThird commented 6 years ago

@rubencarneiro I take you were connected to wifi during your tests?

Arc676 commented 6 years ago

Still happening on OTA-3. @rubencarneiro I'm very tempted to say it's a hardware issue because it's a second hand device, but that wouldn't explain why it only happens when connected to WiFi.

Additionally, this never happened back when it was still running Android. Granted, that wasn't for a very long time (I had it delivered to a friend's house, went to get it, messed with Android for 10 minutes, did other stuff, brought it home, and flashed it) but I think I would've noticed if it randomly woke without anyone touching it.

It appears to be happening less often on OTA-3 though (maybe).

UniversalSuperBox commented 5 years ago

I can confirm this issue on my Nexus 7. Recent reports have indicated that this occurs when the calendar attempts to sync with Online Accounts. Maybe that's a hint to anyone who wants to try their hand at it?

hummlbach commented 5 years ago

Ah thats interesting ... sounds a bit like #935 ...(?)

JR1994 commented 5 years ago

I am not experiencing this issue on my Nexus 7 flo. Device stays in suspend

OS build number: 2019-W16 UBports Image part: 20190416-27610

Flohack74 commented 5 years ago

@Arc676 can you re-test with a fresh install and latest image? Thx!

JR1994 commented 5 years ago

This is a fresh install. I just loaded UBports a few hours ago and I also just upgraded to the rc channel

Flohack74 commented 5 years ago

@JR1994 yeah sure, I know, but my comment was for the original poster, I want to hear from him if he can also fix it ;)

JR1994 commented 5 years ago

oh sorry ;)

Arc676 commented 5 years ago

@Flohack74 Unfortunately I don't have the device with me now. I'll have access to it again in a week; I'll install the latest image and update this thread then.

Arc676 commented 5 years ago

Updated to 2019-05-04 on the devel channel. It woke without user input once or twice but it's no longer happening regularly. It should be fair to conclude that the original issue is solved, but I haven't tested extensively. @Flohack74

I won't be using this device in the near future, but if others users experience this problem they can report it. I will request a re-open when I resume using this device if necessary.

Flohack74 commented 5 years ago

Perfect thanks!

ziggutas commented 4 years ago

This behaviour has been happening on my device since installing UT in Feb 2019. Currently on stable channel, OTA-11

tvleming commented 4 years ago

I still experience the screen turning on randomly when on standby. I noticed looking at the battery graph that there are spikes where the charge level goes to 100% for a second every few minutes, maybe that has to do with the screen waking up. See image attached. This behavior happens only when the device is sleeping, when I'm using it the charge level drops as expected without the spikes, and the level remains constant when fully switched off.

I am currently on OTA-11 Ubuntu 16.04 LTS - armhf (20191016). ut_chargelevel

ziggutas commented 4 years ago

Switched device to rc channel this morning (2020-W08) (nice!), restarted a couple of times and left it in standby. The random turn on persists and I can confirm same battery chart graphic as tvleming has shown above.

Charckle commented 4 years ago

Nexus 7 13 wi-fi, OTA 11.

Same problem, every X time it lights up, even on the charger. Putting it in to Airplain mode DOES make the problem go away. Battery status graph looks like tvleming's, just in reverse, and not always (from 4 hours ago the graph started being drawn in a normal -notOnTheCharger- falling line)

drgnomage commented 4 years ago

I am also having this issue on my Nexus 7, Battery graph is similar.

svofski commented 3 years ago

OTA 15. Same device, same issue.

dgreenday commented 3 years ago

I experienced the same issue on 16.04 OTA-16. The problem is that repowerd treating "unknown" battery state as "unplugged" and brings the screen up to show the change in UI. The "unknown" battery state comes from combined battery in upowerd, as it does not handle properly the "not charging" state from the kernel driver. IDK where "not charging" comes from, perhaps it is some hardware issue.

To fix this, you need to recompile upower with following patch:

--- a/src/up-daemon.c
+++ b/src/up-daemon.c
@@ -219,6 +219,9 @@
        else if (state == UP_DEVICE_STATE_FULLY_CHARGED &&
             state_total == UP_DEVICE_STATE_UNKNOWN)
            state_total = UP_DEVICE_STATE_FULLY_CHARGED;
+       else if (state == UP_DEVICE_STATE_PENDING_CHARGE &&
+            state_total == UP_DEVICE_STATE_UNKNOWN)
+           state_total = UP_DEVICE_STATE_DISCHARGING;

        /* sum up composite */
        kind_total = UP_DEVICE_KIND_BATTERY;

You can do it in libertine chroot by adding deb-src repos, installing build-essential and doing apt-get source upower && cd upower-0.99.4 && dpkg-buildpackage -uc -us -b -j3 It will ask for build dependencies, install them as well.

I did it for you: upower_0.99.4-2ubuntu0.3_armhf.deb.zip

The device still does not sleep well due to wifi driver activity, but at least it does not light the screen every X minutes.

I will file a bug to the upower upstream soon, but I have no idea how this fix will end up in the OTA image. Can anyone help me with this?

Flohack74 commented 3 years ago

@dgreenday if you want we can work together on fixing the battery issues. On top of this problem we handle power sources in a strange way overall, and in Android 9 devices and beyond multiple features of the charging state and battery graph dont work because of that. I found 4 different methods in UT to gather informations from upowerd and all are problematic. This needs a huge rework :) upower is not to blame, mobile devices behave in a strange way, reporting fake batteries that are always empty etc. This needs a good filtering method and we probably need to look on multiple devices what kind of batteries they report and how we can filter out invalid ones.

usetheforce commented 3 years ago

Can confirm the issue, too: N7 deb, OS-build OTA-17, UBports-image-part 20210504-20388.

Also would like to point out the N7 has Qi wireless charging capability. Maybe the receiver randomly "picks something up" in the 87 to 205 kHz range which makes the device go into charging mode for a short period of time? (Don't know if this is possible: raise the time-out for this?)

elpatax commented 3 years ago

This issue is still present in the Nexus 7 (flo) with stable Ubuntu 16.04 (OTA 18), UBports Image part 20210708-27954.

timindaburgh commented 2 years ago

Just to add another data point. This bug has just begun on my N7 WiFi 2013 running Android 6.0.1. With WiFi on, the N7 wakes randomly (30 minutes of what should have been sleep mode waked to login for 10 sec, then asleep again at the following intervals: 1m57s; 5m51s; 6m22s; 7m21s... etc.) When I turn WiFi off, it stays soundly asleep, as expected. This has happened after replacing the battery. My guess is that it happened before, and I had not noticed it since my poetic cover was typically in the closed position.

timindaburgh commented 2 years ago

Does it make sense to flash an older version of Android on the N7 WiFi 2013?