adjustor 3.5.0__tar.gz → 3.5.1__tar.gz

Sign up to get free protection for your applications and to get access to all the features.
Files changed (43) hide show
  1. {adjustor-3.5.0/src/adjustor.egg-info → adjustor-3.5.1}/PKG-INFO +1 -1
  2. {adjustor-3.5.0 → adjustor-3.5.1}/pyproject.toml +1 -1
  3. {adjustor-3.5.0 → adjustor-3.5.1}/src/adjustor/drivers/asus/__init__.py +14 -7
  4. {adjustor-3.5.0 → adjustor-3.5.1/src/adjustor.egg-info}/PKG-INFO +1 -1
  5. {adjustor-3.5.0 → adjustor-3.5.1}/LICENSE +0 -0
  6. {adjustor-3.5.0 → adjustor-3.5.1}/MANIFEST.in +0 -0
  7. {adjustor-3.5.0 → adjustor-3.5.1}/readme.md +0 -0
  8. {adjustor-3.5.0 → adjustor-3.5.1}/setup.cfg +0 -0
  9. {adjustor-3.5.0 → adjustor-3.5.1}/src/adjustor/__init__.py +0 -0
  10. {adjustor-3.5.0 → adjustor-3.5.1}/src/adjustor/__main__.py +0 -0
  11. {adjustor-3.5.0 → adjustor-3.5.1}/src/adjustor/core/__init__.py +0 -0
  12. {adjustor-3.5.0 → adjustor-3.5.1}/src/adjustor/core/acpi.py +0 -0
  13. {adjustor-3.5.0 → adjustor-3.5.1}/src/adjustor/core/alib.py +0 -0
  14. {adjustor-3.5.0 → adjustor-3.5.1}/src/adjustor/core/const.py +0 -0
  15. {adjustor-3.5.0 → adjustor-3.5.1}/src/adjustor/core/lenovo.py +0 -0
  16. {adjustor-3.5.0 → adjustor-3.5.1}/src/adjustor/core/platform.py +0 -0
  17. {adjustor-3.5.0 → adjustor-3.5.1}/src/adjustor/drivers/__init__.py +0 -0
  18. {adjustor-3.5.0 → adjustor-3.5.1}/src/adjustor/drivers/amd/__init__.py +0 -0
  19. {adjustor-3.5.0 → adjustor-3.5.1}/src/adjustor/drivers/amd/power-profiles-daemon.dbus.xml.in +0 -0
  20. {adjustor-3.5.0 → adjustor-3.5.1}/src/adjustor/drivers/amd/ppd.py +0 -0
  21. {adjustor-3.5.0 → adjustor-3.5.1}/src/adjustor/drivers/amd/settings.yml +0 -0
  22. {adjustor-3.5.0 → adjustor-3.5.1}/src/adjustor/drivers/asus/settings.yml +0 -0
  23. {adjustor-3.5.0 → adjustor-3.5.1}/src/adjustor/drivers/general/__init__.py +0 -0
  24. {adjustor-3.5.0 → adjustor-3.5.1}/src/adjustor/drivers/general/settings.yml +0 -0
  25. {adjustor-3.5.0 → adjustor-3.5.1}/src/adjustor/drivers/lenovo/__init__.py +0 -0
  26. {adjustor-3.5.0 → adjustor-3.5.1}/src/adjustor/drivers/lenovo/settings.yml +0 -0
  27. {adjustor-3.5.0 → adjustor-3.5.1}/src/adjustor/drivers/smu/__init__.py +0 -0
  28. {adjustor-3.5.0 → adjustor-3.5.1}/src/adjustor/drivers/smu/qam.yml +0 -0
  29. {adjustor-3.5.0 → adjustor-3.5.1}/src/adjustor/drivers/smu/smu.yml +0 -0
  30. {adjustor-3.5.0 → adjustor-3.5.1}/src/adjustor/events.py +0 -0
  31. {adjustor-3.5.0 → adjustor-3.5.1}/src/adjustor/fuse/__init__.py +0 -0
  32. {adjustor-3.5.0 → adjustor-3.5.1}/src/adjustor/fuse/driver.py +0 -0
  33. {adjustor-3.5.0 → adjustor-3.5.1}/src/adjustor/fuse/gpu.py +0 -0
  34. {adjustor-3.5.0 → adjustor-3.5.1}/src/adjustor/fuse/utils.py +0 -0
  35. {adjustor-3.5.0 → adjustor-3.5.1}/src/adjustor/hhd.py +0 -0
  36. {adjustor-3.5.0 → adjustor-3.5.1}/src/adjustor/i18n.py +0 -0
  37. {adjustor-3.5.0 → adjustor-3.5.1}/src/adjustor/settings.yml +0 -0
  38. {adjustor-3.5.0 → adjustor-3.5.1}/src/adjustor.egg-info/SOURCES.txt +0 -0
  39. {adjustor-3.5.0 → adjustor-3.5.1}/src/adjustor.egg-info/dependency_links.txt +0 -0
  40. {adjustor-3.5.0 → adjustor-3.5.1}/src/adjustor.egg-info/entry_points.txt +0 -0
  41. {adjustor-3.5.0 → adjustor-3.5.1}/src/adjustor.egg-info/requires.txt +0 -0
  42. {adjustor-3.5.0 → adjustor-3.5.1}/src/adjustor.egg-info/top_level.txt +0 -0
  43. {adjustor-3.5.0 → adjustor-3.5.1}/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.5.0
