Alexays / Waybar

Highly customizable Wayland bar for Sway and Wlroots based compositors. :v: :tada:
MIT License
6.73k stars 709 forks source link

Feature: Integrate tuned/power-profile-deamon #3744

Closed baltevl closed 2 weeks ago

baltevl commented 2 weeks ago

Just spitballing an idea but tuned/ppd integration for the battery module would be cool. This could include showing a power profile in the tool tip and cycling through different profiles when clicked. If there is enough interest I'd be willing to create a pr :) I'd prioritize tuned since it seems to be more feature rich but there are also arguments to be made for ppd as default. It seems like there is a compatibility layer for ppd from tuned

resources: https://wiki.archlinux.org/title/CPU_frequency_scaling#tuned https://fedoraproject.org/wiki/Changes/TunedAsTheDefaultPowerProfileManagementDaemon https://gitlab.freedesktop.org/upower/power-profiles-daemon#power-profiles-daemon https://github.com/redhat-performance/tuned

AlphaNecron commented 2 weeks ago

tuned-ppd works fine, cycling through profiles does work as well. image

baltevl commented 2 weeks ago

Thx for the response. Seams like i wasn't thorough enough when trying to figure this out. Going to close this now :)

josecastillolema commented 2 weeks ago

Hi! Cycling though profile works well, however it does not get automatically updated. I.e.: it shows power profile: performance when at the moment it has changed to:

> tuned-adm active
Current active profile: balanced

Only when reloading waybar the value gets updated.

Opened https://github.com/Alexays/Waybar/issues/3751 to track this