I want to disable my USB keyboard at boot time (in some scenarios) without modifying udev rules, as I know udev rules only works when a device is attached or detached from the target.

Is there any option in "udev.c" or in udev rules by which I can disable my USB keyboard at boottime?


Modifying udev rules is actually the way to go. Udev rules are applied when the device is attached, but that includes devices that are already attached when the system boots: once udev has started, it applies all the rules to already-connected devices.

So write a udev rule that declares your keyboard as not authorized.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.