Skip to content

Commit

Permalink
Add patch to usbhid module
Browse files Browse the repository at this point in the history
This adds a new parameter called otherhidpoll. Does the same thing as jspoll for
all non-mouse and non-joystick devices (Really this should be keyboards only)
  • Loading branch information
geefr committed Oct 26, 2017
1 parent 1693264 commit f27d675
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 17 deletions.
17 changes: 0 additions & 17 deletions linux-usbhid-mousepoll-all.patch

This file was deleted.

28 changes: 28 additions & 0 deletions linux-usbhid-otherhidpoll.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
*** drivers/hid/usbhid/hid-core.c 2017-10-26 19:33:36.658828648 +0100
--- drivers/hid/usbhid/hid-core.c.p 2017-10-26 19:35:59.588994247 +0100
***************
*** 56,61 ****
--- 56,65 ----
module_param_named(jspoll, hid_jspoll_interval, uint, 0644);
MODULE_PARM_DESC(jspoll, "Polling interval of joysticks");

+ static unsigned int hid_otherhid_interval;
+ module_param_named(otherhidpoll, hid_otherhid_interval, uint, 0644);
+ MODULE_PARM_DESC(otherhidpoll, "Polling interval of all non-mice/joystick hid devices");
+
static unsigned int ignoreled;
module_param_named(ignoreled, ignoreled, uint, 0644);
MODULE_PARM_DESC(ignoreled, "Autosuspend with active leds");
***************
*** 1105,1110 ****
--- 1109,1118 ----
if (hid_jspoll_interval > 0)
interval = hid_jspoll_interval;
break;
+ default:
+ if (hid_otherhid_interval > 0)
+ interval = hid_otherhid_interval;
+ break;
}

ret = -ENOMEM;
4 changes: 4 additions & 0 deletions notes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,8 @@ In this case the stable release
wget https://cdn.kernel.org/pub/linux/kernel/v4.x/linux-4.13.9.tar.xz

# Patch the source #
cd linux-X.X.X
patch -p1 < ../linux-usbhid-otherhidpoll.patch
# For some reason this patch doesn't auto-apply correctly


0 comments on commit f27d675

Please sign in to comment.