OESF Portables Forum

Everything Else => Sharp Zaurus => Model Specific Forums => Distros, Development, and Model Specific Forums => Archived Forums => 6000 - Tosa => Topic started by: saakmotu on November 18, 2004, 02:10:07 pm

Title: USB Mouse?
Post by: saakmotu on November 18, 2004, 02:10:07 pm
I picked up one of the iRiver usb host adapters discussed here
https://www.oesf.org/forums/inde...topic=7922&st=0 (https://www.oesf.org/forums/index.php?showtopic=7922&st=0)

It works great, so far.
I've been able to hook up an apple usb keyboard with no issue (except I had to reboot with it plugged in, else the keys weren't mapped properly). Some screwy action from the function keys, but I think it's just a matter of figuring them out.

Now, what we really need is mouse support. I haven't seen anything that accomodates this yet.
Any ideas?
An apple USB mouse is recognized, but there's no pointer (not that I really expected one).

It would really bridge the gap between Z and a laptop.

It looks like it might be possible with X/Qt, or perhaps OZ GPE(?).
https://www.oesf.org/forums/inde...?showtopic=6306 (https://www.oesf.org/forums/index.php?showtopic=6306)

I'm using Sharp ROM (stock)
Title: USB Mouse?
Post by: cwaig on November 21, 2004, 02:23:22 pm
What you need is Yakty's InputHelper applet - this provides a mouse cursor that can be controlled via QCOP messages, then you'll need to code up a small program to route mouse movement and button events to the QCOP channel.

Or you can wait 'til Christmas, when I get the SL6000 my wife's bought for me and I'll code it up myself
Title: USB Mouse?
Post by: data on November 22, 2004, 10:09:20 pm
Can joystick work w/  USB host?
Title: USB Mouse?
Post by: neuroshock on November 23, 2004, 01:48:32 am
cwaig,
I am programming illiterate.  Please let me know when you get that coded and set up.  I would be happy to pay you a little bit for your programming time...using a mouse has long been something I yearned to do, and I was SO hoping it would work with my 6k out of the can.
send me a yell when you get it ready.
dan@danzweb.com
NeuroShock
Title: USB Mouse?
Post by: saakmotu on November 29, 2004, 02:20:18 pm
Quote
Or you can wait 'til Christmas, when I get the SL6000 my wife's bought for me and I'll code it up myself
man, that's harsh if she's already bought it and it's just sitting in a box in the closet/under the tree and you can't play with it yet.

but, then, it's a very nice gift to receive...

can't wait for you to get it and code it up!!!
Title: USB Mouse?
Post by: cwaig on November 29, 2004, 03:48:04 pm
Quote
man, that's harsh if she's already bought it and it's just sitting in a box in the closet/under the tree and you can't play with it yet.

but, then, it's a very nice gift to receive...

