[+] 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',
|
node='/sys/devices/system/cpu/intel_pstate/no_turbo',
|
||||||
cmd=r'''
|
cmd=r'''
|
||||||
chown root:fan /sys/devices/system/cpu/intel_pstate/no_turbo
|
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/no_turbo
|
||||||
|
chmod g+w /sys/devices/system/cpu/intel_pstate/status
|
||||||
''',
|
''',
|
||||||
),
|
),
|
||||||
governor=dict(
|
governor=dict(
|
||||||
devpath=r'sys/devices/system/cpu/cpu(\d+)',
|
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'''
|
cmd=r'''
|
||||||
chown root:fan /sys/devices/system/cpu/cpufreq/policy{0}/scaling_governor
|
chown root:fan /sys/devices/system/cpu/cpu{0}/cpufreq/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_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:
|
try:
|
||||||
if options.cpufreq == 0:
|
if options.cpufreq == 0:
|
||||||
logging.info('launching cpufreq, need sudo')
|
#logging.info('launching cpufreq, need sudo')
|
||||||
subprocess.check_call(['sudo', 'whoami'])
|
#subprocess.check_call(['sudo', 'whoami'])
|
||||||
|
|
||||||
services.append(
|
services.append(
|
||||||
subprocess.Popen(
|
subprocess.Popen(
|
||||||
r'''
|
r'''
|
||||||
exec sudo sh -c 'echo cpufreq, user; whoami;
|
exec sh -c 'echo cpufreq, user; whoami;
|
||||||
while [[ -a /proc/{pid} ]]; do
|
while [[ -a /proc/{pid} ]]; do
|
||||||
echo passive > /sys/devices/system/cpu/intel_pstate/status;
|
echo passive > /sys/devices/system/cpu/intel_pstate/status;
|
||||||
echo 1 > /sys/devices/system/cpu/intel_pstate/no_turbo;
|
echo 1 > /sys/devices/system/cpu/intel_pstate/no_turbo;
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
[project]
|
[project]
|
||||||
name = 'online.fxreader.pr34'
|
name = 'online.fxreader.pr34'
|
||||||
version = '0.1.5.0'
|
version = '0.1.5.3'
|
||||||
|
|
||||||
dependencies = [
|
dependencies = [
|
||||||
#"-r requirements.txt",
|
#"-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