Skip to content

Commit bee8f9d

Browse files
committed
Update fix pkexec spamm in the system logs on CPU without thermal throttle counters (fix: konkor#183)
1 parent cd9a9f0 commit bee8f9d

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

common/HelperCPUFreq.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -726,7 +726,7 @@ function get_throttle_events (callback) {
726726
tt_proc = null;
727727
}
728728
tt_proc = Gio.Subprocess.new (
729-
[pkexec_path,cpufreqctl_path,"--throttle-events"],
729+
[cpufreqctl_path,"--throttle-events"],
730730
Gio.SubprocessFlags.STDOUT_PIPE | Gio.SubprocessFlags.STDERR_PIPE
731731
);
732732
tt_proc.communicate_utf8_async (null, null, (proc, res) => {

cpufreqctl

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env bash
22

3-
VERSION='20'
3+
VERSION='21'
44
cpucount=`cat /proc/cpuinfo|grep processor|wc -l`
55
FLROOT=/sys/devices/system/cpu
66
DRIVER=auto
@@ -482,6 +482,8 @@ then
482482
echo 'installing fonts...'
483483
mkdir -p /usr/share/fonts/truetype/cpufreq
484484
cp $(dirname "$(readlink -f "$0")")/fonts/cpufreq.ttf /usr/share/fonts/truetype/cpufreq/
485+
echo 'add user to systemd-journal group...'
486+
usermod -a -G systemd-journal $USERNAME
485487
echo "done"
486488
exit
487489
fi

0 commit comments

Comments
 (0)