Debian This forum is for the discussion of Debian Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
07-31-2004, 10:22 PM
|
#1
|
Senior Member
Registered: Feb 2002
Distribution: t2 - trying to anyway
Posts: 2,541
Rep:
|
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.
|
|
|
07-31-2004, 11:43 PM
|
#2
|
Member
Registered: Jun 2003
Location: Glendale AZ
Distribution: Slackware 10
Posts: 153
Rep:
|
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
|
|
|
07-31-2004, 11:51 PM
|
#3
|
Senior Member
Registered: Feb 2002
Distribution: t2 - trying to anyway
Posts: 2,541
Original Poster
Rep:
|
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.
|
|
|
08-01-2004, 01:05 AM
|
#4
|
Member
Registered: Nov 2003
Location: Ohio
Distribution: Debian Unstable
Posts: 460
Rep:
|
an "apt-cache search mouse" search implies that you should try out mdetect.
mdetect - mouse device autodetection
do
|
|
|
08-01-2004, 05:51 AM
|
#5
|
Senior Member
Registered: Mar 2004
Distribution: Debian GNU/kFreeBSD
Posts: 1,597
Rep:
|
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.
|
|
|
08-01-2004, 07:10 AM
|
#6
|
Senior Member
Registered: Feb 2002
Distribution: t2 - trying to anyway
Posts: 2,541
Original Poster
Rep:
|
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.
|
|
|
08-01-2004, 08:36 AM
|
#7
|
Senior Member
Registered: Mar 2004
Distribution: Debian GNU/kFreeBSD
Posts: 1,597
Rep:
|
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.
|
|
|
08-01-2004, 08:39 AM
|
#8
|
Member
Registered: Aug 2003
Location: Castricum, The Netherlands
Distribution: Debian
Posts: 49
Rep:
|
I had the same problem, I solved it by adding 'psmouse' to my /etc/modules
The driver wouldn't load otherwise.
|
|
|
08-01-2004, 09:07 AM
|
#9
|
Senior Member
Registered: Feb 2002
Distribution: t2 - trying to anyway
Posts: 2,541
Original Poster
Rep:
|
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.
|
|
|
08-01-2004, 10:06 AM
|
#10
|
Senior Member
Registered: Mar 2004
Distribution: Debian GNU/kFreeBSD
Posts: 1,597
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 05:36 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|