Zera_Lin
Posts: 9
Joined: Fri Jul 10, 2020 12:25 pm

How to display battery quantity of Waveshare PILAPTOP

Fri Jul 10, 2020 12:42 pm

The PILAPTOP is a laptop that uses the Compute Module 3+ Lite as the controller. You can also change the control board to Compute Module 3, Compute Module 3 Lite, or the Compute Module 3+. The display of PILAPTOP is 15.6inch IPS, 1920x1080 resolution. It contains a keyboard, speaker, 2MP camera, and battery.
As the battery solution is different from the common laptop, we would like to know how to use the default battery icon and display the capacity on the desktop of Raspberry Pi OS.
link of the PILAPTOP: https://www.waveshare.com/pilaptop-cm3- ... age-a.htm
Image

DRAgon715205
Posts: 77
Joined: Wed Apr 02, 2014 11:46 am

Re: How to display battery quantity of Waveshare PILAPTOP

Fri Jul 10, 2020 1:11 pm

I also get a Waveshare PILAPTOP .

How can I put a Battery indicator icon at Raspbian OS like this ?

Image

trejan
Posts: 3064
Joined: Tue Jul 02, 2019 2:28 pm

Re: How to display battery quantity of Waveshare PILAPTOP

Fri Jul 10, 2020 1:17 pm

I'm guessing you're an Waveshare employee(s) and not end users as the PILAPTOP is still in preorder stage and won't be shipped until August.

The battery status plugin is https://github.com/raspberrypi-ui/lxplug-ptbatt but it only supports ACPI batteries on x86 PCs and the pi-top battery. The Pi doesn't have ACPI so that route is a deadend. The pi-top battery status is read by querying a separate pi-top management daemon that handles the actual communication. See https://github.com/raspberrypi-ui/lxplu ... att.c#L164 for more details.

You'll need to either write a similar management daemon for the PILAPTOP to make it pretend to be a pi-top or write a new module for lxplug-ptbatt specifically for your PILAPTOP.

Zera_Lin
Posts: 9
Joined: Fri Jul 10, 2020 12:25 pm

Re: How to display battery quantity of Waveshare PILAPTOP

Mon Jul 13, 2020 2:08 am

trejan wrote:
Fri Jul 10, 2020 1:17 pm
I'm guessing you're an Waveshare employee(s) and not end users as the PILAPTOP is still in preorder stage and won't be shipped until August.

The battery status plugin is https://github.com/raspberrypi-ui/lxplug-ptbatt but it only supports ACPI batteries on x86 PCs and the pi-top battery. The Pi doesn't have ACPI so that route is a deadend. The pi-top battery status is read by querying a separate pi-top management daemon that handles the actual communication. See https://github.com/raspberrypi-ui/lxplu ... att.c#L164 for more details.

You'll need to either write a similar management daemon for the PILAPTOP to make it pretend to be a pi-top or write a new module for lxplug-ptbatt specifically for your PILAPTOP.
Yes, I'm not the end-users, we are going to improving the software for PILAPTOP. It will be much user-friendly if the PILAPTOP can support the battery plugin. The current battery quantity is shown by the RGB indicator. Thanks for your reply, we will have a look.

aBUGSworstnightmare
Posts: 2435
Joined: Tue Jun 30, 2015 1:35 pm

Re: How to display battery quantity of Waveshare PILAPTOP

Wed Aug 12, 2020 3:39 pm

As they start to advertise this thing I'm keen to hear what happens if users start to connect a monitor to the microHDMI interface

rricharz
Posts: 79
Joined: Tue Apr 19, 2016 8:46 am
Location: Switzerland
Contact: Website

Re: How to display battery quantity of Waveshare PILAPTOP

Sat Jan 09, 2021 7:57 am

The Pilaptop I got delivered has a battery status icon on the desktop.

The Pilaptop is a very nice and high quality laptop based on the Raspberry Pi with the only caveat that it uses a Pi 3 compute module, which is of course somewhat slower that the Pi 4 version.

I added a little CPU usage monitor on the led matrix of my Pilaptop. It runs as a background process and uses the bottom row of the led matrix, which is even visible if the little plastic cover above the let matrix is in place. [https://github.com/rricharz/Pilaptop]

Return to “For sale”