Skip to content

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

Chengtao Wang
To run the USB keyboard driver, put usbkbd.c, Makefile in the same folder of the virtual machine.

1) In the folder, type: make
2) Install the module: insmod usbkbd.ko
3) Give the USB keyboard device to the virtual machine.
4) To get the device number, type: dmesg
For my device, I get 1-2:1.0
5) To check the usbhid device: ls -l /sys/bus/usb/drivers/usbhid
6) Unbind the usbhid device and bind the usbkbd device:
echo -n "1-2:1.0" > /sys/bus/usb/drivers/usbhid/unbind
echo -n "1-2:1.0" > /sys/bus/usb/drivers/usbkbd/bind

7) Now we can check our driver.

About

A keyboard driver to change the LED effect.

Resources

Stars

7 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages