Skip to main content

alphaWorks  >  Forums  >  Interactive Ray Tracer for Cell Broadband Engine  >  developerWorks

Issues with running iRT    Point your RSS reader here for a feed of the latest messages in this thread


     

 
 

My developerWorks
 Welcome, Guest
Sign in or register
Permlink Replies: 11 - Pages: 1 - Last Post: Apr 20, 2009 5:25 PM Last Post By: iprion Threads: [ Previous | Next ]

Posts: 3
Registered: Sep 02, 2007 03:59:19 AM
Issues with running iRT
Posted: Sep 02, 2007 04:05:03 AM
Click to report abuse...   Click to reply to this thread Reply
Hi:

Thanks for making the iRT demo available!

I am trying to install this on my Fedora 7 PS3 installation running 2.6.23-rc3 kernel.

When I run iRT, it gave me the following error:

No controllers found in /dev/input
Please make sure that the controller
is plugged in with the USB cable

However, /dev/input/js0 and /dev/js0 are both present.

Is it possible to run the demo without the gamepad (I have a USB keyboard attached).

Thanks,

Bernard

Posts: 3
Registered: Sep 02, 2007 03:59:19 AM
Re: Issues with running iRT
Posted: Sep 02, 2007 06:46:25 AM   in response to: in response to: 's post
Click to report abuse...   Click to reply to this thread Reply
Okay got this working with YDL 5 running 2.6.16-20061110.ydl.2ps3. Basically I guess iRT is looking specifically for /dev/input/event* files which are not present in 2.6.23. This is the contents for my /dev/input:

  1. ls -l /dev/input/
total 0
crw------- 1 root root 13, 64 Sep 1 20:30 event0
crw------- 1 root root 13, 65 Sep 1 20:30 event1
crw------- 1 root root 13, 66 Sep 1 20:30 event2
crw------- 1 root root 13, 0 Sep 1 20:30 js0
crw------- 1 root root 13, 63 Sep 1 20:30 mice

Is this an iRT issue or kernel issue?

Cheers,

Bernard

Posts: 3
Registered: Sep 02, 2007 03:59:19 AM
Re: Issues with running iRT
Posted: Sep 04, 2007 03:57:20 AM   in response to: in response to: 's post
Click to report abuse...   Click to reply to this thread Reply
Finally got it working with 2.6.23-rc5 kernel. Make sure that you have:

CONFIG_INPUT_EVDEV=m

This will create the /dev/input/event* files.

Geoff Levand has already added this to his most recent ps3-linux git kernel tree.

To the IBM folks -- are there plans to make the full version (the one which supports load balancing on PS3 cluster) available to the general public too?

Thank you,

Bernard
ReneO

Posts: 4
Registered: Jul 21, 2007 02:19:58 PM
Re: Issues with running iRT
Posted: Sep 04, 2007 04:21:14 AM   in response to: in response to: 's post
Click to report abuse...   Click to reply to this thread Reply
All you need is the Device Drivers -> Input device support -> Event interface (CONFIG_INPUT_EVDEV=m or CONFIG_INPUT_EVDEV=y) in your kernel config and in the case of the module load it properly.
Barry_Minor

Posts: 20
Registered: Aug 26, 2005 11:29:11 PM
Re: Issues with running iRT
Posted: Sep 04, 2007 01:18:35 PM   in response to: in response to: 's post
Click to report abuse...   Click to reply to this thread Reply
Bernard,

Thanks for working through the controller issues.
We originally coded to the /dev/input/js0 device but then found it was missing from the YD 5.0.2 image so we recoded to the /dev/input/event* devices before this release. This has been an on going problem and Joaquin can fill in the details if needed.

The cluster question, yes if we find that users desire this feature we could make it available. Our initial goal with this release was to keep it simple but still give people an idea of how Cell performs at ray-tracing.

Posts: 3
Registered: Sep 10, 2007 09:20:14 AM
Re: Issues with running iRT
Posted: Sep 10, 2007 09:36:11 AM   in response to: in response to: 's post
Click to report abuse...   Click to reply to this thread Reply
I've been trying to get this working on Ubuntu 7.04 on my (european) PS3 (well, it 's really the Ubuntu 7.04 kernel with beta 7.10 packages)

I'm almost there... Got the rpm's unpacked and put in /opt just fine.

When I start up iRT it loads the scene and waits for me to press PS on the pad (/dev/input/event3). But it doesn't respond to my presses.

/dev/input/event3 does seem to be my pad, if I cat /dev/input/event3 and press buttons, the screen fills up nicely with data.

I'm thinking there might be some hardware differences between the territories, so I've provided a hexdump of what happens when I press the PS button (cat /dev/input/event3 | hexdump -C)

I hope somebody can either help me out here or perhaps fix iRT if this should be a problem in the code. I'd love to see it running!

