[+] fix intel_pstate cpufreq
This commit is contained in:
parent
42ce6ffbff
commit
61584fedac
@ -38,15 +38,19 @@ def run() -> None:
|
||||
node='/sys/devices/system/cpu/intel_pstate/no_turbo',
|
||||
cmd=r'''
|
||||
chown root:fan /sys/devices/system/cpu/intel_pstate/no_turbo
|
||||
chown root:fan /sys/devices/system/cpu/intel_pstate/status
|
||||
chmod g+w /sys/devices/system/cpu/intel_pstate/no_turbo
|
||||
chmod g+w /sys/devices/system/cpu/intel_pstate/status
|
||||
''',
|
||||
),
|
||||
governor=dict(
|
||||
devpath=r'sys/devices/system/cpu/cpu(\d+)',
|
||||
node=r'/sys/devices/system/cpu/cpufreq/policy{0}/scaling_governor',
|
||||
node=r'/sys/devices/system/cpu/cpu{0}/cpufreq/scaling_governor',
|
||||
cmd=r'''
|
||||
chown root:fan /sys/devices/system/cpu/cpufreq/policy{0}/scaling_governor
|
||||
chmod g+w /sys/devices/system/cpu/cpufreq/policy{0}/scaling_governor
|
||||
chown root:fan /sys/devices/system/cpu/cpu{0}/cpufreq/scaling_governor
|
||||
chown root:fan /sys/devices/system/cpu/cpu{0}/cpufreq/scaling_max_freq
|
||||
chmod g+w /sys/devices/system/cpu/cpu{0}/cpufreq/scaling_governor
|
||||
chmod g+w /sys/devices/system/cpu/cpu{0}/cpufreq/scaling_max_freq
|
||||
''',
|
||||
),
|
||||
)
|
||||
|
@ -2713,13 +2713,13 @@ echo performance | tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor;
|
||||
|
||||
try:
|
||||
if options.cpufreq == 0:
|
||||
logging.info('launching cpufreq, need sudo')
|
||||
subprocess.check_call(['sudo', 'whoami'])
|
||||
#logging.info('launching cpufreq, need sudo')
|
||||
#subprocess.check_call(['sudo', 'whoami'])
|
||||
|
||||
services.append(
|
||||
subprocess.Popen(
|
||||
r'''
|
||||
exec sudo sh -c 'echo cpufreq, user; whoami;
|
||||
exec sh -c 'echo cpufreq, user; whoami;
|
||||
while [[ -a /proc/{pid} ]]; do
|
||||
echo passive > /sys/devices/system/cpu/intel_pstate/status;
|
||||
echo 1 > /sys/devices/system/cpu/intel_pstate/no_turbo;
|
||||
|
@ -1,6 +1,6 @@
|
||||
[project]
|
||||
name = 'online.fxreader.pr34'
|
||||
version = '0.1.5.0'
|
||||
version = '0.1.5.3'
|
||||
|
||||
dependencies = [
|
||||
#"-r requirements.txt",
|
||||
|
BIN
releases/whl/online_fxreader_pr34-0.1.5.1-py3-none-any.whl
(Stored with Git LFS)
Normal file
BIN
releases/whl/online_fxreader_pr34-0.1.5.1-py3-none-any.whl
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
releases/whl/online_fxreader_pr34-0.1.5.2-py3-none-any.whl
(Stored with Git LFS)
Normal file
BIN
releases/whl/online_fxreader_pr34-0.1.5.2-py3-none-any.whl
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
releases/whl/online_fxreader_pr34-0.1.5.3-py3-none-any.whl
(Stored with Git LFS)
Normal file
BIN
releases/whl/online_fxreader_pr34-0.1.5.3-py3-none-any.whl
(Stored with Git LFS)
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user