YogaSMC icon indicating copy to clipboard operation
YogaSMC copied to clipboard

Error mapping when connecting power and unplugging power

Open sunbos opened this issue 2 years ago • 5 comments

My laptop will incorrectly translate "Connect the power" and "Unplug the power" into backlightoff, what should I do

sunbos avatar Dec 22 '22 02:12 sunbos

Which laptop do you have?

Mifaxav avatar Dec 22 '22 04:12 Mifaxav

My laptop will incorrectly translate "Connect the power" and "Unplug the power" into backlightoff, what should I do

This seems to be a common issue for ideapad_laptop since both events send the same code. I'm not sure if there's a better way to distinguish them.

zhen-zen avatar Dec 22 '22 06:12 zhen-zen

My laptop:Yoga 9 15IMH5 I have a way to judge which one is plugged in and which one is unplugged from the DSDT Through the test, I found that_ Q50 is the Connect the power ,_ Q51 is Unplug the power 截屏2022-12-22 23 20 56

sunbos avatar Dec 22 '22 15:12 sunbos

This is my DSDT file System DSDT.dsl.zip

sunbos avatar Dec 22 '22 15:12 sunbos

Fn+Q(_Q78) AC power connecting(_Q50) AC power unplugging(_Q51) power button (_Q5F) laptop lid closed (_Q52) laptop lid opened (_Q53) Mixer output mute (F1) Volume down or unmute(F2) Volume up or unmute(F3) Microphone Mute (F4, _Q3D) Touchpad (F6,_Q22) Network (F7, _Q28) camera(F8,_Q2E) Brightness up (F12, _Q1C) Brightness down (F11, _Q1D) IdeaVPC kbd backlight (Fn+Space, _Q1F)

Now F8 can map the camera key correctly, but the camera cannot be turned off Fn+Q (_Q78) is always in Fn-Q cooling state IdeaVPC kbd backlight (Fn+Space, _Q1F), the keyboard backlight cannot be mapped correctly AC power connecting(_Q50) AC power unplugging(_Q51) Nor can it be mapped correctly

sunbos avatar Jan 04 '23 01:01 sunbos