adjustor 3.4.7__tar.gz → 3.5.0__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.0}/PKG-INFO +1 -1
- {adjustor-3.4.7 → adjustor-3.5.0}/pyproject.toml +1 -1
- {adjustor-3.4.7 → adjustor-3.5.0}/src/adjustor/drivers/asus/__init__.py +32 -0
- {adjustor-3.4.7 → adjustor-3.5.0}/src/adjustor/drivers/asus/settings.yml +14 -1
- {adjustor-3.4.7 → adjustor-3.5.0/src/adjustor.egg-info}/PKG-INFO +1 -1
- {adjustor-3.4.7 → adjustor-3.5.0}/LICENSE +0 -0
- {adjustor-3.4.7 → adjustor-3.5.0}/MANIFEST.in +0 -0
- {adjustor-3.4.7 → adjustor-3.5.0}/readme.md +0 -0
- {adjustor-3.4.7 → adjustor-3.5.0}/setup.cfg +0 -0
- {adjustor-3.4.7 → adjustor-3.5.0}/src/adjustor/__init__.py +0 -0
- {adjustor-3.4.7 → adjustor-3.5.0}/src/adjustor/__main__.py +0 -0
- {adjustor-3.4.7 → adjustor-3.5.0}/src/adjustor/core/__init__.py +0 -0
- {adjustor-3.4.7 → adjustor-3.5.0}/src/adjustor/core/acpi.py +0 -0
- {adjustor-3.4.7 → adjustor-3.5.0}/src/adjustor/core/alib.py +0 -0
- {adjustor-3.4.7 → adjustor-3.5.0}/src/adjustor/core/const.py +0 -0
- {adjustor-3.4.7 → adjustor-3.5.0}/src/adjustor/core/lenovo.py +0 -0
- {adjustor-3.4.7 → adjustor-3.5.0}/src/adjustor/core/platform.py +0 -0
- {adjustor-3.4.7 → adjustor-3.5.0}/src/adjustor/drivers/__init__.py +0 -0
- {adjustor-3.4.7 → adjustor-3.5.0}/src/adjustor/drivers/amd/__init__.py +0 -0
- {adjustor-3.4.7 → adjustor-3.5.0}/src/adjustor/drivers/amd/power-profiles-daemon.dbus.xml.in +0 -0
- {adjustor-3.4.7 → adjustor-3.5.0}/src/adjustor/drivers/amd/ppd.py +0 -0
- {adjustor-3.4.7 → adjustor-3.5.0}/src/adjustor/drivers/amd/settings.yml +0 -0
- {adjustor-3.4.7 → adjustor-3.5.0}/src/adjustor/drivers/general/__init__.py +0 -0
- {adjustor-3.4.7 → adjustor-3.5.0}/src/adjustor/drivers/general/settings.yml +0 -0
- {adjustor-3.4.7 → adjustor-3.5.0}/src/adjustor/drivers/lenovo/__init__.py +0 -0
- {adjustor-3.4.7 → adjustor-3.5.0}/src/adjustor/drivers/lenovo/settings.yml +0 -0
- {adjustor-3.4.7 → adjustor-3.5.0}/src/adjustor/drivers/smu/__init__.py +0 -0
- {adjustor-3.4.7 → adjustor-3.5.0}/src/adjustor/drivers/smu/qam.yml +0 -0
- {adjustor-3.4.7 → adjustor-3.5.0}/src/adjustor/drivers/smu/smu.yml +0 -0
- {adjustor-3.4.7 → adjustor-3.5.0}/src/adjustor/events.py +0 -0
- {adjustor-3.4.7 → adjustor-3.5.0}/src/adjustor/fuse/__init__.py +0 -0
- {adjustor-3.4.7 → adjustor-3.5.0}/src/adjustor/fuse/driver.py +0 -0
- {adjustor-3.4.7 → adjustor-3.5.0}/src/adjustor/fuse/gpu.py +0 -0
- {adjustor-3.4.7 → adjustor-3.5.0}/src/adjustor/fuse/utils.py +0 -0
- {adjustor-3.4.7 → adjustor-3.5.0}/src/adjustor/hhd.py +0 -0
- {adjustor-3.4.7 → adjustor-3.5.0}/src/adjustor/i18n.py +0 -0
- {adjustor-3.4.7 → adjustor-3.5.0}/src/adjustor/settings.yml +0 -0
- {adjustor-3.4.7 → adjustor-3.5.0}/src/adjustor.egg-info/SOURCES.txt +0 -0
- {adjustor-3.4.7 → adjustor-3.5.0}/src/adjustor.egg-info/dependency_links.txt +0 -0
- {adjustor-3.4.7 → adjustor-3.5.0}/src/adjustor.egg-info/entry_points.txt +0 -0
- {adjustor-3.4.7 → adjustor-3.5.0}/src/adjustor.egg-info/requires.txt +0 -0
- {adjustor-3.4.7 → adjustor-3.5.0}/src/adjustor.egg-info/top_level.txt +0 -0
- {adjustor-3.4.7 → adjustor-3.5.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.5.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
|
@@ -21,6 +21,10 @@ 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_DELAY = 3.8
|
24
28
|
|
25
29
|
FAN_CURVE_ENDPOINT = "/sys/class/hwmon"
|
26
30
|
FAN_CURVE_NAME = "asus_custom_fan_curve"
|
@@ -137,9 +141,13 @@ class AsusDriverPlugin(HHDPlugin):
|
|
137
141
|
self.mode = None
|
138
142
|
self.cycle_tdp = None
|
139
143
|
|
144
|
+
self.extreme_standby = None
|
145
|
+
self.extreme_supported = None
|
146
|
+
|
140
147
|
self.queue_fan = None
|
141
148
|
self.queue_tdp = None
|
142
149
|
self.queue_charge_limit = None
|
150
|
+
self.queue_extreme = None
|
143
151
|
self.new_tdp = None
|
144
152
|
self.new_mode = None
|
145
153
|
self.old_target = None
|
@@ -157,6 +165,14 @@ class AsusDriverPlugin(HHDPlugin):
|
|
157
165
|
self.initialized = True
|
158
166
|
out = {"tdp": {"asus": load_relative_yaml("settings.yml")}}
|
159
167
|
|
168
|
+
path_exists = os.path.exists(EXTREME_FN)
|
169
|
+
extreme_supported = EXTREME_ENABLE and path_exists
|
170
|
+
if self.extreme_supported is None:
|
171
|
+
logger.info(f"Extreme standby enabled: {EXTREME_ENABLE}, file exists: {extreme_supported}. Enabled: {extreme_supported}")
|
172
|
+
self.extreme_supported = extreme_supported
|
173
|
+
if not self.extreme_supported:
|
174
|
+
del out["tdp"]["asus"]["children"]["extreme_standby"]
|
175
|
+
|
160
176
|
# Set units
|
161
177
|
if self.allyx:
|
162
178
|
out["tdp"]["asus"]["children"]["tdp_v2"]["modes"]["quiet"]["unit"] = "13W"
|
@@ -442,6 +458,22 @@ class AsusDriverPlugin(HHDPlugin):
|
|
442
458
|
if self.startup:
|
443
459
|
self.startup = False
|
444
460
|
|
461
|
+
# Extreme standby
|
462
|
+
if self.extreme_supported:
|
463
|
+
standby = conf["tdp.asus.extreme_standby"].to(bool)
|
464
|
+
if standby != self.extreme_standby:
|
465
|
+
self.extreme_standby = standby
|
466
|
+
self.queue_extreme = curr + EXTREME_DELAY
|
467
|
+
|
468
|
+
if self.queue_extreme and self.queue_extreme < curr:
|
469
|
+
self.queue_extreme = None
|
470
|
+
try:
|
471
|
+
logger.info (f"Setting extreme standby to '{standby}'")
|
472
|
+
with open(EXTREME_FN, "w") as f:
|
473
|
+
f.write("1" if standby == "enabled" else "0")
|
474
|
+
except Exception as e:
|
475
|
+
logger.error(f"Could not set extreme standby. Error:\n{e}")
|
476
|
+
|
445
477
|
def notify(self, events: Sequence[Event]):
|
446
478
|
for ev in events:
|
447
479
|
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.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
|
File without changes
|
{adjustor-3.4.7 → adjustor-3.5.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
|
File without changes
|
File without changes
|
File without changes
|
{adjustor-3.4.7 → adjustor-3.5.0}/usr/share/dbus-1/system.d/hhd-net.hadess.PowerProfiles.conf
RENAMED
File without changes
|