Giter Club home page Giter Club logo

Comments (10)

PJungkamp avatar PJungkamp commented on August 15, 2024 1

Small update. I was offline for most of September and October. The fn-key patches are on their way to mainline.

from yoga9-linux.

PJungkamp avatar PJungkamp commented on August 15, 2024

The easiest patching process probably depends on your distribution's package manager. Or you install it manually using make.

So first of all, what distro are you using?

from yoga9-linux.

sidevesh avatar sidevesh commented on August 15, 2024

hey @PJungkamp and @olegpopovskiy , I am also working through fixing all issues with my recently purchased Yoga 7 14ACN6 laptop, which is also a convertible.
I was wondering if the patch for the shortcut keys (The Star with S and the others, the Star one is the only one present in my laptop) were submitted to mainline ?
I saw some discussion regarding figuring out how to get it to mainline but didn't see any updates about it on the thread about it.

from yoga9-linux.

sidevesh avatar sidevesh commented on August 15, 2024

Oh, and I am also using Arch as you @PJungkamp so a simple write up the process would help me out too :)

from yoga9-linux.

PJungkamp avatar PJungkamp commented on August 15, 2024

I've only submitted the Audio patch until now.
I was busy with my exams.

Did you check out the README in the packaging/arch/ directory?

from yoga9-linux.

sidevesh avatar sidevesh commented on August 15, 2024

Thanks @PJungkamp , saw the discussion on the mailing lists about the fn-keys patch getting into the mainline, great work!
Also saw that the ideapad-laptop not exposing rapid charge issue's fix didnt make it through, I am thinking of creating a gnome extension or adding support for it in an existing Ideapad controls gnome extension in the meantime by making direct acpi calls,
we have https://aur.archlinux.org/packages/ideapad-wmi-fn-keys-dkms-git for enabling the fn keys in the meantime till the mainline support gets released,
I have also made a dkms module from your usage mode patch that is available at https://aur.archlinux.org/packages/ideapad-wmi-usage-mode-dkms-git (doesn't work for me though yet)
Only thing remaining atleast for my laptop (Yoga 7 14ACN6) is exposing the keyboard backlight controls,
and the fingerprint sensor but that's a whole other issue.

from yoga9-linux.

PJungkamp avatar PJungkamp commented on August 15, 2024

I already know how to configure the keyboard backlight via acpi_call. I just haven't bothered to write a patch for that yet.

The parameter values needed to control the keyboard backlight on my Yoga can be found here:
https://github.com/PJungkamp/yoga9-linux/tree/main/acpi-dump#readme

The basic idea is:

  1. Store the type of keyboard backlight here.
  2. Set keyboard type to KBLC and kbd_bl to 1 if the function is found on the adev here.
  3. Adapt this code to call the KBLC acpi function if it is present.
  4. ...
  5. $$ profit $$

I noticed that it's also possible to get notifications when the backlight changes automatically.
That's the Dynamic KB Lighting sensor in the sensors.txt. But it's an Intel sensor again. Probably no use on AMD.

from yoga9-linux.

stuarthayhurst avatar stuarthayhurst commented on August 15, 2024

@PJungkamp

I've got the Yoga 7 AMD 14ARB7, and the backlight control seems to be \_SB.PCI0.LPC0.EC0.VPC0.KBLC on my laptop. Sadly the values you have in your table don't do anything for mine, so I was wondering how you came across them? Hopefully the only difference is the argument required :)

from yoga9-linux.

PJungkamp avatar PJungkamp commented on August 15, 2024

I read the ACPI tables, reverse-engineering what input would result in a code path in the ASL that seemed somewhat promising...

You could also try tracing the ACPI calls Windows is doing.

It's somewhat difficult either way.
As you're poking around in your firmware's memory you should also be careful. You could easily trigger slumbering bugs in unused code paths.

I mostly noted the KBLC commands that did the trick for me as a note to myself. I just didn't have any motivation to build a driver for a feature that's a shortcut away.

from yoga9-linux.

stuarthayhurst avatar stuarthayhurst commented on August 15, 2024

Thanks for the info. I'll probably leave it for now then, as I have 101 other problems to fix that don't involve prodding the firmware.

from yoga9-linux.

Related Issues (14)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.