Best regards,
Carsten Sorensen

00000000 46 e5 45 c8 00 08 68 27 00 01 01 20 00 00 00 01 |F.E...h'... ....|
00000010 46 e5 45 c8 00 08 68 38 00 00 00 00 00 00 00 00 |F.E...h8........|
00000020 46 e5 45 c8 00 08 8f 39 00 01 01 20 00 00 00 00 |F.E....9... ....|
00000030 46 e5 45 c8 00 08 8f 3e 00 01 01 20 00 00 00 01 |F.E....>... ....|
00000040 46 e5 45 c8 00 08 8f 4c 00 00 00 00 00 00 00 00 |F.E....L........|
00000050 46 e5 45 c8 00 08 b6 47 00 01 01 20 00 00 00 00 |F.E....G... ....|
00000060 46 e5 45 c8 00 08 b6 4d 00 01 01 20 00 00 00 01 |F.E....M... ....|
00000070 46 e5 45 c8 00 08 b6 59 00 00 00 00 00 00 00 00 |F.E....Y........|
00000080 46 e5 45 c8 00 08 dd 59 00 01 01 20 00 00 00 00 |F.E....Y... ....|
00000090 46 e5 45 c8 00 08 dd 5f 00 01 01 20 00 00 00 01 |F.E...._... ....|
000000a0 46 e5 45 c8 00 08 dd 6b 00 00 00 00 00 00 00 00 |F.E....k........|
000000b0 46 e5 45 c8 00 09 04 6c 00 01 01 20 00 00 00 00 |F.E....l... ....|
000000c0 46 e5 45 c8 00 09 04 72 00 01 01 20 00 00 00 01 |F.E....r... ....|
000000d0 46 e5 45 c8 00 09 04 7f 00 00 00 00 00 00 00 00 |F.E.............|
000000e0 46 e5 45 c8 00 09 2b 7f 00 01 01 20 00 00 00 00 |F.E...+.... ....|
000000f0 46 e5 45 c8 00 09 2b 85 00 01 01 20 00 00 00 01 |F.E...+.... ....|
JoaquinM

Posts: 7
Registered: Aug 29, 2007 10:51:35 AM
Re: Issues with running iRT
Posted: Sep 11, 2007 02:07:13 PM   in response to: in response to: 's post
Click to report abuse...   Click to reply to this thread Reply
Do you have multiple PS3 controllers connected?

What does
"dmesg | grep -i sony"
show?

Here is the output from /dev/input/event0 (the joystick on my FC6 machine)

00000000 46 e6 e5 16 00 0c ce ad 00 03 00 00 00 00 00 8b |F...............|
00000010 46 e6 e5 16 00 0c ce bb 00 00 00 00 00 00 00 00 |F...............|
00000020 46 e6 e5 16 00 0e c2 cf 00 03 00 00 00 00 00 8a |F...............|
00000030 46 e6 e5 16 00 0e c2 dc 00 00 00 00 00 00 00 00 |F...............|
00000040 46 e6 e5 16 00 0e e9 e1 00 03 00 00 00 00 00 8b |F...............|
00000050 46 e6 e5 16 00 0e e9 ed 00 00 00 00 00 00 00 00 |F...............|
00000060 46 e6 e5 16 00 0f 38 07 00 03 00 00 00 00 00 8a |F.....8.........|
00000070 46 e6 e5 16 00 0f 38 12 00 00 00 00 00 00 00 00 |F.....8.........|
00000080 46 e6 e5 17 00 00 1c d9 00 03 00 00 00 00 00 8b |F...............|
00000090 46 e6 e5 17 00 00 1c e5 00 00 00 00 00 00 00 00 |F...............|

We read from dev/event and look for an event type of 1 and a button modifier of 304.

In the event output it looks something like (on my machine)

000000c0 46 e6 e5 17 00 02 18 cb 00 01 01 30 00 00 00 01 |F..........0....|
or
00000130 46 e6 e5 17 00 03 2a 4c 00 01 01 30 00 00 00 00 |F.....*L...0....|

     

| ^ Button Modifier 304 = 0x130
^ Event code 1 = 0x1

Depending on if the button is pressed.

Joaquin

JoaquinM

Posts: 7
Registered: Aug 29, 2007 10:51:35 AM
Re: Issues with running iRT
Posted: Sep 11, 2007 02:08:38 PM   in response to: JoaquinM in response to: JoaquinM's post
Click to report abuse...   Click to reply to this thread Reply
I'm sorry, the spacing was mangled in my post. The 0x0001 and 0x0130 are in the second half of the output.

Joaquin

