LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 08-22-2006, 06:37 AM   #1
verbose
Member
 
Registered: Aug 2004
Distribution: deb lenny 2.6.21-amd64
Posts: 320

Rep: Reputation: 31
mouse scrollwheel problems


How is this for weird? I recently upgraded from kernel 2.4.27 to 2.6.16 and now my mouse scrollwheel is acting rather funny. Whenever I scroll through tabs, it skips every other one and when scrolling through pages, it skips farther than usual (two scroll lengths). I don't even have a guess as to what changed between kernels.

dmesg|grep mouse :
mice: PS/2 mouse device common for all mice

Xorg.conf :
Identifier "Configured Mouse"
Driver "mouse"
Option "CorePointer"
Option "Device" "/dev/psaux"
Option "Protocol" "ImPS/2"
Option "Emulate3Buttons" "true"
Option "ZAxisMapping" "4 5"


Thanks
 
Old 08-23-2006, 10:48 AM   #2
ciotog
Member
 
Registered: Mar 2004
Location: Canada
Distribution: Slackware current
Posts: 728
Blog Entries: 2

Rep: Reputation: 43
Do you have a second section using the "mouse" driver? If so, then X is using events from both entries for the 1 mouse (with the 2.4 series USB mice and ps/2 mice were handled separately, so required 2 sections in the X config file, but they've been combined in 2.6).

Also - do you have a Microsoft Intellimouse? If not, then "ImPS/2" is not exactly correct. You should use "ExplorerPS/2" instead.
 
Old 08-24-2006, 05:52 AM   #3
verbose
Member
 
Registered: Aug 2004
Distribution: deb lenny 2.6.21-amd64
Posts: 320

Original Poster
Rep: Reputation: 31
Shortly after posting this thread, I discovered that I do in fact have two entries.

The additional one is...
Identifier "Generic Mouse"
Driver "mouse"
Option "SendCoreEvents" "true"
Option "Device" "/dev/input/mice"
Option "Protocol" "ImPS/2"
Option "Emulate3Buttons" "true"
Option "ZAxisMapping" "4 5"
EndSection

I tried removing each one but then X refused to start. I do have a MS Intellimouse, so I will try replacing ImPS/2 and see how that works out.


Edit: Since the two have been combined, is there a new device name, rather than /psaux and /input/mice?

Last edited by verbose; 08-24-2006 at 05:58 AM.
 
Old 08-24-2006, 06:19 AM   #4
verbose
Member
 
Registered: Aug 2004
Distribution: deb lenny 2.6.21-amd64
Posts: 320

Original Poster
Rep: Reputation: 31
I tried ExplorerPS/2 with no success. It seems to me I have to combine the two and use a different device...

Thanks for your help, ciotog.
 
Old 08-26-2006, 12:06 AM   #5
verbose
Member
 
Registered: Aug 2004
Distribution: deb lenny 2.6.21-amd64
Posts: 320

Original Poster
Rep: Reputation: 31
Any suggestions...

Thanks
 
Old 08-26-2006, 01:20 AM   #6
ciotog
Member
 
Registered: Mar 2004
Location: Canada
Distribution: Slackware current
Posts: 728
Blog Entries: 2

Rep: Reputation: 43
Could you post your xorg.conf file (preferably with all comment lines removed)? Also if possible remove each mouse section and try to start X with only 1, and if it doesn't start then post the result of the following:
Code:
cat /var/log/Xorg.0.log | grep EE
btw, in case you weren't aware, to remove a section you have to remove everything from the "Section "InputDevice"" line to the "EndSection" line

Last edited by ciotog; 08-26-2006 at 01:23 AM.
 
Old 08-27-2006, 11:22 PM   #7
verbose
Member
 
Registered: Aug 2004
Distribution: deb lenny 2.6.21-amd64
Posts: 320

Original Poster
Rep: Reputation: 31
Code:
Section "Files"
        FontPath        "unix/:7100"                    # local font server
        # if the local font server has problems, we can fall back on these
        FontPath        "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
        FontPath        "/var/lib/defoma/x-ttcidfont-conf.d/dirs/CID"
        FontPath        "/usr/share/fonts/truetype/msttcorefonts"
        FontPath        "/usr/share/fonts/truetype/freefont"
        FontPath        "/usr/share/fonts/truetype/ttf-bitstream-vera"
        FontPath        "/usr/share/fonts/X11/100dpi/:unscaled"
        FontPath        "/usr/share/fonts/X11/75dpi/:unscaled"
        FontPath        "/usr/share/fonts/X11/misc"
        FontPath        "/usr/share/fonts/X11/Type1"
EndSection

Section "Module"
        Load    "bitmap"
        Load    "dbe"
        Load    "ddc"
        Load    "extmod"
        Load    "freetype"
        Load    "glx"
        Load    "int10"
        Load    "record"
        Load    "speedo"
        Load    "type1"
        Load    "vbe"
EndSection

Section "InputDevice"
        Identifier      "Generic Keyboard"
        Driver          "keyboard"
        Option          "CoreKeyboard"
        Option          "XkbRules"      "xfree86"
        Option          "XkbModel"      "pc104"
        Option          "XkbLayout"     "us"
EndSection

Section "InputDevice"
        Identifier      "Configured Mouse"
        Driver          "mouse"
        Option          "CorePointer"
        Option          "Device"                "/dev/psaux"
        Option          "Protocol"              "ExplorerPS/2"
        Option          "Emulate3Buttons"       "false"
        Option          "ZAxisMapping"          "4 5"
EndSection

Section "InputDevice"
        Identifier      "Generic Mouse"
        Driver          "mouse"
        Option          "SendCoreEvents"        "true"
        Option          "Device"                "/dev/input/mice"
        Option          "Protocol"              "ExplorerPS/2"
        Option          "Emulate3Buttons"       "false"
        Option          "Buttons"               "5"
        Option          "ZAxisMapping"          "4 5"
EndSection

Section "Device"
        Identifier      "FX5200"
        Driver          "nv"
EndSection

Section "Monitor"
        Identifier      "Dell P1110"
        HorizSync       30-121
        VertRefresh     48-160
        Option          "DPMS"
        Modeline        "1600x1200_85.00" 229.50 1600 1696 1888 2140 1200 1209 1212 1250 +hsync +vsync
EndSection

Section "Screen"
        Identifier      "Default Screen"
        Device          "FX5200"
        Monitor         "Dell P1110"
        DefaultDepth    24
        SubSection "Display"
                Depth           24
                Modes           "1600x1200_85.00"
        EndSubSection
EndSection

Section "ServerLayout"
        Identifier      "Default Layout"
        Screen          "Default Screen"
        InputDevice     "Generic Keyboard"
        InputDevice     "Configured Mouse"
        InputDevice     "Generic Mouse"
EndSection

Section "DRI"
        Mode    0666
EndSection
I've been searching the interweb quite a bit, trying to figure this out. I recently tried editing Buttons and ZAxisMapping options to say 7 and '6 7', respectively, but then my mouse was really messed up, with the scrollwheel switching between pages in the browser history, so I changed it back. I've always tried catting /dev/psaux and /dev/input/mice,mouse0 and moving the mouse around. Funny characters were displayed, which is supposed to signify the incorrect device...
 
Old 08-27-2006, 11:47 PM   #8
verbose
Member
 
Registered: Aug 2004
Distribution: deb lenny 2.6.21-amd64
Posts: 320

Original Poster
Rep: Reputation: 31
I fixed this, finally, and it was way too simple. I was able to start X when each of them were commented out. What eventually did it was the commenting out of the section with /dev/input/mice as device. I'm relatively certain I was forgetting to comment out the respective ServerLayout line this whole time and that's why X failed to start.

Thanks very much for your help, ciotog. I can see that you're viewing this thread right now, so I should hurry and post.
 
Old 08-27-2006, 11:57 PM   #9
ciotog
Member
 
Registered: Mar 2004
Location: Canada
Distribution: Slackware current
Posts: 728
Blog Entries: 2

Rep: Reputation: 43
You have two mouse entries in your ServerLayout section - there should be only 1. I would recommend keeping the "Generic Mouse", as it looks to be more correct (I don't think it matters whether the device is /dev/psaux or /dev/input/mice). I would also recommend removing the other section altogether.

Another thing I noticed from your conf file is that you're using the "nv" video driver, but you're loading the "glx" module. With "nv" you should not be loading "glx", but rather "glcore" and also "dri". If you were to use the hardware accelerated "nvidia" driver you would load "glx" but not "glcore" and "dri". In other words, you should either disable "glx" and load "glcore" and "dri", or get nVidia's proprietary driver instead.

edit: hmm, ought to have checked to see if there were new posts first

Last edited by ciotog; 08-28-2006 at 12:00 AM.
 
Old 08-28-2006, 12:18 AM   #10
verbose
Member
 
Registered: Aug 2004
Distribution: deb lenny 2.6.21-amd64
Posts: 320

Original Poster
Rep: Reputation: 31
Ah, yes, I thought that might be a problem.

However, I appreciate your pointing out the thing about the nv driver. I've been trying to get the nvidia display driver to work for a long time now and I actually just posted a thread about it a few minutes ago.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Mouse Scrollwheel not working properly.... Cattellar Linux - Hardware 3 08-09-2006 12:16 PM
Mouse scrollwheel under SlackTen Social Burn Slackware 2 01-18-2005 02:02 AM
scrollwheel problems with ps2 mouse SaintBucky Slackware 2 02-22-2004 02:33 AM
Scrollwheel with USB mouse in slack 9.0 bynaar Slackware 19 04-05-2003 05:57 PM
Trouble with keyboard and mouse scrollwheel Lok3 Linux - Software 7 11-06-2002 04:09 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 05:37 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration