Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cryolitia/gpd-fan-driver
https://github.com/cryolitia/gpd-fan-driver
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/cryolitia/gpd-fan-driver
- Owner: Cryolitia
- License: gpl-2.0
- Created: 2024-04-16T01:14:18.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-08-18T19:06:32.000Z (6 months ago)
- Last Synced: 2024-08-18T20:25:01.674Z (6 months ago)
- Language: C
- Homepage:
- Size: 87.9 KB
- Stars: 8
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# GPD devices fan linux kernel driver
> [!CAUTION]
>
> This driver has not been fully tested and reviewed.
>
> It may cause damage to your device. Use at your own risk.Tested on GPD Win Max 2 2023 (7840U) with 6.8.4-zen1
## Should support
- GPD Win Mini (7840U)
- GPD Win Mini (8840U)
- GPD Win Max 2
- GPD Win Max 2 2023 (7840U)
- GPD Win Max 2 2024 (8840U)
- GPD Win 4 (6800U)
- GPD Win 4 (7840U)## Usage
- Current fan speed
```bash
$ cat /sys/devices/platform/gpd_fan/hwmon/hwmon*/fan1_input
```
- Set fan speed control mode
```bash
# 0: disable (full speed)
# 1: manual
# 2: auto
$ echo 2 | sudo tee /sys/devices/platform/gpd_fan/hwmon/hwmon*/pwm1_enable
```
- Set fan speed
```bash
# range: 0-255
$ echo 127 | sudo tee /sys/devices/platform/gpd_fan/hwmon/hwmon*/pwm1
```More about fields in hwmon subsystem, please read https://www.kernel.org/doc/Documentation/hwmon/sysfs-interface .
This driver should auto detected your device, if not, please report an issue.
For testing not detected device, use model parameter `gpd_fan_model` to specify your device.
Supported models:
- wm2
- win4
- win_mini## Install
- Arch Linux(thx @dreirund): [gpd-fan-driver-dkms-git](https://aur.archlinux.org/packages/gpd-fan-driver-dkms-git)
- NixOS: `nixosModules.default`## Datasheet
### Credit
- Bilibili: [@范东东咚咚](https://space.bilibili.com/361065271)
Device
DMI
EC RAM
Read (rpm)
Write (pwm)
Manufacturer
Product
Version
REG_ADDR
REG_DATA
Max
Auto (=0)
GPD Win Mini
GPD
G1617-01
0x4E
0x4F
0x0478
0x047A
244
0x047A
GPD Win 4 6800U
G1618-04
Default string
0x2E
0x2F
0xC880
0xC311
127
0xC311
GPD Win 4 7840U
Ver. 1.0
0x4E
0x4F
0x0218
0x1809
184
0x0275
GPD Win Max 2 6800U
G1619-04
GPD Win Max 2 2023 7840U
GPD Win Max 2 2024 8840U