adjustor 3.7.4__tar.gz → 3.7.5__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.4/src/adjustor.egg-info → adjustor-3.7.5}/PKG-INFO +1 -1
  2. {adjustor-3.7.4 → adjustor-3.7.5}/pyproject.toml +1 -1
  3. {adjustor-3.7.4 → adjustor-3.7.5}/src/adjustor/drivers/asus/__init__.py +3 -0
  4. {adjustor-3.7.4 → adjustor-3.7.5}/src/adjustor/drivers/lenovo/__init__.py +16 -7
  5. {adjustor-3.7.4 → adjustor-3.7.5}/src/adjustor/drivers/lenovo/settings.yml +3 -14
  6. {adjustor-3.7.4 → adjustor-3.7.5/src/adjustor.egg-info}/PKG-INFO +1 -1
  7. {adjustor-3.7.4 → adjustor-3.7.5}/LICENSE +0 -0
  8. {adjustor-3.7.4 → adjustor-3.7.5}/MANIFEST.in +0 -0
  9. {adjustor-3.7.4 → adjustor-3.7.5}/readme.md +0 -0
  10. {adjustor-3.7.4 → adjustor-3.7.5}/setup.cfg +0 -0
  11. {adjustor-3.7.4 → adjustor-3.7.5}/src/adjustor/__init__.py +0 -0
  12. {adjustor-3.7.4 → adjustor-3.7.5}/src/adjustor/__main__.py +0 -0
  13. {adjustor-3.7.4 → adjustor-3.7.5}/src/adjustor/core/__init__.py +0 -0
  14. {adjustor-3.7.4 → adjustor-3.7.5}/src/adjustor/core/acpi.py +0 -0
  15. {adjustor-3.7.4 → adjustor-3.7.5}/src/adjustor/core/alib.py +0 -0
  16. {adjustor-3.7.4 → adjustor-3.7.5}/src/adjustor/core/const.py +0 -0
  17. {adjustor-3.7.4 → adjustor-3.7.5}/src/adjustor/core/fan/__init__.py +0 -0
  18. {adjustor-3.7.4 → adjustor-3.7.5}/src/adjustor/core/fan/__main__.py +0 -0
  19. {adjustor-3.7.4 → adjustor-3.7.5}/src/adjustor/core/fan/alg.py +0 -0
  20. {adjustor-3.7.4 → adjustor-3.7.5}/src/adjustor/core/fan/core.py +0 -0
  21. {adjustor-3.7.4 → adjustor-3.7.5}/src/adjustor/core/fan/utils.py +0 -0
  22. {adjustor-3.7.4 → adjustor-3.7.5}/src/adjustor/core/lenovo.py +0 -0
  23. {adjustor-3.7.4 → adjustor-3.7.5}/src/adjustor/core/platform.py +0 -0
  24. {adjustor-3.7.4 → adjustor-3.7.5}/src/adjustor/drivers/__init__.py +0 -0
  25. {adjustor-3.7.4 → adjustor-3.7.5}/src/adjustor/drivers/amd/__init__.py +0 -0
  26. {adjustor-3.7.4 → adjustor-3.7.5}/src/adjustor/drivers/amd/power-profiles-daemon.dbus.xml.in +0 -0
  27. {adjustor-3.7.4 → adjustor-3.7.5}/src/adjustor/drivers/amd/ppd.py +0 -0
  28. {adjustor-3.7.4 → adjustor-3.7.5}/src/adjustor/drivers/amd/settings.yml +0 -0
  29. {adjustor-3.7.4 → adjustor-3.7.5}/src/adjustor/drivers/asus/settings.yml +0 -0
  30. {adjustor-3.7.4 → adjustor-3.7.5}/src/adjustor/drivers/general/__init__.py +0 -0
  31. {adjustor-3.7.4 → adjustor-3.7.5}/src/adjustor/drivers/general/settings.yml +0 -0
  32. {adjustor-3.7.4 → adjustor-3.7.5}/src/adjustor/drivers/smu/__init__.py +0 -0
  33. {adjustor-3.7.4 → adjustor-3.7.5}/src/adjustor/drivers/smu/qam.yml +0 -0
  34. {adjustor-3.7.4 → adjustor-3.7.5}/src/adjustor/drivers/smu/smu.yml +0 -0
  35. {adjustor-3.7.4 → adjustor-3.7.5}/src/adjustor/events.py +0 -0
  36. {adjustor-3.7.4 → adjustor-3.7.5}/src/adjustor/fuse/__init__.py +0 -0
  37. {adjustor-3.7.4 → adjustor-3.7.5}/src/adjustor/fuse/driver.py +0 -0
  38. {adjustor-3.7.4 → adjustor-3.7.5}/src/adjustor/fuse/gpu.py +0 -0
  39. {adjustor-3.7.4 → adjustor-3.7.5}/src/adjustor/fuse/utils.py +0 -0
  40. {adjustor-3.7.4 → adjustor-3.7.5}/src/adjustor/hhd.py +0 -0
  41. {adjustor-3.7.4 → adjustor-3.7.5}/src/adjustor/i18n.py +0 -0
  42. {adjustor-3.7.4 → adjustor-3.7.5}/src/adjustor/settings.yml +0 -0
  43. {adjustor-3.7.4 → adjustor-3.7.5}/src/adjustor.egg-info/SOURCES.txt +0 -0
  44. {adjustor-3.7.4 → adjustor-3.7.5}/src/adjustor.egg-info/dependency_links.txt +0 -0
  45. {adjustor-3.7.4 → adjustor-3.7.5}/src/adjustor.egg-info/entry_points.txt +0 -0
  46. {adjustor-3.7.4 → adjustor-3.7.5}/src/adjustor.egg-info/requires.txt +0 -0
  47. {adjustor-3.7.4 → adjustor-3.7.5}/src/adjustor.egg-info/top_level.txt +0 -0
  48. {adjustor-3.7.4 → adjustor-3.7.5}/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.4
3
+ Version: 3.7.5
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.4"
3
+ version = "3.7.5"
4
4
  authors = [
5
5
  { name="Kapenekakis Antheas", email="pypi@antheas.dev" },
6
6
  ]
@@ -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
- self.max_watts = 30 # 33W
51
- self.max_watts_sppt = 30 # 33W
52
- self.max_watts_fppt = 35
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"→ {self.max_watts}W"
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 == 20:
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.max_watts_fppt / self.max_watts),
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 L + Y changes TDP Mode")
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
- Average TDP Target.
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. This fan curve is only officially
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 provided by Lenovo in BIOS V28.
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.4
3
+ Version: 3.7.5
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