Page 1 of 1
powerapplet_tray fail
Posted: Tue Jul 27, 2021 1:14 am
by ozsouth
Laptop users: powerapplet_tray no longer works in slackware derivatives after kernel 5.9.
qbat is used in ubuntu derivatives, but requires qt4 - minimum 13mb extra for slacks.
The battery percentage remaining is found on my systems via the following terminal command:
cat /sys/class/power_supply/BAT*/capacity
(I found my systems have either BAT0 or BAT1, but as only 1 battery, above will do).
EDIT: newer powerapplet_tray from Slacko64-8.2.1 works ON SOME PCS; .pet several posts down.
EDIT2: slacko derived .pet fails on my machine with BAT0. See discussion further down.
EDIT 3: Have hacked a .pet to run above terminal command, but not releasing yet.
Re: powerapplet_tray fail
Posted: Tue Jul 27, 2021 4:54 am
by dimkr
@ozsouth What Puppy version is it?
Re: powerapplet_tray fail
Posted: Tue Jul 27, 2021 5:06 am
by ozsouth
@dimkr - several recent ScPup64 & Slacko64 versions. But only for kernels after 5.9.
Re: powerapplet_tray fail
Posted: Tue Jul 27, 2021 5:51 am
by dimkr
Does this list include Slacko 8.x?
Re: powerapplet_tray fail
Posted: Tue Jul 27, 2021 7:39 am
by HerrBert
IIRC when configuring a kernel, there was a hint about acpi using procfs will be deprecated in the future. Maybe the future is now...
Code: Select all
# grep -i procfs /boot/config-4.4.268
CONFIG_ACPI_PROCFS_POWER=y
# CONFIG_NF_CONNTRACK_PROCFS is not set
CONFIG_SND_VERBOSE_PROCFS=y
#
Code: Select all
# grep -i procfs /media/+mnt+sda2+Sc64-21.01+zdrv_ScPup64_21.01.sfs/boot/config-5.10.4-lxpup64
# CONFIG_NF_CONNTRACK_PROCFS is not set
CONFIG_SND_VERBOSE_PROCFS=y
#
powerapplet_tray uses procfs, so it will fail with one of these messages:
Re: powerapplet_tray fail
Posted: Tue Jul 27, 2021 9:08 am
by ozsouth
@dimkr - new powerapplet_tray from Slacko64-8.2.1 works (unable to download it till now - chrome was blocking the site). I have made a .pet of it for ScPup64 (is below. Works in Fossapup64 too, but not needed there).
EDIT: .pet does not work with my machine which has BAT0.
@HerrBert - lack of procfs is why app failed with newer kernels - seems configs omit it.
.pet below needs gtk+3 from here: https://archive.org/download/Puppy_Linu ... 2404.7.pet
Re: powerapplet_tray fail
Posted: Tue Jul 27, 2021 12:57 pm
by peebee
ozsouth wrote: ↑Tue Jul 27, 2021 9:08 am
@HerrBert - lack of procfs is why app failed with newer kernels - seems configs omit it.
It is set in my 5.13 config:
Code: Select all
# grep -i procfs DOTconfig-5.13.5-lxpup64
CONFIG_ACPI_PROCFS_POWER=y
# CONFIG_NF_CONNTRACK_PROCFS is not set
CONFIG_SND_VERBOSE_PROCFS=y
#
Re: powerapplet_tray fail
Posted: Tue Jul 27, 2021 3:58 pm
by dimkr
It looks like the latest powerapplet_tray works just fine on my Dell laptop (with kernel 5.10.x), but thanks to your bug report, @ozsouth, I decided to check if it works on my Thinkpad X220 too, and I found a bug! It's not the bug you found, but it's always good to have one bug less.
https://github.com/puppylinux-woof-CE/w ... ssues/2411
https://github.com/puppylinux-woof-CE/woof-CE/pull/2412
Re: powerapplet_tray fail
Posted: Wed Jul 28, 2021 12:32 am
by ozsouth
@dimkr - .pet I posted a few posts back doesn't work on one machine of mine which has BAT0, so I now repeat my request for folk using Slacko64/ScPup64 to please see if the following terminal command shows the correct charge percentage:
cat /sys/class/power_supply/BAT*/capacity
Re: powerapplet_tray fail
Posted: Wed Jul 28, 2021 9:49 am
by peebee
ozsouth wrote: ↑Wed Jul 28, 2021 12:32 am
I now repeat my request for folk using Slacko64/ScPup64 to please see if the following terminal command shows the correct charge percentage:
cat /sys/class/power_supply/BAT*/capacity
Yes - Samsung NC110 with working battery (my only laptop with a battery!) shows 95 decreasing over time for BAT1