5

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.

Braiam
  • 69,112

2 Answers2

2

It should work if you put the file in /etc/X11/xinit/xinput.d

I guess the default xinput.d no longer sources the ~/xinput.d.

Seth
  • 59,332
Kevin
  • 1,031
1

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.

Braiam
  • 69,112