LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 08-02-2004, 12:36 PM   #1
bleargh
Member
 
Registered: Jul 2004
Location: New York, NY
Distribution: Ubuntu
Posts: 67

Rep: Reputation: 16
Angry X Windows' mouse pointer acceleration sucks!


I have a trackpoint on my laptop, and the pointer moves very slowly for the amount I move it. This is bad because then you tend to push really hard on the trackpoint to make it go faster. After a few days:

1. You have a painful indentation in your finger.
2. Your trackpoint breaks. (Yes, I have replaced mine twice.)

So I learned that you can change the mouse parameters with xset. There are two parameters, threshold and acceleration. You type:

xset m 8 3

and it moves at regular 1:1 speed inside of a little area, but if you move fast enough that it is outside 3 pixels within x amount of time (>3 pixels per sample?) it then moves the pointer in jumps of 8.

This is two speeds, slow and fast, and it sucks. 8 3 is the best I have found so far, but I still don't like it. With a trackpoint it is awful. I am constantly overshooting my target and then very slowly trying to move it to the precise location without making it jump again. I was reading around endlessly trying to find alternatives, and see that the mouse goes through an input device and then through GPM? and then into x windows or something? I am a newb and don't know the details, but is there some way we can put an extra layer in between there to give smooth "logarithmic" acceleration instead of two-level thresholded jumpiness? For instance, setting xset acceleration to never happen, and then letting another program or driver or something do some math on the mouse values before they get to x windows to make them accelerate smoothly? Are there downloadable packages for this sort of thing? I seem to remember knoppix KDE having a smoother acceleration, but it could be my imagination.
 
Old 08-02-2004, 01:34 PM   #2
Franklin
Senior Member
 
Registered: Oct 2002
Distribution: Slackware, WinXP, Windows 7
Posts: 1,253

Rep: Reputation: 55
Found the following by Google:

How to change the mouse speed in X?
Extracted from personal email
Tip provided by Cooper

The xset command works ok, but never really did it for me.
One that did was to add a "Resolution = ..." to the Pointer section in
/etc/XF86Config
I use 200 over here and it's just what I wanted.



I believe the correct file to edit is /etc/X11/XF86Config ...or xorg.conf

HTH
 
Old 08-02-2004, 01:53 PM   #3
bleargh
Member
 
Registered: Jul 2004
Location: New York, NY
Distribution: Ubuntu
Posts: 67

Original Poster
Rep: Reputation: 16
yes i saw that somewhere, too. I changed the value around several times but never noticed any difference. What is it supposed to do, exactly? There were two other changes, too:

Code:
Section "Pointer"
    SampleRate nnn
    Resolution nnn
EndSection
From here:
http://www.linuxquestions.org/questi...hreadid=196629

Is there any way to get a gradual acceleration instead of the two-speed type?
 
Old 08-02-2004, 03:06 PM   #4
kosta22
LQ Newbie
 
Registered: Apr 2004
Posts: 24

Rep: Reputation: 15
drop the sample rate and put resolution at 500, and then tell me how it went.
I recomment on setting the threshold to 0, and the acceleration to something you like, and then you will have one speed, like in windows
 
Old 08-02-2004, 03:50 PM   #5
bleargh
Member
 
Registered: Jul 2004
Location: New York, NY
Distribution: Ubuntu
Posts: 67

Original Poster
Rep: Reputation: 16
i will try that when i get home. do you know specific instructions for libranet? which exact file do i edit? remember, i am very new to linux...

windows doesn't have one speed. it uses a gradual or "logarithmic" acceleration (probably not a true logarithm, but i have heard it called that). If you have it switched on, you can tell by moving across the screen very slowly and then moving back across the screen quickly. the mouse will not be in the same position it started from.
 
Old 08-02-2004, 07:21 PM   #6
Franklin
Senior Member
 
Registered: Oct 2002
Distribution: Slackware, WinXP, Windows 7
Posts: 1,253

Rep: Reputation: 55
Looking at your posts, I think perhaps your syntax may have been incorrect. Look at the sample (not mine) I printed. This is from /etc/X11/XF86Config or /etc/X11/xorg.conf. That is likely why you saw no effect from your previous edits.

Which file you edit will depend on whether your distro is using XFree86 or Xorg. Most have switched to Xorg, but I don't use libranet and thus I don't know how recent your version is. If the only file you see in /etc/X11 is XF86Cofig edit that (as root of course) else edit xorg.conf - they are virtually the same (for now anyway).

