adjustor 3.4.7__tar.gz → 3.5.1__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {adjustor-3.4.7/src/adjustor.egg-info → adjustor-3.5.1}/PKG-INFO +1 -1
- {adjustor-3.4.7 → adjustor-3.5.1}/pyproject.toml +1 -1
- {adjustor-3.4.7 → adjustor-3.5.1}/src/adjustor/drivers/asus/__init__.py +40 -1
- {adjustor-3.4.7 → adjustor-3.5.1}/src/adjustor/drivers/asus/settings.yml +14 -1
- {adjustor-3.4.7 → adjustor-3.5.1/src/adjustor.egg-info}/PKG-INFO +1 -1
- {adjustor-3.4.7 → adjustor-3.5.1}/LICENSE +0 -0
- {adjustor-3.4.7 → adjustor-3.5.1}/MANIFEST.in +0 -0
- {adjustor-3.4.7 → adjustor-3.5.1}/readme.md +0 -0
- {adjustor-3.4.7 → adjustor-3.5.1}/setup.cfg +0 -0
- {adjustor-3.4.7 → adjustor-3.5.1}/src/adjustor/__init__.py +0 -0
- {adjustor-3.4.7 → adjustor-3.5.1}/src/adjustor/__main__.py +0 -0
- {adjustor-3.4.7 → adjustor-3.5.1}/src/adjustor/core/__init__.py +0 -0
- {adjustor-3.4.7 → adjustor-3.5.1}/src/adjustor/core/acpi.py +0 -0
- {adjustor-3.4.7 → adjustor-3.5.1}/src/adjustor/core/alib.py +0 -0
- {adjustor-3.4.7 → adjustor-3.5.1}/src/adjustor/core/const.py +0 -0
- {adjustor-3.4.7 → adjustor-3.5.1}/src/adjustor/core/lenovo.py +0 -0
- {adjustor-3.4.7 → adjustor-3.5.1}/src/adjustor/core/platform.py +0 -0
- {adjustor-3.4.7 → adjustor-3.5.1}/src/adjustor/drivers/__init__.py +0 -0
- {adjustor-3.4.7 → adjustor-3.5.1}/src/adjustor/drivers/amd/__init__.py +0 -0
- {adjustor-3.4.7 → adjustor-3.5.1}/src/adjustor/drivers/amd/power-profiles-daemon.dbus.xml.in +0 -0
- {adjustor-3.4.7 → adjustor-3.5.1}/src/adjustor/drivers/amd/ppd.py +0 -0
- {adjustor-3.4.7 → adjustor-3.5.1}/src/adjustor/drivers/amd/settings.yml +0 -0
- {adjustor-3.4.7 → adjustor-3.5.1}/src/adjustor/drivers/general/__init__.py +0 -0
- {adjustor-3.4.7 → adjustor-3.5.1}/src/adjustor/drivers/general/settings.yml +0 -0
- {adjustor-3.4.7 → adjustor-3.5.1}/src/adjustor/drivers/lenovo/__init__.py +0 -0
- {adjustor-3.4.7 → adjustor-3.5.1}/src/adjustor/drivers/lenovo/settings.yml +0 -0
- {adjustor-3.4.7 → adjustor-3.5.1}/src/adjustor/drivers/smu/__init__.py +0 -0
- {adjustor-3.4.7 → adjustor-3.5.1}/src/adjustor/drivers/smu/qam.yml +0 -0
- {adjustor-3.4.7 → adjustor-3.5.1}/src/adjustor/drivers/smu/smu.yml +0 -0
- {adjustor-3.4.7 → adjustor-3.5.1}/src/adjustor/events.py +0 -0
- {adjustor-3.4.7 → adjustor-3.5.1}/src/adjustor/fuse/__init__.py +0 -0
- {adjustor-3.4.7 → adjustor-3.5.1}/src/adjustor/fuse/driver.py +0 -0
- {adjustor-3.4.7 → adjustor-3.5.1}/src/adjustor/fuse/gpu.py +0 -0
- {adjustor-3.4.7 → adjustor-3.5.1}/src/adjustor/fuse/utils.py +0 -0
- {adjustor-3.4.7 → adjustor-3.5.1}/src/adjustor/hhd.py +0 -0
- {adjustor-3.4.7 → adjustor-3.5.1}/src/adjustor/i18n.py +0 -0
- {adjustor-3.4.7 → adjustor-3.5.1}/src/adjustor/settings.yml +0 -0
- {adjustor-3.4.7 → adjustor-3.5.1}/src/adjustor.egg-info/SOURCES.txt +0 -0
- {adjustor-3.4.7 → adjustor-3.5.1}/src/adjustor.egg-info/dependency_links.txt +0 -0
- {adjustor-3.4.7 → adjustor-3.5.1}/src/adjustor.egg-info/entry_points.txt +0 -0
- {adjustor-3.4.7 → adjustor-3.5.1}/src/adjustor.egg-info/requires.txt +0 -0
- {adjustor-3.4.7 → adjustor-3.5.1}/src/adjustor.egg-info/top_level.txt +0 -0
- {adjustor-3.4.7 → adjustor-3.5.1}/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.5.1
|
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
|
@@ -21,6 +21,11 @@ MAX_TDP_BOOST = 35
|
|
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"
|
23
23
|
CTDP_FN = "/sys/devices/platform/asus-nb-wmi/ppt_pl1_spl"
|
24
|
+
EXTREME_FN = "/sys/devices/platform/asus-nb-wmi/mcu_powersave"
|
25
|
+
EXTREME_ENABLE = bool(os.environ.get("HHD_ALLY_POWERSAVE", None))
|
26
|
+
# This setting can really mess up the controller
|
27
|
+
EXTREME_STARTUP_DELAY = 12
|
28
|
+
EXTREME_DELAY = 3.8
|
24
29
|
|
25
30
|
FAN_CURVE_ENDPOINT = "/sys/class/hwmon"
|
26
31
|
FAN_CURVE_NAME = "asus_custom_fan_curve"
|
@@ -137,9 +142,13 @@ class AsusDriverPlugin(HHDPlugin):
|
|
137
142
|
self.mode = None
|
138
143
|
self.cycle_tdp = None
|
139
144
|
|
145
|
+
self.extreme_standby = None
|
146
|
+
self.extreme_supported = None
|
147
|
+
|
140
148
|
self.queue_fan = None
|
141
149
|
self.queue_tdp = None
|
142
150
|
self.queue_charge_limit = None
|
151
|
+
self.queue_extreme = time.perf_counter() + EXTREME_STARTUP_DELAY
|
143
152
|
self.new_tdp = None
|
144
153
|
self.new_mode = None
|
145
154
|
self.old_target = None
|
@@ -157,6 +166,14 @@ class AsusDriverPlugin(HHDPlugin):
|
|
157
166
|
self.initialized = True
|
158
167
|
out = {"tdp": {"asus": load_relative_yaml("settings.yml")}}
|
159
168
|
|
169
|
+
path_exists = os.path.exists(EXTREME_FN)
|
170
|
+
extreme_supported = EXTREME_ENABLE and path_exists
|
171
|
+
if self.extreme_supported is None:
|
172
|
+
logger.info(f"Extreme standby enabled: {EXTREME_ENABLE}, file exists: {extreme_supported}. Enabled: {extreme_supported}")
|
173
|
+
self.extreme_supported = extreme_supported
|
174
|
+
if not self.extreme_supported:
|
175
|
+
del out["tdp"]["asus"]["children"]["extreme_standby"]
|
176
|
+
|
160
177
|
# Set units
|
161
178
|
if self.allyx:
|
162
179
|
out["tdp"]["asus"]["children"]["tdp_v2"]["modes"]["quiet"]["unit"] = "13W"
|
@@ -200,7 +217,7 @@ class AsusDriverPlugin(HHDPlugin):
|
|
200
217
|
self.old_conf = conf["tdp.asus"]
|
201
218
|
return
|
202
219
|
|
203
|
-
curr = time.
|
220
|
+
curr = time.perf_counter()
|
204
221
|
|
205
222
|
# Charge limit
|
206
223
|
lim = conf["tdp.asus.charge_limit"].to(str)
|
@@ -442,6 +459,28 @@ class AsusDriverPlugin(HHDPlugin):
|
|
442
459
|
if self.startup:
|
443
460
|
self.startup = False
|
444
461
|
|
462
|
+
# Extreme standby
|
463
|
+
if self.extreme_supported:
|
464
|
+
standby = conf["tdp.asus.extreme_standby"].to(bool)
|
465
|
+
if self.extreme_standby is not None and self.extreme_standby != standby:
|
466
|
+
self.queue_extreme = curr + EXTREME_DELAY
|
467
|
+
self.extreme_standby = standby
|
468
|
+
|
469
|
+
if self.queue_extreme and self.queue_extreme < curr:
|
470
|
+
self.queue_extreme = None
|
471
|
+
try:
|
472
|
+
nval = standby == "enabled"
|
473
|
+
with open(EXTREME_FN, "r") as f:
|
474
|
+
cval = f.read().strip() == "1"
|
475
|
+
if nval != cval:
|
476
|
+
logger.info (f"Setting extreme standby to '{standby}'")
|
477
|
+
with open(EXTREME_FN, "w") as f:
|
478
|
+
f.write("1" if standby == "enabled" else "0")
|
479
|
+
else:
|
480
|
+
logger.info(f"Extreme standby already set to '{standby}'")
|
481
|
+
except Exception as e:
|
482
|
+
logger.error(f"Could not set extreme standby. Error:\n{e}")
|
483
|
+
|
445
484
|
def notify(self, events: Sequence[Event]):
|
446
485
|
for ev in events:
|
447
486
|
if ev["type"] == "tdp":
|
@@ -142,4 +142,17 @@ children:
|
|
142
142
|
p90: 90%
|
143
143
|
p95: 95%
|
144
144
|
disabled: Unset
|
145
|
-
default: disabled
|
145
|
+
default: disabled
|
146
|
+
|
147
|
+
extreme_standby:
|
148
|
+
type: multiple
|
149
|
+
title: Extreme Standby Mode
|
150
|
+
tags: [ non-essential, ordinal ]
|
151
|
+
options:
|
152
|
+
disabled: Disabled
|
153
|
+
enabled: Enabled
|
154
|
+
default: disabled
|
155
|
+
hint: >-
|
156
|
+
Lowers the power consumption of the device from 4% to 1% overnight.
|
157
|
+
Active only on battery. Turns off the power light and the controller
|
158
|
+
requires longer to wake up.
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: adjustor
|
3
|
-
Version: 3.
|
3
|
+
Version: 3.5.1
|
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.7 → adjustor-3.5.1}/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.7 → adjustor-3.5.1}/usr/share/dbus-1/system.d/hhd-net.hadess.PowerProfiles.conf
RENAMED
File without changes
|