powerapplet_tray fail

Post here if you feel others can duplicate your so discovered "bug"

Moderator: Forum moderators

Post Reply
ozsouth
Posts: 1619
Joined: Sun Jul 12, 2020 2:38 am
Location: S.E. Australia
Has thanked: 248 times
Been thanked: 731 times

powerapplet_tray fail

Post 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.

Last edited by ozsouth on Thu Jul 29, 2021 3:38 am, edited 6 times in total.
dimkr
Posts: 2444
Joined: Wed Dec 30, 2020 6:14 pm
Has thanked: 53 times
Been thanked: 1208 times

Re: powerapplet_tray fail

Post by dimkr »

@ozsouth What Puppy version is it?

ozsouth
Posts: 1619
Joined: Sun Jul 12, 2020 2:38 am
Location: S.E. Australia
Has thanked: 248 times
Been thanked: 731 times

Re: powerapplet_tray fail

Post by ozsouth »

@dimkr - several recent ScPup64 & Slacko64 versions. But only for kernels after 5.9.

dimkr
Posts: 2444
Joined: Wed Dec 30, 2020 6:14 pm
Has thanked: 53 times
Been thanked: 1208 times

Re: powerapplet_tray fail

Post by dimkr »

Does this list include Slacko 8.x?

HerrBert
Posts: 359
Joined: Mon Jul 13, 2020 6:14 pm
Location: Germany, NRW
Has thanked: 18 times
Been thanked: 128 times

Re: powerapplet_tray fail

Post 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:

  • 'Abort, unable to open /proc/acpi/battery'

  • 'Abort, unable to find anything in /proc/acpi/battery'

  • 'Abort, unable to find info file in /proc/acpi/battery'

ozsouth
Posts: 1619
Joined: Sun Jul 12, 2020 2:38 am
Location: S.E. Australia
Has thanked: 248 times
Been thanked: 731 times

Re: powerapplet_tray fail

Post 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

Attachments
powerapplet_tray-s64-821.pet
For ScPup64 - install & restart X
(4.44 KiB) Downloaded 45 times
Last edited by ozsouth on Wed Jul 28, 2021 12:28 am, edited 2 times in total.
User avatar
peebee
Posts: 1656
Joined: Mon Jul 13, 2020 10:54 am
Location: Worcestershire, UK
Has thanked: 158 times
Been thanked: 726 times
Contact:

Re: powerapplet_tray fail

Post 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
# 

Builder of LxPups, SPups, UPup32s, VoidPups; LXDE, LXQt, Xfce addons; Chromium, Firefox etc. sfs; & Kernels

dimkr
Posts: 2444
Joined: Wed Dec 30, 2020 6:14 pm
Has thanked: 53 times
Been thanked: 1208 times

Re: powerapplet_tray fail

Post 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

ozsouth
Posts: 1619
Joined: Sun Jul 12, 2020 2:38 am
Location: S.E. Australia
Has thanked: 248 times
Been thanked: 731 times

Re: powerapplet_tray fail

Post 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

User avatar
peebee
Posts: 1656
Joined: Mon Jul 13, 2020 10:54 am
Location: Worcestershire, UK
Has thanked: 158 times
Been thanked: 726 times
Contact:

Re: powerapplet_tray fail

Post 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

Builder of LxPups, SPups, UPup32s, VoidPups; LXDE, LXQt, Xfce addons; Chromium, Firefox etc. sfs; & Kernels

Post Reply

Return to “Bug Reports”