iamkroot / asus-numpad

Linux driver for Asus laptops to activate numpad on touchpad
MIT License
34 stars 10 forks source link

Support for UM3406H #28

Open scientiac opened 2 weeks ago

scientiac commented 2 weeks ago

I haven't installed linux yet but I was testing the drivers from live fedora USB, the installation shows the following:

Using the rust driver:

liveuser@localhost-live:~/asus-touchpad-numpad-driver$ sudo asus-numpad 
Error: Couldn't get proc input devices

Caused by:
    Can't find touchpad evdev

and using python drivers:

Testing interface i2c-0 : failed
Testing interface i2c-1 : failed
Testing interface i2c-2 : sucess

Select models keypad layout:
1) gx701.py
2) m433ia.py
3) ux433fa.py
4) ux581l.py
5) Quit
Please enter your choice 

I chose m433ia but that do anything.

liveuser@localhost-live:~/asus-touchpad-numpad-driver$ LOG=DEBUG sudo -E ./asus_touchpad.py
DEBUG:Pad:Detect keyboard from N: Name="AT Translated Set 2 keyboard"
DEBUG:Pad:Set keyboard 2 from H: Handlers=sysrq kbd leds event2
DEBUG:Pad:Detect keyboard from N: Name="AT Translated Set 2 keyboard"
DEBUG:Pad:Set keyboard 2 from H: Handlers=sysrq kbd leds event2
DEBUG:Pad:Detect keyboard from N: Name="AT Translated Set 2 keyboard"
DEBUG:Pad:Set keyboard 2 from H: Handlers=sysrq kbd leds event2
DEBUG:Pad:Detect keyboard from N: Name="AT Translated Set 2 keyboard"
DEBUG:Pad:Set keyboard 2 from H: Handlers=sysrq kbd leds event2
DEBUG:Pad:Detect keyboard from N: Name="AT Translated Set 2 keyboard"
DEBUG:Pad:Set keyboard 2 from H: Handlers=sysrq kbd leds event2
ERROR:Pad:Can't find touchpad (code: 0)
liveuser@localhost-live:~/asus-touchpad-numpad-driver$ 
liveuser@localhost-live:~/asus-touchpad-numpad-driver$ sudo i2cdetect -l
i2c-0   i2c         Synopsys DesignWare I2C adapter     I2C adapter
i2c-1   i2c         Synopsys DesignWare I2C adapter     I2C adapter
i2c-2   i2c         Synopsys DesignWare I2C adapter     I2C adapter
i2c-3   i2c         AMDGPU DM i2c hw bus 0              I2C adapter
i2c-4   i2c         AMDGPU DM i2c hw bus 1              I2C adapter
i2c-5   i2c         AMDGPU DM i2c hw bus 2              I2C adapter
i2c-6   i2c         AMDGPU DM i2c hw bus 3              I2C adapter
i2c-7   i2c         AMDGPU DM i2c hw bus 4              I2C adapter
i2c-8   i2c         AMDGPU DM i2c hw bus 5              I2C adapter
i2c-9   i2c         AMDGPU DM i2c hw bus 6              I2C adapter
i2c-10  i2c         AMDGPU DM i2c hw bus 7              I2C adapter
i2c-11  i2c         AMDGPU DM i2c hw bus 8              I2C adapter
i2c-12  i2c         AMDGPU DM aux hw bus 0              I2C adapter
i2c-13  i2c         AMDGPU DM aux hw bus 2              I2C adapter
i2c-14  i2c         AMDGPU DM aux hw bus 3              I2C adapter
i2c-15  i2c         AMDGPU DM aux hw bus 4              I2C adapter
i2c-16  i2c         AMDGPU DM aux hw bus 5              I2C adapter
i2c-17  i2c         AMDGPU DM aux hw bus 6              I2C adapter
i2c-18  i2c         AMDGPU DM aux hw bus 7              I2C adapter
i2c-19  i2c         AMDGPU DM aux hw bus 8              I2C adapter
i2c-20  smbus       SMBus PIIX4 adapter port 0 at 0b00  SMBus adapter
i2c-21  smbus       SMBus PIIX4 adapter port 2 at 0b00  SMBus adapter
i2c-22  smbus       SMBus PIIX4 adapter port 1 at 0b20  SMBus adapter

and the devices list is:

liveuser@localhost-live:~/asus-touchpad-numpad-driver$ cd /proc/bus/input/
liveuser@localhost-live:/proc/bus/input$ cat devices 
I: Bus=0019 Vendor=0000 Product=0005 Version=0000
N: Name="Lid Switch"
P: Phys=PNP0C0D/button/input0
S: Sysfs=/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:52/PNP0C09:00/PNP0C0D:00/input/input0
U: Uniq=
H: Handlers=event0 
B: PROP=0
B: EV=21
B: SW=1

