Armbian on Cubietruck does not report battery and power values


Klaus Rubik
 Share

1 1

Recommended Posts

Donate and support the project!

Generally: new kernel is not populated with all features from stock. 

 

This particular part is done but it's not function properly so it's disabled. Sooner or later it will be fixed. Maybe already is ... I need to check.

I'm also very interested in this feature, it would be very great if its comming soon.. :)

Link to post
Share on other sites

Images are two months old ... since building them is a very time consuming operations. Even the process is half automated, somebody needs to test at least some of them. Recently we only build upgrades and even that is not simple. Usually something stops working by our or by some general fault.  :mellow:  :)

 

Since we also change the way whole thing works it's a bit complicated (for non techies). How to build a kernel is written under documentation ... Just a tip if you go for that - you need to install all packages. If some shows you error, you need to deinstall previous version.

 

When upgrade will be ready, all you need will be to run apt-get update & upgrade and will work. This stage is 2-3 weeks away.

Link to post
Share on other sites

Three questions:

 

- what's in your - it should be:

s -l /etc/update-motd.d/
total 20
-rwxr-xr-x 1 root root  245 Feb 19 15:31 10-header
-rwxr-xr-x 1 root root 5474 Feb 19 15:31 30-sysinfo
-rwxr-xr-x 1 root root 4348 Feb 19 15:31 40-updates

- where is your /etc/motd linked to

motd -> /var/run/motd

- did you alter your sshd.config ?

Link to post
Share on other sites

Hello Igor,

 

here are the answers:

 

No. 1:

# ls -l /etc/update-motd.d/

total 20

-rwxr-xr-x 1 root root  245 Feb 11 23:38 10-header

-rwxr-xr-x 1 root root 5474 Feb 11 23:38 30-sysinfo

-rwxr-xr-x 1 root root 4348 Feb 11 23:38 40-updates


No. 2:
# ls -l /etc/motd

lrwxrwxrwx 1 root root 13 Feb 13 17:24 /etc/motd -> /var/run/motd

 
No. 3:
just to allow root login
 
Klaus
Link to post
Share on other sites

Hello again,

 

based on your questions I have seen, that there was only a /var/run/motd.new. Since I have copied it to /var/run/motd it shows following screen during login:

 

  ____      _     _      _                   _    

 / ___|   _| |__ (_) ___| |_ _ __ _   _  ___| | __

| |  | | | | '_ \| |/ _ \ __| '__| | | |/ __| |/ /

| |__| |_| | |_) | |  __/ |_| |  | |_| | (__|   <

 \____\__,_|_.__/|_|\___|\__|_|   \__,_|\___|_|\_\

                                                  

 

Welcome to ARMBIAN Debian GNU/Linux 8 (jessie) 4.4.1-sunxi 

 

System load:   0.06            Up time:       6 days

Memory usage:  13 % of 2017Mb IP:            192.168.0.26

CPU temp:      31°C           

Usage of /:    5% of 110G   Battery:       100% charged   

 

Last login: Sat Feb 20 11:31:16 2016 from robin-air.fritz.box

 
looking in your 30-sysinfo script shows, that the values are stored in /sys/power/axp_pmu/battery correct?
 
Last question, where do I define my max battery capacity?
 
kind regards
 
Klaus
Link to post
Share on other sites

based on your questions I have seen, that there was only a /var/run/motd.new. Since I have copied it to /var/run/motd it shows following screen during login:

 

Ahaa, make a link to that file, not a copy.

 

For further info regarding battery, check this thread:

http://forum.armbian.com/index.php/topic/611-wip-axp209-mainline-sysfs-interface/

Battery charged rate is calculated from voltage so capacity does not matter.

How correct are the numbers is hard to say. Good enough to put some things in action when capacity drops below certain percentage. You will need a test or two to make sure.

Link to post
Share on other sites

Guest
This topic is now closed to further replies.
 Share

1 1