ChimeraOS / ChimeraOS/chimeraos

Ayaneo Air 1S fan control

Open
#1,042 10 comments 0 reactions 0 assignees View on GitHub
Dominant language
Shell
Stars
2k
Forks
131
PR merge metrics
No merged PRs in 30d

Description

Hey! The ayaneo air 1s that I have does not allow manual fan speed settings with oxp-sensors. I built nfbc and used ec_probe to poke at the registers that HandheldCompanion has documented and things work, so. It seems there's a bug in the oxp-sensors kernel module.

for example:
```sh
[gamer@chimeraos ~]$ echo 1 | sudo tee /sys/devices/platform/oxp-platform/hwmon/hwmon6/pwm1_enable
1
[gamer@chimeraos ~]$ echo 99 | sudo tee /sys/devices/platform/oxp-platform/hwmon/hwmon6/pwm1
99
tee: /sys/devices/platform/oxp-platform/hwmon/hwmon6/pwm1: Operation not supported
```
the fan spins up but is frozen at something around 2k rpm and no matter what I try to set pwm1 to fails.

vs
```sh
[gamer@chimeraos ~]$ sudo nbfc/pkg/nbfc-linux-git/usr/bin/ec_probe write 0x4a 0x01 #enable manual control
[gamer@chimeraos ~]$ sudo nbfc/pkg/nbfc-linux-git/usr/bin/ec_probe write 0x4b 0x64 #set to 100
```

I've looked at the driver and its quite intimidating. It seems like someone assumed the 1s worked the same as a pile of other devices and I'm not sure where to start. Is anyone familiar with that driver that would be interested in collaborating on a patch? I'm going to try and get fancontrol working for now.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.