adjustor 3.4.6__tar.gz → 3.4.7__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {adjustor-3.4.6/src/adjustor.egg-info → adjustor-3.4.7}/PKG-INFO +1 -1
- {adjustor-3.4.6 → adjustor-3.4.7}/pyproject.toml +1 -1
- {adjustor-3.4.6 → adjustor-3.4.7}/src/adjustor/drivers/asus/__init__.py +24 -15
- {adjustor-3.4.6 → adjustor-3.4.7}/src/adjustor/hhd.py +1 -0
- {adjustor-3.4.6 → adjustor-3.4.7/src/adjustor.egg-info}/PKG-INFO +1 -1
- {adjustor-3.4.6 → adjustor-3.4.7}/LICENSE +0 -0
- {adjustor-3.4.6 → adjustor-3.4.7}/MANIFEST.in +0 -0
- {adjustor-3.4.6 → adjustor-3.4.7}/readme.md +0 -0
- {adjustor-3.4.6 → adjustor-3.4.7}/setup.cfg +0 -0
- {adjustor-3.4.6 → adjustor-3.4.7}/src/adjustor/__init__.py +0 -0
- {adjustor-3.4.6 → adjustor-3.4.7}/src/adjustor/__main__.py +0 -0
- {adjustor-3.4.6 → adjustor-3.4.7}/src/adjustor/core/__init__.py +0 -0
- {adjustor-3.4.6 → adjustor-3.4.7}/src/adjustor/core/acpi.py +0 -0
- {adjustor-3.4.6 → adjustor-3.4.7}/src/adjustor/core/alib.py +0 -0
- {adjustor-3.4.6 → adjustor-3.4.7}/src/adjustor/core/const.py +0 -0
- {adjustor-3.4.6 → adjustor-3.4.7}/src/adjustor/core/lenovo.py +0 -0
- {adjustor-3.4.6 → adjustor-3.4.7}/src/adjustor/core/platform.py +0 -0
- {adjustor-3.4.6 → adjustor-3.4.7}/src/adjustor/drivers/__init__.py +0 -0
- {adjustor-3.4.6 → adjustor-3.4.7}/src/adjustor/drivers/amd/__init__.py +0 -0
- {adjustor-3.4.6 → adjustor-3.4.7}/src/adjustor/drivers/amd/power-profiles-daemon.dbus.xml.in +0 -0
- {adjustor-3.4.6 → adjustor-3.4.7}/src/adjustor/drivers/amd/ppd.py +0 -0
- {adjustor-3.4.6 → adjustor-3.4.7}/src/adjustor/drivers/amd/settings.yml +0 -0
- {adjustor-3.4.6 → adjustor-3.4.7}/src/adjustor/drivers/asus/settings.yml +0 -0
- {adjustor-3.4.6 → adjustor-3.4.7}/src/adjustor/drivers/general/__init__.py +0 -0
- {adjustor-3.4.6 → adjustor-3.4.7}/src/adjustor/drivers/general/settings.yml +0 -0
- {adjustor-3.4.6 → adjustor-3.4.7}/src/adjustor/drivers/lenovo/__init__.py +0 -0
- {adjustor-3.4.6 → adjustor-3.4.7}/src/adjustor/drivers/lenovo/settings.yml +0 -0
- {adjustor-3.4.6 → adjustor-3.4.7}/src/adjustor/drivers/smu/__init__.py +0 -0
- {adjustor-3.4.6 → adjustor-3.4.7}/src/adjustor/drivers/smu/qam.yml +0 -0
- {adjustor-3.4.6 → adjustor-3.4.7}/src/adjustor/drivers/smu/smu.yml +0 -0
- {adjustor-3.4.6 → adjustor-3.4.7}/src/adjustor/events.py +0 -0
- {adjustor-3.4.6 → adjustor-3.4.7}/src/adjustor/fuse/__init__.py +0 -0
- {adjustor-3.4.6 → adjustor-3.4.7}/src/adjustor/fuse/driver.py +0 -0
- {adjustor-3.4.6 → adjustor-3.4.7}/src/adjustor/fuse/gpu.py +0 -0
- {adjustor-3.4.6 → adjustor-3.4.7}/src/adjustor/fuse/utils.py +0 -0
- {adjustor-3.4.6 → adjustor-3.4.7}/src/adjustor/i18n.py +0 -0
- {adjustor-3.4.6 → adjustor-3.4.7}/src/adjustor/settings.yml +0 -0
- {adjustor-3.4.6 → adjustor-3.4.7}/src/adjustor.egg-info/SOURCES.txt +0 -0
- {adjustor-3.4.6 → adjustor-3.4.7}/src/adjustor.egg-info/dependency_links.txt +0 -0
- {adjustor-3.4.6 → adjustor-3.4.7}/src/adjustor.egg-info/entry_points.txt +0 -0
- {adjustor-3.4.6 → adjustor-3.4.7}/src/adjustor.egg-info/requires.txt +0 -0
- {adjustor-3.4.6 → adjustor-3.4.7}/src/adjustor.egg-info/top_level.txt +0 -0
- {adjustor-3.4.6 → adjustor-3.4.7}/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.4.
|
3
|
+
Version: 3.4.7
|
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
|
@@ -13,10 +13,10 @@ logger = logging.getLogger(__name__)
|
|
13
13
|
APPLY_DELAY = 0.7
|
14
14
|
TDP_DELAY = 0.1
|
15
15
|
SLEEP_DELAY = 4
|
16
|
-
|
17
|
-
|
16
|
+
MIN_TDP = 7
|
17
|
+
MAX_TDP = 30
|
18
18
|
# FIXME: add AC/DC values
|
19
|
-
|
19
|
+
MAX_TDP_BOOST = 35
|
20
20
|
|
21
21
|
FTDP_FN = "/sys/devices/platform/asus-nb-wmi/ppt_fppt"
|
22
22
|
STDP_FN = "/sys/devices/platform/asus-nb-wmi/ppt_pl2_sppt"
|
@@ -242,14 +242,15 @@ class AsusDriverPlugin(HHDPlugin):
|
|
242
242
|
if new_tdp:
|
243
243
|
# For TDP values received from steam, set the appropriate
|
244
244
|
# mode to get a better experience.
|
245
|
-
if new_tdp == (13 if ally_x else 10):
|
246
|
-
|
247
|
-
elif new_tdp == (17 if ally_x else 15):
|
248
|
-
|
249
|
-
elif new_tdp == 25 or new_tdp == 30:
|
250
|
-
|
251
|
-
else:
|
252
|
-
|
245
|
+
# if new_tdp == (13 if ally_x else 10):
|
246
|
+
# mode = "quiet"
|
247
|
+
# elif new_tdp == (17 if ally_x else 15):
|
248
|
+
# mode = "balanced"
|
249
|
+
# elif new_tdp == 25 or new_tdp == 30:
|
250
|
+
# mode = "performance"
|
251
|
+
# else:
|
252
|
+
# mode = "custom"
|
253
|
+
mode = "custom"
|
253
254
|
conf["tdp.asus.tdp_v2.mode"] = mode
|
254
255
|
elif new_mode:
|
255
256
|
mode = new_mode
|
@@ -286,6 +287,14 @@ class AsusDriverPlugin(HHDPlugin):
|
|
286
287
|
else:
|
287
288
|
steady = conf["tdp.asus.tdp_v2.custom.tdp"].to(int)
|
288
289
|
|
290
|
+
if self.enforce_limits:
|
291
|
+
if steady < MIN_TDP:
|
292
|
+
steady = MIN_TDP
|
293
|
+
conf["tdp.asus.tdp_v2.custom.tdp"] = steady
|
294
|
+
elif steady > MAX_TDP:
|
295
|
+
steady = MAX_TDP
|
296
|
+
conf["tdp.asus.tdp_v2.custom.tdp"] = steady
|
297
|
+
|
289
298
|
steady_updated = steady and steady != self.old_conf["tdp_v2.custom.tdp"].to(
|
290
299
|
int
|
291
300
|
)
|
@@ -294,11 +303,11 @@ class AsusDriverPlugin(HHDPlugin):
|
|
294
303
|
|
295
304
|
steady_updated |= tdp_reset
|
296
305
|
|
297
|
-
if self.startup and (steady >
|
306
|
+
if self.startup and (steady > MAX_TDP or steady < MIN_TDP):
|
298
307
|
logger.warning(
|
299
308
|
f"TDP ({steady}) outside the device spec. Resetting for stability reasons."
|
300
309
|
)
|
301
|
-
steady = min(max(steady,
|
310
|
+
steady = min(max(steady, MIN_TDP), MAX_TDP)
|
302
311
|
conf["tdp.asus.tdp_v2.custom.tdp"] = steady
|
303
312
|
steady_updated = True
|
304
313
|
|
@@ -331,13 +340,13 @@ class AsusDriverPlugin(HHDPlugin):
|
|
331
340
|
set_tdp(
|
332
341
|
"fast",
|
333
342
|
FTDP_FN,
|
334
|
-
min(max(steady,
|
343
|
+
min(max(steady, MAX_TDP_BOOST), int(steady * 35 / 25)),
|
335
344
|
)
|
336
345
|
time.sleep(TDP_DELAY)
|
337
346
|
set_tdp(
|
338
347
|
"slow",
|
339
348
|
STDP_FN,
|
340
|
-
min(max(steady,
|
349
|
+
min(max(steady, MAX_TDP_BOOST), int(steady * 30 / 25)),
|
341
350
|
)
|
342
351
|
time.sleep(TDP_DELAY)
|
343
352
|
set_tdp("steady", CTDP_FN, steady)
|
@@ -269,6 +269,7 @@ def autodetect(existing: Sequence[HHDPlugin]) -> Sequence[HHDPlugin]:
|
|
269
269
|
):
|
270
270
|
drivers.append(AsusDriverPlugin("RC72L" in prod))
|
271
271
|
drivers_matched = True
|
272
|
+
min_tdp = 7
|
272
273
|
|
273
274
|
if os.environ.get("HHD_ADJ_DEBUG") or os.environ.get("HHD_ENABLE_SMU"):
|
274
275
|
drivers_matched = False
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: adjustor
|
3
|
-
Version: 3.4.
|
3
|
+
Version: 3.4.7
|
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
|
File without changes
|
{adjustor-3.4.6 → adjustor-3.4.7}/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
|
File without changes
|
File without changes
|
File without changes
|
{adjustor-3.4.6 → adjustor-3.4.7}/usr/share/dbus-1/system.d/hhd-net.hadess.PowerProfiles.conf
RENAMED
File without changes
|