SuSE GmbH

SuSE Support Database

Title: mouse buttons don't work as expected

----------

Mainpage o Searchform o History o Versions o Categories o Contents
Deutsch

----------

mouse buttons don't work as expected

Applies to

SuSE Linux: Version 5.3

Symptom:

You start the X window system, e.g. together with KDE from KDM (== graphical login). However the mouse isn't recognized correctly. You don't get the usual mouse menue when clicking with the right mouse button onto the display background.

Cause:

There is a small but substantial misunderstanding between YaST and SaX concerning the mouse configuration.

While YaST configures the mouse as /dev/cua0, SaX uses /dev/ttyS0. This works fine in the installation system, since gpm (which accesses the mouse on the console) is not yet activated. For this reason the X server can be configured in the right way then.

Later, in the running system, gpm uses the port adress of the serial interface, so the X server that is started later cannot access the mouse anymore.

It may also happen, that the user enters the expert mode of SaX when configuring the mouse. Settings for the emulation of the middle mouse button for 2-button mice and settings for the mouse sample rate might get changed then by the user. This may also lead to strange effects.

There's also a bug in SaX .

Solution:

The solutions below assume a 3-button mouse at serial port 1 (COM1 under DOS, /dev/ttys0). The solution concerning the number of buttons also applies to PS/2- and other mice.

  1. Correcting the configuration of the serial interface:

    1. Please first set the variable for the mouse to a correct value in rc.config :
      MOUSE=/dev/ttyS0
      

    2. Now execute SuSEconfig

    3. Now restart gpm, if necessary :
      /sbin/init.d/gpm stop
      /sbin/init.d/gpm start
      

  2. Correcting the mouse settings for X :

    1. Edit the file /etc/XF86Config with your favourite editor.

    2. Search for "Section Pointer"

    3. Remove the lines containing the statements
      Emulate3Timeout
      SampleRate
      ChordMiddle
      

    4. If there is a statement
      Buttons 2
      
      in this section, please change it to
      Buttons 3
      
      Otherwise the X server will ignore the 3. (== right) mouse button.

    5. Store the changes.

    6. Restart the X server/xdm.
----------

See also:

----------

Keywords: MOUSE, BUTTON, RIGHT, CLICK, X WINDOW, X SERVER, SAX, KDE

----------

Categories: Mouse , Window Manager , XFree86

----------

Mainpage o Searchform o History o Versions o Categories o Contents
Deutsch

----------

SDB-maddin_rmouse, Copyright SuSE GmbH, Nuremberg, Germany - Version: 23. Sep 1998
SuSE GmbH - Last generated: 07. Oct 1999 17:04:20 by maddin with sdb_gen 1.00.0