adjustor 3.0.0__tar.gz → 3.0.1__tar.gz

Sign up to get free protection for your applications and to get access to all the features.
Files changed (38) hide show
  1. {adjustor-3.0.0/src/adjustor.egg-info → adjustor-3.0.1}/PKG-INFO +1 -1
  2. {adjustor-3.0.0 → adjustor-3.0.1}/pyproject.toml +1 -1
  3. {adjustor-3.0.0 → adjustor-3.0.1}/src/adjustor/fuse/driver.py +2 -0
  4. {adjustor-3.0.0 → adjustor-3.0.1/src/adjustor.egg-info}/PKG-INFO +1 -1
  5. {adjustor-3.0.0 → adjustor-3.0.1}/LICENSE +0 -0
  6. {adjustor-3.0.0 → adjustor-3.0.1}/MANIFEST.in +0 -0
  7. {adjustor-3.0.0 → adjustor-3.0.1}/readme.md +0 -0
  8. {adjustor-3.0.0 → adjustor-3.0.1}/setup.cfg +0 -0
  9. {adjustor-3.0.0 → adjustor-3.0.1}/src/adjustor/__init__.py +0 -0
  10. {adjustor-3.0.0 → adjustor-3.0.1}/src/adjustor/__main__.py +0 -0
  11. {adjustor-3.0.0 → adjustor-3.0.1}/src/adjustor/core/__init__.py +0 -0
  12. {adjustor-3.0.0 → adjustor-3.0.1}/src/adjustor/core/acpi.py +0 -0
  13. {adjustor-3.0.0 → adjustor-3.0.1}/src/adjustor/core/alib.py +0 -0
  14. {adjustor-3.0.0 → adjustor-3.0.1}/src/adjustor/core/const.py +0 -0
  15. {adjustor-3.0.0 → adjustor-3.0.1}/src/adjustor/core/lenovo.py +0 -0
  16. {adjustor-3.0.0 → adjustor-3.0.1}/src/adjustor/core/platform.py +0 -0
  17. {adjustor-3.0.0 → adjustor-3.0.1}/src/adjustor/drivers/__init__.py +0 -0
  18. {adjustor-3.0.0 → adjustor-3.0.1}/src/adjustor/drivers/amd/__init__.py +0 -0
  19. {adjustor-3.0.0 → adjustor-3.0.1}/src/adjustor/drivers/amd/settings.yml +0 -0
  20. {adjustor-3.0.0 → adjustor-3.0.1}/src/adjustor/drivers/asus/__init__.py +0 -0
  21. {adjustor-3.0.0 → adjustor-3.0.1}/src/adjustor/drivers/asus/settings.yml +0 -0
  22. {adjustor-3.0.0 → adjustor-3.0.1}/src/adjustor/drivers/lenovo/__init__.py +0 -0
  23. {adjustor-3.0.0 → adjustor-3.0.1}/src/adjustor/drivers/lenovo/settings.yml +0 -0
  24. {adjustor-3.0.0 → adjustor-3.0.1}/src/adjustor/drivers/smu/__init__.py +5 -5
  25. {adjustor-3.0.0 → adjustor-3.0.1}/src/adjustor/drivers/smu/qam.yml +0 -0
  26. {adjustor-3.0.0 → adjustor-3.0.1}/src/adjustor/drivers/smu/smu.yml +0 -0
  27. {adjustor-3.0.0 → adjustor-3.0.1}/src/adjustor/events.py +0 -0
  28. {adjustor-3.0.0 → adjustor-3.0.1}/src/adjustor/fuse/__init__.py +0 -0
  29. {adjustor-3.0.0 → adjustor-3.0.1}/src/adjustor/fuse/gpu.py +0 -0
  30. {adjustor-3.0.0 → adjustor-3.0.1}/src/adjustor/fuse/utils.py +0 -0
  31. {adjustor-3.0.0 → adjustor-3.0.1}/src/adjustor/hhd.py +0 -0
  32. {adjustor-3.0.0 → adjustor-3.0.1}/src/adjustor/i18n.py +0 -0
  33. {adjustor-3.0.0 → adjustor-3.0.1}/src/adjustor/settings.yml +0 -0
  34. {adjustor-3.0.0 → adjustor-3.0.1}/src/adjustor.egg-info/SOURCES.txt +0 -0
  35. {adjustor-3.0.0 → adjustor-3.0.1}/src/adjustor.egg-info/dependency_links.txt +0 -0
  36. {adjustor-3.0.0 → adjustor-3.0.1}/src/adjustor.egg-info/entry_points.txt +0 -0
  37. {adjustor-3.0.0 → adjustor-3.0.1}/src/adjustor.egg-info/requires.txt +0 -0
  38. {adjustor-3.0.0 → adjustor-3.0.1}/src/adjustor.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: adjustor
3
- Version: 3.0.0
3
+ Version: 3.0.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.0.0"
3
+ version = "3.0.1"
4
4
  authors = [
5
5
  { name="Kapenekakis Antheas", email="pypi@antheas.dev" },
6
6
  ]
@@ -36,6 +36,7 @@ from threading import Lock
36
36
  import fuse
37
37
  from fuse import Fuse
38
38
 
39
+ FUSE_MOUNT_DIR = "/run/hhd-tdp/"
39
40
  FUSE_MOUNT_SOCKET = "/run/hhd-tdp/socket"
40
41
  TIMEOUT = 1
41
42
  PACK_SIZE = 1024
@@ -157,6 +158,7 @@ class Xmp(Fuse):
157
158
  os.chdir(self.root)
158
159
 
159
160
  def main(self, *a, **kw):
161
+ os.makedirs(FUSE_MOUNT_DIR, exist_ok=True)
160
162
  sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM)
161
163
  sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
162
164
  sock.bind(FUSE_MOUNT_SOCKET)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: adjustor
3
- Version: 3.0.0
3
+ Version: 3.0.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
@@ -166,6 +166,11 @@ class SmuQamPlugin(HHDPlugin):
166
166
  self.old_tdp = new_tdp
167
167
  self.old_boost = new_boost
168
168
 
169
+ def notify(self, events: Sequence[Event]):
170
+ for ev in events:
171
+ if ev["type"] == "tdp":
172
+ self.new_tdp = ev["tdp"]
173
+
169
174
  def close(self):
170
175
  pass
171
176
 
@@ -321,10 +326,5 @@ class SmuDriverPlugin(HHDPlugin):
321
326
  else:
322
327
  conf["tdp.smu.status"] = "Not Set"
323
328
 
324
- def notify(self, events: Sequence[Event]):
325
- for ev in events:
326
- if ev["type"] == "tdp":
327
- self.new_tdp = ev["tdp"]
328
-
329
329
  def close(self):
330
330
  pass
File without changes
File without changes