Help - Search - Members - Calendar
Full Version: USB Mouse?
OESF Forums > Distros, Development, and Model Specific Forums > Model Specific Forums > 6000 - Tosa
Pages: 1, 2
saakmotu
I picked up one of the iRiver usb host adapters discussed here
http://www.oesf.org/forums/inde...topic=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(?).
http://www.oesf.org/forums/inde...?showtopic=6306

I'm using Sharp ROM (stock)
cwaig
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 wink.gif
data
Can joystick work w/ USB host?
neuroshock
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
saakmotu
QUOTE(cwaig @ Nov 21 2004, 07:23 PM)
Or you can wait 'til Christmas, when I get the SL6000 my wife's bought for me and I'll code it up myself wink.gif

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!!!
cwaig
QUOTE(saakmotu @ Nov 29 2004, 11:20 AM)
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 sad.gif
saakmotu
QUOTE(cwaig @ Nov 21 2004, 07:23 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 wink.gif

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)

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.
saakmotu
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.

smile.gif

Let me know if you need any help, like with testing it (my Z programmingi skills would likely not be up to snuff).
cwaig
QUOTE(saakmotu @ Dec 28 2004, 07:20 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.

Santa did indeed deliver....I'm writing this from it now smile.gif

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 sad.gif
the_oak
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.
saakmotu
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.
cosmos7
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.
cwaig
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 smile.gif

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
cat /dev/input/mice


This spits out garbage when you move the mouse - just what we want to see smile.gif

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).
nilch
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.
soundwave106
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. smile.gif
cwaig
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 - let me know if it works smile.gif
cwaig
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 smile.gif

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

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.

To install it do the following (as root):
CODE
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.
saakmotu
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.
soundwave106
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. smile.gif

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:



Still wish there was a better way!
nilch
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.
cwaig
I've just been out and picked up a little cheapy Packard Bell wireless laptop mouse 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 smile.gif

BarryW
Works with the Apple usb keyboard and mouse! Only one button on the mouse but hey, it works!
cwaig
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 smile.gif
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).
hubcapboy
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.
saakmotu
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!!
hubcapboy
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.
cwaig
QUOTE(saakmotu @ Jan 10 2005, 10:01 PM)
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 smile.gif

NOTE: When Yakty releases the new version of InputHelper, use that instead of libusbmouseapplet - remember to delete libusbmouseapplet before installing InputHelper though...
Antikx
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
BarryW
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...
hubcapboy
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
vputz
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
saakmotu
QUOTE(cwaig @ Jan 11 2005, 09:07 AM)
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.
soundwave106
Heh -- I think you are talking about the mounting layer that comes with the TargusTargus Universal IR keyboard.

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 smile.gif.

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).
Joshp
Cool it works. Am useing a microsoft trackball dry.gif . It also seems to work with both a usb mouse and keyboard, though a hub. Thx for you work. This is so cool.

JP
aki
I can only see a link to libusbmouseapplet.so.1.0.0. Is that the latest/greatest?
vputz
> Heh -- I think you are talking about the mounting layer that comes with the
> TargusTargus Universal IR keyboard.

Aha; that explains it. Thanks!

-->VPutz
ashikase
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
saakmotu
QUOTE(saakmotu @ Jan 12 2005, 02:52 PM)
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

It's a little bit of a rough read, but should be workable. I will try it tonight or tomorrow and report back.
saakmotu
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

KeyHelper "translated"
http://216.239.37.104/translate_c?hl=en&u=...6lr%3D%26sa%3DG

KeyHelperConf "translated"
http://216.239.37.104/translate_c?hl=en&u=.../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
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
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.
saakmotu
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
#!/bin/sh
qcop QPE/InputHelper 'handle()'



create a new file in /home/QtPalmtop/apps/Applications called "inputhelper.desktop"
inputhelper.desktop
CODE
[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. sad.gif
pieman
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 ohmy.gif by this offering from Archos, the pma400

which I would like to use with a usb Twiddler 2 from Handykey, a combined chording keyboard and trackpoint mouse.


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
xjqian
a newbie question. when i connected my usb mouse,

I got the following dmesg:

CODE
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?
xjqian
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
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? sad.gif
xjqian
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
adf
I could use the modules as well... if they are being made....
offroadgeek
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!
nilch
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.
adf
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.
mjb
QUOTE(nilch @ Feb 7 2005, 10:40 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.
*

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.
Click to view attachment
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!
smile.gif
gtJormungand
QUOTE(pieman @ Jan 24 2005, 06:27 PM)
which I would like to use with a usb Twiddler 2 from Handykey, 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!
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2014 Invision Power Services, Inc.