adjustor 3.6.1__tar.gz → 3.6.3__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {adjustor-3.6.1/src/adjustor.egg-info → adjustor-3.6.3}/PKG-INFO +1 -1
- {adjustor-3.6.1 → adjustor-3.6.3}/pyproject.toml +1 -1
- {adjustor-3.6.1 → adjustor-3.6.3}/src/adjustor/core/const.py +17 -0
- {adjustor-3.6.1 → adjustor-3.6.3}/src/adjustor/core/fan/core.py +8 -5
- {adjustor-3.6.1 → adjustor-3.6.3}/src/adjustor/core/fan/utils.py +6 -3
- {adjustor-3.6.1 → adjustor-3.6.3/src/adjustor.egg-info}/PKG-INFO +1 -1
- {adjustor-3.6.1 → adjustor-3.6.3}/LICENSE +0 -0
- {adjustor-3.6.1 → adjustor-3.6.3}/MANIFEST.in +0 -0
- {adjustor-3.6.1 → adjustor-3.6.3}/readme.md +0 -0
- {adjustor-3.6.1 → adjustor-3.6.3}/setup.cfg +0 -0
- {adjustor-3.6.1 → adjustor-3.6.3}/src/adjustor/__init__.py +0 -0
- {adjustor-3.6.1 → adjustor-3.6.3}/src/adjustor/__main__.py +0 -0
- {adjustor-3.6.1 → adjustor-3.6.3}/src/adjustor/core/__init__.py +0 -0
- {adjustor-3.6.1 → adjustor-3.6.3}/src/adjustor/core/acpi.py +0 -0
- {adjustor-3.6.1 → adjustor-3.6.3}/src/adjustor/core/alib.py +0 -0
- {adjustor-3.6.1 → adjustor-3.6.3}/src/adjustor/core/fan/__init__.py +0 -0
- {adjustor-3.6.1 → adjustor-3.6.3}/src/adjustor/core/fan/__main__.py +0 -0
- {adjustor-3.6.1 → adjustor-3.6.3}/src/adjustor/core/fan/alg.py +0 -0
- {adjustor-3.6.1 → adjustor-3.6.3}/src/adjustor/core/lenovo.py +0 -0
- {adjustor-3.6.1 → adjustor-3.6.3}/src/adjustor/core/platform.py +0 -0
- {adjustor-3.6.1 → adjustor-3.6.3}/src/adjustor/drivers/__init__.py +0 -0
- {adjustor-3.6.1 → adjustor-3.6.3}/src/adjustor/drivers/amd/__init__.py +0 -0
- {adjustor-3.6.1 → adjustor-3.6.3}/src/adjustor/drivers/amd/power-profiles-daemon.dbus.xml.in +0 -0
- {adjustor-3.6.1 → adjustor-3.6.3}/src/adjustor/drivers/amd/ppd.py +0 -0
- {adjustor-3.6.1 → adjustor-3.6.3}/src/adjustor/drivers/amd/settings.yml +0 -0
- {adjustor-3.6.1 → adjustor-3.6.3}/src/adjustor/drivers/asus/__init__.py +0 -0
- {adjustor-3.6.1 → adjustor-3.6.3}/src/adjustor/drivers/asus/settings.yml +0 -0
- {adjustor-3.6.1 → adjustor-3.6.3}/src/adjustor/drivers/general/__init__.py +0 -0
- {adjustor-3.6.1 → adjustor-3.6.3}/src/adjustor/drivers/general/settings.yml +0 -0
- {adjustor-3.6.1 → adjustor-3.6.3}/src/adjustor/drivers/lenovo/__init__.py +0 -0
- {adjustor-3.6.1 → adjustor-3.6.3}/src/adjustor/drivers/lenovo/settings.yml +0 -0
- {adjustor-3.6.1 → adjustor-3.6.3}/src/adjustor/drivers/smu/__init__.py +0 -0
- {adjustor-3.6.1 → adjustor-3.6.3}/src/adjustor/drivers/smu/qam.yml +0 -0
- {adjustor-3.6.1 → adjustor-3.6.3}/src/adjustor/drivers/smu/smu.yml +0 -0
- {adjustor-3.6.1 → adjustor-3.6.3}/src/adjustor/events.py +0 -0
- {adjustor-3.6.1 → adjustor-3.6.3}/src/adjustor/fuse/__init__.py +0 -0
- {adjustor-3.6.1 → adjustor-3.6.3}/src/adjustor/fuse/driver.py +0 -0
- {adjustor-3.6.1 → adjustor-3.6.3}/src/adjustor/fuse/gpu.py +0 -0
- {adjustor-3.6.1 → adjustor-3.6.3}/src/adjustor/fuse/utils.py +0 -0
- {adjustor-3.6.1 → adjustor-3.6.3}/src/adjustor/hhd.py +0 -0
- {adjustor-3.6.1 → adjustor-3.6.3}/src/adjustor/i18n.py +0 -0
- {adjustor-3.6.1 → adjustor-3.6.3}/src/adjustor/settings.yml +0 -0
- {adjustor-3.6.1 → adjustor-3.6.3}/src/adjustor.egg-info/SOURCES.txt +0 -0
- {adjustor-3.6.1 → adjustor-3.6.3}/src/adjustor.egg-info/dependency_links.txt +0 -0
- {adjustor-3.6.1 → adjustor-3.6.3}/src/adjustor.egg-info/entry_points.txt +0 -0
- {adjustor-3.6.1 → adjustor-3.6.3}/src/adjustor.egg-info/requires.txt +0 -0
- {adjustor-3.6.1 → adjustor-3.6.3}/src/adjustor.egg-info/top_level.txt +0 -0
- {adjustor-3.6.1 → adjustor-3.6.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.6.
|
3
|
+
Version: 3.6.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
|
@@ -93,6 +93,17 @@ DEV_PARAMS_25W: dict[str, DeviceParams] = {
|
|
93
93
|
# Temp
|
94
94
|
"temp_target": D(60, 70, 85, 90, 100),
|
95
95
|
}
|
96
|
+
DEV_PARAMS_28W: dict[str, DeviceParams] = {
|
97
|
+
"stapm_limit": D(0, 4, 15, 28, 32),
|
98
|
+
"skin_limit": D(0, 4, 15, 28, 32),
|
99
|
+
"slow_limit": D(0, 4, 20, 30, 35),
|
100
|
+
"fast_limit": D(0, 4, 25, 32, 37),
|
101
|
+
# Times
|
102
|
+
"slow_time": D(5, 5, 10, 10, 10),
|
103
|
+
"stapm_time": D(100, 100, 100, 200, 200),
|
104
|
+
# Temp
|
105
|
+
"temp_target": D(60, 70, 85, 90, 100),
|
106
|
+
}
|
96
107
|
|
97
108
|
DEV_PARAMS_5000: dict[str, DeviceParams] = DEV_PARAMS_25W
|
98
109
|
DEV_PARAMS_6000: dict[str, DeviceParams] = DEV_PARAMS_30W
|
@@ -106,6 +117,12 @@ DEV_DATA: dict[str, tuple[dict[str, DeviceParams], dict[str, AlibParams], bool]]
|
|
106
117
|
"V3": (DEV_PARAMS_28W, ALIB_PARAMS_8040, False),
|
107
118
|
"83E1": (DEV_PARAMS_LEGO, ALIB_PARAMS_7040, False),
|
108
119
|
"ONEXPLAYER F1Pro": (DEV_PARAMS_HX370, ALIB_PARAMS_HX370, False),
|
120
|
+
"ONEXPLAYER F1 EVA-02": (DEV_PARAMS_HX370, ALIB_PARAMS_HX370, False),
|
121
|
+
# GPD Devices are 28W max
|
122
|
+
"G1618-04": (DEV_PARAMS_28W, ALIB_PARAMS_7040, False),
|
123
|
+
"G1617-01": (DEV_PARAMS_28W, ALIB_PARAMS_7040, False),
|
124
|
+
"G1619-04": (DEV_PARAMS_28W, ALIB_PARAMS_7040, False),
|
125
|
+
"G1619-05": (DEV_PARAMS_28W, ALIB_PARAMS_7040, False),
|
109
126
|
}
|
110
127
|
|
111
128
|
CPU_DATA: dict[str, tuple[dict[str, DeviceParams], dict[str, AlibParams]]] = {
|
@@ -99,9 +99,12 @@ def calculate_fan_speed(
|
|
99
99
|
|
100
100
|
|
101
101
|
def set_fans_to_pwm(enable: bool, fan_info: FanInfo):
|
102
|
-
for _, fn_enable, _ in fan_info["fans"]:
|
102
|
+
for _, fn_enable, _, legacy in fan_info["fans"]:
|
103
103
|
with open(fn_enable, "w") as f:
|
104
|
-
|
104
|
+
if enable:
|
105
|
+
f.write("1")
|
106
|
+
else:
|
107
|
+
f.write("0" if legacy else "2")
|
105
108
|
|
106
109
|
|
107
110
|
def update_fan_speed(
|
@@ -121,10 +124,10 @@ def update_fan_speed(
|
|
121
124
|
v_curr_int = min(255, max(0, int(v_curr * 255)))
|
122
125
|
if not observe_only:
|
123
126
|
if state is None or state["v_target_pwm"] != v_curr_int:
|
124
|
-
for v_fn, _, _ in fan_info["fans"]:
|
127
|
+
for v_fn, _, _, _ in fan_info["fans"]:
|
125
128
|
write_fan_speed(v_fn, v_curr_int)
|
126
129
|
|
127
|
-
fan_speeds = [read_fan_speed(rpm_fn) for _, _, rpm_fn in fan_info["fans"] if rpm_fn]
|
130
|
+
fan_speeds = [read_fan_speed(rpm_fn) for _, _, rpm_fn, _ in fan_info["fans"] if rpm_fn]
|
128
131
|
return (
|
129
132
|
in_setpoint,
|
130
133
|
{
|
@@ -153,7 +156,7 @@ def fan_worker(
|
|
153
156
|
set_fans_to_pwm(True, info)
|
154
157
|
while not should_exit.is_set():
|
155
158
|
with lock:
|
156
|
-
state_tmp = state or None
|
159
|
+
state_tmp = state or None # First time state will be empty
|
157
160
|
in_setpoint, state_tmp = update_fan_speed(
|
158
161
|
state_tmp, info, fan_curve, junction.is_set()
|
159
162
|
)
|
@@ -1,6 +1,7 @@
|
|
1
1
|
import os
|
2
2
|
|
3
|
-
|
3
|
+
FAN_HWMONS_LEGACY = ["oxpec"]
|
4
|
+
FAN_HWMONS = ["oxp_ec"]
|
4
5
|
HWMON_DIR = "/sys/class/hwmon"
|
5
6
|
|
6
7
|
|
@@ -53,7 +54,7 @@ def find_fans():
|
|
53
54
|
with open(f"{HWMON_DIR}/{hwmon}/name") as f:
|
54
55
|
name = f.read().strip()
|
55
56
|
|
56
|
-
if name not in FAN_HWMONS:
|
57
|
+
if name not in FAN_HWMONS and name not in FAN_HWMONS_LEGACY:
|
57
58
|
continue
|
58
59
|
|
59
60
|
for fn in os.listdir(f"{HWMON_DIR}/{hwmon}"):
|
@@ -73,6 +74,7 @@ def find_fans():
|
|
73
74
|
f"{HWMON_DIR}/{hwmon}/{fn}",
|
74
75
|
f"{HWMON_DIR}/{hwmon}/{fn}_enable",
|
75
76
|
speed_fn,
|
77
|
+
name in FAN_HWMONS_LEGACY,
|
76
78
|
)
|
77
79
|
)
|
78
80
|
|
@@ -88,6 +90,7 @@ def read_fan_speed(path: str) -> int:
|
|
88
90
|
with open(path, "r") as f:
|
89
91
|
return int(f.read())
|
90
92
|
|
93
|
+
|
91
94
|
def write_fan_speed(path: str, speed: int):
|
92
95
|
with open(path, "w") as f:
|
93
|
-
f.write(str(speed))
|
96
|
+
f.write(str(speed))
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: adjustor
|
3
|
-
Version: 3.6.
|
3
|
+
Version: 3.6.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
|
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
|
{adjustor-3.6.1 → adjustor-3.6.3}/src/adjustor/drivers/amd/power-profiles-daemon.dbus.xml.in
RENAMED
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
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{adjustor-3.6.1 → adjustor-3.6.3}/usr/share/dbus-1/system.d/hhd-net.hadess.PowerProfiles.conf
RENAMED
File without changes
|