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

UM5302LA Touchpad Workaround #113

Open
SaNch0sE opened this issue Sep 20, 2023 · 0 comments
Open

UM5302LA Touchpad Workaround #113

SaNch0sE opened this issue Sep 20, 2023 · 0 comments

Comments

@SaNch0sE
Copy link

I have Asus Zenbook S13 OLED 2023 Ryzen 7840U version - UM5302LA
On my laptop this driver works well, but I had few issues, that I fixed by changing asus_touchpad.py

  1. My touchpad has only 2 states (or maybe another brightness values), so what I did is deleted the value that didn't do anything (line 147):
# Brightness 31: Low (deleted), 24: Half, 1: Full

BRIGHT_VAL = [hex(val) for val in [24, 1]]

1.a. Also, I changed default level of brightness, so touchpad led is on when I'm enabling numpad (line 203):

# Set default level of brightness to ON state
brightness: int = 1
  1. Calculator key and palm rejection
    2.a. Calculator key - probably Gnome issue, but need to mention - I didn't have shortcut for calculator, so I set it manually
    2.b. Due to some palm rejection issues, I changed logic for calculator key on touchpad (line 260):
          # Check if caclulator was hit #
          elif (x < 0.06 * maxx) and (y < 0.07 * maxy):
              if numlock:
          #       Disabling old logic, because touchpad doesn't have brightness levels
          #       brightness = change_brightness(brightness)
          #
          #       Launch calculator only when numpad is on
                  launch_calculator()
              else:
                  pass
              continue

After this fixes, touchpad\numpad is working great

@SaNch0sE SaNch0sE changed the title UM5302LA Workaround UM5302LA Touchpad Workaround Sep 20, 2023
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

No branches or pull requests

1 participant