Tiny Core Extensions > TCE Bugs

flit and watcher did not show battery measure

(1/2) > >>

nick65go:
in Tc12_x86, both (fltk based programs) flit.tcz and watcher.tcz did not show battery measure.
- flit shows it (kind of) as blue background, red foreground (charged null) even with AC-charger on/off.
- "watcher -bat" issued a segmentation fault.
I suspect maybe the (kernel 5.10.3) /proc or /sys branches are wrong queried.

curaga:
From memory, watcher expects the battery name to that arg.

Rich:
Hi nick65go

--- Quote from: nick65go on May 15, 2021, 09:53:33 AM --- ... - "watcher -bat" issued a segmentation fault. ...
--- End quote ---
Look in:

--- Code: ---/sys/class/power_supply/
--- End code ---
to find out what your battery is called.

If it's called  BAT0 , try starting it like this:

--- Code: ---watcher -bat BAT0
--- End code ---

I believe watcher also has a help option:

--- Code: ---watcher -h
--- End code ---

nick65go:
re-tested and
--- Code: ---watcher -bat BAT0
--- End code ---
is the good code without segmentation fault, however unfortunately no battery measures shown.
same for flit.tcz

PS: a script from Rich still popup a message, when battery will deplete to less than 5%.

Rich:
Hi nick65go
Which version are you using? You want version  1.10.1  which includes fixes for changes in  /sys/class/power_supply/ ... / .
Available from TC9 and later:
http://tinycorelinux.net/9.x/x86/tcz/watcher.tcz.info

Navigation

[0] Message Index

[#] Next page

Go to full version