pez2001 / razer_chroma_drivers

A collection of Linux drivers for Razer Chroma devices, it supports all lighting modes and includes a daemon for advanced effects + gui configuration app
GNU General Public License v2.0
231 stars 31 forks source link

Binding and unbinding USB driver #142

Open innoce9t opened 8 years ago

innoce9t commented 8 years ago

Hey, I am trying to install the razer_chroma_drivers on my Asus g55vw running on Linux Mint 17.3 Cinnamon(2.8.8)64-bit. I keep getting the message of permission denied every time i try to unbind the driver. Please help a way to fix it. innoce9t@Asus ~ $ modprobe razerkbd innoce9t@Asus ~ $ lsmod | grep razerkbd razerkbd 28672 0 hid 110592 3 hid_generic,razerkbd,usbhid innoce9t@Asus ~ $ ls -l /sys/bus/hid/drivers total 0 drwxr-xr-x 2 root root 0 Jun 18 07:00 hid-generic drwxr-xr-x 2 root root 0 Jun 17 12:07 razerkbd innoce9t@Asus ~ $ ls -l /sys/bus/hid/devices/ total 0 lrwxrwxrwx 1 root root 0 Jun 18 08:49 0003:1038:1211.0058 -> ../../../devices/pci0000:00/0000:00:14.0/usb1/1-4/1-4.2/1-4.2:1.3/0003:1038:1211.0058 lrwxrwxrwx 1 root root 0 Jun 17 12:07 0003:1532:003E.0004 -> ../../../devices/pci0000:00/0000:00:14.0/usb1/1-4/1-4.4/1-4.4:1.0/0003:1532:003E.0004 lrwxrwxrwx 1 root root 0 Jun 17 12:07 0003:1532:003E.0005 -> ../../../devices/pci0000:00/0000:00:14.0/usb1/1-4/1-4.4/1-4.4:1.1/0003:1532:003E.0005 lrwxrwxrwx 1 root root 0 Jun 17 12:07 0003:1532:003E.0006 -> ../../../devices/pci0000:00/0000:00:14.0/usb1/1-4/1-4.4/1-4.4:1.2/0003:1532:003E.0006 lrwxrwxrwx 1 root root 0 Jun 17 12:07 0003:1532:0203.0010 -> ../../../devices/pci0000:00/0000:00:14.0/usb1/1-4/1-4.3/1-4.3:1.0/0003:1532:0203.0010 lrwxrwxrwx 1 root root 0 Jun 17 12:07 0003:1532:0203.0011 -> ../../../devices/pci0000:00/0000:00:14.0/usb1/1-4/1-4.3/1-4.3:1.1/0003:1532:0203.0011 lrwxrwxrwx 1 root root 0 Jun 17 12:07 0003:1532:0203.0012 -> ../../../devices/pci0000:00/0000:00:14.0/usb1/1-4/1-4.3/1-4.3:1.2/0003:1532:0203.0012 innoce9t@Asus ~ $ udevadm info -a /sys/bus/hid/devices/0003:1532:0203.0050 | grep bInterfaceNumber Unknown device, absolute path in /dev/ or /sys expected. innoce9t@Asus ~ $ udevadm info -a /sys/bus/hid/devices/0003:1532:0203.0012 | grep bInterfaceNumber ATTRS{bInterfaceNumber}=="02" innoce9t@Asus ~ $ cd /sys/bus/hid/drivers/hid-generic innoce9t@Asus /sys/bus/hid/drivers/hid-generic $ ls -l total 0 lrwxrwxrwx 1 root root 0 Jun 18 08:45 0003:1038:1211.0058 -> ../../../../devices/pci0000:00/0000:00:14.0/usb1/1-4/1-4.2/1-4.2:1.3/0003:1038:1211.0058 lrwxrwxrwx 1 root root 0 Jun 17 12:15 0003:1532:003E.0004 -> ../../../../devices/pci0000:00/0000:00:14.0/usb1/1-4/1-4.4/1-4.4:1.0/0003:1532:003E.0004 lrwxrwxrwx 1 root root 0 Jun 17 12:15 0003:1532:003E.0005 -> ../../../../devices/pci0000:00/0000:00:14.0/usb1/1-4/1-4.4/1-4.4:1.1/0003:1532:003E.0005 lrwxrwxrwx 1 root root 0 Jun 17 12:15 0003:1532:003E.0006 -> ../../../../devices/pci0000:00/0000:00:14.0/usb1/1-4/1-4.4/1-4.4:1.2/0003:1532:003E.0006 lrwxrwxrwx 1 root root 0 Jun 17 12:15 0003:1532:0203.0010 -> ../../../../devices/pci0000:00/0000:00:14.0/usb1/1-4/1-4.3/1-4.3:1.0/0003:1532:0203.0010 lrwxrwxrwx 1 root root 0 Jun 17 12:15 0003:1532:0203.0011 -> ../../../../devices/pci0000:00/0000:00:14.0/usb1/1-4/1-4.3/1-4.3:1.1/0003:1532:0203.0011 --w------- 1 root root 4096 Jun 17 12:15 bind lrwxrwxrwx 1 root root 0 Jun 17 12:15 module -> ../../../../module/hid_generic --w------- 1 root root 4096 Jun 17 12:15 new_id --w------- 1 root root 4096 Jun 17 12:15 uevent --w------- 1 root root 4096 Jun 17 05:44 unbind innoce9t@Asus /sys/bus/hid/drivers/hid-generic $ echo -n "0003:1532:0203.0012" > unbind bash: unbind: Permission denied

terricain commented 8 years ago

sudo su to root before running binding commands