- Joined
- May 28, 2016
- Messages
- 400
- Motherboard
- Gigabyte Z170N-WIFI (ITX)
- CPU
- i7-6700K
- Graphics
- R9 380X
- Mobile Phone
I found the brightness example and it shouldn't be too hard. But then my own DSDT does not look like yours at all.You should read the guide carefully and make sure you understand conceptually and the specific examples given in the guide.
Then refer to other guides that already do it (eg. all of my guides, refer to github content).
If you're not up for it technically, then do static patch.
This is the patch I want to apply through hot-patch:
Code:
into method label _Q1C replace_content
begin
// Brightness Down\n
Notify(\_SB.PCI0.LPCB.KBD0, 0x0405)\n
end;
into method label _Q1D replace_content
begin
// Brightness Up\n
Notify(\_SB.PCI0.LPCB.KBD0, 0x0406)\n
end;
I want to make
Code:
Scope (_SB.PCI0.LPCB.EC0)
{
Name (ACIO, Zero)
Name (DCIO, Zero)
Method (_Q1C, 0, NotSerialized) // _Qxx: EC Query
{
Store (0x1C, P80H)
Store (And (SWBL, One), Local0)
If (LEqual (Local0, Zero))
{
Store (Or (SWBL, One), Local1)
Store (Local1, SWBL)
}
Else
{
Acquire (MSGF, 0xFFFF)
BRTN (0x86)
Release (MSGF)
}
If (LEqual (OSYS, 0x07D9))
{
Sleep (0x64)
Or (VP1D, 0x10, VP1D)
Notify (VPC0, 0x80)
}
}
Code:
Scope (_SB.PCI0.LPCB.EC0)
{
Name (ACIO, Zero)
Name (DCIO, Zero)
Method (_Q1C, 0, NotSerialized) // _Qxx: EC Query
{
Notify(\_SB.PCI0.LPCB.KBD0, 0x0405)\
}
And same for other key.. but the guide does not state how? Is it even possible? I am replacing code, chunks of it from what I can see, not renaming.