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: Ief47d46856369a8a66207b85b01a08833ceb242b
  • Loading branch information
curiousercreative committed Oct 17, 2022
1 parent f1caea8 commit 7e0677a
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 @@ -143,6 +143,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 (2) {
Expand Down

0 comments on commit 7e0677a

Please sign in to comment.