View Single Post
  #1   (View Single Post)  
Old 23rd April 2017
darktrym's Avatar
darktrym darktrym is offline
Join Date: Feb 2011
Location: Düsseldorf
Posts: 106
Default Missing bits in Lumina DE for NetBSD

I looked into the Lumina source code for the NetBSD bits(LuminaOS-NetBSD.cpp) and for the most parts it is unimplemented. Some functions can be copied from the Free- & OpenBSD files and the rest it is a job for envsys. And also if you don't like the internal structure you can use shell outputs to extract needed information. For example to calculate remaining time on battery you need current discharge rate and charge for all batteries(here is sample for second battery):

envstat -s "acpibat1:discharge rate"
envstat -s "acpibat1:charge"
Hopefully someone with better C++ skills can do this.
NetBSD 8.99.25(AMD64)@Xiaomi Air 1.Gen

Last edited by darktrym; 23rd April 2017 at 07:40 PM.
Reply With Quote