当前位置: 技术问答>linux和unix
如何禁用USB鼠标和键盘,但是USB存储设备还可以使用??
来源: 互联网 发布时间:2016-06-23
本文导语: 我想禁用USB鼠标和键盘, 但是同时USB存储设备还要继续可以使用 这个要怎么实现呢?? 请教各位了! 或者可以先把鼠标的显示出来的图标给隐藏起来,就是看不见了,这样也行 请教! | ...
我想禁用USB鼠标和键盘,
但是同时USB存储设备还要继续可以使用
这个要怎么实现呢??
请教各位了!
或者可以先把鼠标的显示出来的图标给隐藏起来,就是看不见了,这样也行
请教!
但是同时USB存储设备还要继续可以使用
这个要怎么实现呢??
请教各位了!
或者可以先把鼠标的显示出来的图标给隐藏起来,就是看不见了,这样也行
请教!
|
hid里面,CONFIG_USB_HID
USB Human Interface Device (full HID) support
CONFIG_USB_HID: │
│ │
│ Say Y here if you want full HID support to connect USB keyboards, │
│ mice, joysticks, graphic tablets, or any other HID based devices │
│ to your computer via USB, as well as Uninterruptible Power Supply │
│ (UPS) and monitor control devices. │
│ │
│ You can't use this driver and the HIDBP (Boot Protocol) keyboard │
│ and mouse drivers at the same time. More information is available: │
│ . │
│ │
│ If unsure, say Y. │
│ │
│ To compile this driver as a module, choose M here: the │
│ module will be called usbhid.
USB Human Interface Device (full HID) support
CONFIG_USB_HID: │
│ │
│ Say Y here if you want full HID support to connect USB keyboards, │
│ mice, joysticks, graphic tablets, or any other HID based devices │
│ to your computer via USB, as well as Uninterruptible Power Supply │
│ (UPS) and monitor control devices. │
│ │
│ You can't use this driver and the HIDBP (Boot Protocol) keyboard │
│ and mouse drivers at the same time. More information is available: │
│ . │
│ │
│ If unsure, say Y. │
│ │
│ To compile this driver as a module, choose M here: the │
│ module will be called usbhid.
|
鼠标和键盘驱动是直接编译进内核的,你不重新编译是不行的.
--- Generic input layer (needed for keyboard, --- Generic input layer (needed for keyboard, mouse, ...)
--- Userland interfaces
--- Mouse interface
[ ] Provide legacy /dev/psaux device
(1024) Horizontal screen resolution
(768) Vertical screen resolution
Joystick interface
Touchscreen interface
Event interface
Event debugging
--- Input Device Drivers
--- Keyboards --->
[*] Mouse --->
[*] Joysticks --->
[*] Touchscreens --->
[*] Miscellaneous devices --->
Hardware I/O ports --->
--- Generic input layer (needed for keyboard, --- Generic input layer (needed for keyboard, mouse, ...)
--- Userland interfaces
--- Mouse interface
[ ] Provide legacy /dev/psaux device
(1024) Horizontal screen resolution
(768) Vertical screen resolution
Joystick interface
Touchscreen interface
Event interface
Event debugging
--- Input Device Drivers
--- Keyboards --->
[*] Mouse --->
[*] Joysticks --->
[*] Touchscreens --->
[*] Miscellaneous devices --->
Hardware I/O ports --->
|
编译内核的时候 可以把USB鼠标不编译进去,也可以把编译的usb鼠标驱动 usbmouse.o去掉,这是2.4下的 2.6下的模块名不知道有没变
还有就是setup命令 里面有个mouse configuration 里面也有的选择
还有就是setup命令 里面有个mouse configuration 里面也有的选择
|
如果你所有的鼠标设备都不用的话,把鼠标驱动去掉不就可以了?
或者可以在kernel里把usb/input的驱动去掉,留下usb/storage,我没试过,你可以试一下。这个在编译kernel的时候会有选项。
或者可以在kernel里把usb/input的驱动去掉,留下usb/storage,我没试过,你可以试一下。这个在编译kernel的时候会有选项。
|
对,把USB鼠标和USB键盘的驱动裁剪掉就行了。
|
13楼的说的队,曲调他们运行的饿模块就可以了!