Contribute
Register

[solved] GPD Win2 Mojave - Alc5645 no sound, Battery 0%

Status
Not open for further replies.
You mean _BIF should take the voltage values from _BST?
Even if I find a theoretical solution, I do not know how to code or manually create a patch... Sorry :shifty:
 
@RehabMan I can't believe it, I did it! With zero coding skills and on the first try! Battery percentage is now 71% and going down!
I modified _BIF but actually I don't know what I have done...

BEFORE
Code:
   Method (_BIF, 0, NotSerialized)  // _BIF: Battery Information
                {
                    Name (BPKG, Package (0x0D)
                    {
                        Zero,
                        Ones,
                        Ones,
                        One,
                        Ones,
                        Zero,
                        Zero,
                        0x64,
                        Zero,
                        "SR Real Battery",
                        "123456789",
                        "Real",
                        "Intel SR 1"
                    })
                    Store (Multiply (B1B2 (DC00, DC01), 0x0A), Index (BPKG, One))
                    Store (Multiply (B1B2 (FC00, FC01), 0x0A), Index (BPKG, 0x02))
                    If (B1B2 (FC00, FC01))
                    {
                        Store (Divide (Multiply (B1B2 (FC00, FC01), 0x0A), 0x0A, ), Index (BPKG, 0x05))
                        Store (Divide (Multiply (B1B2 (FC00, FC01), 0x0A), 0x19, ), Index (BPKG, 0x06))
                        Store (Divide (Multiply (B1B2 (DC00, DC01), 0x0A), 0x64, ), Index (BPKG, 0x07))
                    }

                    Return (BPKG)
                }

I didn't like that in BPKG the order was One, 0x02, 0x05, 0x06, 0x07, so I changed the values to

AFTER
Code:
Store (Multiply (B1B2 (DC00, DC01), 0x0A), Index (BPKG, One))
                    Store (Multiply (B1B2 (FC00, FC01), 0x0A), Index (BPKG, 0x02))
                    If (B1B2 (FC00, FC01))
                    {
                        Store (Divide (Multiply (B1B2 (FC00, FC01), 0x0A), 0x0A, ), Index (BPKG, 0x03))
                        Store (Divide (Multiply (B1B2 (FC00, FC01), 0x0A), 0x19, ), Index (BPKG, 0x04))
                        Store (Divide (Multiply (B1B2 (DC00, DC01), 0x0A), 0x64, ), Index (BPKG, 0x05))
                    }
Then I closed my eyes and rebooted and it worked!!! Can you please explain that?!

Here my new report, thank you so much for the suggestion!
 
I updated the files using Debug AppleALC and Lilu.
My Audio Layout ID should be 7 but it doesn t work. Have you got any clues?
CodecVendorID is 0x10ec0282 (I think ALC5645 codec)
Device id 8086:9d71
A guy on ****** managed to get Audio working on high Sierra, I'm trying to. contact him...
 
@RehabMan I can't believe it, I did it! With zero coding skills and on the first try! Battery percentage is now 71% and going down!
I modified _BIF but actually I don't know what I have done...

BEFORE
Code:
   Method (_BIF, 0, NotSerialized)  // _BIF: Battery Information
                {
                    Name (BPKG, Package (0x0D)
                    {
                        Zero,
                        Ones,
                        Ones,
                        One,
                        Ones,
                        Zero,
                        Zero,
                        0x64,
                        Zero,
                        "SR Real Battery",
                        "123456789",
                        "Real",
                        "Intel SR 1"
                    })
                    Store (Multiply (B1B2 (DC00, DC01), 0x0A), Index (BPKG, One))
                    Store (Multiply (B1B2 (FC00, FC01), 0x0A), Index (BPKG, 0x02))
                    If (B1B2 (FC00, FC01))
                    {
                        Store (Divide (Multiply (B1B2 (FC00, FC01), 0x0A), 0x0A, ), Index (BPKG, 0x05))
                        Store (Divide (Multiply (B1B2 (FC00, FC01), 0x0A), 0x19, ), Index (BPKG, 0x06))
                        Store (Divide (Multiply (B1B2 (DC00, DC01), 0x0A), 0x64, ), Index (BPKG, 0x07))
                    }

                    Return (BPKG)
                }

I didn't like that in BPKG the order was One, 0x02, 0x05, 0x06, 0x07, so I changed the values to

AFTER
Code:
Store (Multiply (B1B2 (DC00, DC01), 0x0A), Index (BPKG, One))
                    Store (Multiply (B1B2 (FC00, FC01), 0x0A), Index (BPKG, 0x02))
                    If (B1B2 (FC00, FC01))
                    {
                        Store (Divide (Multiply (B1B2 (FC00, FC01), 0x0A), 0x0A, ), Index (BPKG, 0x03))
                        Store (Divide (Multiply (B1B2 (FC00, FC01), 0x0A), 0x19, ), Index (BPKG, 0x04))
                        Store (Divide (Multiply (B1B2 (DC00, DC01), 0x0A), 0x64, ), Index (BPKG, 0x05))
                    }
Then I closed my eyes and rebooted and it worked!!! Can you please explain that?!

Here my new report, thank you so much for the suggestion!

Your changes seem wrong.
You should read the ACPI specification for details on _BIF.

Design voltage is at index 4, so this change would probably be appropriate:
Code:
                   Name (BPKG, Package (0x0D)
                   {
                       Zero,
                       Ones,
                       Ones,
                       One,
                       7200, //CHANGE: was Ones
                       Zero,
                       Zero,
                       0x64,
                       Zero,
                       "SR Real Battery",
                       "123456789",
                       "Real",
                       "Intel SR 1"
                   })
 
I updated the files using Debug AppleALC and Lilu.
My Audio Layout ID should be 7 but it doesn t work. Have you got any clues?
CodecVendorID is 0x10ec0282 (I think ALC5645 codec)
Device id 8086:9d71
A guy on ****** managed to get Audio working on high Sierra, I'm trying to. contact him...
No "Problem Reporting" files attached.
Read FAQ, "Problem Reporting" again. Carefully. Attach all requested files/output.
https://www.tonymacx86.com/threads/faq-read-first-laptop-frequent-questions.164990/
Use the gen_debug.sh tool mentioned in the FAQ, that way it is less likely you'll omit something.
 
Here they are (they were on the previous post)
 

Attachments

  • debug_20301.zip
    1.7 MB · Views: 42
I applied your change (7200) and discarded mine. Battery still works fine (or maybe better) :headbang:
 
Here they are (they were on the previous post)

You're not injecting layout-id. You have it disabled in your config.plist/Devices/Properties (#layout-id means disabled).
 
Changed, still nothing.
What's the difference between
Devices/Audio/Inject and devices/properties/pci..../layout-id ?
They are both on 7 right now (files updated)
 

Attachments

  • debug_12389.zip
    1.9 MB · Views: 52
Changed, still nothing.
What's the difference between
Devices/Audio/Inject and devices/properties/pci..../layout-id ?
They are both on 7 right now (files updated)

Two different methods for audio injection. When you use config.plist/Devices/Properties (with HDEF Pci path), Devices/Audio/Inject is not effective.

layout-id=7 is not valid for your audio codec.
Note:
Code:
-rw-r--r--  1 Admin  staff  37701 Apr 24  2018 /Users/Admin/Projects/lilu/applealc.git/Resources/ALC282/layout127.xml
-rw-r--r--  1 Admin  staff   3665 Oct 17 16:59 /Users/Admin/Projects/lilu/applealc.git/Resources/ALC282/layout127.xml.zlib
-rw-r--r--  1 Admin  staff  12898 Apr 24  2018 /Users/Admin/Projects/lilu/applealc.git/Resources/ALC282/layout13.xml
-rw-r--r--  1 Admin  staff   1633 Oct 17 16:59 /Users/Admin/Projects/lilu/applealc.git/Resources/ALC282/layout13.xml.zlib
-rwxr-xr-x  1 Admin  staff  42490 Nov 18 20:30 /Users/Admin/Projects/lilu/applealc.git/Resources/ALC282/layout22.xml
-rw-r--r--  1 Admin  staff  37700 Apr 24  2018 /Users/Admin/Projects/lilu/applealc.git/Resources/ALC282/layout27.xml
-rw-r--r--  1 Admin  staff   3661 Oct 17 16:59 /Users/Admin/Projects/lilu/applealc.git/Resources/ALC282/layout27.xml.zlib
-rw-r--r--  1 Admin  staff   9358 Apr 24  2018 /Users/Admin/Projects/lilu/applealc.git/Resources/ALC282/layout28.xml
-rw-r--r--  1 Admin  staff   1501 Oct 17 16:59 /Users/Admin/Projects/lilu/applealc.git/Resources/ALC282/layout28.xml.zlib
-rw-r--r--  1 Admin  staff  37698 Apr 24  2018 /Users/Admin/Projects/lilu/applealc.git/Resources/ALC282/layout29.xml
-rw-r--r--  1 Admin  staff   3661 Oct 17 16:59 /Users/Admin/Projects/lilu/applealc.git/Resources/ALC282/layout29.xml.zlib
-rw-r--r--  1 Admin  staff  24842 Apr 24  2018 /Users/Admin/Projects/lilu/applealc.git/Resources/ALC282/layout3.xml
-rw-r--r--  1 Admin  staff   1711 Oct 17 16:59 /Users/Admin/Projects/lilu/applealc.git/Resources/ALC282/layout3.xml.zlib
-rw-r--r--  1 Admin  staff  12906 Apr 24  2018 /Users/Admin/Projects/lilu/applealc.git/Resources/ALC282/layout4.xml
-rw-r--r--  1 Admin  staff   1633 Oct 17 16:59 /Users/Admin/Projects/lilu/applealc.git/Resources/ALC282/layout4.xml.zlib
-rw-r--r--  1 Admin  staff  28565 Apr 24  2018 /Users/Admin/Projects/lilu/applealc.git/Resources/ALC282/layout76.xml
-rw-r--r--  1 Admin  staff   2575 Oct 17 16:59 /Users/Admin/Projects/lilu/applealc.git/Resources/ALC282/layout76.xml.zlib
-rw-r--r--  1 Admin  staff  42534 Apr 24  2018 /Users/Admin/Projects/lilu/applealc.git/Resources/ALC282/layout86.xml
-rw-r--r--  1 Admin  staff   2805 Oct 17 16:59 /Users/Admin/Projects/lilu/applealc.git/Resources/ALC282/layout86.xml.zlib
 
Status
Not open for further replies.
Back
Top