can't wait for you to get it and code it up!!!
She has indeed already bought it (she tell's me the screen is very pretty compared to my old Sl5500). And yes, it's hidden somewhere in the house 'til Dec 25th
Title: USB Mouse?
Post by: saakmotu on December 16, 2004, 04:18:28 pm
Quote
What you need is Yakty's InputHelper applet - this provides a mouse cursor that can be controlled via QCOP messages, then you'll need to code up a small program to route mouse movement and button events to the QCOP channel.

Or you can wait 'til Christmas, when I get the SL6000 my wife's bought for me and I'll code it up myself
Well,, still waiting for Christmas..

In the meantime I figured I would install the InputHelper applet (which I got from here http://yakty.s31.xrea.com/cgi-bin/wiki/lin...utHelperApplet) (http://yakty.s31.xrea.com/cgi-bin/wiki/linuzau/wiki.cgi?InputHelperApplet))

but I am not seeing a pointer... do I have to have a mouse connected?

Cwaig, I'm sure it might be hard for you to provide an answer on that without your 6k in hand.. but perhaps there are some steps I need so take that I haven't yet.
Title: USB Mouse?
Post by: saakmotu on December 28, 2004, 10:20:18 am
Alright, Cwaig...

Santa has come and gone.. hopefully he left you a 6000.

Hope you like it. Can't wait til you get a chance to figure out  how to route mouse events to QCOP.



Let me know if you need any help, like with testing it (my Z programmingi skills would likely not be up to snuff).
Title: USB Mouse?
Post by: cwaig on December 28, 2004, 07:29:01 pm
Quote
Alright, Cwaig...

Santa has come and gone.. hopefully he left you a 6000.

Hope you like it. Can't wait til you get a chance to figure out  how to route mouse events to QCOP.
Santa did indeed deliver....I'm writing this from it now

The only thing santa hasn't provided is an iRiver usb host adaptor ('coz I live in the UK and iRiver won't ship to here from the US, and don't sell them as a seperate at all over here).

So...no joy 'til I track down an equivalent adaptor
Title: USB Mouse?
Post by: the_oak on December 29, 2004, 08:40:13 am
Hey Cwaig,
  I have no programming skills, but would like to donate a little iriver usb adapter like the one hubcapboy recommended in the pinned usb adapter thread. I have ordered it and a couple extras from iriver just now. PM me your address and I will forward one to you as my contribution to z software growth. Thanks for your work on the irk driver too.
Title: USB Mouse?
Post by: saakmotu on December 29, 2004, 11:13:48 pm
While waiting patiently for cwaig to receive the_oak's generous offer of the iRiver USB Host Adapter I tried plugging in my USB mouse and rebooting, just to see what would happen. I have already installed Yakty's InputHelper.
On boot up, got a message that modprobe could not find the module "mousedev"

I am not really sure what to do from here.. I mean, if I knew where I could get the mousedev module for the Zaurus (stock Sharp ROM) kernel, I would try loading it.

Otherwise, hopefully this helps keep things moving on this topic and gives cwaig something to ponder while waiting for shipment.
Title: USB Mouse?
Post by: cosmos7 on December 30, 2004, 02:39:09 pm
You'll notice that if you boot the Z with a USB keyboard plugged in, it'll complain about the lack of keyboarddev, yet the keyboard will function after boot.  I suspect mousedev will not help you.
Title: USB Mouse?
Post by: cwaig on January 05, 2005, 12:57:28 pm
Well, I got my SL6000 for Christmas, and Hubcapboy has kindly given me an iRiver adaptor while he was over here in the UK.

So, I've taken a look at the USB mouse issue - it'll work, guaranteed

Plugged in my USB mouse, then look at the system info - there it is, listed nicely.
Now, to see if it's actually working I did:
Code: [Select]
cat /dev/input/mice
This spits out garbage when you move the mouse - just what we want to see

A simple applet to deal with this will be a doddle. For simplicity, what I'll probably do is poach the cursor code from InputHelper and combine it with something that watches "/dev/input/mice" for input in the same way IRK watches /dev/ttySx. Should be able to do it in an evening (maybe tonight if the wife doesn't mind me throwing a late one).

I'm not sure what the various protocols USB mice spew - the first version will probably only support the protocol from the mouse I use (but more can be added later, and the nice thing about USB is that it's possible to auto detect what mouse it is, so there's no need for any sort of configuration).
Title: USB Mouse?
Post by: nilch on January 05, 2005, 02:06:28 pm
Cwaig - you are the king of making all sorts of input devices work on the Z.

You are really up there...
Now to just wait for your doodle to come up with the perfect laptop replacement hardware wise.
Title: USB Mouse?
Post by: soundwave106 on January 05, 2005, 07:32:04 pm
Most PC USB mice that I know of use the PS/2 protocol (or at least are backward compatible with it), so if you at least support that one I think a lot of people will be in good shape.
Title: USB Mouse?
Post by: cwaig on January 07, 2005, 05:00:03 am
Not had a lot of time to spend on this yet (grrr), but I did roll a quickie test program if anyone want's to try it out. Doesn't give you a mouse cursor yet, but if you run it in the console it should print out mouse movements and button presses from a USB connected mouse (PS2 protocol 3 button mice only, and no support to the scroll wheel at the moment....).

I've tried it with my own mouse, but it'd be nice to know it's going to work with other peoples as well....

The binary for this is here (http://angela1.data-uncertain.co.uk/~zaurus/mt) - let me know if it works
Title: USB Mouse?
Post by: cwaig on January 07, 2005, 08:39:09 am
Just to follow up my own post here, I've just quickly hacked in the USB mouse support to Yakty's InputHelper code - and it works!

Plug in a mouse, move it and up pops an onscreen cursor that tracks with Qtopia

Leave the mouse still for a while and the cursor disappears again. Lovely

I've not rolled an ipk of this yet, but anyone who cann't wait to get mouse support for their SL6000 can download the plugin and install it manually from here (http://angela1.data-uncertain.co.uk/~zaurus/libusbmouseapplet.so.1.0.0).

To install it do the following (as root):
Code: [Select]
cp libusbmouseapplet.so.1.0.0 /opt/QtPalmtop/plugins/applets
cd /opt/QtPalmtop/plugins/applets
ln -s libusbmouseapplet.so.1.0.0 libusbmouseapplet.so.1.0
ln -s libusbmouseapplet.so.1.0.0 libusbmouseapplet.so.1
ln -s libusbmouseapplet.so.1.0.0 libusbmouseapplet.so

Then reboot your Zaurus. You won't see anything to show it's installed, but plug a PS2 mouse into the USB port and it'll "just work".

IPK version for the less adventurous will be along in the near future.

NOTE: Don't install Yakty's InputHelper at the same time as this. It's just a modified version of the latest InputHelper code (0.8.8), so you won't need InputHelper itself installed.
Title: USB Mouse?
Post by: saakmotu on January 07, 2005, 12:03:33 pm
Works for me using a Microsoft Intellimouse Optical USB and PS/2 Compatible mouse.
I forget, but I think this is an "Explorer", 5 button with scroll wheel.

I did have to plug in the mouse and then restart, I wasn't able to hotplug it.

I notice that as you move the mouse the screen redraw from where the pointer just had been is a little bit latent to redraw, especially if you move the mouse quickly.
Also, in the imaging program, if you try to draw with the mouse, like with the pencil, it doesn't immediately show every part of the line on the screen. If you mouse around the area that you just scribbled, it will fill it in.

I wouldn't call either of those issues show-stoppers as it does function and provide at least basic mouse support which is VERY COOL and should have been something that was included in the ROM, dontcha think?

Thanks a lot and looking forward to improved versions!!!

As far as the ipkg, the install is so easy, it's hardly necessary.
Title: USB Mouse?
Post by: soundwave106 on January 07, 2005, 07:05:23 pm
It also worked with a Targus Ultra-Mini Retractable Mouse. I did notice some graphical issues occasionally in my brief test, but nothing show-stopping. Sweet.

Kind of sucks that the USB port is on the bottom, as I wanted to see if this would work well with the Targus IR keyboard.  I had to roll up the mouse carrying case to provide some support, but it did end up working, kind of:

[img]http://img.photobucket.com/albums/0803/soundwave106/2b3e521a.jpg\" border=\"0\" class=\"linked-image\" /]

Still wish there was a better way!
Title: USB Mouse?
Post by: nilch on January 07, 2005, 11:26:31 pm
works fine with my Logitech USB mouse (with scroll wheel)
Tje install instructions were very sinple and straightforward.

Only point needed a reboot with mouse attached.
At reboot it gave a message of modprobe : module usbmoue not found or something to that effect.
There is a lag in the mouse movement - much like  mouse trail being left on the screen which redraws a few seconds later (more like 1 sec).

Imaging has the problem mentioned - lines dont draw cleanly.
Mouse work in all other apps - like emai, Operal (i am scrolling and pointing now with my USB mouse attached), documents tab as well.

The mouse pointer is very accurate and responsive on all areas of screen - like scroll bars or even small type links in Opera.Double click works to open up apps., single click selects.

What more can I say except hats off Cwaig.
I am sure you will ultimately; given time resolve those minor issues too.
Title: USB Mouse?
Post by: cwaig on January 08, 2005, 12:07:40 pm
I've just been out and picked up a little cheapy Packard Bell wireless laptop mouse (http://www.pcworld.co.uk:80/martprd/store/pcw_page.jsp?BV_SessionID=@@@@0307657774.1105204033@@@@&BV_EngineID=cccladddekhejgicflgceggdhhmdgml.0&chain=PC_World&channel=WEB&browserName=konqueror&browserVersion=3&platform=default&firstrun=yes&page=Product×tamp=05:06:10&sku=155858&page=Product&chain=PC_World&channel=WEB&browserName=konqueror&browserVersion=3&platform=default×tamp=05:06:10&sku=155858) to use with my Z - the little RF dongle is powered from the USB (unlike the mouse I was initially using), so I was a bit worried it might not work with the Z. No problem though - it works perfectly, and is ideal for use with the Z - no dodgy trailing wires or anything to dislodge the Z from wherever you've got it propped up. In combination with my Pocketop keyboard, it's almost like using a laptop

[img]http://angela1.data-uncertain.co.uk/~zaurus/zaurusPocketopAndMouse.jpg\" border=\"0\" class=\"linked-image\" /]
Title: USB Mouse?
Post by: BarryW on January 10, 2005, 02:27:35 am
Works with the Apple usb keyboard and mouse!  Only one button on the mouse but hey, it works!
Title: USB Mouse?
Post by: cwaig on January 10, 2005, 07:21:29 am
I've updated the USB mouse applet to support the Intellimouse extensions, so the scroll wheel now works in most apps (I've set up the scroll wheel to send cursor up/down messages, so you can scroll up and down the page in Opera with it. Seems to work reasonably well
I'm not certain that it'll be compatible with Mac mice and non-scroll wheel mice - but as most (all?) cheap PC/laptop mice are scroll wheel type now anyway, I doubt that this is to much of a problem...

I've also noticed that there's an interesting QT menu available if you right click on the title bar of an application (let's you resize the app, or swap to an OSX look-alike style where you can move windows around).
Title: USB Mouse?
Post by: hubcapboy on January 10, 2005, 10:43:52 pm
Hey craig!!!

so cool to see you were able to get the pigtail working so quickly!!

you're an animal dude. glad to help.  i'll let you know when i get it working when i get home tonight.
Title: USB Mouse?
Post by: saakmotu on January 11, 2005, 01:01:26 am
updated version works great and the ability to change window attributes is interesting, but I'm not so sure how useful it is.

At the risk of sounding ungrateful, which is absolutely not the case, I'm now curious if there is a way to also have an optional "mouseless pointer"?

I often find myself using my Z in situations where it would be nice to be able to keep the lid closed but still be able to "tap" on the screen. (laying in bed, for example)

Could the usb mouse applet be also made into a pointer that was controlled by the directional pad and button instead of a mouse?

Thanls again, cwaig!!
Title: USB Mouse?
Post by: hubcapboy on January 11, 2005, 01:09:18 am
craig you're amazing.  this is perfect.

people won't stop asking me about my setup here at the coffee shop thanks to your work on the keyboard and mouse imput.
Title: USB Mouse?
Post by: cwaig on January 11, 2005, 04:07:33 am
Quote
At the risk of sounding ungrateful, which is absolutely not the case, I'm now curious if there is a way to also have an optional "mouseless pointer"?

I often find myself using my Z in situations where it would be nice to be able to keep the lid closed but still be able to "tap" on the screen. (laying in bed, for example)

Could the usb mouse applet be also made into a pointer that was controlled by the directional pad and button instead of a mouse?
The libusbmouseapplet is just a modified version of Yakty's InputHelper applet (Yakty is going to include my patches in the next official InputHelper release). As luck would have it, InputHelper (and therefore libusbmouseapplet) already provides exactly what you describe - you need to install KeyHelper as well and configure it to send the appropriate QCOP messages to InputHelper to control the mouse pointer (that's what InputHelper was originally written for...). Only problem is that Yakty's Japanese, so all the instructions for how to use InputHelper are also in Japanese, so it does take a bit of figuring out...

As an aside, Yakty mailled me to say:
Quote
It works also on SL-C750 with REX-CFU1(USB host CF Card), and SL-C3000.

So, all the recent Zaurus models should be able to use this code to get USB mouse support

NOTE: When Yakty releases the new version of InputHelper, use that instead of libusbmouseapplet - remember to delete libusbmouseapplet before installing InputHelper though...
Title: USB Mouse?
Post by: Antikx on January 11, 2005, 10:47:44 am
Thanks for your hard work cwaig.

I don't own a Zaurus yet but It'll be soon and you are making it harder to wait. (that's a good thing)

I have a question if you don't mind:
If you plugged a (externally powered) USB hub into the Zazurus's USB host port could you use a USB kbd and mouse at the same time?


-Antikx
Palm Tungsten C
256MB SD
Title: USB Mouse?
Post by: BarryW on January 11, 2005, 11:28:19 am
I don't see why not.  I plugged in my apple keyboard with the mouse attached to that, as they have two usb ports on them.  Both worked great, well with the exception of a few mismapped keys...
Title: USB Mouse?
Post by: hubcapboy on January 11, 2005, 07:03:37 pm
hey craig, just taking a lok at your keyboard setup... pretty cool I'm doing just about the same thing sitting in class right now.  I noticed that your'e using the stand that comes with the MI keyboard. I don't know how well it worked with the 5600, but my 6k kept falling off, etc, which wasn't very impressive, so I now use a normal door hinge bent all the way around backwards to hold the compuer up it's a little heavier and holds it at just about the right angle.

later dude
Title: USB Mouse?
Post by: vputz on January 11, 2005, 08:48:42 pm
Soundwave, I have to ask--wot the devil is that cradle you're using there?  It looks like some sort of bizarre pivoting Z cradle.  Intriguing.

-->VPutz
Title: USB Mouse?
Post by: saakmotu on January 12, 2005, 09:52:50 am
Quote
Only problem is that Yakty's Japanese, so all the instructions for how to use InputHelper are also in Japanese, so it does take a bit of figuring out...
Is there a nice English howto for this?
I had previously installed inputhelper, but wasn't able to produce any results. I guess I didn't realize that I also would need keyhelper.
Title: USB Mouse?
Post by: soundwave106 on January 12, 2005, 10:58:54 am
Heh -- I think you are talking about the mounting layer that comes with the TargusTargus Universal IR keyboard. (http://www.targus.com/us/product_details.asp?sku=PA870U)

In portrait mode the cradle actually works pretty well holding the Z normally, although the support arms are a bit finnicky. In order to use the USB port I'm having to lift the Zaurus with a rolled up mouse carrying case, but that's okay I suppose .

I haven't had as much success using the Targus IR keyboard with the Zaurus in landscape mode (mostly because of the short range of the swiveling IR arm).
Title: USB Mouse?
Post by: Joshp on January 12, 2005, 01:44:27 pm
Cool it works.  Am useing a microsoft trackball  .  It also seems to work with both a usb mouse and keyboard, though a hub.  Thx for you work.  This is so cool.

JP
Title: USB Mouse?
Post by: aki on January 12, 2005, 05:51:01 pm
I can only see a link to libusbmouseapplet.so.1.0.0.  Is that the latest/greatest?
Title: USB Mouse?
Post by: vputz on January 12, 2005, 07:56:44 pm
>  Heh -- I think you are talking about the mounting layer that comes with the
> TargusTargus Universal IR keyboard.

Aha; that explains it.  Thanks!

-->VPutz
Title: USB Mouse?
Post by: ashikase on January 12, 2005, 07:59:04 pm
Quote
NOTE: When Yakty releases the new version of InputHelper, use that instead of libusbmouseapplet - remember to delete libusbmouseapplet before installing InputHelper though...
The new version (v 1.0) has been released.

I just noticed it on a Japanese news site (www.mobilenews.ne.jp) - with a note giving you credit (^_^)

- ashikase
- anpachi, gifu, japan
Title: USB Mouse?
Post by: saakmotu on January 12, 2005, 10:54:27 pm
Quote
Is there a nice English howto for this?
Well, lo and behold here it is.. I swear I didn't see it before.
http://yakty.s31.xrea.com/cgi-bin/wiki/lin...putHelperApplet (http://yakty.s31.xrea.com/cgi-bin/wiki/linuzau/wiki.cgi?Eng%2fInputHelperApplet)

It's a little bit of a rough read, but should be workable. I will try it tonight or tomorrow and report back.
Title: USB Mouse?
Post by: saakmotu on January 13, 2005, 02:15:03 pm
ok.. not so difficult for basic operation

I installed all 3 ipkgs, but I suppose that KeyHelperConf could be optional.

InputHelper "English"
http://yakty.s31.xrea.com/cgi-bin/wiki/lin...HelperApplet#i8 (http://yakty.s31.xrea.com/cgi-bin/wiki/linuzau/wiki.cgi?Eng%2fInputHelperApplet#i8)

KeyHelper "translated"
http://216.239.37.104/translate_c?hl=en&u=...6lr%3D%26sa%3DG (http://216.239.37.104/translate_c?hl=en&u=http://yakty.s31.xrea.com/linuzau/keyhelper/&prev=/search%3Fq%3Dkeyhelper%26hl%3Den%26lr%3D%26sa%3DG)

KeyHelperConf "translated"
http://216.239.37.104/translate_c?hl=en&u=.../keyhelperconf/ (http://216.239.37.104/translate_c?hl=en&u=http://yakty.s31.xrea.com/linuzau/keyhelperconf/)

I haven't been able to successfully do anything with KeyHelper yet.

Start InputHelper (from the konsole as root) with the following command:
Code: [Select]
qcop QPE/InputHelper 'handle()'
Once it's running, I was able to hotplug my usb mouse with no further mods.

I don't like having the spacebar be the "mouse click" for a couple of reasons.
1) Keyboard drawer must be open to get to the spacebar
2) When typing with the applet activated, the spacebar "clicks". To insert a space, you have to use the action button (or whatever it's called.. the button in the middle of the directional pad).

I haven't figured out how to make it use the action button instead... doesn't that make more sense?

Disable/Enable the pointer/clicking with
Code: [Select]
khctl disable|enable
or just khctl for a list of options
again as root...

it would probably be helpful to have a taskbar icon to turn it on/off... but I don't know how to do that, yet.
or, if we could figure out how to change the click from the spacebar to the action button, there would be a reduced need to repeatedly disable/enable the pointer.
Title: USB Mouse?
Post by: saakmotu on January 17, 2005, 01:59:36 pm
Solution for starting/stopping the InputHelper pointer.


as root

create a new file in /home/QtPalmtop/bin called "inputhelper" and chmod it 755
inputhelper
Code: [Select]
#!/bin/sh
qcop QPE/InputHelper 'handle()'


create a new file in /home/QtPalmtop/apps/Applications called "inputhelper.desktop"
inputhelper.desktop
Code: [Select]
[Desktop Entry]
CanFastload = 1
Comment = Enable/Disable Mouse Pointer
Exec = inputhelper
Icon = A_key5
Name = InputHelper
Type = Application
HidePrivilege = 1
Display=640x480/144dpi,480x640/144dpi

restart, I think...

This will give you an "InputHelper" icon in the "Applications" tab that you can click on to start/stop the mouse pointer.
Also, click and hold on that new icon and uncheck the "magnified screen" box.

Since I don't like having the "Record" button start up the voice recorder, I used "Settings/Application Key" to launch "InputHelper". It's a little slow since you have to hold down the Record button for a couple of seconds before it launches... you could use any other button of your choice, like the one with the little dot right above "Cancel", but I like to have that one mapped to "tab".

The pointer starts/stops quickly, but it sorta hangs with the little hourglass in the taskbar, which prevents you from rapidly starting/stopping the pointer in succession. Not sure why, it doesn't do that if you enter the same command from the konsole. Any ideas on how to speed this up?

Also, the documentation states that you can use either of these commands for InputHelper
qcop QPE/InputHelper 'handle()'
qcop QPE/InputHelper 'handle(int)'
where the 2nd option allows you to enter a number which will specify the number of clicks before the pointer will automatically stop, but I can't get it to work. Anyone?

Still haven't figured out how to use the dir. pad button instead of the space bar.
Title: USB Mouse?
Post by: pieman on January 24, 2005, 01:27:57 pm
Hi folks - looks like a grand forum you have here.
I'm a complete Zaurus and Linux virgin, but I'm being well tempted to stray from my current ppc     by this offering from Archos, the pma400 (http://www.archos.com/products/overview/pma_400_tech_specs.html)

which I would like to use with a usb Twiddler 2 from Handykey (http://www.handykey.com/site/twiddler2.html), a combined chording keyboard and trackpoint mouse.
[img]http://www.handykey.com/twiddler.gif\" border=\"0\" class=\"linked-image\" /]

I know its not a Zaurus, but this thread came up in a google search for me, and looks very interesting. Forgive the numbty question, but Cwaig, or anyone one else, is there any reason why your fine looking applet shouldn't work with the Archos device (which runs Qtopia over Linux) or with the Twiddler, which is Linux compatible?

many thanks

pie
Title: USB Mouse?
Post by: xjqian on January 25, 2005, 10:05:23 pm
a newbie question. when i connected my usb mouse,

I got the following dmesg:

Code: [Select]
hub.c: USB new device connect to bus1/1, assigned device number 4
usb.c: USB device 4 (vend/prod 0xd62/0xa100) is not claimed by any active driver.

Does that mean the usb mouse is not supported?
Title: USB Mouse?
Post by: xjqian on January 27, 2005, 01:06:49 am
To articulate my problem:

* I installed inputhelper. From what I read, it should work out-of-box (at most a reboot) after installing inputhelper...
* I had the following module sspit out by lsmod
Code: [Select]
Module                  Size  Used by
sd_mod                 10736   2  (autoclean)
usb-storage            21840   1
scsi_mod               55376   2  [sd_mod usb-storage]
pxa_bi                 22160   0  (unused)
net_fd                 25872   0  (unused)
usbdcore               35008   0  [pxa_bi net_fd]
registers              27424   0  (unused)
kbdsim                  1008   0  (unused)
usbdmonitor             5248   0
vtty                    7920   0  (unused)
ext2                   33184   2
sharp_mmcsd_m          31520   2
prism2_usb             70944   0  (unused)
usb_ohci_tc6393        25936   0  (unused)
usbcore                54016   1  [usb-storage prism2_usb usb_ohci_tc6393]
p80211                 24176   0  [prism2_usb]

I'm suspecting maybe the fast kernel didn't have certain module loaded. Sorry for my laziness, I should have flashed back to check what I'm missing but I rely on my 6K to get some of my work done. Stablility is my current priority.

Do you guys know what module or step I'm missing?
Title: USB Mouse?
Post by: xjqian on January 28, 2005, 08:07:03 pm
I looked up the source in linux-2.4.18-rmk7-pxa3-common-20041002.tar.gz

seems I was missing the following  two modules in the fast kernel

usbmouse
usbkbd

could somebody post the sharp stock modules for these two. and where I should put them? Thanks in advance
Title: USB Mouse?
Post by: adf on February 03, 2005, 12:23:03 am
I could use the modules as well... if they are being made....
Title: USB Mouse?
Post by: offroadgeek on February 05, 2005, 09:58:27 pm
This is absolutely amazing!  I installed the latest ipk and have my optical intellimouse plugged into the downstream port on my btc mini usb keyboard, and the mouse works great (as does the keyboard).  

When I first got my 6000, I thought the docking cradle was way too big, but now I realize it:s perfect height and angle to use the 6000 with a usb keyboard and mouse!

Thank you, thank you!
Title: USB Mouse?
Post by: nilch on February 07, 2005, 05:40:03 pm
makes me wish I had bought a USB keyboard with a downstream USB port too (one I had seen had two ports), but I was doubtful that it would work at all on the Zaurus with a mouse attached. Hence I had bought a keyboard with no extra ports at all.

Makes me repeat to myself - take risks, experiment, only  then will you learn.
Title: USB Mouse?
Post by: adf on February 09, 2005, 01:42:10 pm
On the fasdt kernel issue:
I'm working on a version w/ hid support. It is easy enough to compile, its just getting it to run that is the problem.
I'll start a thread on z6k general discussions. This should not be too hard to figure out.
Title: USB Mouse?
Post by: mjb on February 09, 2005, 09:56:37 pm
Quote
makes me wish I had bought a USB keyboard with a downstream USB port too (one I had seen had two ports), but I was doubtful that it would work at all on the Zaurus with a mouse attached. Hence I had bought a keyboard with no extra ports at all.

Makes me repeat to myself - take risks, experiment, only  then will you learn.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=66038\"][{POST_SNAPBACK}][/a][/div]
I'm using a two port USB hub - $4 at compgeeks - with a mini optical mouse - $6 at compgeeks - and a small usb keyboard - $17 at newegg. This setup works very well with my 6000 in landscape mode.
  [ You are not allowed to view attachments ]
I'll be using it to create web pages while I bicycle tour in Europe next summer. This setup weighs just over 2 pounds, and replaces about 10 pounds of laptop and accessories!
 
Title: USB Mouse?
Post by: gtJormungand on March 04, 2005, 08:04:13 am
Quote
which I would like to use with a usb Twiddler 2 from Handykey (http://www.handykey.com/site/twiddler2.html), a combined chording keyboard and trackpoint mouse.
The Twiddler is something I want to try with a Zaurus, but I need to wait for a couple more weeks before purchasing a 3000 so I'll actually have USB capability.  I'm hoping it'll work well enough.

edit - picture removed!
Title: USB Mouse?
Post by: adf on March 07, 2005, 12:54:08 am
Back to the 6000 fast kernel thing. It can be done by re doing the kernel from guylhems sources. add (hard, not as modules) the mouse and keyboard stuff ...when you get to the usb drivers leave the hid and mouse and kbd stuff to compile as modules...then just pop in your kernel and use the sharp modules already there.  I compiled in the hitachi ohci, and so have to remove that module from the z.

usbmouse w/ fast kernel is viable.
Title: USB Mouse?
Post by: guylhem on March 24, 2005, 09:55:34 am
usbmouse w/ fast kernel is viable... and in fact it works great :-)

Today I made my wireless (bluetooth) mouse work on my 6000W with some little tweaking. I will post intructions and pictures soon. I'm still working on my wireless (bluetooth) keyboard - after an initial success, I am experiencing (again) the keyboard mapping problems. Damn!

However the idea of a 6000 with wireless peripherals is so sweet !

PS: The best idea at the moment is to remove keybdev, use evdev, read from /dev/input/event0 and send back the codes (ala irk), but I'll also try to fix the keyboard mapping.

Guylhem
Title: USB Mouse?
Post by: mitchrl on March 26, 2005, 06:18:23 am
Extending the scheme where I am autoloading keyhelper to remap keys on my usb keyboard by using hotplug events here is the same thing for inputhelper. By using the following script named 'usbmouse' and placing it in /etc/hotplug/usb:

#!/bin/bash
#
#
if [ "${ACTION}" = "add" ]; then
  export PATH=/home/QtPalmtop/bin:/root/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin
  export LD_LIBRARY_PATH=/home/QtPalmtop/lib
  export QTDIR=/home/QtPalmtop
  export QPEDIR=/home/QtPalmtop
  sudo -u root qcop QPE/InputHelper 'handle()'
  echo "#!/bin/bash" > $REMOVER
  chmod 777 $REMOVER
  echo "export PATH=/home/QtPalmtop/bin:/root/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin" >> $REMOVER
  echo "export LD_LIBRARY_PATH=/home/QtPalmtop/lib" >> $REMOVER
  echo "export QTDIR=/home/QtPalmtop" >> $REMOVER
  echo "export QPEDIR=/home/QtPalmtop" >> $REMOVER
  echo "sudo -u root qcop QPE/InputHelper 'handle()'" >> $REMOVER
fi

mouse support is enabled when the usb mouse is attached and disabled when it is removed. Hope this helps.

Robert
Title: USB Mouse?
Post by: rob_figlabs on June 13, 2005, 10:17:03 am
I don't think an ipk ever got posted here, so I made one ( [ You are not allowed to view attachments ] ). Just install it and go (I didn't need to reboot).  Thanks Cwaig - this is really neat!
Title: USB Mouse?
Post by: rjb on July 13, 2005, 04:20:01 pm
Thanks for posting the link.  Just tried it with a Atek mouse (very small) and it works great.
Ron
Title: USB Mouse?
Post by: poorman on July 24, 2005, 05:10:43 pm
Oh well, USB mice work like a charm. However I fell into troubles with my PS/2 to USB convertor. It has both keyboard and mouse PS/2 ports. So you can use both devices on "one" USB port wIthout need of USB hub. It is usefull toy when you want to use friend's/customer's/etc keyboard and mouse. It's still more common that it will be PS/2 and not USB device.

Keyboard works well but mouse was dead. It identifies itself as

dmesg:
input0: Symbiose lab inc. Symbiose PS/2 Keyboard - PS/2 Mouse on usb1:8.0
input1: Symbiose lab inc. Symbiose PS/2 Keyboard - PS/2 Mouse on usb1:8.1

lsusb:
Bus 001 Device 008: ID 04b4:8081 Cypress Semiconductor Corp.

Once plugged to zaurus it loads hid.o module. I've loaded usbmouse as well but it wasn't working while usb mouse worked at the same time. I played with it few hours and saw it working few times. However I wasn't able to find why it sometimes works and sometimes not. Finally I've found that hid module must be released before usbmouse module is loaded.

It means sequence:
- plug PS/2 to USB convertor
- rmmod hid
- modprobe usbmouse

Later hid module can be loaded again without impact on PS/2 mouse functionality. Releasing of hid module doesn't have impact on keyboard or USB mouse functionality. It is also possible to use both ps/2 and usb mouse together if you find it usefull

What's strange is mouse wheel behaviour. Wheel works well on USB mouse but when the same mouse is connected via PS/2_to_USB convertor then wheel is dead. It seems to me as problem with (old) usbmouse driver on Zaurus because it works well on my desktop.

'cat /dev/input/mice' on desktop shows mess when wheel is rolled but on Zaurus it is silent (it reacts only on wheel click).

Any ideas?

Cheers, poorman
Title: USB Mouse?
Post by: smammon on August 10, 2005, 03:53:54 pm
Ok, this officially rocks!  Typing away on my ThinkOutside IR keyboard - thanks to Cwaig's irk driver - mousing around with my little USB Wireless mouse - thanks to Cwaigs USB_mouse driver.  

Craig, you are Da Man!

BTW get one of these cables - Goldx USB 5 way adapter (http://http://www.cyberguys.com/templates/searchdetail.asp?T1=131+1275&dept=&search=USB+cable&child=)

Thanks again!
Title: USB Mouse?
Post by: inode0 on August 10, 2005, 11:26:44 pm
Has anyone else noticed

# ll /dev/usbmouse
lrwxrwxrwx  1 root root 48 Aug 10 21:14 /dev/usbmouse -> /home/matty/0217/rootfs/root_cramfs/dev/usb/mice

That seems an odd place to be pointing!

John
Title: USB Mouse?
Post by: inode0 on August 11, 2005, 01:07:22 am
Just tested the usb mouse fun under Xqt. Perhaps I don't have things quite set up right but it basically works. The X version of the mouse doesn't move until I click the crosshairs someplace. The most annoying thing at the moment is that moving the mouse keeps the Qtopia stuff at the bottom of the screen covering up the ICEwm stuff. It's a start though.

John