UBports Robot Logo UBports Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    repowerd issue / high CPU load / 16.04 xenial / Redmi 3S

    Scheduled Pinned Locked Moved Unsolved Support
    3 Posts 2 Posters 352 Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A Offline
      Aleksandr_M
      last edited by

      I have Ubuntu 16.04 installed on Redmi 3S.

      Distributor ID: Ubuntu
      Description:    Ubuntu 16.04.7 LTS
      Release:        16.04
      Codename:       xenial
      

      When I run top via ssh, I see that the CPU usage is relatively high, around 17-30%.

      top - 17:04:56 up 1 min,  2 users,  load average: 3.70, 1.44, 0.52
      Tasks: 491 total,   3 running, 488 sleeping,   0 stopped,   0 zombie
      %Cpu(s): 21.1 us, 53.0 sy,  0.0 ni, 22.1 id,  2.2 wa,  0.0 hi,  1.6 si,  0.0 st
      KiB Mem :  1891816 total,   417304 free,   705128 used,   769384 buff/cache
      KiB Swap:    32764 total,    32764 free,        0 used.  1093700 avail Mem
      
        PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND
       1335 root      20   0    4464   2160   1348 R  31.0  0.1   0:02.44 systemd-logind
        355 root      20   0       0      0      0 D  11.0  0.0   0:00.79 kworker/u16:8
       3606 root      20   0       0      0      0 S   7.6  0.0   0:01.28 kworker/u16:9
        198 root      20   0       0      0      0 S   5.7  0.0   0:00.81 hwrng
       1052 message+  20   0    8700   3580   1060 S   4.8  0.2   0:05.39 dbus-daemon
       2567 phablet   20   0   47028   3596   1712 S   3.8  0.2   0:06.18 upstart
       1030 root      20   0   12164   2564    988 S   2.9  0.1   0:01.87 systemd-udevd
          1 root      20   0    7588   3632   1564 R   2.4  0.2   0:06.84 init
        343 root      20   0       0      0      0 D   2.4  0.0   0:03.40 mmcqd/0
       3975 phablet   20   0 2465072 163268  75920 S   2.4  8.6   0:12.81 unity8
       6409 phablet   20   0   45972   2208   1220 R   2.4  0.1   0:00.22 top
          6 root      20   0       0      0      0 S   1.9  0.0   0:00.52 kworker/u16:0
       1386 radio     20   0   95232   4248   3112 S   1.9  0.2   0:01.05 netmgrd
         15 root      rt   0       0      0      0 S   1.4  0.0   0:00.09 migration/0
         64 root      rt   0       0      0      0 S   1.4  0.0   0:00.08 migration/7
       1040 syslog    20   0  225932   1500    820 S   1.4  0.1   0:00.54 rsyslogd
       1406 radio     20   0   84516  12548   9104 S   1.4  0.7   0:00.58 rild
       1744 root      20   0  229944   3836   3020 S   1.4  0.2   0:00.50 accounts-daemon
         32 root      rt   0       0      0      0 S   1.0  0.0   0:00.05 migration/3
         40 root      rt   0       0      0      0 S   1.0  0.0   0:00.06 migration/4
         48 root      rt   0       0      0      0 S   1.0  0.0   0:00.06 migration/5
         56 root      rt   0       0      0      0 S   1.0  0.0   0:00.07 migration/6
        338 root      rt   0       0      0      0 S   1.0  0.0   0:00.06 cfinteractive
       1027 root      20   0    5816   1672    556 S   1.0  0.1   0:01.59 upstart-udev-br
       1058 root      20   0  229632   3248   2616 S   1.0  0.2   0:00.35 urfkilld
       1389 radio     20   0   82452  12484   9016 S   1.0  0.7   0:00.58 rild
       1484 root      20   0 1227724  12480   9688 S   1.0  0.7   0:00.75 repowerd
       1839 root      20   0  303248   3588   2860 S   1.0  0.2   0:00.12 lightdm
       1863 root      20   0    5020    700    312 S   1.0  0.0   0:00.45 upstart-socket-
       2833 phablet   20   0   44704    636    356 S   1.0  0.0   0:01.16 upstart-udev-br
       2842 phablet   20   0    7088   2436    968 S   1.0  0.1   0:02.16 dbus-daemon
       3003 phablet   20   0   44952   1056    424 S   1.0  0.1   0:01.68 upstart-dbus-br
       3013 phablet    9 -11  748932  17912   9840 S   1.0  0.9   0:01.85 pulseaudio
       3057 phablet   20   0   44692    796    420 S   1.0  0.0   0:01.42 upstart-dbus-br
       4301 phablet   20   0  475488  18352  14824 S   1.0  1.0   0:00.37 telephony-servi
       4891 phablet   20   0  898580   3604   2700 S   1.0  0.2   0:00.23 indicator-sessi
       4929 phablet   20   0  620552  14344  11632 S   1.0  0.8   0:00.38 sync-monitor
          3 root      20   0       0      0      0 S   0.5  0.0   0:00.49 ksoftirqd/0
          7 root      20   0       0      0      0 S   0.5  0.0   0:00.43 rcu_preempt
      

      When I plug in a USB keyboard, CPU usage becomes normal.

      top - 17:05:55 up 2 min,  2 users,  load average: 3.22, 1.61, 0.62
      Tasks: 493 total,   1 running, 492 sleeping,   0 stopped,   0 zombie
      %Cpu(s):  0.1 us,  0.3 sy,  0.0 ni, 99.5 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0 st
      KiB Mem :  1891816 total,   411764 free,   709120 used,   770932 buff/cache
      KiB Swap:    32764 total,    32764 free,        0 used.  1089448 avail Mem
      
        PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND
       6409 phablet   20   0   45972   2208   1220 R   1.3  0.1   0:00.72 top
       4927 phablet   20   0  942748  19032  12840 S   0.7  1.0   0:00.64 ubuntu-push-cli
        339 root     -51   0       0      0      0 S   0.3  0.0   0:00.02 irq/184-7824900
       1390 root       0 -20   62248   2980   1628 S   0.3  0.2   0:00.26 thermal-engine
       1400 1017      20   0   11872   2892   2116 S   0.3  0.2   0:00.16 keystore
       1418 system    20   0   12544   2832   2084 S   0.3  0.1   0:00.16 gatekeeperd
       3128 root      20   0       0      0      0 S   0.3  0.0   0:00.04 kworker/2:2
       3606 root      20   0       0      0      0 S   0.3  0.0   0:01.68 kworker/u16:9
       3975 phablet   20   0 2448704 163336  75988 S   0.3  8.6   0:13.71 unity8
       4933 phablet   20   0 1084596  61980  34364 S   0.3  3.3   0:01.39 maliit-server
       5924 root      19  -1       0      0      0 S   0.3  0.0   0:00.18 VosRXThread
          1 root      20   0    7588   3632   1564 S   0.0  0.2   0:07.39 init
          2 root      20   0       0      0      0 S   0.0  0.0   0:00.02 kthreadd
          3 root      20   0       0      0      0 S   0.0  0.0   0:00.53 ksoftirqd/0
          4 root      20   0       0      0      0 S   0.0  0.0   0:00.00 kworker/0:0
          5 root       0 -20       0      0      0 S   0.0  0.0   0:00.00 kworker/0:0H
          6 root      20   0       0      0      0 S   0.0  0.0   0:01.74 kworker/u16:0
          7 root      20   0       0      0      0 S   0.0  0.0   0:00.62 rcu_preempt
          8 root      20   0       0      0      0 S   0.0  0.0   0:00.30 rcu_sched
          9 root      20   0       0      0      0 S   0.0  0.0   0:00.00 rcu_bh
         10 root      20   0       0      0      0 S   0.0  0.0   0:00.20 rcuop/0
         11 root      20   0       0      0      0 S   0.0  0.0   0:00.07 rcuos/0
         12 root      20   0       0      0      0 S   0.0  0.0   0:00.00 rcuob/0
         13 root      -2   0       0      0      0 S   0.0  0.0   0:00.00 rcuc/0
         14 root      -2   0       0      0      0 S   0.0  0.0   0:00.00 rcub/0
         15 root      rt   0       0      0      0 S   0.0  0.0   0:00.41 migration/0
         16 root      rt   0       0      0      0 S   0.0  0.0   0:00.09 migration/1
         17 root      -2   0       0      0      0 S   0.0  0.0   0:00.00 rcuc/1
         18 root      20   0       0      0      0 S   0.0  0.0   0:00.01 ksoftirqd/1
         19 root      20   0       0      0      0 S   0.0  0.0   0:00.00 kworker/1:0
         20 root       0 -20       0      0      0 S   0.0  0.0   0:00.00 kworker/1:0H
         21 root      20   0       0      0      0 S   0.0  0.0   0:00.19 rcuop/1
         22 root      20   0       0      0      0 S   0.0  0.0   0:00.04 rcuos/1
         23 root      20   0       0      0      0 S   0.0  0.0   0:00.00 rcuob/1
         24 root      rt   0       0      0      0 S   0.0  0.0   0:00.16 migration/2
         25 root      -2   0       0      0      0 S   0.0  0.0   0:00.00 rcuc/2
         26 root      20   0       0      0      0 S   0.0  0.0   0:00.00 ksoftirqd/2
         27 root      20   0       0      0      0 S   0.0  0.0   0:00.03 kworker/2:0
         28 root       0 -20       0      0      0 S   0.0  0.0   0:00.00 kworker/2:0H
      

      I have noticed that when no USB keyboard is connected and CPU usage is high, the repowerd.log file in /var/log grows rapidly. It looks like repowerd is in a loop and is logging data multiple times per second.

      2023-08-13T16:41:47.881862+03:00 ubuntu-phablet repowerd[1469]: LogindSessionTracker: deactivate_session()
      2023-08-13T16:41:47.941716+03:00 ubuntu-phablet repowerd[1469]: LogindSessionTracker: change_seat_properties(/org/freedesktop/login1/seat/seat0), ActiveSession=(c1,/org/freedesktop/login1/session/c1)
      2023-08-13T16:41:48.245514+03:00 ubuntu-phablet repowerd[1469]: LogindSessionTracker: change_seat_properties(/org/freedesktop/login1/seat/seat0), ActiveSession=(,/)
      2023-08-13T16:41:48.245558+03:00 ubuntu-phablet repowerd[1469]: LogindSessionTracker: deactivate_session()
      2023-08-13T16:41:48.292674+03:00 ubuntu-phablet repowerd[1469]: LogindSessionTracker: change_seat_properties(/org/freedesktop/login1/seat/seat0), ActiveSession=(c1,/org/freedesktop/login1/session/c1)
      2023-08-13T16:41:48.498923+03:00 ubuntu-phablet repowerd[1469]: LogindSessionTracker: change_seat_properties(/org/freedesktop/login1/seat/seat0), ActiveSession=(,/)
      2023-08-13T16:41:48.498966+03:00 ubuntu-phablet repowerd[1469]: LogindSessionTracker: deactivate_session()
      2023-08-13T16:41:48.729992+03:00 ubuntu-phablet repowerd[1469]: LogindSessionTracker: change_seat_properties(/org/freedesktop/login1/seat/seat0), ActiveSession=(c1,/org/freedesktop/login1/session/c1)
      2023-08-13T16:41:48.797722+03:00 ubuntu-phablet repowerd[1469]: LogindSessionTracker: change_seat_properties(/org/freedesktop/login1/seat/seat0), ActiveSession=(,/)
      2023-08-13T16:41:48.797764+03:00 ubuntu-phablet repowerd[1469]: LogindSessionTracker: deactivate_session()
      2023-08-13T16:41:48.848318+03:00 ubuntu-phablet repowerd[1469]: LogindSessionTracker: change_seat_properties(/org/freedesktop/login1/seat/seat0), ActiveSession=(c1,/org/freedesktop/login1/session/c1)
      2023-08-13T16:41:48.937225+03:00 ubuntu-phablet repowerd[1469]: LogindSessionTracker: change_seat_properties(/org/freedesktop/login1/seat/seat0), ActiveSession=(,/)
      2023-08-13T16:41:48.937265+03:00 ubuntu-phablet repowerd[1469]: LogindSessionTracker: deactivate_session()
      2023-08-13T16:41:48.987887+03:00 ubuntu-phablet repowerd[1469]: LogindSessionTracker: change_seat_properties(/org/freedesktop/login1/seat/seat0), ActiveSession=(c1,/org/freedesktop/login1/session/c1)
      2023-08-13T16:41:49.075670+03:00 ubuntu-phablet repowerd[1469]: LogindSessionTracker: change_seat_properties(/org/freedesktop/login1/seat/seat0), ActiveSession=(,/)
      2023-08-13T16:41:49.075720+03:00 ubuntu-phablet repowerd[1469]: LogindSessionTracker: deactivate_session()
      2023-08-13T16:41:49.130947+03:00 ubuntu-phablet repowerd[1469]: LogindSessionTracker: change_seat_properties(/org/freedesktop/login1/seat/seat0), ActiveSession=(c1,/org/freedesktop/login1/session/c1)
      2023-08-13T16:41:49.597379+03:00 ubuntu-phablet repowerd[1469]: LogindSessionTracker: change_seat_properties(/org/freedesktop/login1/seat/seat0), ActiveSession=(,/)
      2023-08-13T16:41:49.597413+03:00 ubuntu-phablet repowerd[1469]: LogindSessionTracker: deactivate_session()
      2023-08-13T16:41:49.646516+03:00 ubuntu-phablet repowerd[1469]: LogindSessionTracker: change_seat_properties(/org/freedesktop/login1/seat/seat0), ActiveSession=(c1,/org/freedesktop/login1/session/c1)
      

      When I plug in a keyboard, the repowerd.log stops growing and the items in that log look normal.

      2023-08-13T16:42:46.878770+03:00 ubuntu-phablet repowerd[1469]: LogindSessionTracker: deactivate_session()
      2023-08-13T16:42:46.932405+03:00 ubuntu-phablet repowerd[1469]: LogindSessionTracker: change_seat_properties(/org/freedesktop/login1/seat/seat0), ActiveSession=(c1,/org/freedesktop/login1/session/c1)
      2023-08-13T16:42:47.721708+03:00 ubuntu-phablet repowerd[1469]: LogindSessionTracker: change_seat_properties(/org/freedesktop/login1/seat/seat0), ActiveSession=(,/)
      2023-08-13T16:42:47.721747+03:00 ubuntu-phablet repowerd[1469]: LogindSessionTracker: deactivate_session()
      2023-08-13T16:42:47.778708+03:00 ubuntu-phablet repowerd[1469]: LogindSessionTracker: change_seat_properties(/org/freedesktop/login1/seat/seat0), ActiveSession=(c1,/org/freedesktop/login1/session/c1)
      2023-08-13T16:42:47.795618+03:00 ubuntu-phablet repowerd[1469]: UPowerPowerSourceAndLid: change_device(/org/freedesktop/UPower/devices/battery_fg_adc), type=battery, is_present=1, state=empty, percentage=0.00, temperature=0.00
      2023-08-13T16:42:47.796856+03:00 ubuntu-phablet repowerd[1469]: UPowerPowerSourceAndLid: change_device(/org/freedesktop/UPower/devices/battery_bms), type=battery, is_present=1, state=discharging, percentage=89.00, temperature=32.00
      2023-08-13T16:42:47.797308+03:00 ubuntu-phablet repowerd[1469]: UPowerPowerSourceAndLid: change_device(/org/freedesktop/UPower/devices/DisplayDevice), type=battery, is_present=1, state=discharging, percentage=89.00, temperature=0.00
      2023-08-13T16:42:47.798340+03:00 ubuntu-phablet repowerd[1469]: UPowerPowerSourceAndLid: change_device(/org/freedesktop/UPower/devices/battery_battery), type=battery, is_present=1, state=discharging, percentage=89.00, temperature=32.00
      2023-08-13T16:42:47.798519+03:00 ubuntu-phablet repowerd[1469]: UPowerPowerSourceAndLid: change_device(/org/freedesktop/UPower/devices/battery_bcl), type=battery, is_present=1, state=empty, percentage=0.00, temperature=0.00
      2023-08-13T16:44:47.758967+03:00 ubuntu-phablet repowerd[1469]: UPowerPowerSourceAndLid: change_device(/org/freedesktop/UPower/devices/battery_fg_adc), type=battery, is_present=1, state=empty, percentage=0.00, temperature=0.00
      2023-08-13T16:44:47.759167+03:00 ubuntu-phablet repowerd[1469]: UPowerPowerSourceAndLid: change_device(/org/freedesktop/UPower/devices/battery_bms), type=battery, is_present=1, state=discharging, percentage=89.00, temperature=32.00
      2023-08-13T16:44:47.759544+03:00 ubuntu-phablet repowerd[1469]: UPowerPowerSourceAndLid: change_device(/org/freedesktop/UPower/devices/DisplayDevice), type=battery, is_present=1, state=discharging, percentage=89.00, temperature=0.00
      2023-08-13T16:44:47.759964+03:00 ubuntu-phablet repowerd[1469]: UPowerPowerSourceAndLid: change_device(/org/freedesktop/UPower/devices/battery_bcl), type=battery, is_present=1, state=empty, percentage=0.00, temperature=0.00
      2023-08-13T16:44:47.760714+03:00 ubuntu-phablet repowerd[1469]: UPowerPowerSourceAndLid: change_device(/org/freedesktop/UPower/devices/battery_battery), type=battery, is_present=1, state=discharging, percentage=89.00, temperature=32.00
      2023-08-13T16:46:27.001489+03:00 ubuntu-phablet repowerd[1469]: LibsuspendSystemPowerControl: disallow_suspend(Wakeup_17650510925717688110_2)
      2023-08-13T16:46:27.001664+03:00 ubuntu-phablet repowerd[1469]: LibsuspendSystemPowerControl: exiting suspend
      2023-08-13T16:46:27.002021+03:00 ubuntu-phablet repowerd[1469]: UnityScreenService: dbus_emit_Wakeup()
      2023-08-13T16:46:27.007259+03:00 ubuntu-phablet repowerd[1469]: UnityScreenService: dbus_requestSysState(:1.94,ubuntu push client,1)
      2023-08-13T16:46:27.011367+03:00 ubuntu-phablet repowerd[1469]: UnityScreenService: dbus_requestSysState(:1.94,ubuntu push client,1) => 3
      2023-08-13T16:46:27.011479+03:00 ubuntu-phablet repowerd[1469]: DefaultStateMachine[c1]: disallow_suspend
      2023-08-13T16:46:27.011506+03:00 ubuntu-phablet repowerd[1469]: LibsuspendSystemPowerControl: disallow_suspend(DefaultStateMachine)
      2023-08-13T16:46:30.005660+03:00 ubuntu-phablet repowerd[1469]: LibsuspendSystemPowerControl: allow_suspend(Wakeup_17650510925717688110_2)
      2023-08-13T16:46:32.042794+03:00 ubuntu-phablet repowerd[1469]: UnityScreenService: dbus_requestWakeup(:1.94,ubuntu push client,1691934692)
      2023-08-13T16:46:32.042893+03:00 ubuntu-phablet repowerd[1469]: UnityScreenService: dbus_requestWakeup(:1.94,ubuntu push client,1691934692) => 8089818415269745594
      2023-08-13T16:46:32.046234+03:00 ubuntu-phablet repowerd[1469]: UnityScreenService: dbus_clearSysState(:1.94,3)
      2023-08-13T16:46:32.049950+03:00 ubuntu-phablet repowerd[1469]: DefaultStateMachine[c1]: allow_suspend
      2023-08-13T16:46:36.055864+03:00 ubuntu-phablet repowerd[1469]: DefaultStateMachine[c1]: handle_alarm(suspend_delay)
      2023-08-13T16:46:36.055908+03:00 ubuntu-phablet repowerd[1469]: LibsuspendSystemPowerControl: allow_suspend(DefaultStateMachine)
      2023-08-13T16:46:36.056054+03:00 ubuntu-phablet repowerd[1469]: LibsuspendSystemPowerControl: Preparing for suspend
      2023-08-13T16:46:47.690919+03:00 ubuntu-phablet repowerd[1469]: UPowerPowerSourceAndLid: change_device(/org/freedesktop/UPower/devices/battery_fg_adc), type=battery, is_present=1, state=empty, percentage=0.00, temperature=0.00
      2023-08-13T16:46:47.691114+03:00 ubuntu-phablet repowerd[1469]: UPowerPowerSourceAndLid: change_device(/org/freedesktop/UPower/devices/battery_bms), type=battery, is_present=1, state=discharging, percentage=89.00, temperature=32.00
      2023-08-13T16:46:47.692112+03:00 ubuntu-phablet repowerd[1469]: UPowerPowerSourceAndLid: change_device(/org/freedesktop/UPower/devices/DisplayDevice), type=battery, is_present=1, state=discharging, percentage=89.00, temperature=0.00
      2023-08-13T16:46:47.692205+03:00 ubuntu-phablet repowerd[1469]: UPowerPowerSourceAndLid: change_device(/org/freedesktop/UPower/devices/battery_bcl), type=battery, is_present=1, state=empty, percentage=0.00, temperature=0.00
      2023-08-13T16:46:47.693142+03:00 ubuntu-phablet repowerd[1469]: UPowerPowerSourceAndLid: change_device(/org/freedesktop/UPower/devices/battery_battery), type=battery, is_present=1, state=discharging, percentage=89.00, temperature=32.00
      

      Also, if I stop the repowerd daemon, the CPU usage goes to normal.

      What could be the problem?

      A 1 Reply Last reply Reply Quote 0
      • A Offline
        Aleksandr_M @Aleksandr_M
        last edited by

        Restored Android because I'm not happy with UT.

        KenedaK 1 Reply Last reply Reply Quote 0
        • KenedaK Offline
          Keneda @Aleksandr_M
          last edited by

          @Aleksandr_M
          May we see you in futur with a better supported phone.
          Have a good day šŸ˜‰

          2015-2023 : Meizu MX4 ā˜ ļøāš°ļøāœļø
          2023-2024 : Nexus 5 ā˜ ļøāš°ļøāœļø
          2024-***** : FPOS Fairphone 5
          šŸ‡²šŸ‡«šŸ‡¬šŸ‡§

          1 Reply Last reply Reply Quote 1

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better šŸ’—

          Register Login
          • First post
            Last post