From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: <36c581db6ee4981e87889b22a0360d00@hamnavoe.com> References: <36c581db6ee4981e87889b22a0360d00@hamnavoe.com> Date: Mon, 3 Mar 2014 12:22:21 +1300 Message-ID: From: Winston Kodogo To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: multipart/alternative; boundary=047d7b675cd261a07a04f3a7f1cc Subject: Re: [9fans] Raspberry Pi: won't recognize the USB mouse Topicbox-Message-UUID: c10da136-ead8-11e9-9d60-3106f5b1d025 --047d7b675cd261a07a04f3a7f1cc Content-Type: text/plain; charset=ISO-8859-1 I'm not sure if this is helpful at this, or indeed any, stage in the conversation, but for me one of the great joys of using Richard's port has been that it just works on real hardware without having to mess about, or having to worry about esoterica about USB and chums. At least they're esoterica to me as a Windows programmer. A few weeks back I was handed a pi at work, which is in the antipodes where the current flows in the other direction. I powered it via USB using the mains adapter that came with my iPod (which provides 2.1A at 5+ volts, although the 1A version that comes with the iPad mini also works fine) plugged in a keyboard or two that were lying around (Logitech K120 and some random Dell keyboard worked equally well), plugged in a really cheap spare Logitech mouse that was also just lying around, attached a random monitor borrowed from the IT guys downstairs using an HDMI to DVI cable, and it all just worked. So my feeling, based on "cop instinct", as Steve McGarrett used to say, is "Book him, Dano". Oops, no, sorry, that was wrong. Book a mains USB power adapter, Dano, and borrow or scrounge any old rubbishy peripherals that the IT guys have lying around in a dusty cupboard, and find something that works. And if that doesn't work, and you're not having fun, just give up and try something else. Sorry to bang on, but the pi, Richard's port, Andrey's code, and assorted documents, including Michael Covington's newbie guide and Nemo's book, have made programming fun again for me. On 3 March 2014 08:54, Richard Miller <9fans@hamnavoe.com> wrote: > > also, according to the linux kernel, we should not be looking for > > configurations on anything that's not a hub. > > Personally I wouldn't look to the linux kernel as guidance for > correct behaviour. Especially when there's a published specification > available. > > Every usb device has at least one configuration descriptor. The usb > spec allows for more than one, with a well-defined method for choosing > between them (not supported by plan 9 usb infrastructure). In > practice though, it seems common for devices to ignore this and use some > bizarre proprietary and undocumented way to switch configurations instead. > Hence the need for abominations like the linux usb_modeswitch utility. > > > --047d7b675cd261a07a04f3a7f1cc Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
I'm not sure if this is helpful at this, or indeed any= , stage in the conversation, but for me one of the great joys of using Rich= ard's port has been that it just works on real hardware without having = to mess about, or having to worry about esoterica about USB and chums. At l= east they're esoterica to me as a Windows programmer. A few weeks back = I was handed a pi at work, which is in the antipodes where the current flow= s in the other direction. I powered it via USB using the mains adapter that= came with my iPod (which provides 2.1A at 5+ volts, although the 1A versio= n that comes with the iPad mini also works fine)=A0 plugged in a keyboard o= r two that were lying around (Logitech K120 and some random Dell keyboard w= orked equally well), plugged in a really cheap spare Logitech mouse that wa= s also just lying around, attached a random monitor borrowed from the IT gu= ys downstairs using an HDMI to DVI cable, and it all just worked. So my fee= ling, based on "cop instinct", as Steve McGarrett used to say, is= "Book him, Dano". Oops, no, sorry, that was wrong. Book a mains = USB power adapter, Dano, and borrow or scrounge any old rubbishy peripheral= s that the IT guys have lying around in a dusty cupboard, and find somethin= g that works. And if that doesn't work, and you're not having fun, = just give up and try something else. Sorry to bang on, but the pi, Richard&= #39;s port, Andrey's code, and assorted documents, including Michael Co= vington's newbie guide and Nemo's book, have made programming fun a= gain for me.


On 3 Ma= rch 2014 08:54, Richard Miller <9fans@hamnavoe.com> wrote:<= br>
> also, according to the linux kernel, we should not be = looking for
> configurations on anything that's not a hub.

Personally I wouldn't look to the linux kernel as guidance for correct behaviour. =A0Especially when there's a published specification=
available.

Every usb device has at least one configuration descriptor. =A0The usb
spec allows for more than one, with a well-defined method for choosing
between them (not supported by plan 9 usb infrastructure). =A0In
practice though, it seems common for devices to ignore this and use some bizarre proprietary and undocumented way to switch configurations instead.<= br> Hence the need for abominations like the linux usb_modeswitch utility.



--047d7b675cd261a07a04f3a7f1cc--