Posts: 3
Registered: Sep 10, 2007 09:20:14 AM
Re: Issues with running iRT
Posted: Sep 11, 2007 03:42:57 PM   in response to: JoaquinM in response to: JoaquinM's post
Click to report abuse...   Click to reply to this thread Reply
Hi Joaquin,

No, I just have the one controller connected.

"dmesg | grep -i sony" output:

http:// 33.371757 scsi 0:0:0:0: CD-ROM SONY PS-SYSTEM 302R 4084
http:// 38.434654 input: Sony PLAYSTATION(R)3 Controller as /class/input/input3
http:// 38.461668 input: USB HID v1.11 Joystick Sony PLAYSTATION(R)3 Controller on usb-sb_02-2.4
http:// 42.719078 scsi 3:0:0:0: Direct-Access Sony GL819 MS 1.08 PQ: 0 ANSI: 0 CCS
http:// 42.737630 scsi 3:0:0:1: Direct-Access Sony GL819 SD 1.08 PQ: 0 ANSI: 0
http:// 42.747011 scsi 3:0:0:2: Direct-Access Sony GL819 CF 1.08 PQ: 0 ANSI: 0

I'm not sure what you're looking for here, am I missing a kernel module perhaps? I've noticed that the xpad module (for XBox controllers) sometimes loads, which changes the /dev/input/event3 output slightly... It wasn't loaded when I did the output in my original post though.

Thanks,
Carsten Sorensen

Posts: 3
Registered: Sep 10, 2007 09:20:14 AM
Re: Issues with running iRT
Posted: Sep 11, 2007 04:11:38 PM   in response to: JoaquinM in response to: JoaquinM's post
Click to report abuse...   Click to reply to this thread Reply
> We read from dev/event and look for an event type of
> 1 and a button modifier of 304.

...

> Button Modifier 304 = 0x130
> ^ Event code 1 =
> ^ Event code 1 = 0x1
>
> Depending on if the button is pressed.

I've been playing some more with my pad, I can get it to generate different numbers for the button modifier, from 0x120 to 0x12F depending on the button pressed - but PS always generates 0x120, the same as select. Very odd. In fact I can't tell the difference between the messages -

select:

00002b90 46 e6 f5 5c 00 0a 6f 5b 00 01 01 20 00 00 00 01 |F..\..o[... ....|
00002ba0 46 e6 f5 5c 00 0a 6f 61 00 01 01 20 00 00 00 00 |F..\..oa... ....|
00002bb0 46 e6 f5 5c 00 0a 6f 6d 00 00 00 00 00 00 00 00 |F..\..om........|
00002bc0 46 e6 f5 5c 00 0a 96 6e 00 01 01 20 00 00 00 01 |F..\...n... ....|
00002bd0 46 e6 f5 5c 00 0a 96 74 00 01 01 20 00 00 00 00 |F..\...t... ....|

PS:

000013c0 46 e6 f5 65 00 02 a8 32 00 01 01 20 00 00 00 00 |F..e...2... ....|
000013d0 46 e6 f5 65 00 02 a8 3c 00 01 01 20 00 00 00 01 |F..e...<... ....|
000013e0 46 e6 f5 65 00 02 a8 50 00 00 00 00 00 00 00 00 |F..e...P........|
000013f0 46 e6 f5 65 00 02 cf 45 00 01 01 20 00 00 00 00 |F..e...E... ....|
00001400 46 e6 f5 65 00 02 cf 50 00 01 01 20 00 00 00 01 |F..e...P... ....|

scratches head

Best regards,
Carsten Sorensen
JoaquinM

Posts: 7
Registered: Aug 29, 2007 10:51:35 AM
Re: Issues with running iRT
Posted: Sep 12, 2007 02:12:39 PM   in response to: in response to: 's post
Click to report abuse...   Click to reply to this thread Reply
I'm not sure what would cause the PS button to report the same code as select. I presume the PS button works as expected in GameOS right? Are you able to turn your PS3 off and on using the PS button when in GameOS?

Thanks,
Joaquin
iprion

Posts: 1
Registered: Apr 20, 2009 05:13:56 PM
Re: Issues with running iRT
Posted: Apr 20, 2009 05:25:25 PM   in response to: JoaquinM in response to: JoaquinM's post
Click to report abuse...   Click to reply to this thread Reply
Hi:

I've the same problem, when running iRT on YDL 6.1 I got the following error

No controllers found in /dev/input
Please make sure that the controller
is plugged in with the USB cable

I've installed nothing but the 3 rpm containing iRT and the scenes; the cellsdk was already installed.
/dev/input/js0-1 are present but when I connect my sixaxis on usb I got this error :

sony: probe of 0003:054C:0268.0006 failed with error 17

but still when I cat /dev/input/js0 screen fills up with data when I press buttons on the sixaxis

any ideas ??

thanks
olivier

Point your RSS reader here for a feed of the latest messages in all forums