adjustor 3.7.1__tar.gz → 3.7.3__tar.gz

Sign up to get free protection for your applications and to get access to all the features.
Files changed (48) hide show
  1. {adjustor-3.7.1/src/adjustor.egg-info → adjustor-3.7.3}/PKG-INFO +1 -1
  2. {adjustor-3.7.1 → adjustor-3.7.3}/pyproject.toml +1 -1
  3. {adjustor-3.7.1 → adjustor-3.7.3}/src/adjustor/core/const.py +10 -8
  4. {adjustor-3.7.1 → adjustor-3.7.3}/src/adjustor/drivers/lenovo/__init__.py +4 -1
  5. {adjustor-3.7.1 → adjustor-3.7.3/src/adjustor.egg-info}/PKG-INFO +1 -1
  6. {adjustor-3.7.1 → adjustor-3.7.3}/LICENSE +0 -0
  7. {adjustor-3.7.1 → adjustor-3.7.3}/MANIFEST.in +0 -0
  8. {adjustor-3.7.1 → adjustor-3.7.3}/readme.md +0 -0
  9. {adjustor-3.7.1 → adjustor-3.7.3}/setup.cfg +0 -0
  10. {adjustor-3.7.1 → adjustor-3.7.3}/src/adjustor/__init__.py +0 -0
  11. {adjustor-3.7.1 → adjustor-3.7.3}/src/adjustor/__main__.py +0 -0
  12. {adjustor-3.7.1 → adjustor-3.7.3}/src/adjustor/core/__init__.py +0 -0
  13. {adjustor-3.7.1 → adjustor-3.7.3}/src/adjustor/core/acpi.py +0 -0
  14. {adjustor-3.7.1 → adjustor-3.7.3}/src/adjustor/core/alib.py +0 -0
  15. {adjustor-3.7.1 → adjustor-3.7.3}/src/adjustor/core/fan/__init__.py +0 -0
  16. {adjustor-3.7.1 → adjustor-3.7.3}/src/adjustor/core/fan/__main__.py +0 -0
  17. {adjustor-3.7.1 → adjustor-3.7.3}/src/adjustor/core/fan/alg.py +0 -0
  18. {adjustor-3.7.1 → adjustor-3.7.3}/src/adjustor/core/fan/core.py +0 -0
  19. {adjustor-3.7.1 → adjustor-3.7.3}/src/adjustor/core/fan/utils.py +0 -0
  20. {adjustor-3.7.1 → adjustor-3.7.3}/src/adjustor/core/lenovo.py +0 -0
  21. {adjustor-3.7.1 → adjustor-3.7.3}/src/adjustor/core/platform.py +0 -0
  22. {adjustor-3.7.1 → adjustor-3.7.3}/src/adjustor/drivers/__init__.py +0 -0
  23. {adjustor-3.7.1 → adjustor-3.7.3}/src/adjustor/drivers/amd/__init__.py +0 -0
  24. {adjustor-3.7.1 → adjustor-3.7.3}/src/adjustor/drivers/amd/power-profiles-daemon.dbus.xml.in +0 -0
  25. {adjustor-3.7.1 → adjustor-3.7.3}/src/adjustor/drivers/amd/ppd.py +0 -0
  26. {adjustor-3.7.1 → adjustor-3.7.3}/src/adjustor/drivers/amd/settings.yml +0 -0
  27. {adjustor-3.7.1 → adjustor-3.7.3}/src/adjustor/drivers/asus/__init__.py +0 -0
  28. {adjustor-3.7.1 → adjustor-3.7.3}/src/adjustor/drivers/asus/settings.yml +0 -0
  29. {adjustor-3.7.1 → adjustor-3.7.3}/src/adjustor/drivers/general/__init__.py +0 -0
  30. {adjustor-3.7.1 → adjustor-3.7.3}/src/adjustor/drivers/general/settings.yml +0 -0
  31. {adjustor-3.7.1 → adjustor-3.7.3}/src/adjustor/drivers/lenovo/settings.yml +0 -0
  32. {adjustor-3.7.1 → adjustor-3.7.3}/src/adjustor/drivers/smu/__init__.py +0 -0
  33. {adjustor-3.7.1 → adjustor-3.7.3}/src/adjustor/drivers/smu/qam.yml +0 -0
  34. {adjustor-3.7.1 → adjustor-3.7.3}/src/adjustor/drivers/smu/smu.yml +0 -0
  35. {adjustor-3.7.1 → adjustor-3.7.3}/src/adjustor/events.py +0 -0
  36. {adjustor-3.7.1 → adjustor-3.7.3}/src/adjustor/fuse/__init__.py +0 -0
  37. {adjustor-3.7.1 → adjustor-3.7.3}/src/adjustor/fuse/driver.py +0 -0
  38. {adjustor-3.7.1 → adjustor-3.7.3}/src/adjustor/fuse/gpu.py +0 -0
  39. {adjustor-3.7.1 → adjustor-3.7.3}/src/adjustor/fuse/utils.py +0 -0
  40. {adjustor-3.7.1 → adjustor-3.7.3}/src/adjustor/hhd.py +0 -0
  41. {adjustor-3.7.1 → adjustor-3.7.3}/src/adjustor/i18n.py +0 -0
  42. {adjustor-3.7.1 → adjustor-3.7.3}/src/adjustor/settings.yml +0 -0
  43. {adjustor-3.7.1 → adjustor-3.7.3}/src/adjustor.egg-info/SOURCES.txt +0 -0
  44. {adjustor-3.7.1 → adjustor-3.7.3}/src/adjustor.egg-info/dependency_links.txt +0 -0
  45. {adjustor-3.7.1 → adjustor-3.7.3}/src/adjustor.egg-info/entry_points.txt +0 -0
  46. {adjustor-3.7.1 → adjustor-3.7.3}/src/adjustor.egg-info/requires.txt +0 -0
  47. {adjustor-3.7.1 → adjustor-3.7.3}/src/adjustor.egg-info/top_level.txt +0 -0
  48. {adjustor-3.7.1 → adjustor-3.7.3}/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.1
