mohamed-badaoui / asus-touchpad-numpad-driver

Activate Numpad inside the touchpad with top right corner switch
299 stars 70 forks source link

Info about UM5401QA - Zenbook 14X Oled #102

Open Tobiaqs opened 2 years ago

Tobiaqs commented 2 years ago

Device config for this device is m433ia.

Brightness control does not work out of the box on this device.

The panel needs to be switched on and off, brightness set separately (as far was I was able to determine)

Here are the int/hex values for commands

Action Int Hex
Turn on LED 1 0x01
Turn off LED 0 0x00
Brightness level 1 65 0x41
Brightness level 2 66 0x42
Brightness level 3 67 0x43
Brightness level 4 68 0x44
Brightness level 5 69 0x45
Brightness level 6 (brightest) 70 0x46

In terms of BRIGHT_VAL array:

# High res
BRIGHT_VAL = [hex(val) for val in [70, 69, 68, 67, 66, 65, 0]]

# Low res
BRIGHT_VAL = [hex(val) for val in [70, 68, 66, 0]]

This needs some adaptations to the code, because the panel needs to be explicitly turned on and brightness needs to be kept in sync with the panel. See my fork for an example (it is a bit hacky but don't have time to properly add support)