Skip to content

Commit

Permalink
#3 connected to custom driver which identify by accel data tablet mode
Browse files Browse the repository at this point in the history
  • Loading branch information
ldrahnik committed Jan 7, 2024
1 parent 81f777c commit ebdaf3f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions asus_fliplock.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ def search_devices():
switches_detected = 1
log.debug('Detect switches from %s', line.strip())

# Look for the device wmi hotkeys
if wmi_hotkeys_detected == 0 and ("Name=\"Asus WMI hotkeys" in line):
# Look for the device wmi hotkey or https://github.com/asus-linux-drivers/asus-accel-tablet-mode-driver
if wmi_hotkeys_detected == 0 and (("Name=\"Asus WMI hotkeys" in line and tries == 4) or ("Name=\"Asus WMI accel tablet mode" in line and tries == 5)):
wmi_hotkeys_detected = 1
log.debug('Detect wmi hotkeys from %s', line.strip())

Expand Down

0 comments on commit ebdaf3f

Please sign in to comment.