9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] Logitech m310 mouse issues
@ 2012-12-07  9:38 atvdude01
  2012-12-07 10:35 ` Richard Miller
  2012-12-07 12:37 ` Richard Miller
  0 siblings, 2 replies; 15+ messages in thread
From: atvdude01 @ 2012-12-07  9:38 UTC (permalink / raw)
  To: 9fans

well i tried plan 9 today on my raspberry pi and my mouse cursor
wont move. anyone think they can help? o BTW the buttons on mouse
work though




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

* Re: [9fans] Logitech m310 mouse issues
  2012-12-07  9:38 [9fans] Logitech m310 mouse issues atvdude01
@ 2012-12-07 10:35 ` Richard Miller
  2013-03-01 10:33   ` Boo
  2012-12-07 12:37 ` Richard Miller
  1 sibling, 1 reply; 15+ messages in thread
From: Richard Miller @ 2012-12-07 10:35 UTC (permalink / raw)
  To: 9fans

> well i tried plan 9 today on my raspberry pi and my mouse cursor
> wont move.

You can get some debugging information from the mouse driver which
might help diagnose what's going on.  Please try this:

1. Edit cmdline.txt on the SD card DOS partition, to remove the
parameter 'user=glenda' and add a parameter 'kbargs=-k'.  This
will prevent the mouse driver auto-loading at boot time, and
prevent the auto-login to glenda's rio desktop.

2. When you reboot you'll be prompted for boot parameters.  Reply
'local' to the "root is from" prompt, and any username you like
(except glenda) to the "user" prompt.

3. The Pi should boot to a text screen.  Execute the command
	usb/kb -md
to load the usb mouse driver with debugging.  Don't touch the
mouse yet!

4. You should see some information about the mouse's configuration.
On my ancient wired Logitech mouse I get this:

setting first config
report descriptor:
	0x05 0x01 0x09 0x02 0xa1 0x01 0x09 0x01
	0xa1 0x00 0x05 0x09 0x19 0x01 0x29 0x03
	0x15 0x00 0x25 0x01 0x95 0x03 0x75 0x01
	0x81 0x02 0x95 0x01 0x75 0x05 0x81 0x03
	0x05 0x01 0x09 0x30 0x09 0x31 0x09 0x38
	0x15 0x81 0x25 0x7f 0x75 0x08 0x95 0x03
	0x81 0x06 0xc0 0xc0
	count 0x3 nbits 1
		kind 0x1 v 0x0
		kind 0x1 v 0x0
		kind 0x1 v 0x0

	count 0x1 nbits 5
		kind 0x0 v 0x0

	count 0x3 nbits 8
		kind 0x2 v 0x0
		kind 0x3 v 0x0
		kind 0x4 v 0x0

The "kind 0x2" and "kind 0x3" are the magic numbers which enable the
driver to find the X and Y mouse movement values.  Do you get these in
your report?

5. Now wiggle the mouse a bit.  Do you get any reports of mouse
information on the screen, with "kind 0x2" and "kind 0x3" values?




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

* Re: [9fans] Logitech m310 mouse issues
  2012-12-07  9:38 [9fans] Logitech m310 mouse issues atvdude01
  2012-12-07 10:35 ` Richard Miller
@ 2012-12-07 12:37 ` Richard Miller
  2012-12-07 12:53   ` Gorka Guardiola
                     ` (3 more replies)
  1 sibling, 4 replies; 15+ messages in thread
From: Richard Miller @ 2012-12-07 12:37 UTC (permalink / raw)
  To: 9fans

I think the problem may be incorrect handling of the default "boot protocol"
for the usb mouse.  If so, I have a new kernel which should fix it.  Please
could you try this:

1. Download http://plan9.bell-labs.com/sources/contrib/miller/9pi and copy
it to the DOS partition on your SD card.

2. Restore the original cmdline.txt if you've been experimenting with it
(by copying from cmdline-demo.txt), and try booting.  If the mouse cursor
still doesn't move,

3. Edit cmdline.txt and add the parameter 'kbargs=-b' to force the use of
the boot protocol.

Is that better?




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

* Re: [9fans] Logitech m310 mouse issues
  2012-12-07 12:37 ` Richard Miller
@ 2012-12-07 12:53   ` Gorka Guardiola
  2012-12-07 13:32     ` Richard Miller
  2012-12-14 10:21     ` Richard Miller
  2012-12-07 16:07   ` [9fans] Logitech m310 mouse issues & SSH va3yh
                     ` (2 subsequent siblings)
  3 siblings, 2 replies; 15+ messages in thread
From: Gorka Guardiola @ 2012-12-07 12:53 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

On Dec 7, 2012, at 1:37 PM, Richard Miller <9fans@hamnavoe.com> wrote:

> I think the problem may be incorrect handling of the default "boot protocol"
> for the usb mouse.  If so, I have a new kernel which should fix it.  Please
> could you try this:

By your previous description it is not really the boot protocol.
Like a year ago we got some new mice for which the boot protocol would hang after a while, so I bit the bullet and wrote a parser for the report descriptor.
So the usb mouse is not using the boot
protocol by default any more.

This sounds like a bug either in the descriptor or in the parser, so yes, maybe just forcing the boot protocol might fix it.

Someone reported another problem too and I have the bug report waiting for me to have some time to look into it. This may be related. I haven't encountered any problem myself and I have tried in like a 50 mice :-S.

G.




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

* Re: [9fans] Logitech m310 mouse issues
  2012-12-07 12:53   ` Gorka Guardiola
@ 2012-12-07 13:32     ` Richard Miller
  2012-12-14 10:21     ` Richard Miller
  1 sibling, 0 replies; 15+ messages in thread
From: Richard Miller @ 2012-12-07 13:32 UTC (permalink / raw)
  To: 9fans

> So the usb mouse is not using the boot
> protocol by default any more.

Not by default, but various failures can make it switch to the boot
protocol.




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

* Re: [9fans] Logitech m310 mouse issues & SSH
  2012-12-07 12:37 ` Richard Miller
  2012-12-07 12:53   ` Gorka Guardiola
@ 2012-12-07 16:07   ` va3yh
  2012-12-07 16:18     ` Bence Fábián
  2012-12-10  9:37   ` [9fans] Logitech m310 mouse issues Thomas Cenova
  2012-12-10  9:37   ` Chris Sexton
  3 siblings, 1 reply; 15+ messages in thread
From: va3yh @ 2012-12-07 16:07 UTC (permalink / raw)
  To: 9fans

On 12-12-07 07:37 AM, Richard Miller wrote:
> I think the problem may be incorrect handling of the default "boot protocol"
> for the usb mouse.  If so, I have a new kernel which should fix it.  Please
> could you try this:
>
> 1. Download http://plan9.bell-labs.com/sources/contrib/miller/9pi and copy
> it to the DOS partition on your SD card.
>

I can report that the stock 9pi does not work with my wireless mouse (HP)
but the above 9pi works.

Thanks

Now that I have plan 9 running in the Pi,
how do I find out its IP and ssh into it from other OS ?

--

va3yh




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

* Re: [9fans] Logitech m310 mouse issues & SSH
  2012-12-07 16:07   ` [9fans] Logitech m310 mouse issues & SSH va3yh
@ 2012-12-07 16:18     ` Bence Fábián
  0 siblings, 0 replies; 15+ messages in thread
From: Bence Fábián @ 2012-12-07 16:18 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

[-- Attachment #1: Type: text/plain, Size: 808 bytes --]

netstat -i

however it's plan9. you can do better. check out drawterm.


2012/12/7 va3yh <qrp.ham@gmail.com>

> On 12-12-07 07:37 AM, Richard Miller wrote:
>
>> I think the problem may be incorrect handling of the default "boot
>> protocol"
>> for the usb mouse.  If so, I have a new kernel which should fix it.
>>  Please
>> could you try this:
>>
>> 1. Download http://plan9.bell-labs.com/**sources/contrib/miller/9pi<http://plan9.bell-labs.com/sources/contrib/miller/9pi>and copy
>> it to the DOS partition on your SD card.
>>
>>
> I can report that the stock 9pi does not work with my wireless mouse (HP)
> but the above 9pi works.
>
> Thanks
>
> Now that I have plan 9 running in the Pi,
> how do I find out its IP and ssh into it from other OS ?
>
> --
>
> va3yh
>
>
>

[-- Attachment #2: Type: text/html, Size: 1360 bytes --]

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

* Re: [9fans] Logitech m310 mouse issues
  2012-12-07 12:37 ` Richard Miller
  2012-12-07 12:53   ` Gorka Guardiola
  2012-12-07 16:07   ` [9fans] Logitech m310 mouse issues & SSH va3yh
@ 2012-12-10  9:37   ` Thomas Cenova
  2012-12-10  9:37   ` Chris Sexton
  3 siblings, 0 replies; 15+ messages in thread
From: Thomas Cenova @ 2012-12-10  9:37 UTC (permalink / raw)
  To: 9fans

On Friday, December 7, 2012 7:37:45 AM UTC-5, Richard Miller wrote:
> I think the problem may be incorrect handling of the default "boot protocol"
>
> for the usb mouse.  If so, I have a new kernel which should fix it.  Please
>
> could you try this:
>
>
>
> 1. Download http://plan9.bell-labs.com/sources/contrib/miller/9pi and copy
>
> it to the DOS partition on your SD card.
>
>
>
> 2. Restore the original cmdline.txt if you've been experimenting with it
>
> (by copying from cmdline-demo.txt), and try booting.  If the mouse cursor
>
> still doesn't move,
>
>
>
> 3. Edit cmdline.txt and add the parameter 'kbargs=-b' to force the use of
>
> the boot protocol.
>
>
>
> Is that better?

thank you sooooo much!!! the new kernel fixed it! now on to learning
about using plan 9....



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

* Re: [9fans] Logitech m310 mouse issues
  2012-12-07 12:37 ` Richard Miller
                     ` (2 preceding siblings ...)
  2012-12-10  9:37   ` [9fans] Logitech m310 mouse issues Thomas Cenova
@ 2012-12-10  9:37   ` Chris Sexton
  2012-12-10 11:34     ` Richard Miller
  3 siblings, 1 reply; 15+ messages in thread
From: Chris Sexton @ 2012-12-10  9:37 UTC (permalink / raw)
  To: 9fans

Hi Richard,

I've been talking to you over on the bendyworks blog post and have finally =
made it over here. Upon closer inspection, I had typo'd on my first attempt=
s with the kbargs=3D-b option and that is working just great for my Logitec=
h wireless mouse AND the wired mouse. Sorry for the confusion and THANKS!



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

* Re: [9fans] Logitech m310 mouse issues
  2012-12-10  9:37   ` Chris Sexton
@ 2012-12-10 11:34     ` Richard Miller
  0 siblings, 0 replies; 15+ messages in thread
From: Richard Miller @ 2012-12-10 11:34 UTC (permalink / raw)
  To: 9fans

> I had typo'd on my first attempts with the kbargs=-b option
> and that is working just great for my Logitech wireless
> mouse AND the wired mouse.

That's good to know.  I'll update the mouse driver on the 9pi
image today.




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

* Re: [9fans] Logitech m310 mouse issues
  2012-12-07 12:53   ` Gorka Guardiola
  2012-12-07 13:32     ` Richard Miller
@ 2012-12-14 10:21     ` Richard Miller
  1 sibling, 0 replies; 15+ messages in thread
From: Richard Miller @ 2012-12-14 10:21 UTC (permalink / raw)
  To: 9fans

I've submitted a patch usbmouse-reportproto which corrects an
error in the parsing of usb HID report descriptors.  This should
allow Logitech (and perhaps some other) mice to work, without
having to force them into boot protocol with 'kbargs=-b'.

I've put up a new raspberry pi kernel in /n/sources/contrib/miller/9pi
with this correction.  The problem wasn't specific to raspberry pi
though - it seems that until now there haven't been many native
Plan 9 users with Logitech wireless mice.




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

* Re: [9fans] Logitech m310 mouse issues
  2012-12-07 10:35 ` Richard Miller
@ 2013-03-01 10:33   ` Boo
  2013-03-01 10:51     ` Richard Miller
  0 siblings, 1 reply; 15+ messages in thread
From: Boo @ 2013-03-01 10:33 UTC (permalink / raw)
  To: 9fans

Hi Richard,

I've done this and got the following:

usb/kb: no unhandled devices found

My mouse moves only Up-Down when I move it Left-Right.
And slightly Right-only by clicking the buttons.

I have this mouse: http://trust.com/15345



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

* Re: [9fans] Logitech m310 mouse issues
  2013-03-01 10:33   ` Boo
@ 2013-03-01 10:51     ` Richard Miller
  2013-03-04 10:11       ` Boo
  0 siblings, 1 reply; 15+ messages in thread
From: Richard Miller @ 2013-03-01 10:51 UTC (permalink / raw)
  To: 9fans

> My mouse moves only Up-Down when I move it Left-Right.
> And slightly Right-only by clicking the buttons.

Are you using the latest (13 Jan) 9pi kernel image?

Can you get some debugging output from the report descriptor
parsing (by adding 'kbargs=-d' and removing 'user=glenda' in
the command line in cmdline.txt), and send them to me?  I'll
see if I can diagnose the cause.




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

* Re: [9fans] Logitech m310 mouse issues
  2013-03-01 10:51     ` Richard Miller
@ 2013-03-04 10:11       ` Boo
  2013-03-04 11:47         ` Richard Miller
  0 siblings, 1 reply; 15+ messages in thread
From: Boo @ 2013-03-04 10:11 UTC (permalink / raw)
  To: 9fans

On Friday, March 1, 2013 12:51:54 PM UTC+2, Richard Miller wrote:
> > My mouse moves only Up-Down when I move it Left-Right.
>
> > And slightly Right-only by clicking the buttons.
>
>
>
> Are you using the latest (13 Jan) 9pi kernel image?
>
>
>
> Can you get some debugging output from the report descriptor
>
> parsing (by adding 'kbargs=-d' and removing 'user=glenda' in
>
> the command line in cmdline.txt), and send them to me?  I'll
>
> see if I can diagnose the cause.

Hi Richard,

Thanks for your reply.
I'm using the latest 9pi kernel (23 Jan) from your contrib dir.
When I add 'kbargs=-d' to the cmdline.txt nothing is changed. I see the same screen like it was before.

But I was able to get some info, by adding 'kbargs=-k' to the cmdline.txt. Please, see the photo of my screen: http://i.minus.com/ibcgN0sHJr3m3c.jpg

Thank you.



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

* Re: [9fans] Logitech m310 mouse issues
  2013-03-04 10:11       ` Boo
@ 2013-03-04 11:47         ` Richard Miller
  0 siblings, 0 replies; 15+ messages in thread
From: Richard Miller @ 2013-03-04 11:47 UTC (permalink / raw)
  To: 9fans

> But I was able to get some info, by adding 'kbargs=-k' to the cmdline.txt.

That stops the kernel usb daemon from starting the mouse driver automatically,
so you have the opportunity to start it by hand with 'usb/kb -d'.  Once you've
started that, it seizes control of the usb endpoint so the subsequent 'usb/kb'
commands tell you "no unhandled devices".

The "setting first config" and "setting boot protocol" messages indicate that
the attempt to set the mouse into HID report mode fails, so the driver falls
back to boot protocol which every device with CSP 3.1.2 should support.  Either
your mouse has a different notion of boot protocol from what the driver's
author expected, or the raspberry pi's somewhat problematic USB hardware is
losing some input characters and causing the protocol to get out of sync.

In my contrib area there is now a usb-kb program.  If you try that in place
of usb/kb, with argument '-ddd' for lots of debugging, it should tell you
exactly which command failed in the attempt to set HID report protocol, and
will also dump the raw data read from the mouse in boot protocol.




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

end of thread, other threads:[~2013-03-04 11:47 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-12-07  9:38 [9fans] Logitech m310 mouse issues atvdude01
2012-12-07 10:35 ` Richard Miller
2013-03-01 10:33   ` Boo
2013-03-01 10:51     ` Richard Miller
2013-03-04 10:11       ` Boo
2013-03-04 11:47         ` Richard Miller
2012-12-07 12:37 ` Richard Miller
2012-12-07 12:53   ` Gorka Guardiola
2012-12-07 13:32     ` Richard Miller
2012-12-14 10:21     ` Richard Miller
2012-12-07 16:07   ` [9fans] Logitech m310 mouse issues & SSH va3yh
2012-12-07 16:18     ` Bence Fábián
2012-12-10  9:37   ` [9fans] Logitech m310 mouse issues Thomas Cenova
2012-12-10  9:37   ` Chris Sexton
2012-12-10 11:34     ` Richard Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).