-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Thinkpad L390 Yoga: testing and feedback #68
Comments
|
ok, sorry for the question.
It doesn't seem difficult, I'll try. I'm not an expert unfortunately
I like the menu bar icon. Maybe the idea could be to hide the fan-control slider if there is a fan reading problem (and hide also the fan reading problem message on login). For the moment I'll hide the icon.
I don't know how my LED work except for micmute led. If the method Thanks for the fast reply! EDIT: I'm also offering for an Italian translation of the app. If you were planning to give the possibility to create language files I could help for Italian |
Dust clean mode is usually provided with OEM software, i.e. Vantage. i18n is also scheduled for next release. I have started separating those strings, but got busier recently. |
No dust clean mode on vantage for this laptop. Speed Fan doesn't recognize any fan controller but only the temperature. I will report to Lenovo, but maybe SMI interface isn't available on this laptop. Ok, let me know if I can help. Thanks for your work. EDIT: Sorry, should this kext make the brightness keys work? Because for me they won't, so I re-enabled the renames and the SSDT for the two methods |
What's the temperature?
You will need https://github.com/acidanthera/BrightnessKeys for that and check the readme. |
I have just implemented i18n and yoga mode support. And in DSDT, there's no method called |
Okay, good to know. I'll eventually have to figure out how CSSI Method works. At the moment there seems to be no problem with the synchronization of the LEDs Another question: at the moment |
Just rename it to |
I forgot to comment on this. Edit: by the way, you won't need that remap once acidanthera/VoodooPS2#33 is merged. |
Please try whether ca8ed08 works for you. |
It works, thanks. In Big Sur adding prefpane files often doesn't work. Even if I allow the execution of the prefpane from the "Security and Privacy" menu, it often shows a message "Unable to open YogaSMCPane.prefpane ...". The only way to fix the problem is:
It could be useful for other users @zhen-zen only if you have time, I would propose to customize the behavior of the "Star" Hotkey (F12). On screen I see the message "Custom Hotkey" but it is not that custom |
I suppose it's possible press alt + click the app / prefpane for quarantine. Actually current customization is only limited to AppleScript (although it can do a lot of things). After quitting the app, you can change its name and the script to execute (default one is open prefpane). |
I would propose, if possible, to add an option to activate keyboard backlight when typing and deactivating it after a custom interval. In the old linux days I used this script: https://github.com/saibotd/tp-auto-kbbl and it worked very well |
For prefpane this doesn't seem to work. You can add the prefpane while pressing alt, but then when you try to open it from preferences it asks for permission. If you allow the execution from Security and Privacy it says "Unable to open" (11.0.1). Maybe I'm the only one but I found that command useful. Do you have SIP on?
It will turn off the keyboard backlight when entering sleep state. Or is that handled by firmware on Think variant?
There could be kind of native emulation with virtual HID device or something like https://www.logcg.com/en/archives/2902.html. You can still open a new issue for that but recently I don't plan to implemented new user space features. |
Yes.
I did some tests:
Don't worry, just an idea. :) |
Can you try it with SIP off? I have |
Apparently no problems. However if you click that “Open Anyway” for me often it doesn’t work. After allowing to open the prefpane it says “unable to load the prefpane” or something similar. @zhen-zen i noticed a problem in ACPI, from logs I see this:
From my DSDT
So it requires an argument. I am not sure if it's the kext that calls it or something else. In my DSDT the method is never called, and in my IOReg YogaWMI is linked to AMW0. |
The driver will try to parse available WMI description, which is not critical since it's just human readable entires. However, there's no indication which guid contains that information. So it will try to evaluate entries with instance_count 0x1 and flags 0x0, which is usually a large blob buffer so no argument are required. You can ignore this warning since required type shouldn't take an argument. Current approach will only try the first matched guid. I just opened #78 which would stop after found matching ones. |
Tried the build, the ACPI error disappeared so I think that it worked 👍 Thanks Unfortunately on my Thinkpad setting battery charge threshold doesn't seem to work. It's a minor problem because my battery seems to have a default threshold of 95% (for MacOS it doesn't charge over this limit). Maybe a SSDT for BAT is needed, I haven't found any info on the readme though. Let me know how I can provide additional info if you eventually want to investigate the issue |
Please try if it works under linux. https://github.com/torvalds/linux/blob/master/Documentation/admin-guide/laptops/thinkpad-acpi.rst |
And that ACPI warning should still present. Can you try the last commit there? |
The problem is here again with https://github.com/zhen-zen/YogaSMC/actions/runs/386348029 . With https://github.com/zhen-zen/YogaSMC/actions/runs/379956818 it was disappeared. In linux I can set the battery threshold with TLP |
Only laptop and tablet mode (last 2 bytes) is recognized according to the log. Can you get other modes with different angles? |
Hi @zhen-zen , |
Can you try #121 and find if there might be more modes in the log? |
If the laptop is rotated 360degrees. Nothing happens at 180 degrees |
I just fixed a bug there and now the evaluation should not fail. Also, I wonder if you can get tablet mode recognized with HID Sensor disabled in Device Manager (Win). |
In Windows tablet mode still works when rotated at 180° With your new kext:
No way to show other raw modes |
Hmmm, then the driver in Windows should just rely on the input from It's weird that other modes are skipped. Can you check the value of By the way, do you have ACPI warnings from |
A few updates, there are some ACPI warnings when the screen is rotated 360° and your kext detects it, nothing when it's rotated 180 degrees or other values.
I don't know what these two methods are, but in my dsdt they are defined as:
The argument is never required inside the method, I don't know if patching the DSDT to require no args can help. I also tried to read EC fields (EC access is R/W)
It becomes 0x04 when flipped 360 but it doesn't change with other values |
Can you try |
I'm really sorry for the delay. That command returns 0 if the laptop isn't in tablet mode, instead it returns 1 if the laptop is in tablet mode. WIth linux the laptop goes in tablet mode after a rotation of 180 degrees, as it should (like in windows). If the laptop is rotated 360 degrees the result is still 1 |
Currently waiting for other ThinkPad Yoga users for feedback. The implementation should follow the linux one unless different sensor is being used. |
Hi @zhen-zen , don't worry. When I will have some time I'll try to debug ACPI on linux and see if something changes. I'd report another issue, not big though. On windows I have only two modes about performance (the same options I find in the bios): On YogaSMC i find three options: |
DYTC implements several sets of functions and currently we are unable to tell which one is available. The driver follows the logic from Linux and that's the only documented source. According to your DSDT, DYTC doesn't support DYTC_MODE_QUIET for DYTC_FUNCTION_MMC. Can you try debug kext + DebugEnhancer and record the DYTC mode in dmesg log after changing it in Windows? |
It seems that the log is the same, if I boot after selecting "performance" in windows:
After "Quiet":
Maybe a firmware issue, who knows. Thanks as always |
Sorry, can you try the latest master build again? Command 0x0 is just for query DYTC version, 0x2 should be get current DYTC status. |
Done. Quiet:
Performance:
|
It's weird. Both modes has the same standard (intelligent cooling) DYTC setting. I guess your case is the same as @1Revenger1 , but PSC mode is not available on yours. |
Nice, this laptop doesn't make a sense. What does the different result that returns from 0x3 mean? |
Command 0 is for revision, command 2 is for getting current status, and command 3 is for available functions. You can check |
Hi @zhen-zen , I would suggest to disable the detection of tablet/laptop mode when "Clamshell mode" is selected in yogasmc preference pane (and an external monitor is connected) |
Please try the latest commit. You are welcome. |
This commit (https://github.com/zhen-zen/YogaSMC/actions/runs/1006578388 ) failed to build. |
The last one just disabled the workaround on Idea variant. But think variant should be good. Instead of just turning off the keyboard, it will set to clamshell status (on - keyboard on). What does the log say? |
After rotation, with black built-in screen and external monitor attached, "tablet mode" popup appears on external monitor. Keyboard is disabled, touchpad keeps working.
|
Sorry for the late response. It could be an additional key. Can you try #148 ? |
Please try build on master branch that filters Yoga mode notification. #148 is closed. |
Sorry for the late response. I tried this commit: 458c933 EDIT: unfortunately, it happens also without an external monitor. If "Clamshell mode" is selected in the preference panel of YogaSMC, tablet mode doesn't work (if you rotate the screen, "tablet mode" popup does not appear, keyboard is disabled but touchpad keeps working). |
Maybe try it without YogaSMC? |
Hi, how do i fix this "ec access unavailable see ssdt-ecrw.dsl" ? i'm getting this alert in my t480s. should I ignore it or its something should I care to fix |
The perfect os for lenovo thinkpad 360 yoga whst is it? |
Good evening and thanks for all your work. I switched from Thinkpad assistant with all the ACPI renames to this kext and it works almost out of the box so you did a great job.
I wanted to report some errors:
This avoids that clicking the Print key on the keyboard disables the trackpad. I don't know if it has something to do with this problem.
If I rotate my screen in tablet mode I see: event:0x60f0:0 . Can I remove it?
I see "fan reading error" on login. I installed all the SSDT files according to my EC path, but on this laptop it was impossible to read Fan also on windows or linux (I think it's impossible in any case). How can I remove that message? Do you want to give a look to my DSDT?
Temperature control is useless without fan control, I think. Can I remove that part?
What should the "Led control" section do? Switching the sliders doesn't change anything for me
Class: Think; REL 130-2020-11-11; EC Access: RW
Thanks in advance
The text was updated successfully, but these errors were encountered: