Closed marianopela closed 3 years ago
Before continue to battery, I want to first confirm whether #20 or #22 works. Are function key events recognized by the app and shown in the log? Such as keyboard backlight, camera and Mic mute.
For conservation mode, please try the latest debug version on master branch. Please install https://github.com/RehabMan/OS-X-ioio first and try following commands.
On: ioio -s IdeaVPC ConservationMode 3
Off: ioio -s IdeaVPC ConservationMode 5
These commands should do the exact same thing with Linux drivers without additional checks, the behavior should be the same. And please do not enter other values. I'm still not sure of its behavior. You may need to re-plug or execute it when charge level is less than 60%.
Ok, will wait for the battery to drain under 60 and report back
Are function key events recognized by the app and shown in the log? Such as keyboard backlight, camera and Mic mute.
About keyboard backlight, this happens when using Fn + spacebar (but it's working, and it also working from prefpane)
2020-10-20 18:41:25.666940+0200 0x27ae Default 0x0 0 0 kernel: (YogaSMC) YSMC - Info: IdeaVPC::VPC0 ReadEC timeout 0x1a
2020-10-20 18:41:25.666992+0200 0x27ae Default 0x0 0 0 kernel: (YogaSMC) YSMC - Info: IdeaVPC::VPC0 Failed to read VPC2 after 57 attempts
2020-10-20 18:41:25.667020+0200 0x27ae Default 0x0 0 0 kernel: (YogaSMC) YSMC - Info: IdeaVPC::VPC0 read VPC EC result: 0x2 57
2020-10-20 18:41:25.667041+0200 0x27ae Default 0x0 0 0 kernel: (YogaSMC) YSMC - Info: IdeaVPC::VPC0 Fn+Space keyboard backlight?
2020-10-20 18:41:25.667629+0200 0x27ae Default 0x0 0 0 kernel: (YogaSMC) YSMC - Debug: IdeaVPC::VPC0 KeyboardMode 0xc6f0
2020-10-20 18:41:37.684706+0200 0x27af Default 0x0 0 0 kernel: (YogaSMC) YSMC - Info: IdeaVPC::VPC0 ReadEC timeout 0x1a
2020-10-20 18:41:37.684760+0200 0x27af Default 0x0 0 0 kernel: (YogaSMC) YSMC - Info: IdeaVPC::VPC0 Failed to read VPC2 after 69 attempts
2020-10-20 18:41:37.684781+0200 0x27af Default 0x0 0 0 kernel: (YogaSMC) YSMC - Info: IdeaVPC::VPC0 read VPC EC result: 0x2 69
2020-10-20 18:41:37.684808+0200 0x27af Default 0x0 0 0 kernel: (YogaSMC) YSMC - Info: IdeaVPC::VPC0 Fn+Space keyboard backlight?
2020-10-20 18:41:37.685362+0200 0x27af Default 0x0 0 0 kernel: (YogaSMC) YSMC - Debug: IdeaVPC::VPC0 KeyboardMode 0xc6f0
2020-10-20 18:41:43.196474+0200 0x27ae Default 0x0 0 0 kernel: (YogaSMC) YSMC - Info: IdeaVPC::VPC0 ReadEC timeout 0x1a
2020-10-20 18:41:43.196508+0200 0x27ae Default 0x0 0 0 kernel: (YogaSMC) YSMC - Info: IdeaVPC::VPC0 Failed to read VPC2 after 138 attempts
2020-10-20 18:41:43.196521+0200 0x27ae Default 0x0 0 0 kernel: (YogaSMC) YSMC - Info: IdeaVPC::VPC0 read VPC EC result: 0x2 138
2020-10-20 18:41:43.196553+0200 0x27ae Default 0x0 0 0 kernel: (YogaSMC) YSMC - Info: IdeaVPC::VPC0 Fn+Space keyboard backlight?
2020-10-20 18:41:43.196909+0200 0x27ae Default 0x0 0 0 kernel: (YogaSMC) YSMC - Debug: IdeaVPC::VPC0 KeyboardMode 0xc6d0
Here I pressed Mic mute four times (F4)
2020-10-20 18:47:34.865249+0200 0x27af Default 0x0 0 0 kernel: (YogaSMC) YSMC - Info: IdeaVPC::VPC0 read VPC EC result: 0x100 40
2020-10-20 18:47:34.865288+0200 0x27af Default 0x0 0 0 kernel: (YogaSMC) YSMC - Info: IdeaVPC::VPC0 Fn+F4 mic
2020-10-20 18:47:54.164426+0200 0x27ae Default 0x0 0 0 kernel: (YogaSMC) YSMC - Info: IdeaVPC::VPC0 read VPC EC result: 0x0 3
2020-10-20 18:47:54.164463+0200 0x27ae Default 0x0 0 0 kernel: (YogaSMC) YSMC - Debug: IdeaVPC::VPC0 empty EC event
2020-10-20 18:48:03.070155+0200 0x27af Default 0x0 0 0 kernel: (YogaSMC) YSMC - Info: IdeaVPC::VPC0 ReadEC timeout 0x1a
2020-10-20 18:48:03.070189+0200 0x27af Default 0x0 0 0 kernel: (YogaSMC) YSMC - Info: IdeaVPC::VPC0 Failed to read VPC2 after 49 attempts
2020-10-20 18:48:03.070201+0200 0x27af Default 0x0 0 0 kernel: (YogaSMC) YSMC - Info: IdeaVPC::VPC0 read VPC EC result: 0x0 49
2020-10-20 18:48:03.070219+0200 0x27af Default 0x0 0 0 kernel: (YogaSMC) YSMC - Debug: IdeaVPC::VPC0 empty EC event
2020-10-20 18:48:13.398452+0200 0x27ae Default 0x0 0 0 kernel: (YogaSMC) YSMC - Info: IdeaVPC::VPC0 read VPC EC result: 0x100 7
2020-10-20 18:48:13.398506+0200 0x27ae Default 0x0 0 0 kernel: (YogaSMC) YSMC - Info: IdeaVPC::VPC0 Fn+F4 mic
What about camera? I don't have a relative Fn key, but for example I use F6 to enable/disable trackpad (here I disable it and re-enable it
2020-10-20 20:54:43.054279+0200 0x27af Default 0x0 0 0 kernel: (YogaSMC) YSMC - Info: IdeaVPC::VPC0 ReadEC timeout 0x1a
2020-10-20 20:54:43.054316+0200 0x27af Default 0x0 0 0 kernel: (YogaSMC) YSMC - Info: IdeaVPC::VPC0 Failed to read VPC2 after 52 attempts
2020-10-20 20:54:43.054328+0200 0x27af Default 0x0 0 0 kernel: (YogaSMC) YSMC - Info: IdeaVPC::VPC0 read VPC EC result: 0x20 52
2020-10-20 20:54:43.057129+0200 0x27af Default 0x0 0 0 kernel: (YogaSMC) YSMC - Info: IdeaVPC::VPC0 Fn+F6 touchpad 0x0 off
2020-10-20 20:54:52.191545+0200 0x27ae Default 0x0 0 0 kernel: (YogaSMC) YSMC - Info: IdeaVPC::VPC0 read VPC EC result: 0x0 43
2020-10-20 20:54:52.191585+0200 0x27ae Default 0x0 0 0 kernel: (YogaSMC) YSMC - Debug: IdeaVPC::VPC0 empty EC event
By the way, do you have the _OSI
to XOSI
patch? During initialization, some EC fields like OSTY
seem to be written according to system version.
By the way, do you have the
_OSI
toXOSI
patch? During initialization, some EC fields likeOSTY
seem to be written according to system version.
Nope, I did not. I just tried it and it seems to have little or no impact on EC reading errors How should I test it so that it's useful for you?
Can you try #41 again?
I charged from 50% to 64%
Filtering the log data using "processIdentifier == 0 AND (senderImagePath CONTAINS "YogaSMC" OR senderImagePath CONTAINS "ACPI")"
Timestamp Thread Type Activity PID TTL
2020-11-01 10:57:19.388331+0100 0x1e23 Default 0x0 0 0 kernel: (YogaSMC) YSMC - Info: IdeaVPC::VPC0 ConservationMode set to 0x3: see ioreg
2020-11-01 10:57:27.381809+0100 0x1e5f Default 0x0 0 0 kernel: (YogaSMC) YSMC - Info: IdeaVPC::VPC0 ConservationMode set to 0x5: see ioreg
2020-11-01 10:57:31.382108+0100 0x1e90 Default 0x0 0 0 kernel: (YogaSMC) YSMC - Info: IdeaVPC::VPC0 ConservationMode set to 0x3: see ioreg
2020-11-01 10:57:34.406079+0100 0x1edb Default 0x0 0 0 kernel: (YogaSMC) YSMC - Info: IdeaVPC::VPC0 ConservationMode set to 0x5: see ioreg
2020-11-01 10:57:43.278882+0100 0x1f75 Default 0x0 0 0 kernel: (YogaSMC) YSMC - Debug: IdeaVPC::VPC0 Battery 0xe0200
2020-11-01 10:57:46.292163+0100 0x1f75 Default 0x0 0 0 kernel: (YogaSMC) YSMC - Debug: IdeaVPC::VPC0 read VPC EC result: 0x0 10
2020-11-01 10:57:46.292210+0100 0x1f75 Default 0x0 0 0 kernel: (YogaSMC) YSMC - Debug: IdeaVPC::VPC0 empty EC event
2020-11-01 10:57:46.293582+0100 0x1f75 Default 0x0 0 0 kernel: (YogaSMC) YSMC - Debug: IdeaVPC::VPC0 DYTCMode command 0x2 result 0x08013b01
2020-11-01 10:57:46.293603+0100 0x1f75 Default 0x0 0 0 kernel: (YogaSMC) YSMC - Debug: IdeaVPC::VPC0 Found DYTC_FUNCTION_STD
2020-11-01 10:57:46.293610+0100 0x1f75 Default 0x0 0 0 kernel: (YogaSMC) YSMC - Debug: IdeaVPC::VPC0 Found DYTC_FUNCTION_MMC
2020-11-01 10:57:54.135206+0100 0x1f75 Default 0x0 0 0 kernel: (YogaSMC) YSMC - Debug: IdeaVPC::VPC0 DYTCMode command 0x2 result 0x08013b01
2020-11-01 10:57:54.159189+0100 0x1f75 Default 0x0 0 0 kernel: (YogaSMC) YSMC - Debug: IdeaVPC::VPC0 DYTCMode command 0x13b001 result 0x08013b01
2020-11-01 10:57:54.159219+0100 0x1f75 Default 0x0 0 0 kernel: (YogaSMC) YSMC - Debug: IdeaVPC::VPC0 Found DYTC_FUNCTION_STD
2020-11-01 10:57:54.159226+0100 0x1f75 Default 0x0 0 0 kernel: (YogaSMC) YSMC - Debug: IdeaVPC::VPC0 Found DYTC_FUNCTION_MMC
2020-11-01 10:57:54.159243+0100 0x1f75 Default 0x0 0 0 kernel: (YogaSMC) YSMC - Debug: IdeaVPC::VPC0 DYTCMode set to 0x3: see ioreg
2020-11-01 10:57:58.647980+0100 0x1f75 Default 0x0 0 0 kernel: (YogaSMC) YSMC - Debug: IdeaVPC::VPC0 DYTCMode command 0x1ff result 0x0001f001
2020-11-01 10:57:58.648003+0100 0x1f75 Default 0x0 0 0 kernel: (YogaSMC) YSMC - Debug: IdeaVPC::VPC0 Found DYTC_FUNCTION_STD
2020-11-01 10:57:58.648015+0100 0x1f75 Default 0x0 0 0 kernel: (YogaSMC) YSMC - Debug: IdeaVPC::VPC0 DYTCMode set to 0xf: see ioreg
2020-11-01 10:57:59.832597+0100 0x1f75 Default 0x0 0 0 kernel: (YogaSMC) YSMC - Debug: IdeaVPC::VPC0 DYTCMode command 0x2 result 0x0001f001
2020-11-01 10:57:59.856025+0100 0x1f75 Default 0x0 0 0 kernel: (YogaSMC) YSMC - Debug: IdeaVPC::VPC0 DYTCMode command 0x12b001 result 0x08012b01
2020-11-01 10:57:59.856095+0100 0x1f75 Default 0x0 0 0 kernel: (YogaSMC) YSMC - Debug: IdeaVPC::VPC0 Found DYTC_FUNCTION_STD
2020-11-01 10:57:59.856113+0100 0x1f75 Default 0x0 0 0 kernel: (YogaSMC) YSMC - Debug: IdeaVPC::VPC0 Found DYTC_FUNCTION_MMC
2020-11-01 10:57:59.856144+0100 0x1f75 Default 0x0 0 0 kernel: (YogaSMC) YSMC - Debug: IdeaVPC::VPC0 DYTCMode set to 0x2: see ioreg
2020-11-01 10:58:02.286185+0100 0x1f75 Default 0x0 0 0 kernel: (YogaSMC) YSMC - Debug: IdeaVPC::VPC0 BacklightLevel already 0
2020-11-01 10:58:06.638779+0100 0x1f75 Default 0x0 0 0 kernel: (YogaSMC) YSMC - Debug: IdeaVPC::VPC0 BacklightLevel set to 0x9: off
2020-11-01 10:58:16.437368+0100 0x1f75 Default 0x0 0 0 kernel: (YogaSMC) YSMC - Debug: IdeaVPC::VPC0 ConservationMode already 0
2020-11-01 10:58:18.021907+0100 0x1f75 Default 0x0 0 0 kernel: (YogaSMC) YSMC - Debug: IdeaVPC::VPC0 ConservationMode set to 0x3: on
2020-11-01 10:58:19.470343+0100 0x1f75 Default 0x0 0 0 kernel: (YogaSMC) YSMC - Debug: IdeaVPC::VPC0 ConservationMode already 0
2020-11-01 10:58:20.551000+0100 0x1f75 Default 0x0 0 0 kernel: (YogaSMC) YSMC - Debug: IdeaVPC::VPC0 ConservationMode set to 0x3: on
2020-11-01 10:58:24.969333+0100 0x21e7 Default 0x0 0 0 kernel: (YogaSMC) YSMC - Debug: IdeaVPC::VPC0 Battery 0xe0200
2020-11-01 10:58:30.619902+0100 0x21e7 Default 0x0 0 0 kernel: (YogaSMC) YSMC - Info: IdeaVPC::VPC0 ReadEC timeout 0x1a
2020-11-01 10:58:30.619934+0100 0x21e7 Default 0x0 0 0 kernel: (YogaSMC) YSMC - Info: IdeaVPC::VPC0 Failed to read VPC 2
2020-11-01 10:58:30.622277+0100 0x21e7 Default 0x0 0 0 kernel: (YogaSMC) YSMC - Debug: IdeaVPC::VPC0 DYTCMode command 0x2 result 0x08012b01
2020-11-01 10:58:30.622312+0100 0x21e7 Default 0x0 0 0 kernel: (YogaSMC) YSMC - Debug: IdeaVPC::VPC0 Found DYTC_FUNCTION_STD
2020-11-01 10:58:30.622322+0100 0x21e7 Default 0x0 0 0 kernel: (YogaSMC) YSMC - Debug: IdeaVPC::VPC0 Found DYTC_FUNCTION_MMC
2020-11-01 10:59:31.571376+0100 0x2469 Default 0x0 0 0 kernel: (YogaSMC) YSMC - Debug: IdeaVPC::VPC0 Battery 0xe0200
2020-11-01 10:59:33.573705+0100 0x2469 Default 0x0 0 0 kernel: (YogaSMC) YSMC - Info: IdeaVPC::VPC0 ReadEC timeout 0x10
2020-11-01 10:59:33.573752+0100 0x2469 Default 0x0 0 0 kernel: (YogaSMC) YSMC - Info: IdeaVPC::VPC0 Failed to read VPC 1
2020-11-01 10:59:33.576267+0100 0x2469 Default 0x0 0 0 kernel: (YogaSMC) YSMC - Debug: IdeaVPC::VPC0 DYTCMode command 0x2 result 0x08012b01
2020-11-01 10:59:33.576320+0100 0x2469 Default 0x0 0 0 kernel: (YogaSMC) YSMC - Debug: IdeaVPC::VPC0 Found DYTC_FUNCTION_STD
2020-11-01 10:59:33.576333+0100 0x2469 Default 0x0 0 0 kernel: (YogaSMC) YSMC - Debug: IdeaVPC::VPC0 Found DYTC_FUNCTION_MMC
2020-11-01 10:59:43.141528+0100 0x2662 Default 0x0 0 0 kernel: (YogaSMC) YSMC - Debug: IdeaVPC::VPC0 Battery 0xe0200
2020-11-01 10:59:46.145375+0100 0x2662 Default 0x0 0 0 kernel: (YogaSMC) YSMC - Debug: IdeaVPC::VPC0 read VPC EC result: 0x0 0
2020-11-01 10:59:46.145406+0100 0x2662 Default 0x0 0 0 kernel: (YogaSMC) YSMC - Debug: IdeaVPC::VPC0 empty EC event
2020-11-01 10:59:46.146613+0100 0x2662 Default 0x0 0 0 kernel: (YogaSMC) YSMC - Debug: IdeaVPC::VPC0 DYTCMode command 0x2 result 0x08012b01
2020-11-01 10:59:46.146635+0100 0x2662 Default 0x0 0 0 kernel: (YogaSMC) YSMC - Debug: IdeaVPC::VPC0 Found DYTC_FUNCTION_STD
2020-11-01 10:59:46.146643+0100 0x2662 Default 0x0 0 0 kernel: (YogaSMC) YSMC - Debug: IdeaVPC::VPC0 Found DYTC_FUNCTION_MMC
2020-11-01 11:00:17.594070+0100 0x7b1 Default 0x0 0 0 kernel: (YogaSMC) YSMC - Debug: IdeaVPC::VPC0 read VPC EC result: 0x400 16
2020-11-01 11:00:17.594103+0100 0x7b1 Default 0x0 0 0 kernel: (YogaSMC) YSMC - Debug: IdeaVPC::VPC0 Touchpad on
2020-11-01 11:00:36.771812+0100 0x1b8 Default 0x0 0 0 kernel: (YogaSMC) YSMC - Info: IdeaWMI::WMIY powerState 0 : off
2020-11-01 11:00:36.771824+0100 0x1b7 Default 0x0 0 0 kernel: (YogaSMC) YSMC - Info: IdeaWMI::WMI4 powerState 0 : off
2020-11-01 11:00:36.771831+0100 0x7b2 Default 0x0 0 0 kernel: (YogaSMC) YSMC - Info: IdeaWMI::WFTE powerState 0 : off
2020-11-01 11:00:36.771850+0100 0x2889 Default 0x0 0 0 kernel: (YogaSMC) YSMC - Info: IdeaWMI::WFDE powerState 0 : off
2020-11-01 11:00:36.771879+0100 0x288a Default 0x0 0 0 kernel: (YogaSMC) YSMC - Info: IdeaWMI::WMTF powerState 0 : off
2020-11-01 11:00:36.776407+0100 0x7b1 Default 0x0 0 0 kernel: (YogaSMC) YSMC - Debug: IdeaSMC::EC0 powerState 0 : off
2020-11-01 11:00:36.776411+0100 0x7b1 Default 0x0 0 0 kernel: (YogaSMC) YSMC - Debug: IdeaSMC::EC0 Going to sleep
2020-11-01 11:00:36.776733+0100 0x2889 Default 0x0 0 0 kernel: (YogaSMC) YSMC - Debug: IdeaVPC::VPC0 powerState 0 : off
2020-11-01 11:00:36.778798+0100 0x2889 Default 0x0 0 0 kernel: (YogaSMC) YSMC - Debug: IdeaVPC::VPC0 BacklightLevel set to 0x8: on
2020-11-01 11:00:36.958559+0100 0x74 Default 0x0 0 0 kernel: (AppleACPIPlatform) ACPI SLEEP
2020-11-01 11:00:36.959040+0100 0x74 Default 0x0 0 0 kernel: (AppleACPIPlatform) Facs->FirmwareWakingVector: 0x2000
2020-11-01 11:00:36.959041+0100 0x74 Default 0x0 0 0 kernel: (AppleACPIPlatform) Facs->Length: 0x40
2020-11-01 11:00:36.959042+0100 0x74 Default 0x0 0 0 kernel: (AppleACPIPlatform) Facs->Version: 0x2
2020-11-01 11:00:36.959044+0100 0x74 Default 0x0 0 0 kernel: (AppleACPIPlatform) Facs->XFirmwareWakingVector: 0x0
2020-11-01 11:00:36.959045+0100 0x74 Default 0x0 0 0 kernel: (AppleACPIPlatform) Facs->OspmFlags: 0x0
2020-11-01 11:00:36.975347+0100 0x74 Default 0x0 0 0 kernel: (AppleACPIPlatform) ACPI S3 WAKE
2020-11-01 11:00:36.980490+0100 0x74 Default 0x0 0 0 kernel: (AppleACPIPlatform) Facs->FirmwareWakingVector: 0x0
2020-11-01 11:00:36.980491+0100 0x74 Default 0x0 0 0 kernel: (AppleACPIPlatform) Facs->Length: 0x40
2020-11-01 11:00:36.980493+0100 0x74 Default 0x0 0 0 kernel: (AppleACPIPlatform) Facs->Version: 0x2
2020-11-01 11:00:36.980495+0100 0x74 Default 0x0 0 0 kernel: (AppleACPIPlatform) Facs->XFirmwareWakingVector: 0x0
2020-11-01 11:00:36.980496+0100 0x74 Default 0x0 0 0 kernel: (AppleACPIPlatform) Facs->OspmFlags: 0x0
2020-11-01 11:00:36.980704+0100 0x74 Default 0x0 0 0 kernel: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: PWRB (User)
2020-11-01 11:00:36.980706+0100 0x74 Default 0x0 0 0 kernel: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: PWRB (User)
2020-11-01 11:07:33.015165+0100 0x288a Default 0x0 0 0 kernel: (YogaSMC) YSMC - Info: IdeaWMI::WMIY powerState 1 : on
2020-11-01 11:07:33.015181+0100 0x288a Default 0x0 0 0 kernel: (YogaSMC) YSMC - Debug: WMIY::WMIY GUID 09b0ee6e-c3fd-4243-8da1-7911ff80bb8c matched, verifying flag 0
2020-11-01 11:07:33.015195+0100 0x288a Default 0x0 0 0 kernel: (YogaSMC) YSMC - Debug: WMIY::WMIY Calling method WMYM
2020-11-01 11:07:33.015325+0100 0x288a Default 0x0 0 0 kernel: (YogaSMC) YSMC - Debug: IdeaWMI::WMIY YogaMode: 0
2020-11-01 11:07:33.015344+0100 0x288a Default 0x0 0 0 kernel: (YogaSMC) YSMC - Info: IdeaWMI::WMIY Unknown yoga mode: 0
2020-11-01 11:07:33.015390+0100 0x2896 Default 0x0 0 0 kernel: (YogaSMC) YSMC - Info: IdeaWMI::WMI4 powerState 1 : on
2020-11-01 11:07:33.015395+0100 0x2889 Default 0x0 0 0 kernel: (YogaSMC) YSMC - Info: IdeaWMI::WFTE powerState 1 : on
2020-11-01 11:07:33.015402+0100 0x288a Default 0x0 0 0 kernel: (YogaSMC) YSMC - Info: IdeaWMI::WFDE powerState 1 : on
2020-11-01 11:07:33.015405+0100 0x2896 Default 0x0 0 0 kernel: (YogaSMC) YSMC - Info: IdeaWMI::WMTF powerState 1 : on
2020-11-01 11:07:33.015531+0100 0x288a Default 0x0 0 0 kernel: (YogaSMC) YSMC - Debug: IdeaVPC::VPC0 powerState 1 : on
2020-11-01 11:07:33.016122+0100 0x288a Default 0x0 0 0 kernel: (YogaSMC) YSMC - Debug: IdeaVPC::VPC0 BacklightLevel set to 0x9: off
2020-11-01 11:07:33.020305+0100 0x28d0 Default 0x0 0 0 kernel: (YogaSMC) YSMC - Debug: IdeaSMC::EC0 powerState 1 : on
2020-11-01 11:07:33.020324+0100 0x28d0 Default 0x0 0 0 kernel: (YogaSMC) YSMC - Debug: IdeaSMC::EC0 Woke up
2020-11-01 11:08:56.121291+0100 0x28d4 Default 0x0 0 0 kernel: (YogaSMC) YSMC - Info: IdeaVPC::VPC0 ReadEC timeout 0x10
2020-11-01 11:08:56.121326+0100 0x28d4 Default 0x0 0 0 kernel: (YogaSMC) YSMC - Info: IdeaVPC::VPC0 Failed to read VPC 1
2020-11-01 11:09:01.167273+0100 0x28ad Default 0x0 0 0 kernel: (YogaSMC) YSMC - Info: IdeaVPC::VPC0 ReadEC timeout 0x1a
2020-11-01 11:09:01.167283+0100 0x28ad Default 0x0 0 0 kernel: (YogaSMC) YSMC - Info: IdeaVPC::VPC0 Failed to read VPC 15
2020-11-01 11:09:03.169725+0100 0x28ec Default 0x0 0 0 kernel: (YogaSMC) YSMC - Debug: IdeaVPC::VPC0 read VPC EC result: 0x10 13
2020-11-01 11:09:03.169741+0100 0x28ec Default 0x0 0 0 kernel: (YogaSMC) YSMC - Info: IdeaVPC::VPC0 Unknown VPC event 4
2020-11-01 11:09:04.171595+0100 0x2f68 Default 0x0 0 0 kernel: (YogaSMC) YSMC - Debug: IdeaVPC::VPC0 Battery 0xe0200
2020-11-01 11:09:04.174522+0100 0x28d4 Default 0x0 0 0 kernel: (YogaSMC) YSMC - Debug: IdeaVPC::VPC0 read VPC EC result: 0x0 2
2020-11-01 11:09:04.174539+0100 0x28d4 Default 0x0 0 0 kernel: (YogaSMC) YSMC - Debug: IdeaVPC::VPC0 empty EC event
2020-11-01 11:09:05.207931+0100 0x2f68 Default 0x0 0 0 kernel: (YogaSMC) YSMC - Info: IdeaVPC::VPC0 ReadEC timeout 0x10
2020-11-01 11:09:05.207963+0100 0x2f68 Default 0x0 0 0 kernel: (YogaSMC) YSMC - Info: IdeaVPC::VPC0 Failed to read VPC 67
2020-11-01 11:09:05.209681+0100 0x2f68 Default 0x0 0 0 kernel: (YogaSMC) YSMC - Debug: IdeaVPC::VPC0 DYTCMode command 0x2 result 0x08012b01
2020-11-01 11:09:05.209717+0100 0x2f68 Default 0x0 0 0 kernel: (YogaSMC) YSMC - Debug: IdeaVPC::VPC0 Found DYTC_FUNCTION_STD
2020-11-01 11:09:05.209727+0100 0x2f68 Default 0x0 0 0 kernel: (YogaSMC) YSMC - Debug: IdeaVPC::VPC0 Found DYTC_FUNCTION_MMC
2020-11-01 11:09:17.462732+0100 0x2f68 Default 0x0 0 0 kernel: (YogaSMC) YSMC - Debug: IdeaVPC::VPC0 BacklightLevel set to 0x8: on
Conservation mode's tick seems to be sticking though, but I lost the other infos
Here is also the bootlog from YogaSMC
Please tell me if you need anything else
Conservation mode's tick seems to be sticking though
Nevermind, it remains selected even if I unselect it and reload the pane, so it's just pane problems
Please update the prefpane as well. And the hotkey still not works? Do you have each press of EC hotkey recognized in Linux?
I'm testing from Big Sur now and gave https://github.com/zhen-zen/YogaSMC/pull/52 a try These ACPI errors rose when changing brightness
Timestamp Thread Type Activity PID TTL
2020-11-09 09:52:43.817888+0100 0x25ec Default 0x0 0 0 kernel: (AppleACPIPlatform) AcpiOsIdleQueue exhausted
2020-11-09 09:52:43.818108+0100 0x25ec Default 0x0 0 0 kernel: (AppleACPIPlatform)
2020-11-09 09:52:43.818122+0100 0x25ec Default 0x0 0 0 kernel: (AppleACPIPlatform) ACPI Error:
2020-11-09 09:52:43.818124+0100 0x25ec Default 0x0 0 0 kernel: (AppleACPIPlatform) ACPI Error:
2020-11-09 09:52:43.818131+0100 0x25ec Default 0x0 0 0 kernel: (AppleACPIPlatform) Method parse/execution failed
2020-11-09 09:52:43.818134+0100 0x25ec Default 0x0 0 0 kernel: (AppleACPIPlatform) Method parse/execution failed
2020-11-09 09:52:43.818142+0100 0x25ec Default 0x0 0 0 kernel: (AppleACPIPlatform) [\_SB.PCI0.LPCB.EC0._Q11] (Node ffffff937e639600)
2020-11-09 09:52:43.818146+0100 0x25ec Default 0x0 0 0 kernel: (AppleACPIPlatform) [\_SB.PCI0.LPCB.EC0._Q11] (Node ffffff937e639600)
2020-11-09 09:52:43.818153+0100 0x25ec Default 0x0 0 0 kernel: (AppleACPIPlatform) , AE_NO_MEMORY
2020-11-09 09:52:43.818157+0100 0x25ec Default 0x0 0 0 kernel: (AppleACPIPlatform) , AE_NO_MEMORY
2020-11-09 09:52:43.818166+0100 0x25ec Default 0x0 0 0 kernel: (AppleACPIPlatform) (20160930/psparse-632)
2020-11-09 09:52:43.818171+0100 0x25ec Default 0x0 0 0 kernel: (AppleACPIPlatform) (20160930/psparse-632)
2020-11-09 09:52:43.818638+0100 0x25f0 Default 0x0 0 0 kernel: (AppleACPIPlatform) AcpiOsIdleQueue exhausted
2020-11-09 09:52:43.818654+0100 0x25f0 Default 0x0 0 0 kernel: (AppleACPIPlatform) [_Q04] @00008 #0086:
2020-11-09 09:52:43.818657+0100 0x25f0 Default 0x0 0 0 kernel: (AppleACPIPlatform) [_Q04] @00008 #0086:
2020-11-09 09:52:43.818665+0100 0x25f0 Default 0x0 0 0 kernel: (AppleACPIPlatform) Notify
2020-11-09 09:52:43.818668+0100 0x25f0 Default 0x0 0 0 kernel: (AppleACPIPlatform) Notify
2020-11-09 09:52:43.818671+0100 0x25f0 Default 0x0 0 0 kernel: (AppleACPIPlatform) (
2020-11-09 09:52:43.818673+0100 0x25f0 Default 0x0 0 0 kernel: (AppleACPIPlatform) (
2020-11-09 09:52:43.818677+0100 0x25f0 Default 0x0 0 0 kernel: (AppleACPIPlatform) V
2020-11-09 09:52:43.818681+0100 0x25f0 Default 0x0 0 0 kernel: (AppleACPIPlatform) V
2020-11-09 09:52:43.818683+0100 0x25f0 Default 0x0 0 0 kernel: (AppleACPIPlatform) P
2020-11-09 09:52:43.818685+0100 0x25f0 Default 0x0 0 0 kernel: (AppleACPIPlatform) P
2020-11-09 09:52:43.818687+0100 0x25f0 Default 0x0 0 0 kernel: (AppleACPIPlatform) C
2020-11-09 09:52:43.818690+0100 0x25f0 Default 0x0 0 0 kernel: (AppleACPIPlatform) C
2020-11-09 09:52:43.818692+0100 0x25f0 Default 0x0 0 0 kernel: (AppleACPIPlatform) 0
2020-11-09 09:52:43.818694+0100 0x25f0 Default 0x0 0 0 kernel: (AppleACPIPlatform) 0
2020-11-09 09:52:43.818698+0100 0x25f0 Default 0x0 0 0 kernel: (AppleACPIPlatform) ,
2020-11-09 09:52:43.818700+0100 0x25f0 Default 0x0 0 0 kernel: (AppleACPIPlatform) ,
2020-11-09 09:52:43.818704+0100 0x25f0 Default 0x0 0 0 kernel: (AppleACPIPlatform) 0x80
2020-11-09 09:52:43.818707+0100 0x25f0 Default 0x0 0 0 kernel: (AppleACPIPlatform) 0x80
2020-11-09 09:52:43.818710+0100 0x25f0 Default 0x0 0 0 kernel: (AppleACPIPlatform) )
2020-11-09 09:52:43.818712+0100 0x25f0 Default 0x0 0 0 kernel: (AppleACPIPlatform) )
2020-11-09 09:52:43.818716+0100 0x25f0 Default 0x0 0 0 kernel: (AppleACPIPlatform) // Status Change
2020-11-09 09:52:43.818719+0100 0x25f0 Default 0x0 0 0 kernel: (AppleACPIPlatform) // Status Change
2020-11-09 09:52:43.818724+0100 0x25f0 Default 0x0 0 0 kernel: (AppleACPIPlatform)
2020-11-09 09:52:43.818726+0100 0x25f0 Default 0x0 0 0 kernel: (AppleACPIPlatform)
2020-11-09 09:52:43.818746+0100 0x25f0 Default 0x0 0 0 kernel: (AppleACPIPlatform)
2020-11-09 09:52:43.818751+0100 0x25f0 Default 0x0 0 0 kernel: (AppleACPIPlatform)
2020-11-09 09:52:43.818758+0100 0x25f0 Default 0x0 0 0 kernel: (AppleACPIPlatform) No Local Variables are initialized for method [_Q04]
2020-11-09 09:52:43.818763+0100 0x25f0 Default 0x0 0 0 kernel: (AppleACPIPlatform) No Local Variables are initialized for method [_Q04]
2020-11-09 09:52:43.818771+0100 0x25f0 Default 0x0 0 0 kernel: (AppleACPIPlatform)
2020-11-09 09:52:43.818773+0100 0x25f0 Default 0x0 0 0 kernel: (AppleACPIPlatform)
2020-11-09 09:52:43.818780+0100 0x25f0 Default 0x0 0 0 kernel: (AppleACPIPlatform) No Arguments are initialized for method [_Q04]
2020-11-09 09:52:43.818784+0100 0x25f0 Default 0x0 0 0 kernel: (AppleACPIPlatform) No Arguments are initialized for method [_Q04]
2020-11-09 09:52:43.818792+0100 0x25f0 Default 0x0 0 0 kernel: (AppleACPIPlatform)
2020-11-09 09:52:43.818795+0100 0x25f0 Default 0x0 0 0 kernel: (AppleACPIPlatform)
2020-11-09 09:52:43.818807+0100 0x25f0 Default 0x0 0 0 kernel: (AppleACPIPlatform) ACPI Error:
2020-11-09 09:52:43.818809+0100 0x25f0 Default 0x0 0 0 kernel: (AppleACPIPlatform) ACPI Error:
2020-11-09 09:52:43.818817+0100 0x25f0 Default 0x0 0 0 kernel: (AppleACPIPlatform) Method parse/execution failed
2020-11-09 09:52:43.818819+0100 0x25f0 Default 0x0 0 0 kernel: (AppleACPIPlatform) Method parse/execution failed
2020-11-09 09:52:43.818829+0100 0x25f0 Default 0x0 0 0 kernel: (AppleACPIPlatform) [\_SB.PCI0.LPCB.EC0._Q04] (Node ffffff937e637e70)
2020-11-09 09:52:43.818833+0100 0x25f0 Default 0x0 0 0 kernel: (AppleACPIPlatform) [\_SB.PCI0.LPCB.EC0._Q04] (Node ffffff937e637e70)
2020-11-09 09:52:43.818839+0100 0x25f0 Default 0x0 0 0 kernel: (AppleACPIPlatform) , AE_NO_MEMORY
2020-11-09 09:52:43.818842+0100 0x25f0 Default 0x0 0 0 kernel: (AppleACPIPlatform) , AE_NO_MEMORY
2020-11-09 09:52:43.818849+0100 0x25f0 Default 0x0 0 0 kernel: (AppleACPIPlatform) (20160930/psparse-632)
2020-11-09 09:52:43.818853+0100 0x25f0 Default 0x0 0 0 kernel: (AppleACPIPlatform) (20160930/psparse-632)
Have no idea why AE_NO_MEMORY
/AcpiOsIdleQueue exhausted
happened, maybe the EC is slow to respond?
Have no idea why
AE_NO_MEMORY
/AcpiOsIdleQueue exhausted
happened, maybe the EC is slow to respond?
Could be. The logs appeared after bit in fact. Also, When updating YogaSMC, NC and pane I'm often experiencing slowdowns at login, boot failures (last was a hang) and KPs. I'm trying to get KPs logged on file for you to have a look at
If you have enabled ApplePanic
in OC, then related log files will be available at the root of your EFI partition.
Unfortunately I lost those and didn't get those on Big Sur (just hangs), but I'll update to last commit and see what happens Meanwhile:
Do you have each press of EC hotkey recognized in Linux?
I just tested those and they are all working, apart from F9 and F10 (Lock Screen and Display mode, but I guess it has to do with Ubuntu Live USB)
Now, after rebooting from Ubuntu (I was booting to enable ApplePanic) it is hanging here
So I force rebooted and then it hanged at Apple logo loading (after graphics loaded). At third boot it booted
How about booting without this kext? Sounds like MT2 driver issues.
How about booting without this kext? Sounds like MT2 driver issues.
Do you mean without YogaSMC? MT2 meaning VoodooI2C?
Yes. And the latter one sounds like Apple's driver.
I had it disabled in the last few days and had no problems, but I guess this is not very helpful
I'm retrying https://github.com/zhen-zen/YogaSMC/pull/41 as latest commits don't give me any info in the log
Do you recommend to always keep XOSI
patch? I don't have it atm
Yes. Since Linux also report itself as latest Windows.
Ok, just added XOSI and rebooted
Quite weird. Can you try removing the YogaWMI
entry in Info.plist
?
It happened exactly as before. Now it's stuck on apple logo IMG_0472.MOV.zip
Quite weird. Can you try removing the
YogaWMI
entry inInfo.plist
?
Sure, I'll force reboot and try
Quite weird. Can you try removing the
YogaWMI
entry inInfo.plist
?
KP finally! Then stuck at Apple Logo again
Log will be here in a sec
CR0: 0x000000008001003b, CR2: 0x0000000000000000, CR3: 0x000000001adf7000, CR4: 0x00000000003626e0
RAX: 0x0000000000000000, RBX: 0xffffff86a7dfbbe0, RCX: 0x0000000000000000, RDX: 0x0000000000000000
RSP: 0xffffffa06aa53cb0, RBP: 0xffffffa06aa53cd0, RSI: 0x0000000000000000, RDI: 0xffffff9367341870
R8: 0x0000000000000000, R9: 0x0000000000000000, R10: 0x0000000000000000, R11: 0x0000000000000000
R12: 0x0000000000000000, R13: 0x0000000000000000, R14: 0xffffff9367341870, R15: 0x00000000e00002c7
RFL: 0x0000000000010246, RIP: 0xffffff8005616e98, CS: 0x0000000000000008, SS: 0x0000000000000000
Fault CR2: 0x0000000000000000, Error code: 0x0000000000000000, Fault CPU: 0x4, PL: 0, VF: 1
Backtrace (CPU 4), Frame : Return Address
0xffffffa06aa536d0 : 0xffffff8004ebd66d
0xffffffa06aa53720 : 0xffffff8005000073
0xffffffa06aa53760 : 0xffffff8004ff06aa
0xffffffa06aa537b0 : 0xffffff8004e62a2f
0xffffffa06aa537d0 : 0xffffff8004ebcf0d
0xffffffa06aa538f0 : 0xffffff8004ebd1f8
0xffffffa06aa53960 : 0xffffff80056bfe1a
0xffffffa06aa539d0 : 0xffffff8004ff0a76
0xffffffa06aa53b50 : 0xffffff8004ff075d
0xffffffa06aa53ba0 : 0xffffff8004e62a2f
0xffffffa06aa53bc0 : 0xffffff8005616e98
0xffffffa06aa53cd0 : 0xffffff800561a88f
0xffffffa06aa53d30 : 0xffffff80091a116d
0xffffffa06aa53df0 : 0xffffff80055fdfe1
0xffffffa06aa53e60 : 0xffffff80055fdd7a
0xffffffa06aa53e80 : 0xffffff8004f02345
0xffffffa06aa53ef0 : 0xffffff8004f03254
0xffffffa06aa53fa0 : 0xffffff8004e6213e
Kernel Extensions in backtrace:
org.zhen.YogaSMC(1.2.1)[4183E33D-2EFF-39EE-858F-844CFE1EDB23]@0xffffff800917d000->0xffffff80091c5fff
dependency: as.vit9696.Lilu(1.5.0)[D44FCC5F-CB88-32FF-9C2B-59CE9969D4C0]@0xffffff8008b7d000->0xffffff8008ba6fff
dependency: as.vit9696.VirtualSMC(1.1.9)[A05D183D-9D34-31C8-8D55-8FE54DCE6C44]@0xffffff8008ba9000->0xffffff8008bbffff
dependency: com.apple.iokit.IOACPIFamily(1.4)[B9AEA347-5086-364F-932A-211B8CF8C661]@0xffffff80072af000->0xffffff80072b0fff
Process name corresponding to current thread: Unknown
Boot args: brcmfx-country=#a brcmfx-aspm alcid=15 -v chunklist-security-epoch=0 -chunklist-no-rev2-dev
Mac OS version:
Not yet set
Kernel version:
Darwin Kernel Version 20.1.0: Thu Oct 29 05:35:40 PDT 2020; root:xnu-7195.50.5~4/RELEASE_X86_64
Kernel UUID: 0FC1EF69-BB5B-336F-B8FB-C1121939CE17
KernelCache slide: 0x0000000004c00000
KernelCache base: 0xffffff8004e00000
Kernel slide: 0x0000000004c10000
Kernel text base: 0xffffff8004e10000
__HIB text base: 0xffffff8004d00000
System model name: MacBookPro16,2 (Mac-5F9802EFE386AA28)
System shutdown begun: NO
Panic diags file unavailable, panic occurred prior to initialization
Hibernation exit count: 0
System uptime in nanoseconds: 3834453408
Last Sleep: absolute base_tsc base_nano
Uptime : 0x00000000e58d0400
Sleep : 0x0000000000000000 0x0000000000000000 0x0000000000000000
Wake : 0x0000000000000000 0x00000008314bfcea 0x0000000000000000
Can you add keepsyms=1
to boot-arg
? It will print some more details.
Can you add
keepsyms=1
toboot-arg
? It will print some more details.
Yes, It's always too late when I realise, sorry Of course now I rebooted and no KP
After a few hangs, here it is
CR0: 0x000000008001003b, CR2: 0x0000000000000000, CR3: 0x00000000179f7000, CR4: 0x00000000003626e0
RAX: 0x0000000000000000, RBX: 0xffffff86a4980d70, RCX: 0x0000000000000000, RDX: 0x0000000000000000
RSP: 0xffffffa0675dbcb0, RBP: 0xffffffa0675dbcd0, RSI: 0x0000000000000000, RDI: 0xffffff9363ec66e0
R8: 0x0000000000000000, R9: 0x0000000000000000, R10: 0x0000000000000000, R11: 0x0000000000000000
R12: 0x0000000000000000, R13: 0x0000000000000000, R14: 0xffffff9363ec66e0, R15: 0x00000000e00002c7
RFL: 0x0000000000010246, RIP: 0xffffff8002216e98, CS: 0x0000000000000008, SS: 0x0000000000000000
Fault CR2: 0x0000000000000000, Error code: 0x0000000000000000, Fault CPU: 0x4, PL: 0, VF: 1
Backtrace (CPU 4), Frame : Return Address
0xffffffa0675db6d0 : 0xffffff8001abd66d mach_kernel : _handle_debugger_trap + 0x3dd
0xffffffa0675db720 : 0xffffff8001c00073 mach_kernel : _kdp_i386_trap + 0x143
0xffffffa0675db760 : 0xffffff8001bf06aa mach_kernel : _kernel_trap + 0x55a
0xffffffa0675db7b0 : 0xffffff8001a62a2f mach_kernel : _return_from_trap + 0xff
0xffffffa0675db7d0 : 0xffffff8001abcf0d mach_kernel : _DebuggerTrapWithState + 0xad
0xffffffa0675db8f0 : 0xffffff8001abd1f8 mach_kernel : _panic_trap_to_debugger + 0x268
0xffffffa0675db960 : 0xffffff80022bfe1a mach_kernel : _panic + 0x54
0xffffffa0675db9d0 : 0xffffff8001bf0a76 mach_kernel : _sync_iss_to_iks + 0x2c6
0xffffffa0675dbb50 : 0xffffff8001bf075d mach_kernel : _kernel_trap + 0x60d
0xffffffa0675dbba0 : 0xffffff8001a62a2f mach_kernel : _return_from_trap + 0xff
0xffffffa0675dbbc0 : 0xffffff8002216e98 mach_kernel : __ZN10IOWorkLoop13_maintRequestEPvS0_S0_S0_ + 0x28
0xffffffa0675dbcd0 : 0xffffff800221a88f mach_kernel : __ZN13IOCommandGate9runActionEPFiP8OSObjectPvS2_S2_S2_ES2_S2_S2_S2_ + 0xaf
0xffffffa0675dbd30 : 0xffffff8005da116d org.zhen.YogaSMC : __ZN7YogaSMC13setPowerStateEmP9IOService + 0x1fd
0xffffffa0675dbdf0 : 0xffffff80021fdfe1 mach_kernel : __ZN9IOService19driverSetPowerStateEv + 0x1f1
0xffffffa0675dbe60 : 0xffffff80021fdd7a mach_kernel : __ZN9IOService15pmDriverCalloutEPS_ + 0x2a
0xffffffa0675dbe80 : 0xffffff8001b02345 mach_kernel : _thread_call_delayed_timer + 0x4a5
0xffffffa0675dbef0 : 0xffffff8001b03254 mach_kernel : _thread_call_delayed_timer + 0x13b4
0xffffffa0675dbfa0 : 0xffffff8001a6213e mach_kernel : _call_continuation + 0x2e
Kernel Extensions in backtrace:
org.zhen.YogaSMC(1.2.1)[4183E33D-2EFF-39EE-858F-844CFE1EDB23]@0xffffff8005d7d000->0xffffff8005dc5fff
dependency: as.vit9696.Lilu(1.5.0)[D44FCC5F-CB88-32FF-9C2B-59CE9969D4C0]@0xffffff800577d000->0xffffff80057a6fff
dependency: as.vit9696.VirtualSMC(1.1.9)[A05D183D-9D34-31C8-8D55-8FE54DCE6C44]@0xffffff80057a9000->0xffffff80057bffff
dependency: com.apple.iokit.IOACPIFamily(1.4)[B9AEA347-5086-364F-932A-211B8CF8C661]@0xffffff8003eaf000->0xffffff8003eb0fff
Process name corresponding to current thread: Unknown
Boot args: brcmfx-country=#a brcmfx-aspm alcid=15 -v keepsyms=1 chunklist-security-epoch=0 -chunklist-no-rev2-dev
Mac OS version:
Not yet set
Kernel version:
Darwin Kernel Version 20.1.0: Thu Oct 29 05:35:40 PDT 2020; root:xnu-7195.50.5~4/RELEASE_X86_64
Kernel UUID: 0FC1EF69-BB5B-336F-B8FB-C1121939CE17
KernelCache slide: 0x0000000001800000
KernelCache base: 0xffffff8001a00000
Kernel slide: 0x0000000001810000
Kernel text base: 0xffffff8001a10000
__HIB text base: 0xffffff8001900000
System model name: MacBookPro16,2 (Mac-5F9802EFE386AA28)
System shutdown begun: NO
Panic diags file unavailable, panic occurred prior to initialization
Hibernation exit count: 0
System uptime in nanoseconds: 3960043791
Last Sleep: absolute base_tsc base_nano
Uptime : 0x00000000ed3fc308
Sleep : 0x0000000000000000 0x0000000000000000 0x0000000000000000
Wake : 0x0000000000000000 0x000000075306ffae 0x0000000000000000
It's weird that the kext failed at this stage, since the first setPowerState will be skipped. This part is not related to specific models, I'm also on Big Sur but have't got such issues. Which version do you have? It changed a lot since last release.
I’m on last beta. 11.0.1 Had similar problems on Catalina, too
Hmmm, I mean the kext version. Also, do you have issues with the alter one?
Lol sorry, I suspected that. I’m on https://github.com/zhen-zen/YogaSMC/pull/41
Never tried alter. What’s changed there?
The alter one don't support SMC integration. Since all readings are from EC, maybe that part breaks.
I’ll test that one. Should I try last commits on master and forget about the PR?
Latest YogaSMCAlter is booting fine. I now noticed a line in the preverbose of OC
Dependency com.apple.iokit.IOHIDSystem fallback to com.apple.iokit.IOHIDFamily succeeded. Please fix your kext!
Dependency com.apple.iokit.IOHIDSystem fallback to com.apple.iokit.IOHIDFamily succeeded. Please fix your kext!
This one I solved, and I realized my hang problems could be related to GPRW (or just my ACPI patches in general) so I need to rework the fix for POWS, which I previously solved through DSDT, into an SSDT. Here are the very last original ACPIs. The error is POWS is not found, and to solved I declared it like so
Is it right? How could I do it with an SSDT?
Latest YogaSMCAlter is booting fine. I now noticed a line in the preverbose of OC
Dependency com.apple.iokit.IOHIDSystem fallback to com.apple.iokit.IOHIDFamily succeeded. Please fix your kext!
Oh, I forgot to remove it from alter one.
Dependency com.apple.iokit.IOHIDSystem fallback to com.apple.iokit.IOHIDFamily succeeded. Please fix your kext!
This one I solved, and I realized my hang problems could be related to GPRW (or just my ACPI patches in general) so I need to rework the fix for POWS, which I previously solved through DSDT, into an SSDT. Here are the very last original ACPIs. The error is POWS is not found, and to solved I declared it like so
Is it right? How could I do it with an SSDT?
No. DON'T insert anything into field declaration as the address are fixed for each variable. Just create an empty Name (POWS, Zero)
and leave it along.
No. DON'T insert anything into field declaration as the address are fixed for each variable. Just create an empty
Name (POWS, Zero)
and leave it along.
Seems to be solved with this
I tried updating to latest release. Hotkeys are recognised fine, so this is the situation
log stream --predicate 'processID=0 && (senderImagePath contains "YogaSMC" OR senderImagePath contains "ACPI")'
Along with POWS fix I started revising my ACPI patches to cleanup and try to remove any conflict they might be having with this kext. I still have a couple errors so I need to dig more. Here is a bootlog
Good news! Figured out some things
- random hangs like this (usually when I update YogaSMC.kext and NC)
Not always a problem. Only happens with debug versions Nevermind. It just happened on release version
- Pane not working
Solved by disabling SIP
- No logging at all with
log stream --predicate 'processID=0 && (senderImagePath contains "YogaSMC" OR senderImagePath contains "ACPI")'
This one I could not figure out
Apart from this, conservation mode is working at last! I'm on release from last commit
Now two points remain unclear
I'm using BrightnessKeys, and it's working greatly by itself, but it seems not to like YogaSMC very much. In fact, when loading both of them in the config, brightness keys are vary unresponsive, and they block after a few keystrokes. If I could read the log it would probably show a timeout I guess.
I cannot enable RapidChargeMode, even though the option is present in the laptop advanced BIOS (and I enabled it today). This is not really a problem, just wanted to let you know
Thanks again for your really great work
- random hangs like this (usually when I update YogaSMC.kext and NC)
~Not always a problem. Only happens with debug versions~ Nevermind. It just happened on release version
It's quite weird that there would be difference between debug / release version.
- Pane not working
Solved by disabling SIP
I disabled SIP by default for kext development so I didn't recognized it could be an issue.However, it should still work. Later I will enable that and do some experiments.
- No logging at all with
log stream --predicate 'processID=0 && (senderImagePath contains "YogaSMC" OR senderImagePath contains "ACPI")'
This one I could not figure out
This seems to be a common issue for kexts injected by bootloader since Big Sur. However, it's still available from dmesg
. You can increase its buffer size with https://github.com/acidanthera/DebugEnhancer.
Apart from this, conservation mode is working at last! I'm on release from last commit
Maybe that's SIP issue?
Now two points remain unclear
- I'm using BrightnessKeys, and it's working greatly by itself, but it seems not to like YogaSMC very much. In fact, when loading both of them in the config, brightness keys are vary unresponsive, and they block after a few keystrokes. If I could read the log it would probably show a timeout I guess.
YogaSMC will actively poll EC regions for sensor readings. And notification to brightness keys are also received from EC. Maybe there could be potential conflict. Can you try the Alter version? Also, how about other hotkeys?
- I cannot enable RapidChargeMode, even though the option is present in the laptop advanced BIOS (and I enabled it today). This is not really a problem, just wanted to let you know
I left that checkbox disabled since it's not possible to tell whether this function is supported. And this method is not well documented in Linux. I can enabled it in debug version of prefpane.
It's quite weird that there would be difference between debug / release version.
There isn't. I was mislead by my laptop behaving strange
This seems to be a common issue for kexts injected by bootloader since Big Sur. However, it's still available from
dmesg
. You can increase its buffer size with https://github.com/acidanthera/DebugEnhancer.
I will look into it, thanks
Apart from this, conservation mode is working at last! I'm on release from last commit
Maybe that's SIP issue?
Could be. I will look into that as well, after we figure out those hang problems
YogaSMC will actively poll EC regions for sensor readings. And notification to brightness keys are also received from EC. Maybe there could be potential conflict. Can you try the Alter version? Also, how about other hotkeys?
There seems to be a problem with brightness on my machine, and it's showing even if I'm not using YogaSMC (as a matter or fact, other hotkeys have no problem at all). There is a strange correlation I can't see between the way I configure the trackpad, XOSI, and the way I configure brightness. I've been using @lietxia 's configuration for brightness (EFI here), and only recently switched to BrightnessKeys, but there have always been problems
I left that checkbox disabled since it's not possible to tell whether this function is supported. And this method is not well documented in Linux. I can enabled it in debug version of prefpane.
Thanks, I tried that but the setting seems to not be sticking (as it happened with ConservationMode before, even though that one is working now), but I don't really want to focus on this because of my unstable situation and what discussed above
Ok, I restarted fresh and moved one step at a time. Boot problems arise when adding XOSI patch (ACPI errors and hangs)
Here is what happens with BrightnessKeys. I have no YogaSMC at the moment, to isolate brightness issues Basically after a few keystrokes they stop working, then keyboard stops working and the whole system stops responding. BrightnessKeys.mov.zip
Here is the EFI.zip
How was that with the old XQXX
approach? I will later check the efi and the video later when I have my laptop.
How was that with the old
XQXX
approach? I will later check the efi and the video later when I have my laptop.
Just the same. The only way to not to run into this problem was this by Lietxia, but it's not working with XOSI. And also I can't really understand why it's working
You don't need that superfluous I2C SSDT with latest VoodooI2C and XOSI
. If you want to force polling mode, check out https://github.com/VoodooI2C/VoodooI2C/pull/398
Right, in fact I got it to work with interrupts a few days ago by setting GPHD to Zero
Wow, now that I reapplied GPI0 patch and rebooted a few times, brightness seems to keep working and system doesn't freeze anymore. I'll try disabling XQXX
renames and give BrightnessKeys another try. I'll let you know in a few minutes
Ok, all seems fine. BrightnessKeys is working properly, trackpad too. I will now add YogaSMC and see what happens
Sorry for having dragged you into these desparate experiments
Inserted YogaSMC, updated NC and pane. At first reboot it was stuck at boot. At second reboot it started, and now brightness keys are "lagging", kinda unresponsive, so we're back at this
- I'm using BrightnessKeys, and it's working greatly by itself, but it seems not to like YogaSMC very much. In fact, when loading both of them in the config, brightness keys are vary unresponsive, and they block after a few keystrokes. If I could read the log it would probably show a timeout I guess.
YogaSMC will actively poll EC regions for sensor readings. And notification to brightness keys are also received from EC. Maybe there could be potential conflict. Can you try the Alter version? Also, how about other hotkeys?
I will retry Alter version. Also, other hotkeys are fine and responsive as usual
Just to keep track of everything, here is my EFI.zip
Edit: Alter version booted fine so far (3 out of 3 times), but when using it keys are still a bit unresponsive when pressing them quickly multiple times (not a big deal, but I verified that without YogaSMC they are really responsive)
Also, I set msgbuf=1048576
into boot-args for VoodooI2C. Is it ok to debug YogaSMC too? Could I ask you how to use dmesg
to obtain live output? I researched its usage but couldn't find a working way
You can remove msgbuf=1048576
if you have DebugEnhancer, but they should be the same and apply for both kexts.
And unfortunately, the dmesg
from macOS don't support arguments like -w
. iirc watch
didn't act as expected when the content is filtered.
There could be some issues with EC when it's polled actively for sensor readings (per 2sec by default), which is the case for non-Alter one. Currently I'm unable to find possible workarounds.
Btw, can you provide related logs when the hotkey is not responsive? I wonder if there are more retries or just late notifications.
Hi, as you know, my device has problems activating Conservation Mode (it works under Linux) Here are my ACPI tables
I'm currently using https://github.com/zhen-zen/YogaSMC/pull/22, and the result is something like this