Skip to content

Commit

Permalink
add ACPI methods for setting fan speeds
Browse files Browse the repository at this point in the history
Change-Id: Ib6548c571de300cec476f06f526d4c032e438f34
  • Loading branch information
curiousercreative committed Jul 10, 2023
1 parent 421b2ec commit 92304b9
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/ec/system76/ec/acpi/s76.asl
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,24 @@ Device (S76D) {
Return ((Local1 << 8) | Local0)
}

// Set Fan speed
Method (SFD0, 1, Serialized) {
If (^^PCI0.LPCB.EC0.ECOK) {
^^PCI0.LPCB.EC0.FDAT = Zero
^^PCI0.LPCB.EC0.FBUF = Arg0
^^PCI0.LPCB.EC0.FCMD = 0xCE
}
}
#if CONFIG(EC_SYSTEM76_EC_DGPU)
Method (SFD1, 1, Serialized) {
If (^^PCI0.LPCB.EC0.ECOK) {
^^PCI0.LPCB.EC0.FDAT = Zero
^^PCI0.LPCB.EC0.FBUF = Arg0
^^PCI0.LPCB.EC0.FCMD = 0xCF
}
}
#endif // CONFIG(EC_SYSTEM76_EC_DGPU)

// Temperature names
Method (NTMP, 0, Serialized) {
Return (Package() {
Expand Down

0 comments on commit 92304b9

Please sign in to comment.