NetBSD Problem Report #30554

From www@netbsd.org  Sun Jun 19 01:49:28 2005
Return-Path: <www@netbsd.org>
Received: by narn.netbsd.org (Postfix, from userid 31301)
	id ACF4663B116; Sun, 19 Jun 2005 01:49:28 +0000 (UTC)
Message-Id: <20050619014928.ACF4663B116@narn.netbsd.org>
Date: Sun, 19 Jun 2005 01:49:28 +0000 (UTC)
From: svs+pr@grep.ru
Reply-To: svs+pr@grep.ru
To: gnats-bugs@netbsd.org
Subject: The ParaParaParadise USB controller needs special handling in uhid(4)
X-Send-Pr-Version: www-1.0

>Number:         30554
>Category:       kern
>Synopsis:       The ParaParaParadise USB controller needs special handling in uhid(4)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    kern-bug-people
>State:          closed
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Sun Jun 19 01:50:00 +0000 2005
>Closed-Date:    Sun Jun 19 10:30:59 +0000 2005
>Last-Modified:  Mon Jul 04 01:33:01 +0000 2005
>Originator:     Sergey Svishchev
>Release:        3.99.3
>Organization:
>Environment:
>Description:
The ParaParaParadise controller is a perfectly normal USB HID device with just one quirk -- it needs to be 'woken up' before it will send input reports.  It was sold with Konami game for PlayStation2 and the game; there are at least two game simulators out there (pydance and stepmania) that could use this controller, too.  Before now, the wake-up method was not known -- see, e.g., http://icculus.org/pyddr/manual.php#install.mat.ppp; it was really easy to discover, though ("usbhidctl -r" shows a feature report with really intriguing name of "LEDs:On-Line" :-)
>How-To-Repeat:

>Fix:
--- sys/dev/usb/uhidev.c	27 Feb 2005 00:27:51 -0000	1.24
+++ sys/dev/usb/uhidev.c	16 Jun 2005 17:45:34 -0000
@@ -211,6 +211,19 @@
 		USB_ATTACH_ERROR_RETURN;
 	}

+	if (uaa->vendor == USB_VENDOR_HOSIDEN && 
+	    uaa->product == USB_PRODUCT_HOSIDEN_PPP) {
+		static uByte reportbuf[] = {1};
+		/*
+		 *  This device was sold by Konami with its ParaParaParadise 
+		 *  game for PlayStation2.  It needs to be "turned on"
+		 *  before it will send any reports.
+		 */
+
+		usbd_set_report(uaa->iface, UHID_FEATURE_REPORT, 0,
+		    &reportbuf, sizeof reportbuf);
+	}
+
 	sc->sc_repdesc = desc;
 	sc->sc_repdesc_size = size;

--- sys/dev/usb/usbdevs	15 Mar 2005 17:52:18 -0000	1.398
+++ sys/dev/usb/usbdevs	24 May 2005 18:43:22 -0000
@@ -147,6 +147,7 @@
 vendor AIPTEK2		0x04fc	AIPTEK International
 vendor ACER		0x0502	Acer
 vendor 3COM		0x0506	3Com
+vendor HOSIDEN		0x0507	Hosiden Corporation
 vendor AZTECH		0x0509	Aztech Systems
 vendor BELKIN		0x050d	Belkin Components
 vendor KAWATSU		0x050f	Kawatsu Semiconductor
@@ -921,6 +922,9 @@
 product HITACHI DZMV100A	0x0004	DVD-CAM DZ-MV100A Camcorder
 product HITACHI DVDCAM_USB	0x001e	DVDCAM USB HS Interface

+/* Hosiden Corporation products */
+product	HOSIDEN PPP		0x0011	ParaParaParadise Controller
+
 /* HP products */
 product HP 895C			0x0004	DeskJet 895C
 product HP 4100C		0x0101	Scanjet 4100C

>Release-Note:

>Audit-Trail:

State-Changed-From-To: open->closed
State-Changed-By: augustss@netbsd.org
State-Changed-When: Sun, 19 Jun 2005 10:30:59 +0000
State-Changed-Why:
Patch applied.


From: Dave Sainty <dave@dtsp.co.nz>
To: gnats-bugs@netbsd.org, augustss@netbsd.org
Cc: kern-bug-people@netbsd.org, gnats-admin@netbsd.org,
	netbsd-bugs@netbsd.org, dave@dtsp.co.nz
Subject: Re: kern/30554: The ParaParaParadise USB controller needs special handling in uhid(4) 
Date: Sat, 02 Jul 2005 20:30:53 +1200

 svs+pr@grep.ru writes:

 > >Number:         30554
 > >Category:       kern
 > >Synopsis:       The ParaParaParadise USB controller needs special handling in uhid(4)
 > >Confidential:   no
 > >Severity:       non-critical
 > >Priority:       low
 > >Responsible:    kern-bug-people
 > >State:          open
 > >Class:          change-request
 > >Submitter-Id:   net
 > >Arrival-Date:   Sun Jun 19 01:50:00 +0000 2005
 > >Originator:     Sergey Svishchev
 > >Release:        3.99.3
 > >Organization:
 > >Environment:
 > >Description:
 > The ParaParaParadise controller is a perfectly normal USB HID device with just one quirk -- it needs to be 'woken up' before it will send input reports.  It was sold with Konami game for PlayStation2 and the game; there are at least two game simulators out there (pydance and stepmania) that could use this controller, too.  Before now, the wake-up method was not known -- see, e.g., http://icculus.org/pyddr/manual.php#install.mat.ppp; it was really easy to discover, though ("usbhidctl -r" shows a feature report with really intriguing name of "LEDs:On-Line" :-)
 > >How-To-Repeat:
 > 
 > >Fix:
 > --- sys/dev/usb/uhidev.c	27 Feb 2005 00:27:51 -0000	1.24
 > +++ sys/dev/usb/uhidev.c	16 Jun 2005 17:45:34 -0000
 > @@ -211,6 +211,19 @@
 >  		USB_ATTACH_ERROR_RETURN;
 >  	}
 >  
 > +	if (uaa->vendor == USB_VENDOR_HOSIDEN && 
 > +	    uaa->product == USB_PRODUCT_HOSIDEN_PPP) {
 > +		static uByte reportbuf[] = {1};
 > +		/*
 > +		 *  This device was sold by Konami with its ParaParaParadise 
 > +		 *  game for PlayStation2.  It needs to be "turned on"
 > +		 *  before it will send any reports.
 > +		 */
 > +
 > +		usbd_set_report(uaa->iface, UHID_FEATURE_REPORT, 0,
 > +		    &reportbuf, sizeof reportbuf);
 > +	}
 > +
 >  	sc->sc_repdesc = desc;
 >  	sc->sc_repdesc_size = size;

 Is this really necessary?  Couldn't you just do this from userland
 with something like:

 usbhidctl -f /dev/uhidXXX -w LEDs:On-Line=1

 ???

From: Lennart Augustsson <lennart@augustsson.net>
To: gnats-bugs@netbsd.org
Cc: kern-bug-people@netbsd.org, gnats-admin@netbsd.org,
	netbsd-bugs@netbsd.org
Subject: Re: kern/30554: The ParaParaParadise USB controller needs special
 handling in uhid(4)
Date: Mon, 04 Jul 2005 03:31:51 +0200

 Yes, I think you're right.  It's going out again!


 Dave Sainty wrote:
 > The following reply was made to PR kern/30554; it has been noted by GNATS.
 > 
 > From: Dave Sainty <dave@dtsp.co.nz>
 > To: gnats-bugs@netbsd.org, augustss@netbsd.org
 > Cc: kern-bug-people@netbsd.org, gnats-admin@netbsd.org,
 > 	netbsd-bugs@netbsd.org, dave@dtsp.co.nz
 > Subject: Re: kern/30554: The ParaParaParadise USB controller needs special handling in uhid(4) 
 > Date: Sat, 02 Jul 2005 20:30:53 +1200
 > 
 >  svs+pr@grep.ru writes:
 >  
 >  > >Number:         30554
 >  > >Category:       kern
 >  > >Synopsis:       The ParaParaParadise USB controller needs special handling in uhid(4)
 >  > >Confidential:   no
 >  > >Severity:       non-critical
 >  > >Priority:       low
 >  > >Responsible:    kern-bug-people
 >  > >State:          open
 >  > >Class:          change-request
 >  > >Submitter-Id:   net
 >  > >Arrival-Date:   Sun Jun 19 01:50:00 +0000 2005
 >  > >Originator:     Sergey Svishchev
 >  > >Release:        3.99.3
 >  > >Organization:
 >  > >Environment:
 >  > >Description:
 >  > The ParaParaParadise controller is a perfectly normal USB HID device with just one quirk -- it needs to be 'woken up' before it will send input reports.  It was sold with Konami game for PlayStation2 and the game; there are at least two game simulators out there (pydance and stepmania) that could use this controller, too.  Before now, the wake-up method was not known -- see, e.g., http://icculus.org/pyddr/manual.php#install.mat.ppp; it was really easy to discover, though ("usbhidctl -r" shows a feature report with really intriguing name of "LEDs:On-Line" :-)
 >  > >How-To-Repeat:
 >  > 
 >  > >Fix:
 >  > --- sys/dev/usb/uhidev.c	27 Feb 2005 00:27:51 -0000	1.24
 >  > +++ sys/dev/usb/uhidev.c	16 Jun 2005 17:45:34 -0000
 >  > @@ -211,6 +211,19 @@
 >  >  		USB_ATTACH_ERROR_RETURN;
 >  >  	}
 >  >  
 >  > +	if (uaa->vendor == USB_VENDOR_HOSIDEN && 
 >  > +	    uaa->product == USB_PRODUCT_HOSIDEN_PPP) {
 >  > +		static uByte reportbuf[] = {1};
 >  > +		/*
 >  > +		 *  This device was sold by Konami with its ParaParaParadise 
 >  > +		 *  game for PlayStation2.  It needs to be "turned on"
 >  > +		 *  before it will send any reports.
 >  > +		 */
 >  > +
 >  > +		usbd_set_report(uaa->iface, UHID_FEATURE_REPORT, 0,
 >  > +		    &reportbuf, sizeof reportbuf);
 >  > +	}
 >  > +
 >  >  	sc->sc_repdesc = desc;
 >  >  	sc->sc_repdesc_size = size;
 >  
 >  Is this really necessary?  Couldn't you just do this from userland
 >  with something like:
 >  
 >  usbhidctl -f /dev/uhidXXX -w LEDs:On-Line=1
 >  
 >  ???
 >  
 > 

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.