3
+ Version: 3.7.3
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
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "adjustor"
3
- version = "3.7.1"
3
+ version = "3.7.3"
4
4
  authors = [
5
5
  { name="Kapenekakis Antheas", email="pypi@antheas.dev" },
6
6
  ]
@@ -71,11 +71,11 @@ DEV_PARAMS_30W: dict[str, DeviceParams] = {
71
71
  "temp_target": D(60, 70, 85, 90, 100),
72
72
  }
73
73
 
74
- DEV_PARAMS_28W: dict[str, DeviceParams] = {
75
- "stapm_limit": D(0, 4, 15, 28, 35),
76
- "skin_limit": D(0, 4, 15, 28, 35),
77
- "slow_limit": D(0, 4, 20, 32, 37),
78
- "fast_limit": D(0, 4, 25, 35, 40),
74
+ DEV_PARAMS_18W: dict[str, DeviceParams] = {
75
+ "stapm_limit": D(0, 5, 15, 18, 22),
76
+ "skin_limit": D(0, 5, 15, 18, 22),
77
+ "slow_limit": D(0, 5, 15, 18, 22),
78
+ "fast_limit": D(0, 5, 15, 20, 25),
79
79
  # Times
80
80
  "slow_time": D(5, 5, 10, 10, 10),
81
81
  "stapm_time": D(100, 100, 100, 200, 200),
@@ -128,11 +128,13 @@ DEV_DATA: dict[str, tuple[dict[str, DeviceParams], dict[str, AlibParams], bool]]
128
128
  CPU_DATA: dict[str, tuple[dict[str, DeviceParams], dict[str, AlibParams]]] = {
129
129
  "AMD Ryzen Z1 Extreme": (DEV_PARAMS_7040, ALIB_PARAMS_7040),
130
130
  "AMD Ryzen Z1": (DEV_PARAMS_7040, ALIB_PARAMS_7040),
131
+ # Ayaneo AIR Pro, max is 18W
132
+ "AMD Ryzen 5 5560U": (DEV_PARAMS_18W, ALIB_PARAMS_5040),
133
+ # 28W works fine, 30W is pushing it
134
+ "AMD Ryzen 7 5700U": (DEV_PARAMS_5000, ALIB_PARAMS_5040),
135
+ "AMD Ryzen 7 5800U": (DEV_PARAMS_5000, ALIB_PARAMS_5040),
131
136
  # GPD Win 4
132
137
  # model name : AMD Ryzen 7 6800U with Radeon Graphics
133
- # 28W works fine, 30W is pushing it
134
- "AMD Ryzen 7 5700U": (DEV_PARAMS_6000, ALIB_PARAMS_6040),
135
- "AMD Ryzen 7 5800U": (DEV_PARAMS_6000, ALIB_PARAMS_6040),
136
138
  "AMD Ryzen 7 6800U": (DEV_PARAMS_6000, ALIB_PARAMS_6040),
137
139
  "AMD Ryzen 7 7840U": (DEV_PARAMS_7040, ALIB_PARAMS_7040),
138
140
  "AMD Ryzen 7 8840U": (DEV_PARAMS_8040, ALIB_PARAMS_8040),
@@ -41,6 +41,7 @@ class LenovoDriverPlugin(HHDPlugin):
41
41
  self.enforce_limits = True
42
42
  self.startup = True
43
43
  self.old_conf = None
44
+ self.old_mode = None
44
45
  self.prev_charge_limit = None
45
46
  self.sys_tdp = False
46
47
  self.fan_curve_set = False
@@ -190,7 +191,8 @@ class LenovoDriverPlugin(HHDPlugin):
190
191
  conf["tdp.lenovo.tdp.mode"] = mode
191
192
  else:
192
193
  mode = conf["tdp.lenovo.tdp.mode"].to(str)
193
- if mode is not None and mode != self.old_conf["tdp.mode"].to(str):
194
+ if mode is not None and mode != self.old_mode:
195
+ self.old_mode = mode
194
196
  set_tdp_mode(cast(TdpMode, mode))
195
197
  tdp_reset = True
196
198
 
@@ -201,6 +203,7 @@ class LenovoDriverPlugin(HHDPlugin):
201
203
  self.sys_tdp = False
202
204
  tdp_reset = True
203
205
  notify_tdp = True
206
+ self.old_mode = mode
204
207
  conf["tdp.lenovo.tdp.mode"] = new_mode
205
208
 
206
209
  # Reset fan curve on mode change
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: adjustor
3
- Version: 3.7.1
3
+ Version: 3.7.3
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