From ce7d4ded68844c4b8066bd5aba284ca43094ee33 Mon Sep 17 00:00:00 2001 From: Christoph Haas Date: Fri, 28 Oct 2016 11:23:12 +0200 Subject: [PATCH] Fixed a compiler warning, updated README --- Makefile | 4 ++-- README.md | 24 ++++++++++++++---------- perixxkbd.c | 1 - 3 files changed, 16 insertions(+), 13 deletions(-) diff --git a/Makefile b/Makefile index 1ff2fe3..91fb7b3 100644 --- a/Makefile +++ b/Makefile @@ -8,9 +8,9 @@ MODULE_NAME := perixxkbd MODULE_VER := 1.0.0 ifeq ($(DEBUG),y) - DBGFLAGS = -O -g -DML_DEBUG + DBGFLAGS = -O -g -DML_DEBUG -Wall -Wextra else - DBGFLAGS = -O2 + DBGFLAGS = -O2 -Wall endif ccflags-y += $(DBGFLAGS) diff --git a/README.md b/README.md index 35dee02..8dc5b9b 100644 --- a/README.md +++ b/README.md @@ -7,29 +7,33 @@ Written for the Perixx PX-1800 USB Keyboard: [Perixx PX-1800 Keyboard](http://ww Original base: swoogan.blogspot.de/2014/09/azio-l70-keyboard-linux-driver.html -> NOTE: Makefile and instructions are only tested on Ubuntu 16.04. +> NOTE: Makefile and instructions are only tested on Ubuntu 16.04 and Archlinux 2016.10 (Kernel 4.8.4) # Installation ## ## DKMS ## # debian-based: - sudo apt-get install mercurial build-essential linux-headers-generic dkms + sudo apt-get install git build-essential linux-headers-generic dkms # fedora: - sudo dnf install kernel-devel kernel-headers + sudo dnf install git kernel-devel kernel-headers sudo dnf groupinstall "Development Tools" "Development Libraries" + + # arch: + sudo pacman -S git base-devel linux-headers dkms - hg clone https://bitbucket.org/Swoogan/aziokbd - cd aziokbd + # on all platforms: + git clone https://git.sprinternet.at/h44z/perixx1800keyboard.git + cd perixx1800keyboard sudo ./install.sh dkms - ## Manual Install ## - sudo apt-get install mercurial build-essential linux-headers-generic - hg clone https://bitbucket.org/Swoogan/aziokbd - cd aziokbd + # Dependencies: + git build-essential linux-headers dkms + git clone https://git.sprinternet.at/h44z/perixx1800keyboard.git + cd perixx1800keyboard sudo ./install.sh # Blacklisting # @@ -56,7 +60,7 @@ If you find that the generic USB driver is still taking the device, try changing ## Compiled into Kernel ## If the generic USB hid driver is compiled into the kernel, then the driver is not loaded as a module and setting the option via `modprobe` will not work. In this case you must pass the option to the driver via the grub boot loader. -Create a new file in `/etc/default/grub.d/`. For example, you might call it `aziokbd.conf`. (If your grub package doesn't have this directory, just modify the generic `/etc/default/grub` configuration file): +Create a new file in `/etc/default/grub.d/`. For example, you might call it `perixx1800keyboard.conf`. (If your grub package doesn't have this directory, just modify the generic `/etc/default/grub` configuration file): GRUB_CMDLINE_LINUX_DEFAULT='usbhid.quirks=0x0c45:0x7603:0x4' diff --git a/perixxkbd.c b/perixxkbd.c index 58b0f70..49b90c5 100644 --- a/perixxkbd.c +++ b/perixxkbd.c @@ -114,7 +114,6 @@ static void usb_kbd_irq(struct urb *urb) { struct usb_kbd *kbd = urb->context; int i, j, offset; - char keys[9]; switch (urb->status) { case 0: /* success */