adjustor 3.1.1__tar.gz → 3.1.3__tar.gz

Sign up to get free protection for your applications and to get access to all the features.
Files changed (41) hide show
  1. {adjustor-3.1.1/src/adjustor.egg-info → adjustor-3.1.3}/PKG-INFO +1 -1
  2. {adjustor-3.1.1 → adjustor-3.1.3}/pyproject.toml +1 -1
  3. {adjustor-3.1.1 → adjustor-3.1.3}/src/adjustor/drivers/amd/ppd.py +14 -4
  4. {adjustor-3.1.1 → adjustor-3.1.3}/src/adjustor/drivers/asus/__init__.py +16 -3
  5. {adjustor-3.1.1 → adjustor-3.1.3/src/adjustor.egg-info}/PKG-INFO +1 -1
  6. {adjustor-3.1.1 → adjustor-3.1.3}/LICENSE +0 -0
  7. {adjustor-3.1.1 → adjustor-3.1.3}/MANIFEST.in +0 -0
  8. {adjustor-3.1.1 → adjustor-3.1.3}/readme.md +0 -0
  9. {adjustor-3.1.1 → adjustor-3.1.3}/setup.cfg +0 -0
  10. {adjustor-3.1.1 → adjustor-3.1.3}/src/adjustor/__init__.py +0 -0
  11. {adjustor-3.1.1 → adjustor-3.1.3}/src/adjustor/__main__.py +0 -0
  12. {adjustor-3.1.1 → adjustor-3.1.3}/src/adjustor/core/__init__.py +0 -0
  13. {adjustor-3.1.1 → adjustor-3.1.3}/src/adjustor/core/acpi.py +0 -0
  14. {adjustor-3.1.1 → adjustor-3.1.3}/src/adjustor/core/alib.py +0 -0
  15. {adjustor-3.1.1 → adjustor-3.1.3}/src/adjustor/core/const.py +0 -0
  16. {adjustor-3.1.1 → adjustor-3.1.3}/src/adjustor/core/lenovo.py +0 -0
  17. {adjustor-3.1.1 → adjustor-3.1.3}/src/adjustor/core/platform.py +0 -0
  18. {adjustor-3.1.1 → adjustor-3.1.3}/src/adjustor/drivers/__init__.py +0 -0
  19. {adjustor-3.1.1 → adjustor-3.1.3}/src/adjustor/drivers/amd/__init__.py +0 -0
  20. {adjustor-3.1.1 → adjustor-3.1.3}/src/adjustor/drivers/amd/power-profiles-daemon.dbus.xml.in +0 -0
  21. {adjustor-3.1.1 → adjustor-3.1.3}/src/adjustor/drivers/amd/settings.yml +0 -0
  22. {adjustor-3.1.1 → adjustor-3.1.3}/src/adjustor/drivers/asus/settings.yml +0 -0
  23. {adjustor-3.1.1 → adjustor-3.1.3}/src/adjustor/drivers/lenovo/__init__.py +0 -0
  24. {adjustor-3.1.1 → adjustor-3.1.3}/src/adjustor/drivers/lenovo/settings.yml +0 -0
  25. {adjustor-3.1.1 → adjustor-3.1.3}/src/adjustor/drivers/smu/__init__.py +0 -0
  26. {adjustor-3.1.1 → adjustor-3.1.3}/src/adjustor/drivers/smu/qam.yml +0 -0
  27. {adjustor-3.1.1 → adjustor-3.1.3}/src/adjustor/drivers/smu/smu.yml +0 -0
  28. {adjustor-3.1.1 → adjustor-3.1.3}/src/adjustor/events.py +0 -0
  29. {adjustor-3.1.1 → adjustor-3.1.3}/src/adjustor/fuse/__init__.py +0 -0
  30. {adjustor-3.1.1 → adjustor-3.1.3}/src/adjustor/fuse/driver.py +0 -0
  31. {adjustor-3.1.1 → adjustor-3.1.3}/src/adjustor/fuse/gpu.py +0 -0
  32. {adjustor-3.1.1 → adjustor-3.1.3}/src/adjustor/fuse/utils.py +0 -0
  33. {adjustor-3.1.1 → adjustor-3.1.3}/src/adjustor/hhd.py +0 -0
  34. {adjustor-3.1.1 → adjustor-3.1.3}/src/adjustor/i18n.py +0 -0
  35. {adjustor-3.1.1 → adjustor-3.1.3}/src/adjustor/settings.yml +0 -0
  36. {adjustor-3.1.1 → adjustor-3.1.3}/src/adjustor.egg-info/SOURCES.txt +0 -0
  37. {adjustor-3.1.1 → adjustor-3.1.3}/src/adjustor.egg-info/dependency_links.txt +0 -0
  38. {adjustor-3.1.1 → adjustor-3.1.3}/src/adjustor.egg-info/entry_points.txt +0 -0
  39. {adjustor-3.1.1 → adjustor-3.1.3}/src/adjustor.egg-info/requires.txt +0 -0
  40. {adjustor-3.1.1 → adjustor-3.1.3}/src/adjustor.egg-info/top_level.txt +0 -0
  41. {adjustor-3.1.1 → adjustor-3.1.3}/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.1.1
