Start a new topic

Battery status display on desktop pannel

Right now you can type "pt-status" in a console window, but there is no continuous battery status display while you are on the desktop.


I have therefore created a little program to display the pi-top battery status on the desktop. It displays a small icon on the task bar.


To download, use the browser and navigate to github.com

Then search in github for pi-top-battery-status


Installation instructions are there.


Questions and suggestions for improvement are most welcome.


Help!


After x2 replacements following non-recoverable battery issues and following all the contributions from the usual suspects and the latest Pi-Top OS upgrades I am facing a battery pack that again is refusing to accept a charge! *


What should I do to find the source of the 'apparent' problem before taking any action? What is the revised action list?


Thank you in advance


* When the charger cable is unplugged, the Pi-Top immediately switches off, "pop!"

Yes, the newest update from pi-top fixes some bugs and is required. Sorry for the short answer,my long answer got eaten by the forum software.


To see my github repository, just type in your browser github.com/rricharz/pi-top-setup


If you want to learn how to publish on github, type in your browser guides.github.com

Then do the hello world guide

Rene, I have just powered up the Pi-Top after a couple of weeks rest to find another software update due. This is not related?


Where can I find an easy to read guide to using Github?/


I am having trouble with the memory doubler program. The available doubled memory rapidly fills and the Pi-Top freezes with no available memory. Advice has been received to reduce the "swappiness" value to 1, but this has not altered the behaviour. Memory leakage or garbage collection failure?


A fully working memory doubler really would be a revolution for both the Pi-Top and RPi in general?

The latest pi-top device management software is now also available for Raspbian Stretch. This is now the recommended way to use Raspbian Stretch on any pi-top and is a pleasure to use. For installation instructions, and two little programs to optimize the user interface (including the battery icon in the system tray), see github.com/rricharz/pi-top-setup

Finally here as requested by many users! A battery icon in the system tray on the right side of the desktop panel for users of pi-topOS.


If you are using pi-top-battery-status on pi-topOS, consider using github.com/rricharz/pi-top-battery-widget instead. It displays the battery icon in the system tray.


The latest version of pi-topOS takes care of low battery warnings and shuts down the pi-top properly if the battery charge gets too low. These functions in pi-top-battery-status are therefore not required anymore. pi-top-battery-widget just displays the battery icon and does not interfere with pi-topOS in any other way.


pi-top will soon release a version of their device manager (see github.com/pi-top/Device-Management) of standard Raspbian. Once this is released, users of standard Raspbian on the pi-top will also be able to use pi-top-battery-widget. 


Your feedback is most welcome.


1 person likes this

Thanks for the update, Rene! I'm fiddling with the new version now.

Bruce, sorry that it took a few days to modify and test pi-top-battery-status to work for any user with the proper privileges. You should now be able to install it for other users than pi. Please see the comment at the bottom of the readme.md file about adding the necessary privileges for other users. Please let us know whether it works now for you.

Bruce, sorry that it took a few days to modify and test pi-top-battery-status to work for any user with the proper privileges. You should now be able to install it for other users than pi. Please see the comment at the bottom of the readme.md file about adding the necessary privileges for other users. Please let us know whether it works now for you.


The link to the program is github.com/rricharz/pi-top-battery-status

I've been trying to get this app working in my account instead of needing to login as 'pi'. I edited the Install and Uninstall scripts, and gtk_battery.c files. Making the app succeeds, and when I run the Install script it succeeds and the icon appears in the Panel with the battery level. But when I reboot the Pi-Top and login the app won't autostart, and the only way I've found so far to get it running is to rerun Install.


What have I missed? How do I go about getting this app to run in my non-pi account? Thanks!

Hi!


m_access-4 : pi-top test application


ScreenDump.txt : result


m_access-4.c : source Code


makefile : "make" command


- console window


- cd Downloads


- put all files into the "Downloads" folder


- sudo m_access-4


Success!


Please pi-top Team, do not simply delete this entry, At the very least tell me why you have objections me placing this onto the forum.

(98 Bytes)
(11.2 KB)
txt
(2.31 KB)
c
(18.8 KB)

How do i delete this?

Mine says that the battery status is unknown. Is there a fix to this? BTW I'm to to Pi-Top

A general principle of GUI could be that items critical to the good running of a device are self explanatory rather than a celebration of the cryptic for an exclusively well informed clique. 


Regardless of the ubiquitous power of the Internet, it cannot be ignored that a portable device may be carried to an environment where communications with a well informed group of likewise device users is not possible for a duration that renders the device unusable or permanently damaged. For a professional user just as for anybody who has paid good money, this is not a positive result.


We are learning by example how to improve our own as well as others experience of a technical and well appreciated product. Hoping for a commercial success for all contributors in future?


I do hope this helps?

Thank you Rene.

Alexandra

Link to the battery display: github.com/rricharz/pi-top-battery-status
Login or Signup to post a comment