Bug 495918

Summary: batterymonitor applet cannot detect TLP
Product: [Plasma] Powerdevil Reporter: Li Jiajun <wlmqljj>
Component: generalAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: fkrueger, kde, meven29, natalie_clarius, nate
Priority: NOR Keywords: regression
Version: 6.2.3   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In: 6.2.4
Sentry Crash Report:

Description Li Jiajun 2024-11-07 11:21:01 UTC
SUMMARY
As of plasma 6.2.3, there is a regression causing the function cannot determine whether tlp exist.
The applet will always show the alert that ppd not installed.

STEPS TO REPRODUCE
1. Install tlp and uninstall ppd
2. start plasmashell
3. open applet and see what happened

OBSERVED RESULT
Applet cannot detect if tlp is installed

EXPECTED RESULT


SOFTWARE/OS VERSIONS
Windows: no
macOS: no
(available in the Info Center app, or by running `kinfo` in a terminal window)
Linux/KDE Plasma: 6.2.3
KDE Plasma Version: 6.2.3
KDE Frameworks Version: not associated
Qt Version: not associated

ADDITIONAL INFORMATION
the MR introduce this issue:
https://invent.kde.org/plasma/powerdevil/-/merge_requests/454
fix:
https://invent.kde.org/plasma/powerdevil/-/merge_requests/461
Comment 1 Méven 2024-11-16 11:23:08 UTC
Git commit b74e26bf7a60eec0655c894eafb7a1bfb36bb3ca by Méven Car.
Committed on 16/11/2024 at 10:14.
Pushed by meven into branch 'master'.

applets: allow to detect tlp without solid or upower

Detect tlp independently of power-profiles-daemon.

M  +149  -153  applets/batterymonitor/plugin/powerprofilescontrol.cpp
M  +1    -1    applets/batterymonitor/plugin/powerprofilescontrol.h

https://invent.kde.org/plasma/powerdevil/-/commit/b74e26bf7a60eec0655c894eafb7a1bfb36bb3ca
Comment 2 Méven 2024-11-17 10:26:39 UTC
Git commit 19c49043aba60687891b1edafe28e50c73df9783 by Méven Car.
Committed on 17/11/2024 at 10:08.
Pushed by meven into branch 'Plasma/6.2'.

applets: allow to detect tlp without solid or upower

Detect tlp independently of power-profiles-daemon.
(cherry picked from commit b74e26bf7a60eec0655c894eafb7a1bfb36bb3ca)

M  +149  -153  applets/batterymonitor/plugin/powerprofilescontrol.cpp
M  +1    -1    applets/batterymonitor/plugin/powerprofilescontrol.h

https://invent.kde.org/plasma/powerdevil/-/commit/19c49043aba60687891b1edafe28e50c73df9783