jsalatas / plasma-pstate

Intel P-state and CPUFreq Manager Widget
GNU General Public License v2.0
274 stars 49 forks source link

Icon Tooltip works fine, but widget popup is empty #13

Closed rocka closed 5 years ago

rocka commented 5 years ago
$ sudo /usr/share/plasma/plasmoids/gr.ictpro.jsalatas.plasma.pstate/contents/code/set_prefs.sh -read-all
{"cpu_min_perf":"12","cpu_max_perf":"100","cpu_turbo":"true","gpu_min_freq":"300","gpu_max_freq":"1050","gpu_min_limit":"300","gpu_max_limit":"1050","gpu_boost_freq":"1050","gpu_cur_freq":"350","cpu_governor":"powersave","energy_perf":"balance_performance","thermal_mode":"balanced"}
Tooptip Widget

Hope that's enough infomation for debugging ...

rocka commented 5 years ago

Update: fixed

Reason: there are 2 files in my /etc/sudoers.d/, one is 99-plasma-pstate, the other is my custom wheel(wheel is my group name):

# cat /etc/sudoers.d/wheel
%wheel ALL=(ALL) ALL
# cat /etc/sudoers.d/99-plasma-pstate
%wheel ALL=NOPASSWD: /usr/share/plasma/plasmoids/gr.ictpro.jsalatas.plasma.pstate/contents/code/set_prefs.sh

Because file name wheel has no digits at the beginning, it overrided 99-plasma-pstate. Password is required when executing set_prefs.sh.

Solution:

# mv /etc/sudoers.d/wheel /etc/sudoers.d/10-wheel

Then it works prefectly now :-P