Remap Buttons on a Asus Pen (Stylus?)

Message
Author
User avatar
Seb
Posts: 2
Joined: Mon Oct 25, 2021 7:09 am

Remap Buttons on a Asus Pen (Stylus?)

#1 Post by Seb »

Hi,

i have an Asus Pen from an Asus T304U. Its has 2 buttons. Both are working. Is there a way to remap the buttons?
One has the function "paste" bind on it... i would prefer a rightclick, as i cannot us that right now with the pen. (Holding the pen down wont execute a rightclick either.


this is what my pen should be? (shortened list - full list below)

Code: Select all

$ xinput
⎡ Virtual core pointer                    	id=2	[master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer              	id=4	[slave  pointer  (2)]
⎜   ↳ ELAN22A5:00 04F3:22FD                   	id=16	[slave  pointer  (2)]
⎜   ↳ ELAN22A5:00 04F3:22FD Stylus Pen (0)    	id=22	[slave  pointer  (2)]
⎜   ↳ ELAN22A5:00 04F3:22FD Stylus Eraser (0) 	id=23	[slave  pointer  (2)]
⎣ Virtual core keyboard                   	id=3	[master keyboard (2)]
    ↳ ELAN22A5:00 04F3:22FD Stylus            	id=17	[slave  keyboard (3)]
i also found the info to try

Code: Select all

xinput get-buttons-map <devicename>
here i have the Problem of entering the devicename. (Im not doing it right?) it then shows either nothing or the available commands of xinput.

Is there a way to change the mapping somehow, or for beginners, see which button is which input.


full xinput

Code: Select all

$ xinput
⎡ Virtual core pointer                    	id=2	[master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer              	id=4	[slave  pointer  (2)]
⎜   ↳ ELAN22A5:00 04F3:22FD                   	id=16	[slave  pointer  (2)]
⎜   ↳ Chicony ASUSTek T303CHI Consumer Control	id=11	[slave  pointer  (2)]
⎜   ↳ Chicony ASUSTek T303CHI Mouse           	id=14	[slave  pointer  (2)]
⎜   ↳ Chicony ASUSTek T303CHI Touchpad        	id=15	[slave  pointer  (2)]
⎜   ↳ ELAN22A5:00 04F3:22FD Stylus Pen (0)    	id=22	[slave  pointer  (2)]
⎜   ↳ ELAN22A5:00 04F3:22FD Stylus Eraser (0) 	id=23	[slave  pointer  (2)]
⎣ Virtual core keyboard                   	id=3	[master keyboard (2)]
    ↳ Virtual core XTEST keyboard             	id=5	[slave  keyboard (3)]
    ↳ Power Button                            	id=6	[slave  keyboard (3)]
    ↳ Video Bus                               	id=7	[slave  keyboard (3)]
    ↳ Power Button                            	id=8	[slave  keyboard (3)]
    ↳ Sleep Button                            	id=9	[slave  keyboard (3)]
    ↳ ELAN22A5:00 04F3:22FD Stylus            	id=17	[slave  keyboard (3)]
    ↳ gpio-keys                               	id=18	[slave  keyboard (3)]
    ↳ Asus WMI hotkeys                        	id=19	[slave  keyboard (3)]
    ↳ AT Translated Set 2 keyboard            	id=20	[slave  keyboard (3)]
    ↳ ACPI Virtual Keyboard Device            	id=21	[slave  keyboard (3)]
    ↳ Chicony ASUSTek T303CHI                 	id=10	[slave  keyboard (3)]
    ↳ Chicony ASUSTek T303CHI System Control  	id=12	[slave  keyboard (3)]
    ↳ Chicony ASUSTek T303CHI Wireless Radio Control	id=13	[slave  keyboard (3)]

Return to “Hardware /Configuration”