Re: hiddev and input devices (PS3 sixaxis)
Bastien Nocera <[email protected]>
| Newsgroups | gmane.linux.usb.devel |
|---|---|
| Message-ID | <[email protected]> |
Hey Jiri, On Wed, 2007-11-28 at 15:24 +0100, Jiri Kosina wrote: > On Wed, 28 Nov 2007, Bastien Nocera wrote: > > > And if the usbhid is compiled into the kernel, is there any way to pass > > those (without a reboot would be preferred)? > > You can pass usbhid.quirks=... parameter on the kernel boot command-line. > > It's not currently easily achieveable without reboot in cases the usbhid > module si built-in though. #define HID_QUIRK_HIDDEV 0x00000010 #define HID_QUIRK_SONY_PS3_CONTROLLER 0x00040000 #define USB_VENDOR_ID_SONY 0x054c #define USB_DEVICE_ID_SONY_PS3_CONTROLLER 0x0268 So, that would mean: usbhid.quirks=0x054c:0x0268:0x00040010 I've attached a simple patch to make it create the hiddev for the sixaxis. Cheers ------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 _______________________________________________ [email protected] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
kernel-add-hiddev-for-sixaxis.patch
(text/x-patch, 813 B)
diff --git a/drivers/hid/usbhid/hid-quirks.c b/drivers/hid/usbhid/hid-quirks.c
index a255285..1ba0cce 100644
--- a/drivers/hid/usbhid/hid-quirks.c
+++ b/drivers/hid/usbhid/hid-quirks.c
@@ -523,7 +523,7 @@ static const struct hid_blacklist {
{ USB_VENDOR_ID_PANTHERLORD, USB_DEVICE_ID_PANTHERLORD_TWIN_USB_JOYSTICK, HID_QUIRK_MULTI_INPUT | HID_QUIRK_SKIP_OUTPUT_REPORTS },
{ USB_VENDOR_ID_PLAYDOTCOM, USB_DEVICE_ID_PLAYDOTCOM_EMS_USBII, HID_QUIRK_MULTI_INPUT },
- { USB_VENDOR_ID_SONY, USB_DEVICE_ID_SONY_PS3_CONTROLLER, HID_QUIRK_SONY_PS3_CONTROLLER },
+ { USB_VENDOR_ID_SONY, USB_DEVICE_ID_SONY_PS3_CONTROLLER, HID_QUIRK_SONY_PS3_CONTROLLER | HID_QUIRK_HIDDEV },
{ USB_VENDOR_ID_ATEN, USB_DEVICE_ID_ATEN_UC100KM, HID_QUIRK_NOGET },
{ USB_VENDOR_ID_ATEN, USB_DEVICE_ID_ATEN_CS124U, HID_QUIRK_NOGET },