adjustor 3.1.5__tar.gz → 3.2.0__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {adjustor-3.1.5/src/adjustor.egg-info → adjustor-3.2.0}/PKG-INFO +1 -1
- {adjustor-3.1.5 → adjustor-3.2.0}/pyproject.toml +1 -1
- {adjustor-3.1.5 → adjustor-3.2.0}/src/adjustor/drivers/amd/__init__.py +21 -10
- {adjustor-3.1.5 → adjustor-3.2.0}/src/adjustor/drivers/asus/__init__.py +6 -2
- {adjustor-3.1.5 → adjustor-3.2.0}/src/adjustor/fuse/gpu.py +7 -3
- {adjustor-3.1.5 → adjustor-3.2.0}/src/adjustor/hhd.py +5 -1
- {adjustor-3.1.5 → adjustor-3.2.0/src/adjustor.egg-info}/PKG-INFO +1 -1
- {adjustor-3.1.5 → adjustor-3.2.0}/LICENSE +0 -0
- {adjustor-3.1.5 → adjustor-3.2.0}/MANIFEST.in +0 -0
- {adjustor-3.1.5 → adjustor-3.2.0}/readme.md +0 -0
- {adjustor-3.1.5 → adjustor-3.2.0}/setup.cfg +0 -0
- {adjustor-3.1.5 → adjustor-3.2.0}/src/adjustor/__init__.py +0 -0
- {adjustor-3.1.5 → adjustor-3.2.0}/src/adjustor/__main__.py +0 -0
- {adjustor-3.1.5 → adjustor-3.2.0}/src/adjustor/core/__init__.py +0 -0
- {adjustor-3.1.5 → adjustor-3.2.0}/src/adjustor/core/acpi.py +0 -0
- {adjustor-3.1.5 → adjustor-3.2.0}/src/adjustor/core/alib.py +0 -0
- {adjustor-3.1.5 → adjustor-3.2.0}/src/adjustor/core/const.py +0 -0
- {adjustor-3.1.5 → adjustor-3.2.0}/src/adjustor/core/lenovo.py +0 -0
- {adjustor-3.1.5 → adjustor-3.2.0}/src/adjustor/core/platform.py +0 -0
- {adjustor-3.1.5 → adjustor-3.2.0}/src/adjustor/drivers/__init__.py +0 -0
- {adjustor-3.1.5 → adjustor-3.2.0}/src/adjustor/drivers/amd/power-profiles-daemon.dbus.xml.in +0 -0
- {adjustor-3.1.5 → adjustor-3.2.0}/src/adjustor/drivers/amd/ppd.py +0 -0
- {adjustor-3.1.5 → adjustor-3.2.0}/src/adjustor/drivers/amd/settings.yml +0 -0
- {adjustor-3.1.5 → adjustor-3.2.0}/src/adjustor/drivers/asus/settings.yml +0 -0
- {adjustor-3.1.5 → adjustor-3.2.0}/src/adjustor/drivers/lenovo/__init__.py +0 -0
- {adjustor-3.1.5 → adjustor-3.2.0}/src/adjustor/drivers/lenovo/settings.yml +0 -0
- {adjustor-3.1.5 → adjustor-3.2.0}/src/adjustor/drivers/smu/__init__.py +0 -0
- {adjustor-3.1.5 → adjustor-3.2.0}/src/adjustor/drivers/smu/qam.yml +0 -0
- {adjustor-3.1.5 → adjustor-3.2.0}/src/adjustor/drivers/smu/smu.yml +0 -0
- {adjustor-3.1.5 → adjustor-3.2.0}/src/adjustor/events.py +0 -0
- {adjustor-3.1.5 → adjustor-3.2.0}/src/adjustor/fuse/__init__.py +0 -0
- {adjustor-3.1.5 → adjustor-3.2.0}/src/adjustor/fuse/driver.py +0 -0
- {adjustor-3.1.5 → adjustor-3.2.0}/src/adjustor/fuse/utils.py +0 -0
- {adjustor-3.1.5 → adjustor-3.2.0}/src/adjustor/i18n.py +0 -0
- {adjustor-3.1.5 → adjustor-3.2.0}/src/adjustor/settings.yml +0 -0
- {adjustor-3.1.5 → adjustor-3.2.0}/src/adjustor.egg-info/SOURCES.txt +0 -0
- {adjustor-3.1.5 → adjustor-3.2.0}/src/adjustor.egg-info/dependency_links.txt +0 -0
- {adjustor-3.1.5 → adjustor-3.2.0}/src/adjustor.egg-info/entry_points.txt +0 -0
- {adjustor-3.1.5 → adjustor-3.2.0}/src/adjustor.egg-info/requires.txt +0 -0
- {adjustor-3.1.5 → adjustor-3.2.0}/src/adjustor.egg-info/top_level.txt +0 -0
- {adjustor-3.1.5 → adjustor-3.2.0}/usr/share/dbus-1/system.d/hhd-net.hadess.PowerProfiles.conf +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: adjustor
|
3
|
-
Version: 3.
|
3
|
+
Version: 3.2.0
|
4
4
|
Summary: Adjustor, a userspace program for managing the TDP of handheld devices.
|
5
5
|
Author-email: Kapenekakis Antheas <pypi@antheas.dev>
|
6
6
|
Project-URL: Homepage, https://github.com/hhd-dev/adjustor
|
@@ -151,7 +151,9 @@ class AmdGPUPlugin(HHDPlugin):
|
|
151
151
|
else:
|
152
152
|
if not self.logged_boost:
|
153
153
|
logger.warning(f"CPU Boost toggling is not supported.")
|
154
|
-
del sets["enabled"]["children"]["mode"]["modes"]["manual"]["children"][
|
154
|
+
del sets["enabled"]["children"]["mode"]["modes"]["manual"]["children"][
|
155
|
+
"cpu_boost"
|
156
|
+
]
|
155
157
|
|
156
158
|
self.supports_nonlinear = can_use_nonlinear()
|
157
159
|
if not self.supports_nonlinear:
|
@@ -241,30 +243,30 @@ class AmdGPUPlugin(HHDPlugin):
|
|
241
243
|
match self.target:
|
242
244
|
case "balanced":
|
243
245
|
set_gpu_auto()
|
244
|
-
if self.supports_boost:
|
245
|
-
set_cpu_boost(True)
|
246
246
|
if self.supports_epp:
|
247
247
|
set_powersave_governor()
|
248
248
|
set_epp_mode("balance_power")
|
249
|
+
if self.supports_boost:
|
250
|
+
set_cpu_boost(True)
|
249
251
|
set_frequency_scaling(nonlinear=False)
|
250
252
|
case "performance":
|
251
253
|
set_gpu_auto()
|
252
|
-
if self.supports_boost:
|
253
|
-
set_cpu_boost(True)
|
254
254
|
if self.supports_epp:
|
255
255
|
set_powersave_governor()
|
256
256
|
set_epp_mode("balance_power")
|
257
|
+
if self.supports_boost:
|
258
|
+
set_cpu_boost(True)
|
257
259
|
set_frequency_scaling(nonlinear=True)
|
258
260
|
case _: # power
|
259
261
|
set_gpu_auto()
|
260
|
-
if self.supports_boost:
|
261
|
-
set_cpu_boost(False)
|
262
262
|
if self.supports_epp:
|
263
263
|
set_powersave_governor()
|
264
264
|
set_epp_mode("power")
|
265
|
-
|
265
|
+
if self.supports_boost:
|
266
|
+
set_cpu_boost(False)
|
267
|
+
set_frequency_scaling(nonlinear=False)
|
266
268
|
except Exception as e:
|
267
|
-
logger.error(f"Failed to set mode:\n{e}")
|
269
|
+
logger.error(f"Failed to set energy mode:\n{e}")
|
268
270
|
|
269
271
|
self.old_gpu = None
|
270
272
|
self.old_freq = None
|
@@ -295,6 +297,15 @@ class AmdGPUPlugin(HHDPlugin):
|
|
295
297
|
self.old_boost = new_boost
|
296
298
|
try:
|
297
299
|
set_cpu_boost(new_boost == "enabled")
|
300
|
+
# Set frequency scaling again, as max frequency
|
301
|
+
# changes depending on whether boost is supported
|
302
|
+
if self.supports_nonlinear:
|
303
|
+
set_frequency_scaling(
|
304
|
+
nonlinear=conf[
|
305
|
+
"tdp.amd_energy.mode.manual.cpu_min_freq"
|
306
|
+
].to(str)
|
307
|
+
== "nonlinear"
|
308
|
+
)
|
298
309
|
except Exception as e:
|
299
310
|
logger.error(f"Failed to set CPU boost:\n{e}")
|
300
311
|
|
@@ -310,7 +321,7 @@ class AmdGPUPlugin(HHDPlugin):
|
|
310
321
|
logger.error(f"Failed to set EPP mode:\n{e}")
|
311
322
|
|
312
323
|
if self.supports_nonlinear:
|
313
|
-
new_min_freq = conf["tdp.amd_energy.mode.manual.cpu_min_freq"].to(
|
324
|
+
new_min_freq = conf["tdp.amd_energy.mode.manual.cpu_min_freq"].to(str)
|
314
325
|
if new_min_freq != self.old_min_freq:
|
315
326
|
self.old_min_freq = new_min_freq
|
316
327
|
try:
|
@@ -256,9 +256,13 @@ class AsusDriverPlugin(HHDPlugin):
|
|
256
256
|
if boost:
|
257
257
|
# TODO: Use different boost values depending on whether plugged in
|
258
258
|
time.sleep(TDP_DELAY)
|
259
|
-
set_tdp(
|
259
|
+
set_tdp(
|
260
|
+
"fast", FTDP_FN, min(max(steady, MAX_TDP), int(steady * 35 / 25))
|
261
|
+
)
|
260
262
|
time.sleep(TDP_DELAY)
|
261
|
-
set_tdp(
|
263
|
+
set_tdp(
|
264
|
+
"slow", STDP_FN, min(max(steady, MAX_TDP), int(steady * 30 / 25))
|
265
|
+
)
|
262
266
|
time.sleep(TDP_DELAY)
|
263
267
|
set_tdp("steady", CTDP_FN, steady)
|
264
268
|
else:
|
@@ -150,9 +150,13 @@ def set_per_cpu(fn: str, value: str):
|
|
150
150
|
def set_cpu_boost(enable: bool):
|
151
151
|
logger.info(f"{'Enabling' if enable else 'Disabling'} CPU boost.")
|
152
152
|
if os.path.exists(CPU_BOOST_PATH):
|
153
|
-
|
154
|
-
|
155
|
-
|
153
|
+
try:
|
154
|
+
with open(CPU_BOOST_PATH, "w") as f:
|
155
|
+
f.write("1" if enable else "0")
|
156
|
+
except Exception:
|
157
|
+
with open(CPU_BOOST_PATH, "w") as f:
|
158
|
+
f.write("enabled" if enable else "disabled")
|
159
|
+
elif is_in_cpu0(BOOST_FN):
|
156
160
|
set_per_cpu(BOOST_FN, "1" if enable else "0")
|
157
161
|
|
158
162
|
|
@@ -261,7 +261,11 @@ def autodetect(existing: Sequence[HHDPlugin]) -> Sequence[HHDPlugin]:
|
|
261
261
|
drivers_matched = True
|
262
262
|
use_acpi_call = True
|
263
263
|
|
264
|
-
if
|
264
|
+
if (
|
265
|
+
"ROG Ally RC71L" in prod
|
266
|
+
or "ROG Ally X RC72L" in prod
|
267
|
+
or bool(os.environ.get("HHD_ADJ_DEBUG"))
|
268
|
+
):
|
265
269
|
drivers.append(AsusDriverPlugin())
|
266
270
|
drivers_matched = True
|
267
271
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: adjustor
|
3
|
-
Version: 3.
|
3
|
+
Version: 3.2.0
|
4
4
|
Summary: Adjustor, a userspace program for managing the TDP of handheld devices.
|
5
5
|
Author-email: Kapenekakis Antheas <pypi@antheas.dev>
|
6
6
|
Project-URL: Homepage, https://github.com/hhd-dev/adjustor
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{adjustor-3.1.5 → adjustor-3.2.0}/src/adjustor/drivers/amd/power-profiles-daemon.dbus.xml.in
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{adjustor-3.1.5 → adjustor-3.2.0}/usr/share/dbus-1/system.d/hhd-net.hadess.PowerProfiles.conf
RENAMED
File without changes
|