AdnanHodzic / AdnanHodzic/auto-cpufreq

[Bug] KeyError prevents frequency settings from being applied

Ouverte
#869 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
Python
Étoiles
7.8k
Forks
357
Merge moyen
3 j 8 h
PR mergées (30 j)
14

Description

### Fill out information requested in this template, without doing so issue will be ignored & closed!

It works, but it doesn't apply my frequency settings.
My configuration file can be seen [here](https://wiki.archlinux.org/title/User:0xMrRobot/Alienware_m16_R1#CPU_frequency_scaling).

---

### Error output:
```
$ sudo systemctl status auto-cpufreq.service
auto-cpufreq.service - auto-cpufreq - Automatic CPU speed & power optimizer for Linux
Loaded: loaded (/usr/lib/systemd/system/auto-cpufreq.service; enabled; preset: disabled)
Active: active (running) since Wed 2025-08-06 11:09:11 -03; 4min 48s ago
Invocation: eaf652cc03ea4946adf74d09629e644e
Main PID: 1167 (auto-cpufreq)
Tasks: 2 (limit: 37844)
Memory: 74.3M (peak: 82.7M)
CPU: 791ms
CGroup: /system.slice/auto-cpufreq.service
└─1167 /usr/bin/python /usr/bin/auto-cpufreq --daemon

ago 06 11:09:13 alienware auto-cpufreq[1167]: File "/usr/lib/python3.13/site-packages/auto_cpufreq/core.py", line 770, in set_autofreq
ago 06 11:09:13 alienware auto-cpufreq[1167]: set_performance()
ago 06 11:09:13 alienware auto-cpufreq[1167]: ~~~~~~~~~~~~~~~^^
ago 06 11:09:13 alienware auto-cpufreq[1167]: File "/usr/lib/python3.13/site-packages/auto_cpufreq/core.py", line 669, in set_performance
ago 06 11:09:13 alienware auto-cpufreq[1167]: set_frequencies()
ago 06 11:09:13 alienware auto-cpufreq[1167]: ~~~~~~~~~~~~~~~^^
ago 06 11:09:13 alienware auto-cpufreq[1167]: File "/usr/lib/python3.13/site-packages/auto_cpufreq/core.py", line 494, in set_frequencies
ago 06 11:09:13 alienware auto-cpufreq[1167]: print(f"Invalid value for '{freq_type}': {frequency[freq_type]['value']}")
ago 06 11:09:13 alienware auto-cpufreq[1167]: ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
ago 06 11:09:13 alienware auto-cpufreq[1167]: KeyError: 'value'
```
---

### System information: Arch Linux, using the AUR package

Add/paste output of:

```
$ sudo auto-cpufreq --debug
```
Output can be read [here](https://0x0.st/8hVF.txt).

Also please be descriptive about the issue you're reporting, i.e: what you tried & what's the expected behaviour.

The expected behaviour is the CPU frequency not going over the limits that are defined. Currently they aren't enforced.

---

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.