0
Tejas SJ

xfce4-power-manager is shutting down the board

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

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
0