Jump to content

xfce4-power-manager is shutting down the board


Tejas SJ

Recommended Posts

Hardware setup :: Olimex Lime 2 Rev.k + 7" LCD + 5V power supply through the power jack. No battery is connected to the lime 2 board.

 

Problem :: when the board boots up, the xfce power manager shows that the Battery is connected and it's in charging mode. The current charge value of the battery changes randomly like 92%, 56% and etc. When it reaches 0% the board will shut down. It completes the shut down procedure.

 

The following is the terminal output, to find the battery status. Even though the battery is not connected you can observe that it returns the Voltage and reports that the battery is present

root@olinuxino:~# cat /sys/class/power_supply/axp20x-battery/voltage_now
2865000
root@olinuxino:~# cat /sys/class/power_supply/axp20x-battery/present
1
root@olinuxino:~# cat /sys/class/power_supply/axp20x-battery/online
1
root@olinuxino:~# cat /sys/class/power_supply/axp20x-battery/capacity
0
root@olinuxino:~# cat /sys/class/power_supply/axp20x-battery/capacity
0
root@olinuxino:~# cat /sys/class/power_supply/axp20x-battery/online
1
root@olinuxino:~# cat /sys/class/power_supply/axp20x-battery/voltage_now
2879000
root@olinuxino:~# [  OK  ] Stopped Unattended Upgrades Shutdown.
[  OK  ] Stopped target Timers.
[  OK  ] Stopped target Sound Card.
.....
.....
.....

The board shut down as soon as the capacity reached 0%.

 

I have three Lime 2 Rev.K boards, the behaviour is seen in all.

What could be the reason for this behavior?
Should I disable xfce power manager? 

What are the other problems with disabling xfce power manager?

 

Can you please tell me the steps to disable the xfce4-power-manager.

Note : I am using the Armbian_Ubuntu_bionic_5.1.12 OS with Lime 2 rev.K. It doesn't happen with Armbian_5.72.1 Debian_stretch.

 

Attachments::

AXP209 Charging LED is ON - Even though the battery is not connected to the board, the charging LED is ON. The LED is not continuously ON, it blinks in random order.

xfce4 Power manger - Image of xfce4 Power manger which shows that battery is connected even though its not physically connected.

AXP209 Charging LED is ON.jpeg

xfce4 Power manager 1.jpeg

xfce4 power manager 2.jpeg

Link to comment
Share on other sites

IIRC AXP driver in modern kernel has limited functionality. Not on the level as legacy ... but nevertheless you can communicate with AXP via I2C ... there are some manuals for this (Google) 

I would  say this is simply a bug. But where? There are no logs, we don't have this hardware, we don't use this kernel ... 

 

12 hours ago, Tejas SJ said:

Note : I am using the Armbian_Ubuntu_bionic_5.1.12 OS with Lime 2 rev.K. It doesn't happen with Armbian_5.72.1 Debian_stretch.


This is how you check if you run official Armbian which we can try to support:
https://docs.armbian.com/User-Guide_Getting-Started/#how-to-check-download-authenticity

Link to comment
Share on other sites

On 9/13/2019 at 10:20 AM, Tejas SJ said:

What could be the reason for this behavior?


I tried official Armbian today (with 4.19 and dev 5.3. kernel, both latest nightly builds) and my Lime 2 rev K works perfectly as expected: http://ix.io/1VPk

root@lime2:~# cat /sys/class/power_supply/axp20x-battery/voltage_now
4062000
root@lime2:~# cat /sys/class/power_supply/axp20x-battery/capacity
51

 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines