Am 11.08.25 um 00:27 schrieb Derek John Clark:
On Mon, Jul 28, 2025 at 9:10 PM Armin Wolf <W_Armin@xxxxxx> wrote:
Am 29.07.25 um 04:58 schrieb Derek John Clark:
On Sat, Jul 26, 2025 at 4:32 PM Armin Wolf <W_Armin@xxxxxx> wrote:
Am 26.07.25 um 22:40 schrieb Derek J. Clark:
Adds platform driver for AYN Loki and Tectoy Zeenix lines of handheld
devices. This patch implements a hwmon interface for EC provided manual
PWM fan control and user defined fan curves. A global ACPI lock is used
when reading or writing from the EC.
There are 4 fan modes implemented in this patch. Modes 0-3 act in
accordance with the standard hwmon logic where 0 is 100% fan speed, 1 is
manual control, and 2 is automatic control. As the EC only provides 3
modes by default, mode 0 is implemented by setting the device to manual
and then setting fan speed to 100% directly. In mode 1 the PWM duty cycle
is set in sysfs with values [0-255], which are then scaled to the EC max
of 128. Mode 4 is an automatic mode where the fan curve is user defined.
There are 5 total set points and each set point takes a temperature in
Celsius [0-100] and a PWM duty cycle [0-255]. When the CPU temperature
reaches a given set point, the corresponding duty cycle is automatically
set by the EC.
Signed-off-by: Derek J. Clark <derekjohn.clark@xxxxxxxxx>
space
Interesting, do you have access to such a device? If yes then i would be very interested
in looking at the ACPI tables shipped with said device.
Hi Armin,
I have a Loki Max, and know someone with a Loki Zero. Do you want
plain text acpidump or a decoded DSDT.dat attached?
I would prefer the plain text acpidump, as the SSDT tables often contain important data.
Attached is the plain text acpidump, sorry for the delay. I'll also
note that Ayn provided me with documentation of the EC commands for
this driver.
Cheers,
- Derek
Nice :)
I also noticed that the ACPI code itself uses EC register 0xB0 to control the battery thermal limit. This would
conflict with your usage of register 0xB0 as the RED RGB value. Does the documentation mention this register?
Thanks,
Armin Wolf