adjustor 3.0.0__tar.gz → 3.0.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {adjustor-3.0.0/src/adjustor.egg-info → adjustor-3.0.1}/PKG-INFO +1 -1
- {adjustor-3.0.0 → adjustor-3.0.1}/pyproject.toml +1 -1
- {adjustor-3.0.0 → adjustor-3.0.1}/src/adjustor/fuse/driver.py +2 -0
- {adjustor-3.0.0 → adjustor-3.0.1/src/adjustor.egg-info}/PKG-INFO +1 -1
- {adjustor-3.0.0 → adjustor-3.0.1}/LICENSE +0 -0
- {adjustor-3.0.0 → adjustor-3.0.1}/MANIFEST.in +0 -0
- {adjustor-3.0.0 → adjustor-3.0.1}/readme.md +0 -0
- {adjustor-3.0.0 → adjustor-3.0.1}/setup.cfg +0 -0
- {adjustor-3.0.0 → adjustor-3.0.1}/src/adjustor/__init__.py +0 -0
- {adjustor-3.0.0 → adjustor-3.0.1}/src/adjustor/__main__.py +0 -0
- {adjustor-3.0.0 → adjustor-3.0.1}/src/adjustor/core/__init__.py +0 -0
- {adjustor-3.0.0 → adjustor-3.0.1}/src/adjustor/core/acpi.py +0 -0
- {adjustor-3.0.0 → adjustor-3.0.1}/src/adjustor/core/alib.py +0 -0
- {adjustor-3.0.0 → adjustor-3.0.1}/src/adjustor/core/const.py +0 -0
- {adjustor-3.0.0 → adjustor-3.0.1}/src/adjustor/core/lenovo.py +0 -0
- {adjustor-3.0.0 → adjustor-3.0.1}/src/adjustor/core/platform.py +0 -0
- {adjustor-3.0.0 → adjustor-3.0.1}/src/adjustor/drivers/__init__.py +0 -0
- {adjustor-3.0.0 → adjustor-3.0.1}/src/adjustor/drivers/amd/__init__.py +0 -0
- {adjustor-3.0.0 → adjustor-3.0.1}/src/adjustor/drivers/amd/settings.yml +0 -0
- {adjustor-3.0.0 → adjustor-3.0.1}/src/adjustor/drivers/asus/__init__.py +0 -0
- {adjustor-3.0.0 → adjustor-3.0.1}/src/adjustor/drivers/asus/settings.yml +0 -0
- {adjustor-3.0.0 → adjustor-3.0.1}/src/adjustor/drivers/lenovo/__init__.py +0 -0
- {adjustor-3.0.0 → adjustor-3.0.1}/src/adjustor/drivers/lenovo/settings.yml +0 -0
- {adjustor-3.0.0 → adjustor-3.0.1}/src/adjustor/drivers/smu/__init__.py +5 -5
- {adjustor-3.0.0 → adjustor-3.0.1}/src/adjustor/drivers/smu/qam.yml +0 -0
- {adjustor-3.0.0 → adjustor-3.0.1}/src/adjustor/drivers/smu/smu.yml +0 -0
- {adjustor-3.0.0 → adjustor-3.0.1}/src/adjustor/events.py +0 -0
- {adjustor-3.0.0 → adjustor-3.0.1}/src/adjustor/fuse/__init__.py +0 -0
- {adjustor-3.0.0 → adjustor-3.0.1}/src/adjustor/fuse/gpu.py +0 -0
- {adjustor-3.0.0 → adjustor-3.0.1}/src/adjustor/fuse/utils.py +0 -0
- {adjustor-3.0.0 → adjustor-3.0.1}/src/adjustor/hhd.py +0 -0
- {adjustor-3.0.0 → adjustor-3.0.1}/src/adjustor/i18n.py +0 -0
- {adjustor-3.0.0 → adjustor-3.0.1}/src/adjustor/settings.yml +0 -0
- {adjustor-3.0.0 → adjustor-3.0.1}/src/adjustor.egg-info/SOURCES.txt +0 -0
- {adjustor-3.0.0 → adjustor-3.0.1}/src/adjustor.egg-info/dependency_links.txt +0 -0
- {adjustor-3.0.0 → adjustor-3.0.1}/src/adjustor.egg-info/entry_points.txt +0 -0
- {adjustor-3.0.0 → adjustor-3.0.1}/src/adjustor.egg-info/requires.txt +0 -0
- {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.
|
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
|
@@ -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.
|
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
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
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
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|