0

I'm developing a kernel module which free the IRQ number 1 in order to disable the keyboard in Intel architectures. according to wikipedia the IRQ 1 is used for keyboard. but after building and inserting the module, the keyboard still working.

is it an IRQ number issue or freeing IRQ is not enough to disable keyboard interrupts

#include <linux/module.h>
#include <linux/init.h>
#include <linux/irq.h>
#include <linux/interrupt.h>
#include <linux/gpio.h>
static int __init mymodule_init(void) {
      /* IRQ1 is the IRQ of the keyboard controlled under intel architecuter */
 free_irq(1, NULL);

        return 0;
}
static void __exit mymodule_exit(void) {
        return;
}
module_init(mymodule_init);
module_exit(mymodule_exit);
MODULE_LICENSE("GPL");
  • Is your ketboard connected to the intel 8042 or to USB? IRQ1 is for the 8042 only (legacy keyboard). – Jasen Jan 18 '15 at 4:52
  • i think it's the intel 8042 keyboard, I'm working with my laptop keyboard – Makhlouf GHARBI Jan 18 '15 at 6:35
  • do watch cat /proc/interrupts and see if the number changes when you tap keys or hold shift etc... that works here. – Jasen Jan 18 '15 at 23:48

Your Answer

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

Browse other questions tagged or ask your own question.