Page 2 of 5 FirstFirst 1234 ... LastLast
Results 11 to 20 of 44

Thread: Scroll (wheel) speed, mouse acceleration, threshold, sensivity

  1. #11
    Join Date
    Jun 2009
    Beans
    60

    Re: Scroll (wheel) speed, mouse acceleration, threshold, sensivity

    It's just a solution for Firefox, not all programs...

  2. #12
    Join Date
    May 2007
    Beans
    149

    Re: Scroll (wheel) speed, mouse acceleration, threshold, sensivity

    Yeah I did that, helped a bit but it is still annoying enough. This problem and mostly my wireless adapter not working have made me use win 7 :/

  3. #13
    Join Date
    Sep 2009
    Location
    Liverpool, UK
    Beans
    16
    Distro
    Xubuntu 9.10 Karmic Koala

    Re: Scroll (wheel) speed, mouse acceleration, threshold, sensivity

    I have a similar problem in xubuntu 9.10. I want to speed up my mouse response (ie, increase the screen distance travelled for a given mouse displacement), but there does not seem to be a speed setting among the mouse options: only acceleration and sensitivity. Is there a way around this? It's very frustrating to work with such a low screen/mouse ratio.

    Thanks for any suggestions.

  4. #14
    Join Date
    Jul 2007
    Location
    Western Canada
    Beans
    48
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Scroll (wheel) speed, mouse acceleration, threshold, sensivity

    in the about:config, adjust the settings for mousewheel.withshiftkey.numlines to a different setting and you will then have a faster scrolling when you add the shift with your scrolling.
    that will allow you a really fast scroll for those times you need it.

  5. #15
    Join Date
    Jan 2010
    Beans
    2

    Re: Scroll (wheel) speed, mouse acceleration, threshold, sensivity

    This won't fix everything, like the scroll wheel speed, but to change your mouse sensitivity, the best solution I've found is to use xset. If it's not already on your system, you'll need to download it from the repositories. Then, open up a terminal and type:

    xset m 6 2

    Xset is a program that sets all sorts of stuff. m refers to the mouse and 6 2 is the acceleration and threshold. Feel free to play around with the numbers to get what you want. A lot of people like 5 1.

    As for the wheel problem, I use a trackball that doesn't have a wheel, so I use wheel emulation. I hold down the middle mouse button and the move the trackball and it emulates the wheel. I type this in the console to do that:

    xinput set-int-prop "PS/2 Logitech TrackMan" "Evdev Wheel Emulation Axes" 8 6 7 4 5
    xinput set-int-prop "PS/2 Logitech TrackMan" "Evdev Wheel Emulation Button" 8 2
    xinput set-int-prop "PS/2 Logitech TrackMan" "Evdev Wheel Emulation" 8 1
    xinput set-int-prop "PS/2 Logitech TrackMan" "Evdev Wheel Emulation Inertia" 16 5

    That probably won't help you though. You would replace "PS/2 Logitech TrackMan" with whatever your mouse is called. You find that out by typing xinput --list --short. You're devices will show up so you can see what the system calls it.

    I wonder if changing the Evdev Wheel Emulation Inertia would affect the actual wheel. It definitely affects it when it's emulated (higher numbers cause more friction, lower numbers cause less) The first 8 of the numbers in the first 3 lines are necessary, not sure for what. Same with the 16 in the fourth line.

    At the very least, xset m 6 2 should help.

    The next problem is getting it to start every time your computer boots. I ended up having to go to my home folder, viewing hidden files, opening ./config/autostart and creating a .desktop file that would run xset every time I booted. I found other .desktop files and edited them to figure it out. Ultimately though, I couldn't get programs to start consistantly and ended up moving to Crunchbang linux, which is still based on Ubuntu, but uses Openbox as the window manager instead of Gnome, so it's a lot faster. It uses an autostart.sh script file that's easy to add stuff to, but it requires more work overall because it won't do stuff like add menu entries for you when you install a program.

  6. #16
    Join Date
    May 2007
    Beans
    149

    Re: Scroll (wheel) speed, mouse acceleration, threshold, sensivity

    My experience with my mouse scroll speed:
    Working perfectly fine under windows 7 and ubuntu. But if i log in windows and then go to ubuntu (even with a shutdown) the speed freaks out and scrolls 10 times instead of 2-3... all i need to do is unplug and plug again the usb adaptor for my wireless keyboard-mouse.
    Last edited by jastonas; July 6th, 2010 at 07:51 AM.

  7. #17
    Join Date
    Jul 2010
    Beans
    2

    Re: Scroll (wheel) speed, mouse acceleration, threshold, sensivity

    Thanks Jastona! My mouse wheel was scrolling about a page and a half instead of 2-3 lines! That was quite annoying. Your work around worked perfectly.

  8. #18
    Join Date
    May 2007
    Beans
    149

    Re: Scroll (wheel) speed, mouse acceleration, threshold, sensivity

    Quote Originally Posted by ubunwhat? View Post
    Thanks Jastona! My mouse wheel was scrolling about a page and a half instead of 2-3 lines! That was quite annoying. Your work around worked perfectly.
    "workaround"

    That one required real hacking skills

  9. #19
    Join Date
    May 2007
    Beans
    880
    Distro
    Ubuntu Development Release

    Re: Scroll (wheel) speed, mouse acceleration, threshold, sensivity

    Quote Originally Posted by jastonas View Post
    "workaround"

    That one required real hacking skills
    I never would've thought of trying this, and it worked for me with my wireless Microsoft mouse also. I didn't make the connection between having booted into Windows for the first time in months and my mouse scrolling way too fast (I suspected an update at first, but there were none that seemed related). THANKS for the info!
    ~~~
    I liked this old blog post by Aysiu: The Linux community's mixed messages

  10. #20
    Join Date
    Nov 2009
    Beans
    9

    Re: Scroll (wheel) speed, mouse acceleration, threshold, sensivity

    Code:
    sudo chmod +r /dev/input/event2; xwheeldoubler /dev/input/event2 3 &
    /dev/input/event2 - your mouse
    3 - how many times faster

    AFAIR, libxtst6 package is needed (libxtst-dev for compiling).
    Compiled version for amd64 in attachment. The source code below.

    Code:
    gcc -lXtst xwheeldoubler.c
    Code:
    #include <stdio.h>
    #include <stdlib.h>
    #include <linux/input.h>
    #include <sys/types.h>
    #include <fcntl.h>
    #include <X11/extensions/XTest.h>
    
    Display *dpy;
    int file;
    
    void cleanup()
    {
    	if(file) {
    		close(file);
    	}
    	if(dpy) {
    		XCloseDisplay(dpy); 
    	}
    }
    
    int main(int argc, const char** argv)
    {
    	if(argc < 3) {
    		printf("Usage: %s <event_device> <how_many_times_faster>\n", argv[0]);
    		return 1;
    	}
    
    	atexit(cleanup);
    	if((file = open(argv[1], O_RDONLY)) <= 0) {
    		perror("open");
    		return 2;
    	}
    	struct input_event event;
    	if ((dpy = XOpenDisplay(NULL)) == NULL) {
    		fprintf(stderr, "Can't open display\n"); 
    		return 3;
    	}
    
    	int times = atoi(argv[2]) - 1;
    	size_t n;
    	while((n = read(file, &event, sizeof(struct input_event)))>0) {
    		if(event.type == 0x02 && event.code == 0x08) {
    			if(event.value > 0) {
    				int i = 0;
    				for (; i < times; i++) {
    					XTestFakeButtonEvent(dpy, 4, True, CurrentTime);
    					XTestFakeButtonEvent(dpy, 4, False, CurrentTime);
    				}
    			} else {
    				int i = 0;
    				for (; i < times; i++) {
    					XTestFakeButtonEvent(dpy, 5, True, CurrentTime);
    					XTestFakeButtonEvent(dpy, 5, False, CurrentTime);
    				}
    			}
    			XFlush(dpy);
    		}
    	}
    	return 0;
    }
    Known bugs: 100% cpu after pulling in/out any USB device. Feel free to fix it. ;-]

    Source code licensed under GNU GPL v3.
    Attached Files Attached Files

Page 2 of 5 FirstFirst 1234 ... LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •