adjustor 3.7.4__tar.gz → 3.7.6__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {adjustor-3.7.4/src/adjustor.egg-info → adjustor-3.7.6}/PKG-INFO +1 -1
- {adjustor-3.7.4 → adjustor-3.7.6}/pyproject.toml +1 -1
- {adjustor-3.7.4 → adjustor-3.7.6}/src/adjustor/drivers/amd/ppd.py +1 -1
- {adjustor-3.7.4 → adjustor-3.7.6}/src/adjustor/drivers/asus/__init__.py +3 -0
- {adjustor-3.7.4 → adjustor-3.7.6}/src/adjustor/drivers/lenovo/__init__.py +16 -7
- {adjustor-3.7.4 → adjustor-3.7.6}/src/adjustor/drivers/lenovo/settings.yml +3 -14
- {adjustor-3.7.4 → adjustor-3.7.6/src/adjustor.egg-info}/PKG-INFO +1 -1
- {adjustor-3.7.4 → adjustor-3.7.6}/LICENSE +0 -0
- {adjustor-3.7.4 → adjustor-3.7.6}/MANIFEST.in +0 -0
- {adjustor-3.7.4 → adjustor-3.7.6}/readme.md +0 -0
- {adjustor-3.7.4 → adjustor-3.7.6}/setup.cfg +0 -0
- {adjustor-3.7.4 → adjustor-3.7.6}/src/adjustor/__init__.py +0 -0
- {adjustor-3.7.4 → adjustor-3.7.6}/src/adjustor/__main__.py +0 -0
- {adjustor-3.7.4 → adjustor-3.7.6}/src/adjustor/core/__init__.py +0 -0
- {adjustor-3.7.4 → adjustor-3.7.6}/src/adjustor/core/acpi.py +0 -0
- {adjustor-3.7.4 → adjustor-3.7.6}/src/adjustor/core/alib.py +0 -0
- {adjustor-3.7.4 → adjustor-3.7.6}/src/adjustor/core/const.py +0 -0
- {adjustor-3.7.4 → adjustor-3.7.6}/src/adjustor/core/fan/__init__.py +0 -0
- {adjustor-3.7.4 → adjustor-3.7.6}/src/adjustor/core/fan/__main__.py +0 -0
- {adjustor-3.7.4 → adjustor-3.7.6}/src/adjustor/core/fan/alg.py +0 -0
- {adjustor-3.7.4 → adjustor-3.7.6}/src/adjustor/core/fan/core.py +0 -0
- {adjustor-3.7.4 → adjustor-3.7.6}/src/adjustor/core/fan/utils.py +0 -0
- {adjustor-3.7.4 → adjustor-3.7.6}/src/adjustor/core/lenovo.py +0 -0
- {adjustor-3.7.4 → adjustor-3.7.6}/src/adjustor/core/platform.py +0 -0
- {adjustor-3.7.4 → adjustor-3.7.6}/src/adjustor/drivers/__init__.py +0 -0
- {adjustor-3.7.4 → adjustor-3.7.6}/src/adjustor/drivers/amd/__init__.py +0 -0
- {adjustor-3.7.4 → adjustor-3.7.6}/src/adjustor/drivers/amd/power-profiles-daemon.dbus.xml.in +0 -0
- {adjustor-3.7.4 → adjustor-3.7.6}/src/adjustor/drivers/amd/settings.yml +0 -0
- {adjustor-3.7.4 → adjustor-3.7.6}/src/adjustor/drivers/asus/settings.yml +0 -0
- {adjustor-3.7.4 → adjustor-3.7.6}/src/adjustor/drivers/general/__init__.py +0 -0
- {adjustor-3.7.4 → adjustor-3.7.6}/src/adjustor/drivers/general/settings.yml +0 -0
- {adjustor-3.7.4 → adjustor-3.7.6}/src/adjustor/drivers/smu/__init__.py +0 -0
- {adjustor-3.7.4 → adjustor-3.7.6}/src/adjustor/drivers/smu/qam.yml +0 -0
- {adjustor-3.7.4 → adjustor-3.7.6}/src/adjustor/drivers/smu/smu.yml +0 -0
- {adjustor-3.7.4 → adjustor-3.7.6}/src/adjustor/events.py +0 -0
- {adjustor-3.7.4 → adjustor-3.7.6}/src/adjustor/fuse/__init__.py +0 -0
- {adjustor-3.7.4 → adjustor-3.7.6}/src/adjustor/fuse/driver.py +0 -0
- {adjustor-3.7.4 → adjustor-3.7.6}/src/adjustor/fuse/gpu.py +0 -0
- {adjustor-3.7.4 → adjustor-3.7.6}/src/adjustor/fuse/utils.py +0 -0
- {adjustor-3.7.4 → adjustor-3.7.6}/src/adjustor/hhd.py +0 -0
- {adjustor-3.7.4 → adjustor-3.7.6}/src/adjustor/i18n.py +0 -0
- {adjustor-3.7.4 → adjustor-3.7.6}/src/adjustor/settings.yml +0 -0
- {adjustor-3.7.4 → adjustor-3.7.6}/src/adjustor.egg-info/SOURCES.txt +0 -0
- {adjustor-3.7.4 → adjustor-3.7.6}/src/adjustor.egg-info/dependency_links.txt +0 -0
- {adjustor-3.7.4 → adjustor-3.7.6}/src/adjustor.egg-info/entry_points.txt +0 -0
- {adjustor-3.7.4 → adjustor-3.7.6}/src/adjustor.egg-info/requires.txt +0 -0
- {adjustor-3.7.4 → adjustor-3.7.6}/src/adjustor.egg-info/top_level.txt +0 -0
- {adjustor-3.7.4 → adjustor-3.7.6}/usr/share/dbus-1/system.d/hhd-net.hadess.PowerProfiles.conf +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.2
|
2
2
|
Name: adjustor
|
3
|
-
Version: 3.7.
|
3
|
+
Version: 3.7.6
|
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
|
@@ -164,7 +164,7 @@ if __name__ == "__main__":
|
|
164
164
|
orig_fl = fcntl.fcntl(sys.stdin, fcntl.F_GETFL)
|
165
165
|
fcntl.fcntl(sys.stdin, fcntl.F_SETFL, orig_fl | os.O_NONBLOCK)
|
166
166
|
|
167
|
-
legacy =
|
167
|
+
legacy = False
|
168
168
|
session_bus = dbus.SystemBus()
|
169
169
|
name = dbus.service.BusName(iface(legacy), session_bus)
|
170
170
|
object = create_interface(legacy)(session_bus)
|
@@ -508,6 +508,9 @@ class AsusDriverPlugin(HHDPlugin):
|
|
508
508
|
f"Waking up from sleep, resetting TDP after {SLEEP_DELAY} seconds."
|
509
509
|
)
|
510
510
|
self.queue_tdp = time.time() + SLEEP_DELAY
|
511
|
+
elif ev["type"] == "acpi" and ev["event"] in ("ac", "dc") and not self.queue_tdp:
|
512
|
+
logger.info(f"Power adapter status switched to '{ev['event']}', resetting TDP.")
|
513
|
+
self.queue_tdp = time.time() + APPLY_DELAY
|
511
514
|
elif self.cycle_tdp and ev["type"] == "special" and ev["event"] == "xbox_y":
|
512
515
|
match self.mode:
|
513
516
|
case "quiet":
|
@@ -47,13 +47,19 @@ class LenovoDriverPlugin(HHDPlugin):
|
|
47
47
|
self.fan_curve_set = False
|
48
48
|
self.legion_s = legion_s
|
49
49
|
if legion_s:
|
50
|
-
|
51
|
-
|
52
|
-
self.
|
50
|
+
# AC 40/43/53W
|
51
|
+
# DC 33/33/43W
|
52
|
+
self.max_watts = 40
|
53
|
+
self.max_watts_sppt = 43
|
54
|
+
self.max_watts_fppt = 53
|
55
|
+
self.fppt_ratio = 53 / 40
|
56
|
+
self.performance_tdp = 25
|
53
57
|
else:
|
54
58
|
self.max_watts = 30
|
55
59
|
self.max_watts_sppt = 32
|
56
60
|
self.max_watts_fppt = 41
|
61
|
+
self.fppt_ratio = 41/30
|
62
|
+
self.performance_tdp = 20
|
57
63
|
|
58
64
|
bios_version = get_bios_version()
|
59
65
|
if legion_s:
|
@@ -90,9 +96,12 @@ class LenovoDriverPlugin(HHDPlugin):
|
|
90
96
|
"tdp"
|
91
97
|
]["max"] = self.max_watts
|
92
98
|
if self.legion_s:
|
99
|
+
out["tdp"]["lenovo"]["children"]["tdp"]["modes"]["performance"][
|
100
|
+
"unit"
|
101
|
+
] = f"25W"
|
93
102
|
out["tdp"]["lenovo"]["children"]["tdp"]["modes"]["custom"][
|
94
103
|
"unit"
|
95
|
-
] = f"→
|
104
|
+
] = f"→ 33/40W"
|
96
105
|
return out
|
97
106
|
|
98
107
|
def open(
|
@@ -181,7 +190,7 @@ class LenovoDriverPlugin(HHDPlugin):
|
|
181
190
|
mode = "quiet"
|
182
191
|
elif new_tdp == 15:
|
183
192
|
mode = "balanced"
|
184
|
-
elif new_tdp ==
|
193
|
+
elif new_tdp == self.performance_tdp:
|
185
194
|
mode = "performance"
|
186
195
|
else:
|
187
196
|
mode = "custom"
|
@@ -277,7 +286,7 @@ class LenovoDriverPlugin(HHDPlugin):
|
|
277
286
|
set_fast_tdp(
|
278
287
|
min(
|
279
288
|
self.max_watts_fppt,
|
280
|
-
int(steady * self.
|
289
|
+
int(steady * self.fppt_ratio),
|
281
290
|
)
|
282
291
|
)
|
283
292
|
else:
|
@@ -351,7 +360,7 @@ class LenovoDriverPlugin(HHDPlugin):
|
|
351
360
|
if self.sys_tdp:
|
352
361
|
conf["tdp.lenovo.cycle_info"] = _("Steam is controlling TDP")
|
353
362
|
else:
|
354
|
-
conf["tdp.lenovo.cycle_info"] = _("Legion
|
363
|
+
conf["tdp.lenovo.cycle_info"] = _("Legion Button + Y changes TDP Mode")
|
355
364
|
|
356
365
|
# Save current config
|
357
366
|
self.old_conf = conf["tdp.lenovo"]
|
@@ -29,14 +29,7 @@ children:
|
|
29
29
|
type: int
|
30
30
|
title: TDP
|
31
31
|
hint: >-
|
32
|
-
|
33
|
-
|
34
|
-
Sets the values STAMP and Skin Power Limit to it.
|
35
|
-
If boost is enabled, interpolates values for slow and fast TDPs
|
36
|
-
based on those used by Lenovo.
|
37
|
-
If it is not, it sets the Slow limit equal to TDP and the Fast
|
38
|
-
limit to +2W.
|
39
|
-
Boost is recommended for desktop use.
|
32
|
+
Maximum average TDP. Boost goes a bit higher and is recommended for desktop use.
|
40
33
|
|
41
34
|
min: 0
|
42
35
|
max: 30
|
@@ -63,11 +56,7 @@ children:
|
|
63
56
|
type: mode
|
64
57
|
title: Custom Fan Curve
|
65
58
|
hint: >-
|
66
|
-
Allows you to set a custom fan curve.
|
67
|
-
supported on custom mode, but you can nevertheless use it in other power
|
68
|
-
modes.
|
69
|
-
This fan curve needs to be reapplied and is reapplied every time you switch
|
70
|
-
TDP modes.
|
59
|
+
Allows you to set a custom fan curve.
|
71
60
|
default: disabled
|
72
61
|
modes:
|
73
62
|
disabled:
|
@@ -141,7 +130,7 @@ children:
|
|
141
130
|
title: Restore Default
|
142
131
|
type: action
|
143
132
|
hint: >-
|
144
|
-
Reset to the original fan curve
|
133
|
+
Reset to the original fan curve for custom mode.
|
145
134
|
|
146
135
|
tdp_rgb:
|
147
136
|
type: bool
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.2
|
2
2
|
Name: adjustor
|
3
|
-
Version: 3.7.
|
3
|
+
Version: 3.7.6
|
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
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{adjustor-3.7.4 → adjustor-3.7.6}/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
|
{adjustor-3.7.4 → adjustor-3.7.6}/usr/share/dbus-1/system.d/hhd-net.hadess.PowerProfiles.conf
RENAMED
File without changes
|