3
+ Version: 3.1.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.1.1"
3
+ version = "3.1.3"
4
4
  authors = [
5
5
  { name="Kapenekakis Antheas", email="pypi@antheas.dev" },
6
6
  ]
@@ -16,9 +16,9 @@ LEGACY_PATH = "/net/hadess/PowerProfiles"
16
16
  XML_PATH = "power-profiles-daemon.dbus.xml.in"
17
17
 
18
18
  SUPPORTED_PROFILES = {
19
- "performance": "performance",
20
- "balanced": "balanced",
21
19
  "power-saver": "power",
20
+ "balanced": "balanced",
21
+ "performance": "performance",
22
22
  }
23
23
  SUPPORTED_PROFILES_REVERSE = {v: k for k, v in SUPPORTED_PROFILES.items()}
24
24
 
@@ -76,12 +76,22 @@ def create_interface(legacy: bool):
76
76
  def GetAll(self, interface_name, sender=None):
77
77
  if interface_name == iface(legacy):
78
78
  return {
79
- "Actions": dbus.Array(self.actions, signature="s"),
79
+ "Actions": ["trickle_charge"],
80
80
  "ActiveProfile": self.profile,
81
81
  "ActiveProfileHolds": dbus.Array(self.profile_holds, signature="u"),
82
82
  "PerformanceDegraded": "",
83
83
  "PerformanceInhibited": "",
84
- "Profiles": [{"Profile": p} for p in SUPPORTED_PROFILES],
84
+ "Profiles": [
85
+ {
86
+ "Profile": dbus.String(p, variant_level=1),
87
+ "CpuDriver": dbus.String("amd_pstate", variant_level=1),
88
+ "PlatformDriver": dbus.String(
89
+ "platform_profile", variant_level=1
90
+ ),
91
+ "Driver": dbus.String("multiple", variant_level=1),
92
+ }
93
+ for p in SUPPORTED_PROFILES
94
+ ],
85
95
  "Version": "0.21",
86
96
  }
87
97
  else:
@@ -13,7 +13,8 @@ APPLY_DELAY = 1.5
13
13
  TDP_DELAY = 0.2
14
14
  MIN_TDP_START = 7
15
15
  MAX_TDP_START = 30
16
- MAX_TDP = 54
16
+ # FIXME: add AC/DC values
17
+ MAX_TDP = 35
17
18
 
18
19
  FTDP_FN = "/sys/devices/platform/asus-nb-wmi/ppt_fppt"
19
20
  STDP_FN = "/sys/devices/platform/asus-nb-wmi/ppt_pl2_sppt"
@@ -27,6 +28,17 @@ FAN_CURVE_NAME = "asus_custom_fan_curve"
27
28
  # [10 20 66 86 132 188 188 188] / 2.55
28
29
  # [ 4 8 ]
29
30
 
31
+ # Unplugged values
32
+ # STAPM Slow Fast
33
+ # perf 25 30 35
34
+ # bal 15 20 25
35
+ # power 10 14 17
36
+ #
37
+ # Plugged in values
38
+ # perf 30 43 53
39
+ # bal 15 20 25
40
+ # power 10 14 17
41
+
30
42
  POINTS = [30, 40, 50, 60, 70, 80, 90, 100]
31
43
  MIN_CURVE = [2, 5, 17, 17, 17, 17, 17, 17]
32
44
  DEFAULT_CURVE = [5, 10, 20, 35, 55, 75, 75, 75]
@@ -242,10 +254,11 @@ class AsusDriverPlugin(HHDPlugin):
242
254
 
243
255
  self.queue_tdp = None
244
256
  if boost:
257
+ # TODO: Use different boost values depending on whether plugged in
245
258
  time.sleep(TDP_DELAY)
246
- set_tdp("fast", FTDP_FN, min(MAX_TDP, int(steady * 53 / 30)))
259
+ set_tdp("fast", FTDP_FN, min(MAX_TDP, int(steady * 35 / 25)))
247
260
  time.sleep(TDP_DELAY)
248
- set_tdp("slow", STDP_FN, min(MAX_TDP, int(steady * 43 / 30)))
261
+ set_tdp("slow", STDP_FN, min(MAX_TDP, int(steady * 30 / 25)))
249
262
  time.sleep(TDP_DELAY)
250
263
  set_tdp("steady", CTDP_FN, steady)
251
264
  else:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: adjustor
3
- Version: 3.1.1
3
+ Version: 3.1.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