Section "InputDevice"
Identifier "trackpoint"
Driver "mouse"
Option "SendCoreEvents" "true"
Option "Device" "/dev/input/mice"
Option "Protocol" "IMPS/2"
Option "ZAxisMapping" "4 5"
Option "Buttons" "6"
Option "Resolution" "800" <----- lookie lookie
Option "SampleRate" "200" <----- here too!
EndSection

Also, read the man pages. Incredibly exciting. Really.

HTH
 
Old 08-02-2004, 07:26 PM   #7
bleargh
Member
 
Registered: Jul 2004
Location: New York, NY
Distribution: Ubuntu
Posts: 67

Original Poster
Rep: Reputation: 16
Ok. I figured some things out.

Quote:
The following obsolete section names are still recognised for compatibility purposes. In new config files, the InputDevice section should be used instead.

Keyboard Keyboard configuration
Pointer Pointer/mouse configuration

The old XInput section is no longer recognised.
From http://www.xfree86.org/4.1.0/XF86Config.5.html

So I looked in etc/X11/ and found XF86Config-4, and nothing else that looks like it, so I edited it (with dedit. What is a good basic gui editor with very small learning curve?). It now says:

Code:
Section "InputDevice"
	Identifier	"Default Mouse"
	Driver		"mouse"
	Option		"CorePointer"
	Option		"Device"		"/dev/psaux"
	Option		"Protocol"		"PS/2"
	Option		"Emulate3Buttons"	"true"
	Option		"ZAxisMapping"		"4 5"
	Option		"SampleRate" "1000000"
	Option		"Resolution" "500000"
EndSection
Setting sample rate low made it worse. Resolution settings seemed to have no effect at all. What are these settings supposed to do?
 
Old 08-03-2004, 08:21 AM   #8
kosta22
LQ Newbie
 
Registered: Apr 2004
Posts: 24

Rep: Reputation: 15
as I said, delete the samplerate, and put resolution to 500, and try again....
you were right about the windows acceleration, I forgot about it.... itll be kinda like that in linux...
 
Old 08-03-2004, 08:34 AM   #9
bleargh
Member
 
Registered: Jul 2004
Location: New York, NY
Distribution: Ubuntu
Posts: 67

Original Poster
Rep: Reputation: 16
As I said, I changed the resolution around a few times (including 500) and it didn't seem to have any effect. Changing the samplerate had an effect, but it seemed to be better at a high rate. I don't know how high it is allowed to go.
 
Old 08-04-2004, 01:21 AM   #10
citrus
Member
 
Registered: Dec 2003
Location: California
Distribution: Kubuntu 6.1
Posts: 548

Rep: Reputation: 30
as high as the sky my friend
 
Old 08-23-2004, 01:18 PM   #11
bleargh
Member
 
Registered: Jul 2004
Location: New York, NY
Distribution: Ubuntu
Posts: 67

Original Poster
Rep: Reputation: 16
I think I found the solution, but as a newb I have NO idea how to use it:

http://www.apia.dhs.org/software/macc/

I don't understand why this doesn't annoy the %$#^ out of everyone. Maybe using a trackpoint magnifies the annoyance of the problem?
 
Old 09-14-2004, 07:23 PM   #12
bleargh
Member
 
Registered: Jul 2004
Location: New York, NY
Distribution: Ubuntu
Posts: 67

Original Poster
Rep: Reputation: 16
As I said, I tried increasing the resolution to 200 in both my /etc/X11/XFree86config-4 and in my user /x11/xfree86config no effect in either. what do i do now? i think the resolution parameter would be the key, but it doesn't do anything.
 
Old 10-13-2004, 11:18 AM   #13
Isocles
LQ Newbie
 
Registered: Oct 2004
Posts: 1

Rep: Reputation: 0
For the record, "Samplerate" and "Resolution" settings in XF86Config / xorg.conf are ignored if you are running a 2.6 kernel.

Vojtech Pavlik who maintains the kernel level driver says:
"...* 2.4 users who have set up different speed/res/scale values in XF86Config, because those are ignored in 2.6"
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
No mouse pointer (cursor), mouse does work whizz Linux - Hardware 6 04-04-2006 09:00 PM
Mouse pointer starts/stops programs and windows by itself, new install of Fidora 4. cwforscht Linux - Software 2 11-18-2005 11:03 AM
disconnect USB mouse data from the mouse pointer Yeronimo Programming 0 04-07-2005 03:26 AM
Erratic mouse pointer with wireless USB mouse jomax Fedora 0 01-04-2005 03:38 AM
The you have a Mouse Pointer Problem(mouse stick top left)here is the solution. dr4ven Linux - Hardware 0 05-25-2003 05:53 PM


All times are GMT -5. The time now is 10:17 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration