Reply
Thread Tools
Posts: 47 | Thanked: 10 times | Joined on Dec 2007
#21
I think you'll need a full scratchbox VM running on your PC to compile it.
 
Posts: 24 | Thanked: 1 time | Joined on Oct 2007
#22
can someone post a tutorial?
 
Posts: 1,213 | Thanked: 356 times | Joined on Jan 2008 @ California and Virginia
#23
ok, so no compiling on the tablet, o well... thanks
 
Guest | Posts: n/a | Thanked: 0 times | Joined on
#24
Originally Posted by Thesandlord View Post
ok, so no compiling on the tablet, o well... thanks
Sure you can! Just install libc-dev (points to libc6-dev) and libx11-dev (also pulls in other related packages, like x11proto-core-dev). Then it compiles on the tablet, just like one would expect.

I tested this on my N810 and could compile mouse_poll.c without warnings. It runs but I don't have a mouse+cable to test it any further.
 

The Following User Says Thank You to For This Useful Post:
Posts: 3 | Thanked: 0 times | Joined on Jan 2008
#25
I am looking for a way to get "mouse over" functionality for web surfing. (most of the sites I surf use that action to display content.) Is this thread talking about a way that would allow a quick-tap of the stylus to trigger a mouse-over event? OR do I need a physical mouse connected via the USB cable? <- which would be really cool too.

Are there alternative methods for achieving a "mouse over"?

I am using a N800, upgraded to OS2008.
 
Posts: 220 | Thanked: 19 times | Joined on Jun 2006
#26
There is a couple of ways to make the cursor visible,
1--- In /usr/share/icons/xcursor-transperent/cursors/
replace the appropriate one with a non transparent one. I think X_cursor is the one to replace but thats a guess.
2--- Install a new cursor theme and edit /usr/share/user-icons/default/index.theme
 
Posts: 1,213 | Thanked: 356 times | Joined on Jan 2008 @ California and Virginia
#27
Thanks for the tip, most of it worked... but now i have one error that says undefined reference to XOpenDisplay. Do i need another package for that?

Edit: Looks like it compiled somehow, maybe a typo or something. I had to manually move the output file to /usr/X11R6/bin to get it to work. too bad it doesn't work (well) with quake 2...

Last edited by Thesandlord; 2008-02-06 at 05:07. Reason: worked?
 
Benson's Avatar
Posts: 4,930 | Thanked: 2,272 times | Joined on Oct 2007
#28
Originally Posted by Thesandlord View Post
Thanks for the tip, most of it worked... but now i have one error that says undefined reference to XOpenDisplay. Do i need another package for that?

Edit: Looks like it compiled somehow, maybe a typo or something. I had to manually move the output file to /usr/X11R6/bin to get it to work. too bad it doesn't work (well) with quake 2...
Seems like you need to install libxt-dev (whence XOpenDisplay) and libxtst-dev to get evrouter to configure. Then it makes and installs cleanly.

Anyone have a sample evrouter config file? Oh, well, I'll try to hash something together...
 
Benson's Avatar
Posts: 4,930 | Thanked: 2,272 times | Joined on Oct 2007
#29
Got it working, but it doesn't work in xterm, odd...

Works great in rdesktop, though.

This goes in .evrouterrc:
Code:
Window ""
"Mouse" "" any key/272 "XButton/1"
"Mouse" "" any key/273 "XButton/3"
"Mouse" "" any key/274 "XButton/2"
"Mouse" "" any rel/8/1 "XKey/Up"
"Mouse" "" any rel/8/-1 "XKey/Down"
The last two lines are for the wheel; you might want to configure those as buttons 4/5 for apps that know about scroll mice, but I'm leaving the imwheel-esque mapping there for remote access. (As Windows apps don't see the wheel as buttons 4 and 5.)

Last edited by Benson; 2008-02-29 at 00:59.
 

The Following User Says Thank You to Benson For This Useful Post:
Benson's Avatar
Posts: 4,930 | Thanked: 2,272 times | Joined on Oct 2007
#30
Here's a script; plug the mouse in, run this:
Code:
#!/bin/sh
killall evrouter mouse_poll
rm /tmp/.evrouter\:0.0
for devfile in /dev/input/event*; do
  sudo /bin/chmod a+r $devfile
done 
mouse_poll `evrouter /dev/input/event* |head -6 | grep Mouse| cut -d: -f2`&
while [ "x`grep Mouse  /proc/bus/input/devices`" != x ]; do
  sleep 10
done
killall evrouter mouse_poll
It cleans things up, runs the mouse_poll and evrouter to transfer motion and clicks, respectively, and waits until the mouse is unplugged, then it exits. You could easily make it loop forever, restarting the programs when the mouse shows back up, but I'm leaving it manually started for the moment.

You'll need to add /bin/chmod a+r /dev/input/event* in sudoers, like:
Code:
user ALL = NOPASSWD: /bin/chmod a+r /dev/input/event*
You'll also need evrouter and mouse_poll themselves; source for both was linked early in this thread, but I'm going to attach binaries. I don't know that they will work; they may need libraries not installed by default. If anyone gets them to work, please reply here. They are reported to work, so have at it.

If you build from source, apt-get install:
  • gcc
  • make
  • libc-dev
  • libx11-dev
  • libxt-dev
  • libxtst-dev
Install the binaries somewhere on the path / make the path point to the binaries.

Making the cursor visible is easy; install an alternate theme, or use the fallback non-themed cursors by commenting the line in /home/user/.icons/default/index.theme:
Code:
[Icon Theme]
#Inherits=xcursor-transparent
Then reboot, for it to take effect.
Attached Files
File Type: zip mouse_poll+evrouter.zip (34.9 KB, 394 views)

Last edited by Benson; 2008-02-29 at 15:01.
 

The Following 6 Users Say Thank You to Benson For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 20:34.