3
+ Version: 3.5.1
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.5.0"
3
+ version = "3.5.1"
4
4
  authors = [
5
5
  { name="Kapenekakis Antheas", email="pypi@antheas.dev" },
6
6
  ]
@@ -24,6 +24,7 @@ CTDP_FN = "/sys/devices/platform/asus-nb-wmi/ppt_pl1_spl"
24
24
  EXTREME_FN = "/sys/devices/platform/asus-nb-wmi/mcu_powersave"
25
25
  EXTREME_ENABLE = bool(os.environ.get("HHD_ALLY_POWERSAVE", None))
26
26
  # This setting can really mess up the controller
27
+ EXTREME_STARTUP_DELAY = 12
27
28
  EXTREME_DELAY = 3.8
28
29
 
29
30
  FAN_CURVE_ENDPOINT = "/sys/class/hwmon"
@@ -147,7 +148,7 @@ class AsusDriverPlugin(HHDPlugin):
147
148
  self.queue_fan = None
148
149
  self.queue_tdp = None
149
150
  self.queue_charge_limit = None
150
- self.queue_extreme = None
151
+ self.queue_extreme = time.perf_counter() + EXTREME_STARTUP_DELAY
151
152
  self.new_tdp = None
152
153
  self.new_mode = None
153
154
  self.old_target = None
@@ -216,7 +217,7 @@ class AsusDriverPlugin(HHDPlugin):
216
217
  self.old_conf = conf["tdp.asus"]
217
218
  return
218
219
 
219
- curr = time.time()
220
+ curr = time.perf_counter()
220
221
 
221
222
  # Charge limit
222
223
  lim = conf["tdp.asus.charge_limit"].to(str)
@@ -461,16 +462,22 @@ class AsusDriverPlugin(HHDPlugin):
461
462
  # Extreme standby
462
463
  if self.extreme_supported:
463
464
  standby = conf["tdp.asus.extreme_standby"].to(bool)
464
- if standby != self.extreme_standby:
465
- self.extreme_standby = standby
465
+ if self.extreme_standby is not None and self.extreme_standby != standby:
466
466
  self.queue_extreme = curr + EXTREME_DELAY
467
+ self.extreme_standby = standby
467
468
 
468
469
  if self.queue_extreme and self.queue_extreme < curr:
469
470
  self.queue_extreme = None
470
471
  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")
472
+ nval = standby == "enabled"
473
+ with open(EXTREME_FN, "r") as f:
474
+ cval = f.read().strip() == "1"
475
+ if nval != cval:
476
+ logger.info (f"Setting extreme standby to '{standby}'")
477
+ with open(EXTREME_FN, "w") as f:
478
+ f.write("1" if standby == "enabled" else "0")
479
+ else:
480
+ logger.info(f"Extreme standby already set to '{standby}'")
474
481
  except Exception as e:
475
482
  logger.error(f"Could not set extreme standby. Error:\n{e}")
476
483
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: adjustor
3
- Version: 3.5.0
3
+ Version: 3.5.1
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