Skip to content

Commit

Permalink
Remove hid-core stuff and add a script to rebind manually.
Browse files Browse the repository at this point in the history
  • Loading branch information
ali1234 committed May 12, 2011
1 parent 4b3840a commit efb41e2
Show file tree
Hide file tree
Showing 8 changed files with 36 additions and 4,888 deletions.
17 changes: 2 additions & 15 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,14 @@ ifneq ($(KERNELRELEASE),)
KVERSION = $(shell uname -r)
#EXTRA_CFLAGS=-I$(KDIR)/drivers/hid

ifneq ($(BUILD_HID),Y)
obj-m := hid-g13.o hid-g15.o hid-g19.o hid-gfb.o hid-g110.o
else
hid-objs := hid-core.o hid-input.o hid-debug.o hidraw.o
obj-m := hid.o hid-g13.o hid-g15.o hid-g19.o hid-gfb.o hid-g110.o
endif

else

KVERSION = $(shell uname -r)
KDIR := /lib/modules/$(KVERSION)/build
MODULE_INSTALL_DIR := /lib/modules/$(KVERSION)/updates/g-series
MODS := hid.ko hid-g13.ko hid-g15.ko hid-g19.ko hid-gfb.ko hid-g110.ko
MODS := hid-g13.ko hid-g15.ko hid-g19.ko hid-gfb.ko hid-g110.ko
PWD := $(shell pwd)

default:
Expand All @@ -31,14 +26,6 @@ install:
TAGS:
$(MAKE) -C $(KDIR) M=$(PWD) TAGS

# mkdir -p $(MODULE_INSTALL_DIR)
# cp $(MODS) $(MODULE_INSTALL_DIR)
# depmod -a

# uninstall:
# rm $(MODULE_INSTALL_DIR)/*
# depmod -a

g110test:
sudo rmmod hid-g110 || true
sudo rmmod hid-gfb || true
Expand All @@ -51,4 +38,4 @@ g19rmmod:
g19insmod:
sudo modprobe hid-g19

endif
endif
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@ All going well, you should be able to just install your kernel headers and type
# make
# make install

After you've installed the modules you need to rebuild your initrd. The easiest way I've found to do this (on Ubuntu) is:
Now load the correct module for your device, eg:

# sudo update-initramfs -k all -c
# modprobe hid-g19

Additionally, if you're trying to work out what might be going wrong, enabling HID debugging is useful, simply create a file /etc/modprobe.d/hid-debug.conf with a single line in it:
The modules will now be available but the device will still be grabbed by generic-usb. Run the
rebind script to put the new module in control of the device:

options hid debug=2
# ./rebind

Note: You have to update the initramfs again after changing hid options.
Loading

0 comments on commit efb41e2

Please sign in to comment.