Project Home
Project Home
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - PS2 Mouse not working on initial boot into Photon: Page 1 of 2 (12 Items)
   
PS2 Mouse not working on initial boot into Photon  
Platform: 
COMMELL LS-570 x86 PC
QNX 6.4.1
USB Disabled
Configured to not boot directly into Photon

1. Boot into text mode
2. Test mouse is operational in text mode using "hidview -a" and then moving mouse
3. Launch Photon "ph"
4. Mouse is not operational but the PS2 keyboard still works
5. Checked args for devi-hid: "mouse kbd"
6. Logout to text mode
7. Restart Photon - Mouse and keyabord are both operational
8. Checked args for devi-hid: "mouse kbd"

To get around this issue I have added the following to the phapps file so I don't have to exit:
slay -f devi-hid
devi-hid mouse kbd

I would rather not have to have a workaround.

Any help / insights would be appreciated.

Thanks,

- Richard
Re: PS2 Mouse not working on initial boot into Photon  
Hi Richard,

Thats odd that its not picking up the mouse.  The devi-hid driver doesn't init the hardware in anyway (devh-ps2ser.so 
does that work).  The only thing that I can think of is that its not getting the report for the mouse packets.  If you 
modify your ph script so that it starts up with 

devi-hid -vvvvvvvv kbd mouse > /tmp/devi_log.out 2> /tmp/devi_log.err

Then move your mouse around the screen and then exit photon.  Then post the output.

There should be an error if devi-hid was unable to attach to the mouse reports.

Best regards,

Erick

> Platform: 
> COMMELL LS-570 x86 PC
> QNX 6.4.1
> USB Disabled
> Configured to not boot directly into Photon
> 
> 1. Boot into text mode
> 2. Test mouse is operational in text mode using "hidview -a" and then moving 
> mouse
> 3. Launch Photon "ph"
> 4. Mouse is not operational but the PS2 keyboard still works
> 5. Checked args for devi-hid: "mouse kbd"
> 6. Logout to text mode
> 7. Restart Photon - Mouse and keyabord are both operational
> 8. Checked args for devi-hid: "mouse kbd"
> 
> To get around this issue I have added the following to the phapps file so I 
> don't have to exit:
> slay -f devi-hid
> devi-hid mouse kbd
> 
> I would rather not have to have a workaround.
> 
> Any help / insights would be appreciated.
> 
> Thanks,
> 
> - Richard


Re: PS2 Mouse not working on initial boot into Photon  
Two set of files attached. The .nomouse. files are from the initial launch into Photon. The .mouse. files are from the 
subsequent re-launch of Photon after exiting to text mode.

Attachment: Text devi-hid.tar.F 10.14 KB
Re: PS2 Mouse not working on initial boot into Photon  
> Two set of files attached. The .nomouse. files are from the initial launch 
> into Photon. The .mouse. files are from the subsequent re-launch of Photon 
> after exiting to text mode.
> 


Oooo tar.F been a while since I saw one of those ;)

Apparently its been a while since I used them too, melt devi-hid.tar.F results in the expected .tar, however tar is 
telling me the archive is corrupt and a quick spatch of the file is telling me something is not right.  Is the archive 
corrupted by chance?

Best regards,

Erick
Re: PS2 Mouse not working on initial boot into Photon  
Try:
freeze -dc devi-hid.tar.F | pax -r
Re: PS2 Mouse not working on initial boot into Photon  
> Try:
> freeze -dc devi-hid.tar.F | pax -r

I tried that and pax complains that the archive doesn't look valid.  Looks like it got corrupted.

Best regards,

Erick
Re: PS2 Mouse not working on initial boot into Photon  
Ok, lets try this one.
Attachment: Text devi-hid.tgz 9.87 KB
Re: PS2 Mouse not working on initial boot into Photon  
> Ok, lets try this one.

Thats interesting, you successfully attach to the mouse reports, however you never receive any reports.  I'm inclined to
 think that the issue is with devh-ps2ser.so, however if you were able to get data from 'hidview -a' then that would 
seem to reason that it's not the one at fault.

Could you try modifying your ph script so that when it calls 'inputtrap' get rid of that and call

devi-hid kbd
sleep 2
devi-hid mouse

And let me know if that yields a different result?

Thanks,

Erick
Re: PS2 Mouse not working on initial boot into Photon  
> Could you try modifying your ph script so that when it calls 'inputtrap' get 
> rid of that and call
> 
> devi-hid kbd
> sleep 2
> devi-hid mouse
> 
> And let me know if that yields a different result?

From hard or soft restart I get inconsistent behaviour - sometimes it works, but more often it doesn't. A couple of 
times even the keyboard was not functional. 

Could it be that devi-hid has a dependency on something that is not fully available until later in the Photon startup 
and then once available it survives exit to text mode and back into Photon? 
Re: PS2 Mouse not working on initial boot into Photon  
> > Could you try modifying your ph script so that when it calls 'inputtrap' get
>  
> > rid of that and call
> > 
> > devi-hid kbd
> > sleep 2
> > devi-hid mouse
> > 
> > And let me know if that yields a different result?
> 
> From hard or soft restart I get inconsistent behaviour - sometimes it works, 
> but more often it doesn't. A couple of times even the keyboard was not 
> functional. 
> 
> Could it be that devi-hid has a dependency on something that is not fully 
> available until later in the Photon startup and then once available it 
> survives exit to text mode and back into Photon? 

Hi Richard,

Not really, the input driver (depending on how it was started) needs to see that Photon is running, once it sees that it
 will be able to issue the Photon events, it will complain if it doesn't see that its running.  If it was a case where 
it was depending on something, the last suggestion would have addressed that I would imagine, also the kbd module would 
be failing as well as it uses the same interface that the mouse does to communicate with Photon.  Also you are not even 
getting the reports from the HID server (io-hid) which happens _way_ before the Photon stuff.

You could try changing the ph script so that it doesn't call _any_ input drivers, and then telnet to the system once 
Photon is up you can start the input driver manually and see.

Another thing to try is to telnet in, slay and restart io-hid and then start Photon and see if that makes any difference
.

Best regards,

Erick