Selecting input devices after X is started
peter.hutterer at who-t.net
Sun May 17 00:51:26 PDT 2009
On Fri, May 15, 2009 at 08:19:56PM -0700, Yan Seiner wrote:
> Is there some way to selectively ignore certain input devices after X
> If I have a system with 2 mice, can I disable one mouse after I log in?
you have a number of options (in decreasing order of preference):
- remove the device from the HAL ruleset, simply drop an fd file into
/etc/hal/fdi/policy/ with the remove key option. See
this simply makes the device not even appear as an input device to X.
- in server 1.6 and above, trigger the "Device Enabled" property
xinput --set-int-prop "device name" "Device Enabled" 8 0
- use XChangeDeviceControl(3), xDeviceEnableCtl, defined in XInput.h
- unplug the mouse :)
More information about the xorg