Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

brightness isn't work #13

Closed
wants to merge 7 commits into from
Closed

Conversation

sunbos
Copy link

@sunbos sunbos commented Jul 8, 2023

Computer model: YOGA 9 15IMH5
System version: 13.4.1 (22F82)
BrightnessKeys version: latest version
Details: My computer adjusts the brightness of the computer screen through F11 and F12, but after configuring the plugin, it still cannot adjust the brightness.
I suspect it is due to the issue with DSDT. If I do not configure SSDT through "_QXX", I will not be able to adjust the brightness. The current segment for adjusting screen brightness code on DSDT is as follows

Scope (_SB.PCI0.LPCB.EC0)
{
        Name (ACIO, Zero)
        Name (DCIO, Zero)
        Method (_Q1C, 0, NotSerialized)  // _Qxx: EC Query, xx=0x00-0xFF
        {
            P80H = 0x1C
            ADBG ("Brightness Up")
            Local0 = (SWBL & One)
            If ((Local0 == Zero))
            {
                Local1 = (SWBL | One)
                SWBL = Local1
            }
            Else
            {
                Acquire (MSGF, 0xFFFF)
                BRTN (0x86)
                Release (MSGF)
            }

            If ((OSYS == 0x07D9))
            {
                Sleep (0x64)
                VP1D |= 0x10
                Notify (VPC0, 0x80) // Status Change
            }
        }

        Method (_Q1D, 0, NotSerialized)  // _Qxx: EC Query, xx=0x00-0xFF
        {
            ADBG ("Brightness Down")
            P80H = 0x1D
            Local0 = (^^^GFX0.CBLV & 0xFF)
            If ((Local0 <= One))
            {
                Local1 = (SWBL & 0xFE)
                SWBL = Local1
            }

            Acquire (MSGF, 0xFFFF)
            BRTN (0x87)
            Release (MSGF)
            If ((OSYS == 0x07D9))
            {
                Sleep (0x64)
                VP1D |= 0x10
                Notify (VPC0, 0x80) // Status Change
            }
        }
}

DSDT file:
System DSDT.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

6 participants