Mouse is too fast/sensitive in Defcon on Ubuntu 11.04/11.10

Technical support for all issues relating to Defcon Linux

Moderator: Defcon moderators

tntc
level0
Posts: 1
Joined: Wed Nov 23, 2011 8:05 pm

Mouse is too fast/sensitive in Defcon on Ubuntu 11.04/11.10

Postby tntc » Wed Nov 23, 2011 8:28 pm

The mouse sensitivity in Defcon is extremely high, making it very difficult to click on buttons, etc. in game. Moving my finger 1/4 of the way across my touchpad moves the cursor across the entire screen. This is roughly 8x as sensitive as my touchpad outside the game. Is there any way to adjust the sensitivity?
User avatar
frenchfrog
level5
level5
Posts: 2572
Joined: Sun Sep 22, 2002 7:11 pm
Location: Quebec

Postby frenchfrog » Thu Nov 24, 2011 4:35 am

I suspect this related to SDL.

I've done quick search, most posts refer to setting the environment variable "SDL_VIDEO_X11_MOUSEACCEL".

SDL_VIDEO_X11_MOUSEACCEL
For X11, sets the mouse acceleration. The value should be a string on the form:

"n/d/t"

where n and d are the acceleration numerator/denumerators (so mouse movement is accelerated by n/d), and t is the threshold above which acceleration applies (counted as number of pixels the mouse moves at once).

From http://sdl.beuc.net/sdl.wiki/SDL_envvars

The necessary environment variable is SDL_VIDEO_X11_MOUSEACCEL.
I found that setting SDL_VIDEO_X11_MOUSEACCEL didn't work for me without setting SDL_MOUSE_RELATIVE=0 too.

So, for example:

$ SDL_MOUSE_RELATIVE=0 SDL_VIDEO_X11_MOUSEACCEL=6/1/0 openttd

There are other reports which suggest that

$ SDL_VIDEO_X11_DGAMOUSE=0

might work.

From http://wiki.openttd.org/FAQ_troubleshooting

Open a terminal and type

gedit ~/.profile

Add these lines

export SDL_VIDEO_X11_MOUSEACCEL="1/1/1"
export SDL_VIDEO_X11_DGAMOUSE=0

to the end of the file. Save and exit. Log out. Log back in.
The environment variables will be set for all programs you launch.

From http://ubuntuforums.org/archive/index.p ... 32135.html
User avatar
carebear
level3
level3
Posts: 281
Joined: Mon Jul 18, 2011 1:31 pm
Location: Eric Somana est un faux-cul

Postby carebear » Thu Nov 24, 2011 1:47 pm

Moving my finger 1/4 of the way across my touchpad


.... playing with touchpad will make you become a good victim ... buy a mouse .. :X

Return to “Linux Troubleshooting”

Who is online

Users browsing this forum: No registered users and 7 guests