All of lore.kernel.org
 help / color / mirror / Atom feed
* How can I test a joystick type device?
@ 2008-02-08 23:53 Adrian McMenamin
  2008-02-09  1:18 ` Harley Laue
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Adrian McMenamin @ 2008-02-08 23:53 UTC (permalink / raw)
  To: linux-sh

As below shows I think I have successfully ported the 2.4 Dreamcast
controller driver to 2.6 - but how can I test it? Is there a device I
should be looking for in /dev that I could just cat?

Sorry for the stupid question, but I'm at a loss on this one. :)


-bash-3.1# tree
.
|-- devices
|   |-- 0:00.1 -> ../../../devices/maple/0:00.1
|   `-- 1:00.40 -> ../../../devices/maple/1:00.40
|-- drivers
|   |-- Dreamcast_controller
|   |   |-- 0:00.1 -> ../../../../devices/maple/0:00.1
|   |   |-- bind
|   |   |-- uevent
|   |   `-- unbind
|   |-- Dreamcast_keyboard
|   |   |-- 1:00.40 -> ../../../../devices/maple/1:00.40
|   |   |-- bind
|   |   |-- uevent
|   |   `-- unbind
|   `-- maple_dummy_driver
|       |-- bind
|       |-- uevent
|       `-- unbind
|-- drivers_autoprobe
|-- drivers_probe
`-- uevent



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: How can I test a joystick type device?
  2008-02-08 23:53 How can I test a joystick type device? Adrian McMenamin
@ 2008-02-09  1:18 ` Harley Laue
  2008-02-09  2:58 ` Paul Mundt
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: Harley Laue @ 2008-02-09  1:18 UTC (permalink / raw)
  To: linux-sh

On Friday 08 February 2008 05:53:26 pm you wrote:
> As below shows I think I have successfully ported the 2.4 Dreamcast
> controller driver to 2.6 - but how can I test it? Is there a device I
> should be looking for in /dev that I could just cat?
Cool. 
if a /dev/input/js? or /dev/js? does not show up you can try:
mknod js0 c 13 0
then you can cat js0 and move the joystick to see if it's working

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: How can I test a joystick type device?
  2008-02-08 23:53 How can I test a joystick type device? Adrian McMenamin
  2008-02-09  1:18 ` Harley Laue
@ 2008-02-09  2:58 ` Paul Mundt
  2008-02-09 14:57 ` Adrian McMenamin
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: Paul Mundt @ 2008-02-09  2:58 UTC (permalink / raw)
  To: linux-sh

On Fri, Feb 08, 2008 at 11:53:26PM +0000, Adrian McMenamin wrote:
> As below shows I think I have successfully ported the 2.4 Dreamcast
> controller driver to 2.6 - but how can I test it? Is there a device I
> should be looking for in /dev that I could just cat?
> 
Other than the existing suggestion, you can also use evdev for just
cat'ing and getting the raw events.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: How can I test a joystick type device?
  2008-02-08 23:53 How can I test a joystick type device? Adrian McMenamin
  2008-02-09  1:18 ` Harley Laue
  2008-02-09  2:58 ` Paul Mundt
@ 2008-02-09 14:57 ` Adrian McMenamin
  2008-02-10 19:43 ` Adrian McMenamin
  2008-02-11  0:11 ` Adrian McMenamin
  4 siblings, 0 replies; 6+ messages in thread
From: Adrian McMenamin @ 2008-02-09 14:57 UTC (permalink / raw)
  To: linux-sh


On Sat, 2008-02-09 at 11:58 +0900, Paul Mundt wrote:
> On Fri, Feb 08, 2008 at 11:53:26PM +0000, Adrian McMenamin wrote:
> > As below shows I think I have successfully ported the 2.4 Dreamcast
> > controller driver to 2.6 - but how can I test it? Is there a device I
> > should be looking for in /dev that I could just cat?
> > 
> Other than the existing suggestion, you can also use evdev for just
> cat'ing and getting the raw events.
> -

I need to get udev to recognise the driver as a joystick and then create
a node for it. Not sure how to do that...


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: How can I test a joystick type device?
  2008-02-08 23:53 How can I test a joystick type device? Adrian McMenamin
                   ` (2 preceding siblings ...)
  2008-02-09 14:57 ` Adrian McMenamin
@ 2008-02-10 19:43 ` Adrian McMenamin
  2008-02-11  0:11 ` Adrian McMenamin
  4 siblings, 0 replies; 6+ messages in thread
From: Adrian McMenamin @ 2008-02-10 19:43 UTC (permalink / raw)
  To: linux-sh


On Fri, 2008-02-08 at 19:18 -0600, Harley Laue wrote:
> On Friday 08 February 2008 05:53:26 pm you wrote:
> > As below shows I think I have successfully ported the 2.4 Dreamcast
> > controller driver to 2.6 - but how can I test it? Is there a device I
> > should be looking for in /dev that I could just cat?
> Cool. 
> if a /dev/input/js? or /dev/js? does not show up you can try:
> mknod js0 c 13 0
> then you can cat js0 and move the joystick to see if it's working


Clearly the porting isn't as simple as I'd hoped: I cannot seem to get a
udev rule to recognise the thing and if I create the node manually there
is strangeness and an unwillingness to work!

I'll hack away at it, but I obviously need to get a better understanding
of the 2.6 input layer also...

-bash-3.1# ls js* -l
crw-r--r-- 1 root 4294967258 13, 0 Feb 10 19:39 js0
-bash-3.1# df
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/hda1            189303128 159489980  20197044  89% /
tmpfs                     6852         0      6852   0% /lib/init/rw
udev                     10240         4     10236   1% /dev
tmpfs                     6852         0      6852   0% /dev/shm
/dev/gdrom           189303128 159489980  20197044  89% /mnt
-bash-3.1# mknod js0 c 13 0
mknod: `js0': File exists
-bash-3.1# rm js0
-bash-3.1# mknod js0 c 13
0                                                                                                                                  
-bash-3.1# ls js* -l
crw-r--r-- 1 root 4294967258 13, 0 Feb 10 19:40 js0
-bash-3.1# cat js0
cat: js0: No such device


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: How can I test a joystick type device?
  2008-02-08 23:53 How can I test a joystick type device? Adrian McMenamin
                   ` (3 preceding siblings ...)
  2008-02-10 19:43 ` Adrian McMenamin
@ 2008-02-11  0:11 ` Adrian McMenamin
  4 siblings, 0 replies; 6+ messages in thread
From: Adrian McMenamin @ 2008-02-11  0:11 UTC (permalink / raw)
  To: linux-sh


On Sun, 2008-02-10 at 19:43 +0000, Adrian McMenamin wrote:
> On Fri, 2008-02-08 at 19:18 -0600, Harley Laue wrote:
> > On Friday 08 February 2008 05:53:26 pm you wrote:
> > > As below shows I think I have successfully ported the 2.4 Dreamcast
> > > controller driver to 2.6 - but how can I test it? Is there a device I
> > > should be looking for in /dev that I could just cat?
> > Cool. 
> > if a /dev/input/js? or /dev/js? does not show up you can try:
> > mknod js0 c 13 0
> > then you can cat js0 and move the joystick to see if it's working
> 
> 
> Clearly the porting isn't as simple as I'd hoped: I cannot seem to get a
> udev rule to recognise the thing and if I create the node manually there
> is strangeness and an unwillingness to work!
> 
worked out what I was doing wrong...not compiling in the userland
support. Once that was done everything Just Worked ...afaics any way


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2008-02-11  0:11 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-02-08 23:53 How can I test a joystick type device? Adrian McMenamin
2008-02-09  1:18 ` Harley Laue
2008-02-09  2:58 ` Paul Mundt
2008-02-09 14:57 ` Adrian McMenamin
2008-02-10 19:43 ` Adrian McMenamin
2008-02-11  0:11 ` Adrian McMenamin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.