I: Bus=0019 Vendor=0000 Product=0001 Version=0000
N: Name="Power Button"
P: Phys=PNP0C0C/button/input0
S: Sysfs=/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0C:00/input/input1
U: Uniq=
H: Handlers=kbd event1 
B: PROP=0
B: EV=3
B: KEY=8000 10000000000000 0

I: Bus=0011 Vendor=0001 Product=0001 Version=ab83
N: Name="AT Translated Set 2 keyboard"
P: Phys=isa0060/serio0/input0
S: Sysfs=/devices/platform/i8042/serio0/input/input2
U: Uniq=
H: Handlers=sysrq kbd leds event2 
B: PROP=0
B: EV=120013
B: KEY=402000000 3803078f800d001 feffffdfffefffff fffffffffffffffe
B: MSC=10
B: LED=7

I: Bus=0019 Vendor=0000 Product=0006 Version=0000
N: Name="Video Bus"
P: Phys=LNXVIDEO/video/input0
S: Sysfs=/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:26/LNXVIDEO:00/input/input6
U: Uniq=
H: Handlers=kbd event3 
B: PROP=0
B: EV=3
B: KEY=3e000b00000000 0 0 0

I: Bus=0018 Vendor=093a Product=300c Version=0100
N: Name="ASUP1415:00 093A:300C Mouse"
P: Phys=i2c-ASUP1415:00
S: Sysfs=/devices/platform/AMDI0010:03/i2c-2/i2c-ASUP1415:00/0018:093A:300C.0001/input/input7
U: Uniq=
H: Handlers=mouse0 event4 
B: PROP=0
B: EV=17
B: KEY=30000 0 0 0 0
B: REL=1943
B: MSC=10

I: Bus=0018 Vendor=093a Product=300c Version=0100
N: Name="ASUP1415:00 093A:300C Touchpad"
P: Phys=i2c-ASUP1415:00
S: Sysfs=/devices/platform/AMDI0010:03/i2c-2/i2c-ASUP1415:00/0018:093A:300C.0001/input/input8
U: Uniq=
H: Handlers=mouse1 event5 
B: PROP=5
B: EV=10001b
B: KEY=e520 10000 0 0 0 0
B: ABS=2e0800000000003
B: MSC=20

I: Bus=0018 Vendor=093a Product=300c Version=0100
N: Name="ASUP1415:00 093A:300C Keyboard"
P: Phys=i2c-ASUP1415:00
S: Sysfs=/devices/platform/AMDI0010:03/i2c-2/i2c-ASUP1415:00/0018:093A:300C.0001/input/input9
U: Uniq=
H: Handlers=sysrq kbd leds event6 
B: PROP=0
B: EV=120013
B: KEY=1000000000007 ff9f207ac14057ff febeffdfffefffff fffffffffffffffe
B: MSC=10
B: LED=1f

I: Bus=0010 Vendor=001f Product=0001 Version=0100
N: Name="PC Speaker"
P: Phys=isa0061/input0
S: Sysfs=/devices/platform/pcspkr/input/input10
U: Uniq=
H: Handlers=kbd event7 
B: PROP=0
B: EV=40001
B: SND=6

I: Bus=0019 Vendor=0000 Product=0000 Version=0000
N: Name="Asus WMI hotkeys"
P: Phys=asus-nb-wmi/input0
S: Sysfs=/devices/platform/asus-nb-wmi/input/input11
U: Uniq=
H: Handlers=kbd event8 rfkill 
B: PROP=0
B: EV=100013
B: KEY=400000000000000 1000000080000 400000 0 0 0 81606f00900c00 c280027801701000 e000000000000 0
B: MSC=10

I: Bus=0000 Vendor=0000 Product=0000 Version=0000
N: Name="HD-Audio Generic HDMI/DP,pcm=3"
P: Phys=ALSA
S: Sysfs=/devices/pci0000:00/0000:00:08.1/0000:63:00.1/sound/card0/input12
U: Uniq=
H: Handlers=event9 
B: PROP=0
B: EV=21
B: SW=140

I: Bus=0000 Vendor=0000 Product=0000 Version=0000
N: Name="HD-Audio Generic HDMI/DP,pcm=7"
P: Phys=ALSA
S: Sysfs=/devices/pci0000:00/0000:00:08.1/0000:63:00.1/sound/card0/input13
U: Uniq=
H: Handlers=event10 
B: PROP=0
B: EV=21
B: SW=140

I: Bus=0000 Vendor=0000 Product=0000 Version=0000
N: Name="HD-Audio Generic Headphone"
P: Phys=ALSA
S: Sysfs=/devices/pci0000:00/0000:00:08.1/0000:63:00.6/sound/card1/input14
U: Uniq=
H: Handlers=event11 
B: PROP=0
B: EV=21
B: SW=4
ldrahnik commented 2 weeks ago

@scientiac This https://github.com/asus-linux-drivers/asus-numberpad-driver should work or open issue there (python driver what you tried have missing support for ASUP touchpad models)