|
2008-11-10
, 23:36
|
|
Moderator |
Posts: 7,109 |
Thanked: 8,820 times |
Joined on Oct 2007
@ Vancouver, BC, Canada
|
#122
|
The Following 5 Users Say Thank You to qole For This Useful Post: | ||
|
2008-11-11
, 04:12
|
|
Posts: 11,700 |
Thanked: 10,045 times |
Joined on Jun 2006
@ North Texas, USA
|
#123
|
|
2008-11-11
, 04:29
|
Posts: 164 |
Thanked: 18 times |
Joined on Dec 2007
|
#124
|
|
2008-11-11
, 05:48
|
|
Moderator |
Posts: 7,109 |
Thanked: 8,820 times |
Joined on Oct 2007
@ Vancouver, BC, Canada
|
#125
|
|
2008-11-11
, 05:50
|
Posts: 1,213 |
Thanked: 356 times |
Joined on Jan 2008
@ California and Virginia
|
#126
|
|
2008-11-11
, 08:59
|
Posts: 94 |
Thanked: 38 times |
Joined on Jul 2008
|
#127
|
|
2008-11-11
, 13:49
|
Posts: 631 |
Thanked: 837 times |
Joined on May 2007
@ Milton, Ontario, Canada
|
#128
|
The Following 2 Users Say Thank You to jolouis For This Useful Post: | ||
|
2009-06-08
, 20:31
|
Posts: 28 |
Thanked: 8 times |
Joined on Mar 2008
|
#129
|
Thanks migs, frustratingly searches for "usb mouse" lead to this thread instead of to the wiki article, so I wanted to get a summary that would help people get the stuff they needed. Your link to the wiki will help even more...
I am trying to use the mouse in Easy Debian, in LXDE. It mostly works, but there are two problems that make it unusable in practice. (1) The screen keeps dimming when typing or using the mouse, I have to keep tapping the screen, and (2) The mouse doesn't work for cut and paste, if I try to highlight a word with the mouse, it starts putting "qqqqqq" into the text.
|
2009-06-17
, 20:56
|
|
Posts: 1,028 |
Thanked: 578 times |
Joined on Mar 2009
@ Chicago
|
#130
|
Here's a script; plug the mouse in, run this:
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.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
You'll need to add /bin/chmod a+r /dev/input/event* in sudoers, like: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.Code:user ALL = NOPASSWD: /bin/chmod a+r /dev/input/event*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:Install the binaries somewhere on the path / make the path point to the binaries.
- gcc
- make
- libc-dev
- libx11-dev
- libxt-dev
- libxtst-dev
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:Then reboot, for it to take effect.Code:[Icon Theme] #Inherits=xcursor-transparent
----------------------------------------------------
www.ezschool.com - The best online educational experience.