Zera_Lin
Posts: 8
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: 61
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: 2343
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: 8
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: 2068
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

Return to “For sale”