LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Mandriva (https://www.linuxquestions.org/questions/mandriva-30/)
-   -   Serial Microsoft mouse not working with Mandriva 2010 (https://www.linuxquestions.org/questions/mandriva-30/serial-microsoft-mouse-not-working-with-mandriva-2010-a-768247/)

Slackervaara 11-10-2009 02:43 PM

[Solved]Serial Microsoft mouse not working with Mandriva 2010
 
Installed Mandriva 2010, but my serial Microsoft mouse 2.0A does not work after installation, but it worked during installation. Reinstalled but with identical result.

Booted to failsafe mode and through drakconf configured a serial general 2 button mouse, but it did not make any change. I have looked in xorg.conf, but can't find anything about the mouse.

The mouse worked with Mandriva 2006 that I had earlier.

Grateful for suggestions!

GlennsPref 11-10-2009 09:01 PM

Hi you might be able to add the device manually.

Here is part of my old layout..../etc/X11/xorg.conf

Be care full with the device numbers...

Section "ServerLayout"
Code:

Section "ServerLayout"
    Identifier    "Layout0"
    Screen      0  "Screen0"
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
EndSection

Section "InputDevice" (Mouse and keys....)
Code:

Section "InputDevice"
    # generated from default
    Identifier    "Mouse0"
    Driver        "mouse"
    Option        "Protocol" "auto"
    Option        "Device" "/dev/psaux"
    Option        "Emulate3Buttons" "no"
    Option        "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"
    # generated from data in "/etc/sysconfig/keyboard"
    Identifier    "Keyboard0"
    Driver        "kbd"
    Option        "XkbLayout" "us"
    Option        "XkbModel" "pc105"
EndSection

Section "Screen" (probably don't need this bit, but it shows the numbers used)
Code:

Section "Screen"
    Identifier    "Screen0"
    Device        "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option          "HWCursor"
    Option        "PixmapCacheSize" "1000000"
   
    SubSection    "Display"
        Depth      24
    EndSubSection
EndSection

http://www.x.org/releases/X11R7.5/do...ousedrv.4.html
Regards Glenn

Slackervaara 11-11-2009 03:23 PM

Many thanks! I have tried your suggestions and some variants in xorg.conf, but the Microsoft mouse is dead. Tried both Protocol auto and Microsoft. I put Inputdevice just above ServerLayout, which were last in the file.

GlennsPref 11-11-2009 04:49 PM

Hi, xorg has not changed that much since 2006,

The config file from 2006 should give you the answers you require.

I've just checked the XFdrake "sudo XFdrake" interface and there is no mouse config there to adjust. But it lists the mouse at the end for confirmation.

man xsetpointer
Code:

xsetpointer(1)                                                        xsetpointer(1)

NAME
      xsetpointer - set an X Input device as the main pointer

SYNOPSIS
      xsetpointer -l | device-name

DESCRIPTION
      Xsetpointer  sets  an XInput device as the main pointer.  When called with the
      -l flag it lists the available devices.  When called with the -c/+c  flag,  it
      toggles  the  sending of core input events, for servers which implement a vir‐
      tual core pointer; -c disables core events, and +c enables.

AUTHOR
      Frederic Lepied

X Version 11                      xsetpointer 1.0.1                    xsetpointer(1)

you may need root access to change that.

In the mean time, you could configure the numberpad to move the cursor....
But I don't know how to do that with out a mouse, sorry.

also have a look at the manual for xsetmode
Code:

man xsetmode
Code:

man xset
and
Code:

man X
Also have you tried unplugging the mouse, wait one, the plug it back in?

That's all I have, all the best. Glenn

Slackervaara 11-12-2009 01:15 PM

Many thanks for your help! XFdrake did not work, because it needs mouse function. xsetpointer is not available in Mandriva 2010.

I did install Mandriva 2007, where mouse functioned OK and thus I got the correct mouse entry for xorg.conf, but it did not work either with this entry for InputDevice, when I installed Mandriva 2010 again. In 2007 Protocol Microsoft was used for the mouse. Maybe I have to buy a more modern mouse, because this serial mouse is at least 10 years old.

GlennsPref 11-12-2009 03:38 PM

<edit> I think you're missing some packages</edit>

see if X package is installed...
Code:

rpm -qa | grep x11-driver-input-mouse
Quote:

xsetpointer is not available in Mandriva 2010...
Not true, I have it, Mandriva 2010.0 free. Therefore I assume, you do not have it installed.

Try urpmi on these packages...
Code:

xset-1.1.0-1mdv2010.0
xsetmode-1.0.0-7mdv2010.0
xsetpointer-1.0.1-4mdv2010.0

Also try to get a list of missing dependent packages from your install...
This might take a while....
Code:

rpm -Va | grep miss
I redirect the output to a file, I can read later, like this...(Has date in file name)
Code:

sudo rpm -Va | grep miss > /home/glenn/build/rpm-Va-grep-miss-list-`date +%Y-%m-%d-%H`.txt
similarly, for a list of installed rpm's...
Code:

sudo rpm -qa | sort | less > /home/glenn/build/note-rpm-installed-list-`date +%Y-%m-%d-%H`.txt
See how you go, we're not done yet...
:-) Glenn

Slackervaara 11-13-2009 01:11 PM

Most grateful for your suggestions, because it got me into right direction. I installed all programs you suggested, but xsetpointer listed no mouse.

I read that a similar problem was solved by inputattach, so I found it was in gpm, so I installed it with urpmi.

As root:

inputattach --microsoft /dev/ttyS0

And the mouse started to work. However, if I reboot I have to issue the command again. Is there in Mandriva a rc.local where I can put it in?

GlennsPref 11-13-2009 09:20 PM

yes there is,

/etc/rc.d/rc.local

I use it for some things too.

Slackervaara 11-14-2009 08:28 AM

Thanks! I put it in rc.local and it is working now. One minor thing is that the mouse is not working, when I login, but after when in the KDE Desktop. It is no problem though.

I checked xsetpointer and now the mouse is available as an option. Probably, this problem with serial mouse might be a Mandriva 2010 bug.


All times are GMT -5. The time now is 07:42 PM.