system76 / ec

System76 Open Source Embedded Controller
GNU General Public License v3.0
318 stars 72 forks source link

Support second fan without dGPU #474

Closed crawfxrd closed 1 month ago

crawfxrd commented 2 months ago

Behavioral changes:

Test on:

Requires: system76/coreboot#222 Includes: #454, #456, #457, #481 Unblocks: #390

XV-02 commented 1 month ago

With this PR, how should ectool report fan speeds?

Looking at a gaze16-3060-b as the dGPU system, it looked like ectool reported fan speed as an 8-bit value between 0 and 255 (inclusive). sensors reports rpm values which look correct, however.

crawfxrd commented 1 month ago

ectool fan reads/writes from the duty cycle register (DCRi), so uses a value of 0-255.