Klaus Rubik Posted November 25, 2015 Posted November 25, 2015 I have done a fresh installation of the Debian image (http://mirror.igorpecovnik.com/Armbian_4.5_Cubietruck_Debian_jessie_4.2.3.zip), but since that the linux does not report any information on power and the battery. There is no information in /sys/class/power_supply. As I am not an linux expert, any useful informationhighly welcome
Igor Posted November 25, 2015 Posted November 25, 2015 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.
Klaus Rubik Posted November 25, 2015 Author Posted November 25, 2015 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. Thank you, looking forward
Klaus Rubik Posted December 1, 2015 Author Posted December 1, 2015 Todays update hasn't fixed the problem
skom Posted December 11, 2015 Posted December 11, 2015 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..
Klaus Rubik Posted January 20, 2016 Author Posted January 20, 2016 Hello Igor, Any idea, by when you could provide a fix? Kind regards Klaus Gesendet von meinem iPhone mit Tapatalk
Igor Posted January 20, 2016 Posted January 20, 2016 It's done for kernel 3.4.x(legacy) and 4.4 (development) ... if you build from sources, it will be working in those cases. https://github.com/igorpecovnik/lib/blob/master/scripts/update-motd.d/30-sysinfo In 3.4 it works without anything, for 4.4 you need to patch kernel.
Klaus Rubik Posted January 20, 2016 Author Posted January 20, 2016 Thx, and for non techies like myself Is it in your actual downloadable images fixed, so I can do a new setup from scratch? Or can you provide a step by step description how to upgrade the kernel? Klaus Gesendet von meinem iPhone mit Tapatalk
Igor Posted January 20, 2016 Posted January 20, 2016 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. 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.
Klaus Rubik Posted January 20, 2016 Author Posted January 20, 2016 Thx, will wait for the solution in 2-3 weeks Gesendet von meinem iPhone mit Tapatalk
Klaus Rubik Posted February 13, 2016 Author Posted February 13, 2016 I've done an apt-get update and an apt-get upgrade. Kernel was updated and reboot done, but problem still not fixed. My fault or is it still not in the distribution? kind regards Klaus
Igor Posted February 13, 2016 Posted February 13, 2016 Now you should get the battery info. Can you paste your login screen? I assume your battery is attached?
Klaus Rubik Posted February 14, 2016 Author Posted February 14, 2016 Hi Igor, this is a screen copy of my actual login. screencopy.tiff kind regards Klaus
Klaus Rubik Posted February 20, 2016 Author Posted February 20, 2016 I'm also very interested in this feature, it would be very great if its comming soon.. Hello Skom, is the update working with your installation? Klaus
Igor Posted February 20, 2016 Posted February 20, 2016 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 ?
Klaus Rubik Posted February 20, 2016 Author Posted February 20, 2016 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
Klaus Rubik Posted February 20, 2016 Author Posted February 20, 2016 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
Igor Posted February 20, 2016 Posted February 20, 2016 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.
Klaus Rubik Posted February 20, 2016 Author Posted February 20, 2016 Hello Igor, thank you for your perfect support!! kind regards Klaus 1
Recommended Posts