I can disable a keyboard or mouse using:

xinput disable <device>

But how could I know whether a device is previously disabled, in command line?

1 Answer 1


The man page says:

--disable device  
    Disable the device. This call is equivalent to 
    xinput --set-prop device "Device Enabled" 0

So you can use xinput --list-props and grep to find out if the device is enabled or not.

  • Oh, I tried that but didn't see that line, and was misleaded by another property containing "Enabled"...
    – user23013
    Jul 23, 2017 at 9:57

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .