XFree86 and PS/2 mouse [solved]

Discuss various technical topics not related to Mozilla.
Post Reply
scragz
Posts: 2914
Joined: February 8th, 2003, 2:38 am
Location: San Diego, US
Contact:

XFree86 and PS/2 mouse [solved]

Post by scragz »

For reasons I won't get in to, I switched to a PS/2 mouse and keyboard instead of USB, and now I have a problem starting XFree86. I switched the mouse device to /dev/psaux like I thought I was supposed to, but the first time I run `startx`, I get an error about initiallizing the core pointer with the below ending up in the log:

Code: Select all

(**) Option "Protocol" "ExplorerPS/2"
(**) Mouse0: Protocol: "ExplorerPS/2"
(**) Option "CorePointer"
(**) Mouse0: Core Pointer
(**) Option "Device" "/dev/psaux"
(EE) xf86OpenSerial: Cannot open device /dev/psaux
        No such device.
(EE) Mouse0: cannot open input device
(EE) PreInit failed for input device "Mouse0"
(II) UnloadModule: "mouse"
(WW) No core pointer registered
(II) XINPUT: Adding extended input device "NVIDIA Event Handler" (type: Other)
No core pointer

Fatal server error:
failed to initialize core devices

When reporting a problem related to a server crash, please send
the full server output, not just the last messages.
This can be found in the log file "/var/log/XFree86.0.log".
Please report problems to submit@bugs.debian.org.


Subsequent runnings of `startx` work fine, it's just on the first attempt.

Any ideas on why it works the second time and what I can do before the first one to get it to work then?
Last edited by scragz on November 12th, 2004, 3:51 am, edited 1 time in total.
alcatraz52
Posts: 372
Joined: August 17th, 2003, 11:27 pm

Post by alcatraz52 »

(II) XINPUT: Adding extended input device "NVIDIA Event Handler" (type: Other)

That line looks interesting, to me it looks like XFree adding a line that doesn't stay after reboot...
User avatar
carl0ski
Posts: 319
Joined: May 2nd, 2004, 3:36 am
Location: Melbourne, Victoria Australia

Post by carl0ski »

can you get into X with a working keyboard??
open this file /etc/X11/XF86config-4

the startup config for X change the mosuse/ keboard device.


lol do you still have the USB keyboard/mouse???
because if you have 2 monitors linux lets you use 2 monitors with 2 independant keyboards like 2 computers. :)
scragz
Posts: 2914
Joined: February 8th, 2003, 2:38 am
Location: San Diego, US
Contact:

Post by scragz »

alcatraz52 wrote:(II) XINPUT: Adding extended input device "NVIDIA Event Handler" (type: Other)

That line looks interesting, to me it looks like XFree adding a line that doesn't stay after reboot...

That could turn out to be a lead, but I'm going to continue discounting it for now since I've had this same problem before I installed the nVidia drivers.

carl0ski wrote:can you get into X with a working keyboard??
open this file /etc/X11/XF86config-4

I can get into X with working KB and mouse fine on the second try, it just sucks to have to do it twice after every reboot. And I generally do changes to XF86config-4 while not in X so they can be tested more easily.

carl0ski wrote:the startup config for X change the mosuse/ keboard device.

Change them to what though? I'm pretty sure that /dev/psaux is the right device for PS/2, right? Below is the same part of the log from the subsequent loads when it works:

Code: Select all

(II) Initializing built-in extension MIT-SHM
(II) Initializing built-in extension XInputExtension
(II) Initializing built-in extension XTEST
(II) Initializing built-in extension XKEYBOARD
(II) Initializing built-in extension LBX
(II) Initializing built-in extension XC-APPGROUP
(II) Initializing built-in extension SECURITY
(II) Initializing built-in extension XINERAMA
(II) Initializing built-in extension XFree86-Bigfont
(II) Initializing built-in extension RENDER
(II) Initializing built-in extension RANDR
(II) Initializing extension GLX
(II) Keyboard "Keyboard0" handled by legacy driver
(**) Option "Protocol" "ExplorerPS/2"
(**) Mouse0: Protocol: "ExplorerPS/2"
(**) Option "CorePointer"
(**) Mouse0: Core Pointer
(**) Option "Device" "/dev/psaux" # notice that /dev/psaux is working now
(**) Option "Buttons" "7"
(**) Option "Emulate3Buttons" "false"
(**) Option "ZAxisMapping" "6 7"
(**) Mouse0: ZAxisMapping: buttons 6 and 7
(**) Mouse0: Buttons: 7
(II) XINPUT: Adding extended input device "Mouse0" (type: MOUSE)
(II) XINPUT: Adding extended input device "NVIDIA Event Handler" (type: Other)
(II) Mouse0: ps2EnableDataReporting: succeeded


carl0ski wrote:lol do you still have the USB keyboard/mouse???
because if you have 2 monitors linux lets you use 2 monitors with 2 independant keyboards like 2 computers. :)

They're the same physical devices, just plugged into different ports. I like Xinerama-style multiple monitors better anyway.
User avatar
RabidPenguin
Posts: 1661
Joined: June 15th, 2003, 8:39 pm
Location: USA
Contact:

Post by RabidPenguin »

I don't think this matters but you might try changing Option "Protocol" "ExplorerPS/2" to Option "Protocol" "IMPS/2"
tomdkat
Posts: 1410
Joined: October 14th, 2003, 7:53 am

Post by tomdkat »

I run XFree86 4.4.0 at home with a PS/2 mouse and it works flawlessly. I'll post my config info when I get home (if I remember to do so... :))

Peace....
tomdkat
Posts: 1410
Joined: October 14th, 2003, 7:53 am

Post by tomdkat »

Ok, here is the part of my XF86Config file that configures my Logitech PS/2 trackball:

Code: Select all

# **********************************************************************
# Core Pointer's InputDevice section
# **********************************************************************

Section "InputDevice"

# Identifier and driver

    Identifier   "Mouse1"
    Driver   "mouse"
    Option "Protocol"    "PS/2"
    Option "Device"      "/dev/mouse"

# When using XQUEUE, comment out the above two lines, and uncomment
# the following line.

#    Option "Protocol"   "Xqueue"

# Baudrate and SampleRate are only for some Logitech mice. In
# almost every case these lines should be omitted.

#    Option "BaudRate"   "9600"
#    Option "SampleRate"   "150"

# Emulate3Buttons is an option for 2-button Microsoft mice
# Emulate3Timeout is the timeout in milliseconds (default is 50ms)

#    Option "Emulate3Buttons"
#    Option "Emulate3Timeout"    "50"

# ChordMiddle is an option for some 3-button Logitech mice

#    Option "ChordMiddle"

EndSection


I'm also running gpm:

tom@linux:/etc/X11$ ps ax | grep gpm
802 ? S 0:43 gpm -m /dev/mouse -t ps2
27460 pts/2 S 0:00 grep gpm
tom@linux:/etc/X11$

Hope that helps! :)

Peace...
scragz
Posts: 2914
Joined: February 8th, 2003, 2:38 am
Location: San Diego, US
Contact:

Post by scragz »

Hmmm ... I don't have that device:

Code: Select all

$ ls /dev/mouse
ls: /dev/mouse: No such file or directory
User avatar
GNU/Ben
Posts: 1557
Joined: November 5th, 2002, 1:45 pm
Location: 127.0.0.1
Contact:

Post by GNU/Ben »

/dev/mouse is usally a symbolic link to /dev/psaux
"When you say 'I wrote a program that crashed Windows', people just stare at you blankly and say 'Hey, I got those with the system, *for free*'."
-- Linus Torvalds
Gentoo: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.7.5) Gecko/20041210 Firefox/1.0
scragz
Posts: 2914
Joined: February 8th, 2003, 2:38 am
Location: San Diego, US
Contact:

Solved!

Post by scragz »

Solution:
I had to add the following lines to /etc/modules

Code: Select all

psmouse
mousedev


I guess they were being autoloaded or something when X attempted to start the first time, just not in time (?).
Post Reply