https://bugzilla.kernel.org/show_bug.cgi?id=105721

--- Comment #19 from Aaron Lu <[email protected]> ---
I have a Dell XPS13 and I just booted v4.3-rc5, my battery is there.

Note that
"
it may be necessary to carry out a cold reboot _twice_ in a row to make it take
effect on the platform firmware
"

The _STA of battery is:

                        Method (_STA, 0, NotSerialized)  // _STA: Status
                        {
                            Local0 = (MIS0 & 0x02)
                            If (Local0)
                            {
                                Return (0x1F)
                            }

                            Return (0x0F)
                        }

Which means the status depends on MIS0.

MIS0 is assigned a value here:

    Method (SOST, 0, NotSerialized)
    {
        ... ...
        If (_OSI (LNX))
        {
            Local1 = _REV /* \_REV */
            If ((Local1 == 0x05))
            {
                Local0 = 0x40
            }
        }

        If ((Local0 == 0x40))
        {
            MIS0 = SMI (0x98, Zero)
            MIS0 &= 0x13
        }
        ... ...
    }

So it's only assigned a value when _OSI responds true to Linux query(which is
accomplished by adding acpi_osi=Linux) and when _REV returns 5(which is
accomplished by adding acpi_rev_override).

I have no idea why adding the two parameters still doesn't work...

-- 
You are receiving this mail because:
You are watching the assignee of the bug.

------------------------------------------------------------------------------
_______________________________________________
acpi-bugzilla mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/acpi-bugzilla

Reply via email to