Skip to content
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

Support for Katana GF76-11UC, 17L2EMS1.108 #139

Closed
wants to merge 2 commits into from

Conversation

Waujito
Copy link
Contributor

@Waujito Waujito commented Jul 2, 2024

Support Katana GF76-11UC (#138)

List of changes:

  • Support for reverse fan speed.
    On tihs platform fan speed is reversed (more value in ec -> less fan speed). This PR adds a workaround for this problem without break of existing APIs.
    A one problem keeps: In fact fan speed takes 2 bytes (for me, 0xc8 and 0xc9) but the module supports only one byte (0xc9).
    On my laptop CPU fan speed is inversed so when fan gets slow it turns out to be (0x00 0xfa -> 0x00 0xff -> 0x01 0x08) Which may lead to EINVAL (when it reads 0x08 and compares it with maximum speed). But this is not critical because such a big value is reported for about 1 second and only when fan is about to stop and become 0x00 0x00.
  • Fix keyboard brightness reset on module exit.
    By default kernel triggers the setter on led_classdev_unregister which
    leads to keyboard brightness reset (the keyboard backlight turns off).
    This behavior may cause resets every system reboot. Also it's quite
    annoying in development.

On some platforms fan speed is reversed (more value in ec -> less fan
speed). This commit adds a workaround for this problem without break of
existing APIs.
@glpnk
Copy link
Contributor

glpnk commented Jul 2, 2024

You shouldn't use RPM values, this thing is broken by design.

Technically, you can add RPM values and read them separately. This also will require separating %RPM and RPM addresses, which was broken when EC map was badly researched

By default kernel triggers the setter on led_classdev_unregister which
leads to keyboard brightness reset (the keyboard backlight turns off).
This behavior may cause resets every system reboot. Also it's quite
annoying in development.
@Waujito
Copy link
Contributor Author

Waujito commented Sep 13, 2024

As the driver with support for fan speed in sensors is out, I think this PR is obsolete. The only thing I want to keep is Fix keyboard brightness reset on module exit. commit because it is annoying to see light swithces for keyboard backlight when the driver exists.

@teackot
Copy link
Collaborator

teackot commented Nov 2, 2024

The only thing I want to keep is Fix keyboard brightness reset on module exit. commit

Alright, I cherry-picked it bfce260. And added a docs entry for Katana GF76 11UC

@teackot teackot closed this Nov 2, 2024
@teackot teackot mentioned this pull request Nov 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants