View previous topic :: View next topic |
Author |
Message |
The Mountain Man l33t
Joined: 03 Sep 2003 Posts: 643
|
Posted: Wed Aug 31, 2005 1:25 am Post subject: Serious problems after switching to udev *** FIXED *** |
|
|
I followed the instructions here, I unemerged "devfsd", and now I'm encountering some rather unfortunate problems.
First of all, startx says it "Cannot open device /dev/mouse". I can create a link easily enough with "ln -s /dev/input/mouse0 /dev/mouse" and then I can startx, but the link won't stay when I reboot.
Secondly, kdm (the KDE login manager) won't start. If I type "kdm" in a root console, nothing happens. No errors, no messages, nothing. If I try and start KDE with "startkde", I get various error messages telling me that it is "unable to open display "" " (note the double quotes).
Strangely enough, I can start KDE from within the xsession -- it seems to have sort of started up underneith or something...very weird.
Other than that, everything seems to be working fine. Anyway, does anybody have any clue how I can fix my system? Thanks. _________________ I suck at signatures.
Last edited by The Mountain Man on Mon Sep 05, 2005 3:23 pm; edited 1 time in total |
|
Back to top |
|
|
mikecore Guru
Joined: 29 Dec 2003 Posts: 342 Location: Toledo, Ohio
|
Posted: Wed Aug 31, 2005 1:45 am Post subject: The instructions you followed |
|
|
The Instructions you followed show that you have to edit some files. But it dosn't say how to edit them so I would guess you need to know how to properly edit them. Did you edit these files and if so did you do it correctly. |
|
Back to top |
|
|
The Mountain Man l33t
Joined: 03 Sep 2003 Posts: 643
|
Posted: Wed Aug 31, 2005 1:56 am Post subject: |
|
|
Good question. In /etc/conf.d/rc, I find this:
Code: | # Use this variable to control the /dev management behavior.
# auto - let the scripts figure out what's best at boot
# devfs - use devfs (requires sys-fs/devfsd)
# udev - use udev (requires sys-fs/udev)
# static - let the user manage /dev
RC_DEVICES="auto" |
I left it as "auto". I also tried "udev", but that didn't improve the situation.
/etc/udev/ has a file named udev.conf which looks like this:
Code: | # /etc/udev/udev.conf: main config file for udev
# $Header: /var/cvsroot/gentoo-x86/sys-fs/udev/files/udev.conf.post_050,v 1.1 2005/02/04 03:07:19 gregkh Exp $
#
# This file can be used to override some of udev's default values
# for where it looks for files, and where it places device nodes.
# udev_root - where in the filesystem to place the device nodes
udev_root="/dev/"
# udev_db - The name and location of the udev database.
# NOTE: this should be somewhere that is writable before
# / is mounted rw, like /dev ...
udev_db="/dev/.udevdb"
# udev_rules - The name and location of the udev rules file
udev_rules="/etc/udev/rules.d/"
# default_mode - set the default mode for all nodes that have no
# explicit match in the permissions file
# NOTE: do not set to anything else if you are not
# sure you have everything needed for normal
# user to function in the permissions file!
default_mode="0660"
# udev_log - set to "yes" if you want logging
udev_log="no" |
I couldn't see anything to change, so I left this one alone.
Anyway, as a temporary fix, I recompiled my kernel with devfs support and devfs automount and removed "nodevfs udev devfs=nomount" from grub.conf which at least lets me start KDE, though I now have those annoying "error unlinking" messages at boot time, which is what I was trying to get rid of in the first place. _________________ I suck at signatures. |
|
Back to top |
|
|
steve_d555 Guru
Joined: 07 Nov 2004 Posts: 458 Location: Belmont, Massachusetts
|
Posted: Wed Aug 31, 2005 2:30 am Post subject: |
|
|
To change the startx problem you can just edit you xorg.conf and change /dev/mouse to /dev/input/mouse0.
The KDE thing I have no idea about however. _________________ rubyforums | blog | boxwhore |
|
Back to top |
|
|
Raistlin l33t
Joined: 17 May 2004 Posts: 691 Location: Boston, MA
|
Posted: Wed Aug 31, 2005 7:11 am Post subject: |
|
|
Hi,
why not create a device /dev/mouse?
How? That way:
Let's take my notebook installation as an example. My Thinkpad has a touchpad, a trackpoint and sometimes a usb mouse plugged in. I found that really annoying, to reference it in xorg.conf through mouse0, mouse1, etc. Therefore I wrote some simple udev rules.
You can either add it to Code: | /etc/udev/rules.d/50-udev.rules | or create a new file. For example Code: | /etc/udev/rules.d/10-udev.rules | The files are parsed in alphabetical order. I did the latter (10-udev...)
So, let's get concrete:
Code: | #Usb Mouse
BUS="usb", KERNEL="mouse*", SYSFS{dev}="13:34", NAME="input/%k", SYMLINK="usbmouse"
#Thinkpad Trackpoint
KERNEL="mouse1", SYSFS{dev}="13:33", NAME="input/%k", SYMLINK="trackpoint"
#Thinkpad Touchpad
KERNEL="event1", SYSFS{dev}="13:65", NAME="input/%k", SYMLINK="touchpad"
|
I figured out the SYSFS{...} matching part with a helping hand from - You might do the same. These rules create the following simlinks, while they also add the "default" device nodes (the NAME="..." part): Code: | /dev/usbmouse
/dev/trackpoint
/dev/touchpad |
Because the usb mouse isn't always plugged in, one should not declare it as the core pointer, but rather send core events (in xorg.conf) Code: |
InputDevice "Trackpoint" "CorePointer"
InputDevice "USBMouse" "SendCoreEvents"
InputDevice "Touchpad" "SendCoreEvents"
| This will always work, because I hopefully ( ) never ever plug out my trackpoint
Hth.
Cheers, R. _________________ Zwei Was Eins Initially
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." |
|
Back to top |
|
|
The Mountain Man l33t
Joined: 03 Sep 2003 Posts: 643
|
Posted: Mon Sep 05, 2005 3:25 pm Post subject: |
|
|
Well, I tried installing udev again, but the only thing I did differently was change xorg.conf so that it points to /dev/input/mice, and now everything works perfectly. Not sure why it didn't work the first time. I'll try your advice above just so I don't screw myself in the future.
Thanks! _________________ I suck at signatures. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|