diff --git a/platform_dotfiles/macbook_air_2018/usr/local/bin/online-fxreader-pr34-udev b/platform_dotfiles/macbook_air_2018/usr/local/bin/online-fxreader-pr34-udev index 683f311..1ab0101 100755 --- a/platform_dotfiles/macbook_air_2018/usr/local/bin/online-fxreader-pr34-udev +++ b/platform_dotfiles/macbook_air_2018/usr/local/bin/online-fxreader-pr34-udev @@ -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 ''', ), ) diff --git a/python/online/fxreader/pr34/commands.py b/python/online/fxreader/pr34/commands.py index 2763dd0..1bca4ca 100644 --- a/python/online/fxreader/pr34/commands.py +++ b/python/online/fxreader/pr34/commands.py @@ -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; diff --git a/python/pyproject.toml b/python/pyproject.toml index cfc18b4..7c9cfae 100644 --- a/python/pyproject.toml +++ b/python/pyproject.toml @@ -1,6 +1,6 @@ [project] name = 'online.fxreader.pr34' -version = '0.1.5.0' +version = '0.1.5.3' dependencies = [ #"-r requirements.txt", diff --git a/releases/whl/online_fxreader_pr34-0.1.5.1-py3-none-any.whl b/releases/whl/online_fxreader_pr34-0.1.5.1-py3-none-any.whl new file mode 100644 index 0000000..00a0b09 --- /dev/null +++ b/releases/whl/online_fxreader_pr34-0.1.5.1-py3-none-any.whl @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d7dec136581d4125a976eef051c01526a883aaa323f4f92cdde89e788302305a +size 69256 diff --git a/releases/whl/online_fxreader_pr34-0.1.5.2-py3-none-any.whl b/releases/whl/online_fxreader_pr34-0.1.5.2-py3-none-any.whl new file mode 100644 index 0000000..82a156a --- /dev/null +++ b/releases/whl/online_fxreader_pr34-0.1.5.2-py3-none-any.whl @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:57ac400b06ddd448155ade5a7f5bee9905cd75560f32c8a639739558dc8e277f +size 69255 diff --git a/releases/whl/online_fxreader_pr34-0.1.5.3-py3-none-any.whl b/releases/whl/online_fxreader_pr34-0.1.5.3-py3-none-any.whl new file mode 100644 index 0000000..96de2e8 --- /dev/null +++ b/releases/whl/online_fxreader_pr34-0.1.5.3-py3-none-any.whl @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ccae16be25350f094cc406c3ebcff258b9f40d62e38b788d9e4320f19dcb1cbb +size 69255