Saturday, April 27, 2024
 Popular · Latest · Hot · Upcoming
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 1639  / 1 Year ago, sun, february 26, 2023, 10:13:01

It used to be that you could make a file ~/.xinput.d/en_US and put xinput commands in there, such as enabling drag lock. Now, for some reason, in 13.04 this does not work. Anyone know why this changed, and how to set these? I suppose I could just put the xinput commands in a script file and have it execute upon login. I'm just wondering why the old method stopped working.



EDIT:



Current file /etc/X11/xinit/xinput.d/en_US:



xinput set-prop 17 316 1
xinput set-prop 17 317 350


But I've realized that for some reason, the touchpad ID changes. Right now it's 15. Also, the actual properties such as "Drag Lock" can change. So this method doesn't work.


More From » autostart

 Answers
7

The /etc/X11/xinit/xinput.d directory is used by im-config since im-config is:




set up input method configuration for X Window System




This allows you to select an input method, by running the scripts saved in /etc/X11/xinit/xinputrc . Hence it should be installed for it to work. Then you can configure system wide or user preferences using the /etc/X11/xinit/xinputrc or ~/.xinputrc. For the xinput.d replacement, I would go for the system wide /etc/X11/xinit/xinput.d/ since it's already there.



I don't see any relevant change in any of the sources for xorg or im-config that suggest that ~/.xinput.d won't work. You should also check that the xinput package is installed, so xinput set-props can work.


[#30125] Tuesday, February 28, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
llianconclad

Total Points: 65
Total Questions: 109
Total Answers: 127

Location: Mali
Member since Fri, Dec 3, 2021
2 Years ago
llianconclad questions
Sun, May 1, 22, 08:47, 2 Years ago
Tue, Nov 8, 22, 02:33, 2 Years ago
Mon, Aug 23, 21, 15:58, 3 Years ago
Sun, Jul 25, 21, 18:19, 3 Years ago
;