Open Arc676 opened 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.
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?
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).
can you include /var/log/repowerd.log when this happens..
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]
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
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.
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.
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]
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).
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.
Ok will close for the moment. Can be reopened later....
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.
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.
tested about six hours straight, no random wake issues with mine, maybe you have a faulty power button
@rubencarneiro I take you were connected to wifi during your tests?
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).
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?
Ah thats interesting ... sounds a bit like #935 ...(?)
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
@Arc676 can you re-test with a fresh install and latest image? Thx!
This is a fresh install. I just loaded UBports a few hours ago and I also just upgraded to the rc channel
@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 ;)
oh sorry ;)
@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.
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.
Perfect thanks!
This behaviour has been happening on my device since installing UT in Feb 2019. Currently on stable channel, OTA-11
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).
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.
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)
I am also having this issue on my Nexus 7, Battery graph is similar.
OTA 15. Same device, same issue.
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?
@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.
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?)
This issue is still present in the Nexus 7 (flo) with stable Ubuntu 16.04 (OTA 18), UBports Image part 20210708-27954.
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.
Does it make sense to flash an older version of Android on the N7 WiFi 2013?
Steps to reproduce
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: