LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 07-31-2004, 10:22 PM   #1
crashmeister
Senior Member
 
Registered: Feb 2002
Distribution: t2 - trying to anyway
Posts: 2,541

Rep: Reputation: 47
xserver crash


I got a rather funny little problem with the xserver on a new debian install with testing.
The box starts,tries to get X up and running and it doesn't.When I try startx after that it aborts with:

(EE) xf86OpenSerial: Cannot open device /dev/psaux
No such device
(EE) Mouse1: cannot open input device
(EE) PreInit failed for input device "Mouse1"

When I start it for the third time and from there on it works just fine, including mouse and everything.
 
Old 07-31-2004, 11:43 PM   #2
SirSlappy
Member
 
Registered: Jun 2003
Location: Glendale AZ
Distribution: Slackware 10
Posts: 153

Rep: Reputation: 30
you need to check out your mouse configuration..

Then check it how it is setup in xorg.conf

The X-server is trying to load a mouse that isn't there.. it doesn't find any mouse so it don't like you :-)

I think..

mouseconfig might help you out
 
Old 07-31-2004, 11:51 PM   #3
crashmeister
Senior Member
 
Registered: Feb 2002
Distribution: t2 - trying to anyway
Posts: 2,541

Original Poster
Rep: Reputation: 47
The problem is that I got no idea how it comes up with that:
(EE) xf86OpenSerial: Cannot open device /dev/psaux
stuff.There is only a reference to xf86OpenSerial when the server crashes.When it starts (with the same config file) that stuff doesn't show up anywhere.
Don't think anything is wrong with the config - on the third try it starts and works fine.After that I can kill the server as often as I feel like and start it again w/o any trouble.
 
Old 08-01-2004, 01:05 AM   #4
zero79
Member
 
Registered: Nov 2003
Location: Ohio
Distribution: Debian Unstable
Posts: 460

Rep: Reputation: 30
an "apt-cache search mouse" search implies that you should try out mdetect.

mdetect - mouse device autodetection

do

Code:
su -c mdetect
 
Old 08-01-2004, 05:51 AM   #5
Dead Parrot
Senior Member
 
Registered: Mar 2004
Distribution: Debian GNU/kFreeBSD
Posts: 1,597

Rep: Reputation: 46
Check (uname -r) if you've got a 2.4.x kernel or 2.6.x. For PS/2 mice /dev/psaux is the correct device to use with 2.4.x kernels but with 2.6.x kernels the proper device for PS/2 mice is /dev/input/mice. With a 2.6.x kernel you also need to add "psmouse" (without quotes) to /etc/modules. USB mice might need even more tweaking than this.

Like zero79 says, you can first install mdetect and then you can run (as root) "dpkg-reconfigure -plow xserver-xfree86" to change your mouse settings.

BTW, you should always begin your question by telling your Debian version (stable/testing/unstable) and the kernel version you're using. This helps you to get better informed answers.
 
Old 08-01-2004, 07:10 AM   #6
crashmeister
Senior Member
 
Registered: Feb 2002
Distribution: t2 - trying to anyway
Posts: 2,541

Original Poster
Rep: Reputation: 47
OK - thanks guys.
It's testing and kernel 2.6.7 and it seems to work now (with /dev/psaux - I'll try the /dev/mice thing to see what that does).
To make a long story short:
Tried mdetetct and that basically told me to add Option CorePointer to the mouse configuration but that didn't help any.
After adding psmouse to /etc/modules it worked but something is screwed up there because lsmod showed psmouse as loaded when I checked.It seems like it gets loaded without being in the /etc/modules file but just too late for the xserver to start up the first time it tries - beats me.
 
Old 08-01-2004, 08:36 AM   #7
Dead Parrot
Senior Member
 
Registered: Mar 2004
Distribution: Debian GNU/kFreeBSD
Posts: 1,597

Rep: Reputation: 46
Quote:
I'll try the /dev/mice thing to see what that does
It's /dev/input/mice.

Mdetect is useful if you're unsure which mouse type you've got. The "-plow" option in "dpkg-reconfigure -plow xserver-xfree86" sets DebConf priority to the value "low", so that DebConf lets you configure as many aspects of X as possible. Adding psmouse to /etc/modules makes Debian load it already during boot time, so that it's ready when X starts. As you've noticed, the mouse driver is otherwise loaded too late and X server cannot find it -- hence it fails to start.
 
Old 08-01-2004, 08:39 AM   #8
k.van.hagen
Member
 
Registered: Aug 2003
Location: Castricum, The Netherlands
Distribution: Debian
Posts: 49

Rep: Reputation: 15
I had the same problem, I solved it by adding 'psmouse' to my /etc/modules
The driver wouldn't load otherwise.
 
Old 08-01-2004, 09:07 AM   #9
crashmeister
Senior Member
 
Registered: Feb 2002
Distribution: t2 - trying to anyway
Posts: 2,541

Original Poster
Rep: Reputation: 47
The whole thing was slightly complicated by the fact that for some reason xfree uses /etc/X11/XF86Config the first time it starts and /root/XF86Config the second time.
Kept me scratching my head for a while until I figured that one out.
 
Old 08-01-2004, 10:06 AM   #10
Dead Parrot
Senior Member
 
Registered: Mar 2004
Distribution: Debian GNU/kFreeBSD
Posts: 1,597

Rep: Reputation: 46
Quote:
for some reason xfree uses /etc/X11/XF86Config the first time it starts and /root/XF86Config the second time
XFree86 should use /etc/X11/XF86Config-4. I suggest that you remove the /root/XF86Config altogether.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
id Games Crash Xserver!? Dr3n Linux - Games 4 10-29-2005 09:51 PM
Sarge 2.4.27-2 xserver crash - stumped! rpoworski Debian 2 10-16-2005 04:59 PM
XServer crash - Fedora Core 1 nodon11 Linux - Newbie 1 05-01-2004 04:04 PM
Mandrake 10.0 xserver crash walter Mandriva 6 03-11-2004 08:21 PM
Xserver crash??? aragorn_great Linux - Distributions 2 04-19-2003 05:07 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 05:45 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration