YogaSMC
YogaSMC copied to clipboard
Pane: Indicator "LED Automation" resets to "on" on reboot
I'm playing with ACPI-S0 on my X1C6. Therefor I want to disable the LED Automation for "Indicator". It works but gets reset to "enabled" on reboot.
The NC app should save current led settings when exiting and re-apply then at start-up. Maybe you can check the value in ioreg since the prefpane will not be updated until system preferences is reopened.
Hmm, so it's expected to not apply until the prefpane is opened? That would kill it for my (test-)usecase as it will put the leds in the wrong state on sleep until the prefpane is opened after a restart - which seems unrealistic/uncomfortable. Any chance that could change?
No. That option should be turned off once. And after quitting the NC that time, the app will save the config without this option and re-apply the new value on next startup.
Hmm, it doesn't seem to save anything related in defaults read org.zhen.YogaSMC
. Am I missing smth?
It should be saved along with other events here https://github.com/zhen-zen/YogaSMC/blob/master/YogaSMCNC/AppDelegate.swift#L331
Just checked mine using defaults read org.zhen.YogaSMC AutoBacklight
and new value is saved after quitting the app.
Are there any updates?
I was trying to manually edit org.zhen.YogaSMC.plist. I want to change the "Custom Hot Key". However, the file is overwritten every time I start the NC. It won't be changed at all.
You will need to stop it first before making any changes. The app will save current events when exiting thus overwriting yours.
Does the app register with the kext? I felt I have met ghost. I actually change the code to replace prefpaneAS to open another app and recompile, but my re-compiled version still open the Yoga prefpane. Only a reboot made the change.
No, kext will only send the event and it's the app that decide what to do next in userspace. I suppose you will need to clean current events if hardcoded new ones.