3

I need to disable my laptop keyboard and use only my usb keyboard, to do this i uses the xinput set-prop command, and since my keyboard id is 16, my command is xinput set-prop 16 "Device Enabled" 0

but when O restart my computer, i need to re-enter the command again, and this is a problem because my internal keyboard has been acting crazy, how do save this changes??

Wilf
  • 30,194
  • 17
  • 108
  • 164

3 Answers3

2

There are different ways of doing this. If you're absolutely sure the ID never changes, the easiest may be to put the line into Systems->Preferences->Startup Applications.

The canonical method seems to be editing udev rules nowadays. There's a Wiki page on this here.

sk29910
  • 2,328
1

Edit the X.org configuration file located in /etc/X11/xorg.conf . It handles input devices as well as displays

Jorge Castro
  • 71,754
0

My preferred way of doing this is by appending xinput set-prop 16 "Device Enabled" 0 to ~/.xprofile