Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Some fixes for 2.6.39+. Attempts to get some more controls working. A

few G13 fixes such as getting the backlight working properly (I know there
is another branch for this now, but I had made other changes and it was easier
just to continue using mine). Have also been playing with G15 code, trying
to get the G keys working, but no luck yet.
  • Loading branch information...
commit 041c7e101f3b6180492bfd5397e068534f92ded6 1 parent 8c418d1
@tanktarta authored
Showing with 29 additions and 0 deletions.
  1. +29 −0 rebind
View
29 rebind
@@ -0,0 +1,29 @@
+#!/bin/sh
+
+# run me as root
+
+# first unbind them all
+for dev in `ls /sys/bus/hid/drivers/generic-usb/ | egrep '046D:(C21C|C222|C229|C22B)'`
+do echo -n $dev > /sys/bus/hid/drivers/generic-usb/unbind
+done
+
+# now bind to correct module
+for dev in `ls /sys/bus/hid/devices/ | egrep '046D:C21C'`
+do
+ echo -n $dev > /sys/bus/hid/drivers/hid-g13/bind
+done
+
+for dev in `ls /sys/bus/hid/devices/ | egrep '046D:C222'`
+do
+ echo -n $dev > /sys/bus/hid/drivers/hid-g15/bind
+done
+
+for dev in `ls /sys/bus/hid/devices/ | egrep '046D:C229'`
+do
+ echo -n $dev > /sys/bus/hid/drivers/hid-g19/bind
+done
+
+for dev in `ls /sys/bus/hid/devices/ | egrep '046D:C22B'`
+do
+ echo -n $dev > /sys/bus/hid/drivers/hid-g110/bind
+done
Please sign in to comment.
Something went wrong with that request. Please try again.