AdnanHodzic / AdnanHodzic/auto-cpufreq

[Feature] D-Bus Interface like PPD

未关闭
#876 5 条评论 4 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Python
星标
7.8k
派生
357
平均合并
3 天 8 小时
30 天内合并 PR
14

描述

First of all, thank you for developing `auto-cpufreq` — it’s an excellent tool for dynamic CPU frequency scaling.

Currently, several desktop environments (DEs) provide a **power mode/slider integration** in their system tray or settings panels. These sliders usually work with `power-profiles-daemon` or `tuned-ppd`, allowing users to switch between modes such as *Performance*, *Balanced*, and *Power Saver*.

It would be great if `auto-cpufreq` could integrate with these power sliders across DEs.

## Benefits
- Unified user experience across desktop environments.
- Quick and intuitive switching between `auto-cpufreq` profiles without relying on CLI.
- Encourages wider adoption since many users prefer GUI-driven controls.

## Examples of DE Integration Points
- **KDE Plasma** – System Tray Power Management Slider (via `powerdevil`).
- **GNOME** – Settings → Power Mode toggle (exposed via `power-profiles-daemon`).
- **XFCE** – Power Manager panel plugin.
- **Cinnamon / MATE / Budgie** – Power applets that already use PPD as backend.

## Possible Implementation Approaches
- Allow `auto-cpufreq` to **expose its profiles via D-Bus**, making them visible to DEs in the same way as `power-profiles-daemon`.
- Provide an **optional compatibility layer** that lets DEs treat `auto-cpufreq` as if it were `power-profiles-daemon` or `tuned-ppd`.
- Offer a **configurable mapping** of `auto-cpufreq` modes to standard power profiles.

## References
- KDE Plasma PowerDevil: [https://invent.kde.org/plasma/powerdevil](https://invent.kde.org/plasma/powerdevil)
- GNOME Power Profiles: [https://gitlab.freedesktop.org/upower/power-profiles-daemon](https://gitlab.freedesktop.org/upower/power-profiles-daemon)

---

### **Feature Request Summary**
Add integration between `auto-cpufreq` and desktop environment power sliders (KDE, GNOME, XFCE, etc.) by exposing profiles through a standard interface (e.g., D-Bus, PPD compatibility), similar to how `power-profiles-daemon` and `tuned-ppd` work. I just really like the look and feel of KDE's powerdevil

Image

贡献指南

这个仓库没有索引到贡献指南

调研方向

Start by reviewing the referenced KDE PowerDevil and power-profiles-daemon interfaces, then compare the proposed D-Bus, compatibility-layer, and profile-mapping approaches. Done should mean that auto-cpufreq profiles are exposed through a standard interface and can be switched from desktop power sliders across the stated environments.

由索引模型根据 Issue 内容生成。

评估

技术栈
linux, python
领域
desktop-dev, operating-systems
Issue 类型
功能
难度
5/5
预计耗时
一周以上
活跃度
停滞
描述清晰度
需要澄清
新手友好度
25/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。