Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[KINDA SOLVED] xorg/nvidia/udev/evdev, no keyboard or mouse
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
rburcham
Apprentice
Apprentice


Joined: 20 Mar 2003
Posts: 178

PostPosted: Wed Jul 03, 2013 10:51 pm    Post subject: [KINDA SOLVED] xorg/nvidia/udev/evdev, no keyboard or mouse Reply with quote

Fresh install of Gentoo. X starts but keyboard and mouse do not function. Both function fine in the console.

After searching and reading all the various threads on this subject it seems like this happens a lot when folks are upgrading xorg-server and/or udev. In my case though this is a fresh install.

Relevant stuff follows:

Code:

# grep DEVTMPFS /usr/src/linux/.config
CONFIG_DEVTMPFS=y
CONFIG_DEVTMPFS_MOUNT=y

# grep EVDEV /usr/src/linux/.config
CONFIG_INPUT_EVDEV=y
CONFIG_USB_VIDEO_CLASS_INPUT_EVDEV=y

# emerge udev xorg-server `qlist -I -C x11-drivers` -vp

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R    ] x11-base/xorg-server-1.13.4:0/1.13.4  USE="ipv6 nptl suid udev xorg -dmx -doc -kdrive -minimal (-selinux) -static-libs -tslib -xnest -xvfb" 0 kB
[ebuild   R    ] x11-drivers/nvidia-drivers-319.32 [319.32] USE="X acpi (multilib) tools -pax_kernel" 0 kB
[ebuild   R    ] x11-drivers/xf86-input-evdev-2.7.3  0 kB
[ebuild   R    ] x11-drivers/xf86-input-synaptics-1.6.2-r1  0 kB
[ebuild   R    ] x11-drivers/xf86-video-intel-2.20.13  USE="dri sna udev -glamor -uxa -xvmc" 0 kB
[ebuild   R    ] x11-drivers/xf86-video-nouveau-1.0.4  0 kB
[ebuild   R    ] x11-drivers/xf86-video-dummy-0.3.6  USE="-dga" 0 kB
[ebuild   R    ] x11-drivers/xf86-video-glint-1.2.8  0 kB
[ebuild   R    ] x11-drivers/xf86-video-nv-2.1.20  0 kB
[ebuild   R    ] x11-drivers/xf86-video-openchrome-0.3.1  USE="dri -debug -viaregtool" 0 kB
[ebuild   R    ] sys-fs/udev-204  USE="acl firmware-loader gudev hwdb introspection keymap kmod openrc -doc (-selinux) -static-libs" 0 kB



This behavior does not change regardless of whether or not I get specific in the xorg.conf file (regardless of which xorg.conf below I rename and use):

Code:

# cat xorg.conf

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    Option "UseDPLib" "no"
    BusID          "PCI:01:00:0"
    VendorName     "NVIDIA Corporation"
EndSection



# cat xorg.conf.inputDevice

Section "InputDevice"
    Identifier     "Keyboard0"
    Driver         "evdev"
    Option         "Device" "/dev/input/event5"
EndSection

Section "InputDevice"
    Identifier     "Mouse0"
    Driver         "evdev"
    Option         "Device" "/dev/input/mice"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    Option "UseDPLib" "no"
    BusID          "PCI:01:00:0"
    VendorName     "NVIDIA Corporation"
EndSection


# cat xorg.conf.inputClass

Section "InputClass"
        Identifier "evdev keyboard catchall"
        MatchIsKeyboard "on"
        MatchDevicePath "/dev/input/event*"
        Driver "evdev"
EndSection

Section "InputClass"
        Identifier "evdev pointer catchall"
        MatchIsPointer "on"
        MatchDevicePath "/dev/input/event*"
        Driver "evdev"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    Option "UseDPLib" "no"
    BusID          "PCI:01:00:0"
    VendorName     "NVIDIA Corporation"
EndSection




Xorg log:

Code:

# cat /var/log/Xorg.0.log
[  4996.500]
X.Org X Server 1.13.4
Release Date: 2013-04-17
[  4996.500] X Protocol Version 11, Revision 0
[  4996.500] Build Operating System: Linux 3.9.5-gentoo x86_64 Gentoo
[  4996.500] Current Operating System: Linux roblt3 3.9.5-gentoo #1 SMP PREEMPT Wed Jul 3 11:39:33 CDT 2013 x86_64
[  4996.500] Kernel command line: udev root=/dev/ram0 init=/linuxrc ramdisk=8192 real_root=/dev/sda4 CONSOLE=tty1 quiet splash nomodeset acpi_backlight=vendor initrd=boot\initrd.img-genkernel-x86_64-3.9.5-gentoo
[  4996.500] Build Date: 03 July 2013  04:18:44PM
[  4996.500] 
[  4996.500] Current version of pixman: 0.30.0
[  4996.500]    Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
[  4996.500] Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[  4996.500] (==) Log file: "/var/log/Xorg.0.log", Time: Wed Jul  3 17:22:35 2013
[  4996.500] (==) Using config file: "/etc/X11/xorg.conf"
[  4996.500] (==) No Layout section.  Using the first Screen section.
[  4996.500] (==) No screen section available. Using defaults.
[  4996.500] (**) |-->Screen "Default Screen Section" (0)
[  4996.500] (**) |   |-->Monitor "<default monitor>"
[  4996.500] (==) No device specified for screen "Default Screen Section".
        Using the first device section listed.
[  4996.500] (**) |   |-->Device "Device0"
[  4996.500] (==) No monitor specified for screen "Default Screen Section".
        Using a default monitor configuration.
[  4996.500] (==) Automatically adding devices
[  4996.500] (==) Automatically enabling devices
[  4996.500] (==) Automatically adding GPU devices
[  4996.501] (==) FontPath set to:
        /usr/share/fonts/misc/,
        /usr/share/fonts/TTF/,
        /usr/share/fonts/OTF/,
        /usr/share/fonts/Type1/,
        /usr/share/fonts/100dpi/,
        /usr/share/fonts/75dpi/
[  4996.501] (==) ModulePath set to "/usr/lib64/xorg/modules"
[  4996.501] (II) The server relies on udev to provide the list of input devices.
        If no devices become available, reconfigure udev or disable AutoAddDevices.
[  4996.501] (II) Loader magic: 0x7f7c20
[  4996.501] (II) Module ABI versions:
[  4996.501]    X.Org ANSI C Emulation: 0.4
[  4996.501]    X.Org Video Driver: 13.1
[  4996.501]    X.Org XInput driver : 18.0
[  4996.501]    X.Org Server Extension : 7.0
[  4996.501] (II) config/udev: Adding drm device (/dev/dri/card0)
[  4996.504] (--) PCI: (0:0:2:0) 8086:0166:106b:00f7 rev 9, Mem @ 0xc1400000/4194304, 0xb0000000/268435456, I/O @ 0x00003000/64
[  4996.504] (--) PCI:*(0:1:0:0) 10de:0fd5:106b:00f2 rev 161, Mem @ 0xc0000000/16777216, 0x90000000/268435456, 0xa0000000/33554432, I/O @ 0x00002000/128, BIOS @ 0x????????/524288
[  4996.504] (II) Open ACPI successful (/var/run/acpid.socket)
[  4996.504] Initializing built-in extension Generic Event Extension
[  4996.504] Initializing built-in extension SHAPE
[  4996.504] Initializing built-in extension MIT-SHM
[  4996.504] Initializing built-in extension XInputExtension
[  4996.504] Initializing built-in extension XTEST
[  4996.504] Initializing built-in extension BIG-REQUESTS
[  4996.504] Initializing built-in extension SYNC
[  4996.504] Initializing built-in extension XKEYBOARD
[  4996.504] Initializing built-in extension XC-MISC
[  4996.504] Initializing built-in extension XINERAMA
[  4996.504] Initializing built-in extension XFIXES
[  4996.504] Initializing built-in extension RENDER
[  4996.504] Initializing built-in extension RANDR
[  4996.504] Initializing built-in extension COMPOSITE
[  4996.504] Initializing built-in extension DAMAGE
[  4996.504] Initializing built-in extension MIT-SCREEN-SAVER
[  4996.504] Initializing built-in extension DOUBLE-BUFFER
[  4996.505] Initializing built-in extension RECORD
[  4996.505] Initializing built-in extension DPMS
[  4996.505] Initializing built-in extension X-Resource
[  4996.505] Initializing built-in extension XVideo
[  4996.505] Initializing built-in extension XVideo-MotionCompensation
[  4996.505] Initializing built-in extension XFree86-VidModeExtension
[  4996.505] Initializing built-in extension XFree86-DGA
[  4996.505] Initializing built-in extension XFree86-DRI
[  4996.505] Initializing built-in extension DRI2
[  4996.505] (II) LoadModule: "glx"
[  4996.505] (II) Loading /usr/lib64/xorg/modules/extensions/libglx.so
[  4996.516] (II) Module glx: vendor="NVIDIA Corporation"
[  4996.516]    compiled for 4.0.2, module version = 1.0.0
[  4996.516]    Module class: X.Org Server Extension
[  4996.516] (II) NVIDIA GLX Module  319.32  Wed Jun 19 14:55:38 PDT 2013
[  4996.516] Loading extension GLX
[  4996.516] (II) LoadModule: "nvidia"
[  4996.516] (II) Loading /usr/lib64/xorg/modules/drivers/nvidia_drv.so
[  4996.516] (II) Module nvidia: vendor="NVIDIA Corporation"
[  4996.516]    compiled for 4.0.2, module version = 1.0.0
[  4996.516]    Module class: X.Org Video Driver
[  4996.516] (II) NVIDIA dlloader X Driver  319.32  Wed Jun 19 14:34:12 PDT 2013
[  4996.516] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
[  4996.516] (++) using VT number 7

[  4996.531] (II) Loading sub module "fb"
[  4996.531] (II) LoadModule: "fb"
[  4996.531] (II) Loading /usr/lib64/xorg/modules/libfb.so
[  4996.531] (II) Module fb: vendor="X.Org Foundation"
[  4996.532]    compiled for 1.13.4, module version = 1.0.0
[  4996.532]    ABI class: X.Org ANSI C Emulation, version 0.4
[  4996.532] (WW) Unresolved symbol: fbGetGCPrivateKey
[  4996.532] (II) Loading sub module "wfb"
[  4996.532] (II) LoadModule: "wfb"
[  4996.532] (II) Loading /usr/lib64/xorg/modules/libwfb.so
[  4996.532] (II) Module wfb: vendor="X.Org Foundation"
[  4996.532]    compiled for 1.13.4, module version = 1.0.0
[  4996.532]    ABI class: X.Org ANSI C Emulation, version 0.4
[  4996.532] (II) Loading sub module "shadow"
[  4996.532] (II) LoadModule: "shadow"
[  4996.532] (II) Loading /usr/lib64/xorg/modules/libshadow.so
[  4996.532] (II) Module shadow: vendor="X.Org Foundation"
[  4996.532]    compiled for 1.13.4, module version = 1.1.0
[  4996.532]    ABI class: X.Org ANSI C Emulation, version 0.4
[  4996.532] (II) Loading sub module "ramdac"
[  4996.532] (II) LoadModule: "ramdac"
[  4996.532] (II) Module "ramdac" already built-in
[  4996.533] (II) NVIDIA(0): Creating default Display subsection in Screen section
        "Default Screen Section" for depth/fbbpp 24/32
[  4996.533] (==) NVIDIA(0): Depth 24, (==) framebuffer bpp 32
[  4996.533] (==) NVIDIA(0): RGB weight 888
[  4996.533] (==) NVIDIA(0): Default visual is TrueColor
[  4996.533] (==) NVIDIA(0): Using gamma correction (1.0, 1.0, 1.0)
[  4996.533] (**) NVIDIA(0): Option "UseDPLib" "no"
[  4996.533] (**) NVIDIA(0): Enabling 2D acceleration
[  4996.672] (II) NVIDIA(GPU-0): Display (Apple Color LCD (DFP-3)) does not support NVIDIA 3D
[  4996.672] (II) NVIDIA(GPU-0):     Vision stereo.
[  4996.674] (II) NVIDIA(0): NVIDIA GPU GeForce GT 650M (GK107) at PCI:1:0:0 (GPU-0)
[  4996.674] (--) NVIDIA(0): Memory: 1048576 kBytes
[  4996.674] (--) NVIDIA(0): VideoBIOS: 80.07.26.04.01
[  4996.674] (II) NVIDIA(0): Detected PCI Express Link width: 16X
[  4996.676] (--) NVIDIA(0): Valid display device(s) on GeForce GT 650M at PCI:1:0:0
[  4996.676] (--) NVIDIA(0):     DFP-0
[  4996.676] (--) NVIDIA(0):     DFP-1
[  4996.676] (--) NVIDIA(0):     DFP-2
[  4996.676] (--) NVIDIA(0):     Apple Color LCD (DFP-3) (boot, connected)
[  4996.676] (--) NVIDIA(0):     DFP-4
[  4996.676] (--) NVIDIA(0):     DFP-5
[  4996.676] (--) NVIDIA(0): DFP-0: 165.0 MHz maximum pixel clock
[  4996.677] (--) NVIDIA(0): DFP-0: Internal Single Link TMDS
[  4996.677] (--) NVIDIA(0): DFP-1: 165.0 MHz maximum pixel clock
[  4996.677] (--) NVIDIA(0): DFP-1: Internal Single Link TMDS
[  4996.677] (--) NVIDIA(0): DFP-2: 165.0 MHz maximum pixel clock
[  4996.677] (--) NVIDIA(0): DFP-2: Internal Single Link TMDS
[  4996.677] (--) NVIDIA(0): Apple Color LCD (DFP-3): 480.0 MHz maximum pixel clock
[  4996.677] (--) NVIDIA(0): Apple Color LCD (DFP-3): Internal DisplayPort
[  4996.677] (--) NVIDIA(0): DFP-4: 480.0 MHz maximum pixel clock
[  4996.677] (--) NVIDIA(0): DFP-4: Internal DisplayPort
[  4996.677] (--) NVIDIA(0): DFP-5: 480.0 MHz maximum pixel clock
[  4996.677] (--) NVIDIA(0): DFP-5: Internal DisplayPort
[  4996.677] (**) NVIDIA(0): Using HorizSync/VertRefresh ranges from the EDID for display
[  4996.677] (**) NVIDIA(0):     device Apple Color LCD (DFP-3) (Using EDID frequencies has
[  4996.677] (**) NVIDIA(0):     been enabled on all display devices.)
[  4996.677] (==) NVIDIA(0):
[  4996.677] (==) NVIDIA(0): No modes were requested; the default mode "nvidia-auto-select"
[  4996.677] (==) NVIDIA(0):     will be used as the requested mode.
[  4996.677] (==) NVIDIA(0):
[  4996.677] (II) NVIDIA(0): Validated MetaModes:
[  4996.677] (II) NVIDIA(0):     "DFP-3:nvidia-auto-select{}"
[  4996.677] (II) NVIDIA(0): Virtual screen size determined to be 2880 x 1800
[  4996.686] (--) NVIDIA(0): DPI set to (221, 217); computed from "UseEdidDpi" X config
[  4996.686] (--) NVIDIA(0):     option
[  4996.686] (--) Depth 24 pixmap format is 32 bpp
[  4996.686] (II) NVIDIA: Using 3072.00 MB of virtual memory for indirect memory
[  4996.686] (II) NVIDIA:     access.
[  4996.691] (II) NVIDIA(0): Setting mode "DFP-3:nvidia-auto-select{}"
[  4996.935] Loading extension NV-GLX
[  4996.958] (==) NVIDIA(0): Disabling shared memory pixmaps
[  4996.959] (==) NVIDIA(0): Backing store disabled
[  4996.959] (==) NVIDIA(0): Silken mouse enabled
[  4996.959] (==) NVIDIA(0): DPMS enabled
[  4996.959] Loading extension NV-CONTROL
[  4996.959] Loading extension XINERAMA
[  4996.959] (II) Loading sub module "dri2"
[  4996.959] (II) LoadModule: "dri2"
[  4996.959] (II) Module "dri2" already built-in
[  4996.959] (II) NVIDIA(0): [DRI2] Setup complete
[  4996.959] (II) NVIDIA(0): [DRI2]   VDPAU driver: nvidia
[  4996.959] (--) RandR disabled
[  4996.962] (II) Initializing extension GLX
[  4997.014] (II) config/udev: Adding drm device (/dev/dri/card0)




So X isn't even trying to load evdev. I can make it load the module if I force it by adding to the xorg.conf

Code:

Section "Module"
    Load       "evdev"
EndSection


But that just makes the log file show the evdev module load, but still no devices get discovered/configured.

I can confirm udev is in the sysinit runlevel and it is running.

The curious thing is, I can ssh into the machine, start X, and cat /dev/input/mice or /dev/input/event5 or /dev/input/mouse0, and when I hit keys or move the touchpad on the machine I see all the garbage characters spew out. But X doesn't do anything. It is as though X is udev blind.

I have rebuilt xorg-server, all x11-drivers and udev, and I have done revdep-rebuild just to be thorough.

What else can I examine?


Last edited by rburcham on Sat Jul 06, 2013 2:26 am; edited 1 time in total
Back to top
View user's profile Send private message
VoidMage
Watchman
Watchman


Joined: 14 Oct 2006
Posts: 5624

PostPosted: Wed Jul 03, 2013 11:59 pm    Post subject: Reply with quote

First thing that come to mind is to check if the devices are getting tagged properly by udev.
See what 'udevadm info' prints on input nodes (event* ones for your mouse/keyboard).
Back to top
View user's profile Send private message
rburcham
Apprentice
Apprentice


Joined: 20 Mar 2003
Posts: 178

PostPosted: Thu Jul 04, 2013 5:26 pm    Post subject: Reply with quote

Thanks for the help. I am unfamiliar with this tool... am I doing this right?

Quote:
# udevadm info --query=all --name=/dev/input/mouse0
P: /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.8/2-1.8.2/2-1.8.2:1.2/input/input6/mouse0
N: input/mouse0
E: DEVNAME=/dev/input/mouse0
E: DEVPATH=/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.8/2-1.8.2/2-1.8.2:1.2/input/input6/mouse0
E: MAJOR=13
E: MINOR=32
E: SUBSYSTEM=input

# udevadm info --query=all --name=/dev/input/event5
P: /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.8/2-1.8.2/2-1.8.2:1.0/input/input5/event5
N: input/event5
E: DEVNAME=/dev/input/event5
E: DEVPATH=/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.8/2-1.8.2/2-1.8.2:1.0/input/input5/event5
E: MAJOR=13
E: MINOR=69
E: SUBSYSTEM=input


What am I looking for?
Back to top
View user's profile Send private message
VoidMage
Watchman
Watchman


Joined: 14 Oct 2006
Posts: 5624

PostPosted: Thu Jul 04, 2013 5:47 pm    Post subject: Reply with quote

Just about. Actually, with the recent versions of udev (slightly after systemd merge) you can pass the paths directly.

Two things though:
- I've asked for event* nodes only (though you should be able to tell which of those correspond to mouse/keyboard)
- if event5 is the correct node, it seems udev fails to tag the device correctly - do recheck
Back to top
View user's profile Send private message
rburcham
Apprentice
Apprentice


Joined: 20 Mar 2003
Posts: 178

PostPosted: Fri Jul 05, 2013 3:05 am    Post subject: Reply with quote

What is the correct form of the udevadm command I should be using?

I know that event5 is the keyboard through catting the node while monkey-testing the keyboard and seeing junk chars. Not sure about the touchpad/mouse though, other than mouse0 that is... okay monkey-testing the mouse on event6 shows junk chars, while no other event* node shows activity.

All the event* nodes are below. In what way should they be tagged by udev? Do I need to add some udev rules to get them properly tagged?

What do your event nodes look like?

Code:
# udevadm info --query=all --name=/dev/input/event0                                                                                                                                   
P: /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0D:00/input/input0/event0                                                                                                                             
N: input/event0                                                                                                                                                                                 
E: DEVNAME=/dev/input/event0                                                                                                                                                                   
E: DEVPATH=/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0D:00/input/input0/event0                                                                                                                     
E: MAJOR=13                                                                                                                                                                                     
E: MINOR=64                                                                                                                                                                                     
E: SUBSYSTEM=input                                                                                                                                                                             
                                                                                                                                                                                               
# udevadm info --query=all --name=/dev/input/event1
P: /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0C:00/input/input1/event1                                                                                                                             
N: input/event1                                                                                                                                                                                 
E: DEVNAME=/dev/input/event1                                                                                                                                                                   
E: DEVPATH=/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0C:00/input/input1/event1                                                                                                                     
E: MAJOR=13                                                                                                                                                                                     
E: MINOR=65                                                                                                                                                                                     
E: SUBSYSTEM=input                                                                                                                                                                             
                                                                                                                                                                                               
# udevadm info --query=all --name=/dev/input/event2
P: /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0E:00/input/input2/event2
N: input/event2
E: DEVNAME=/dev/input/event2
E: DEVPATH=/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0E:00/input/input2/event2
E: MAJOR=13
E: MINOR=66
E: SUBSYSTEM=input

# udevadm info --query=all --name=/dev/input/event3
P: /devices/LNXSYSTM:00/LNXPWRBN:00/input/input3/event3
N: input/event3
E: DEVNAME=/dev/input/event3
E: DEVPATH=/devices/LNXSYSTM:00/LNXPWRBN:00/input/input3/event3
E: MAJOR=13
E: MINOR=67
E: SUBSYSTEM=input

# udevadm info --query=all --name=/dev/input/event4
P: /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.1/1-1.1:1.0/input/input4/event4
N: input/event4
E: DEVNAME=/dev/input/event4
E: DEVPATH=/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.1/1-1.1:1.0/input/input4/event4
E: MAJOR=13
E: MINOR=68
E: SUBSYSTEM=input

# udevadm info --query=all --name=/dev/input/event5
P: /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.8/2-1.8.2/2-1.8.2:1.0/input/input5/event5
N: input/event5
E: DEVNAME=/dev/input/event5
E: DEVPATH=/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.8/2-1.8.2/2-1.8.2:1.0/input/input5/event5
E: MAJOR=13
E: MINOR=69
E: SUBSYSTEM=input

# udevadm info --query=all --name=/dev/input/event6
P: /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.8/2-1.8.2/2-1.8.2:1.2/input/input6/event6
N: input/event6
E: DEVNAME=/dev/input/event6
E: DEVPATH=/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.8/2-1.8.2/2-1.8.2:1.2/input/input6/event6
E: MAJOR=13
E: MINOR=70
E: SUBSYSTEM=input

# udevadm info --query=all --name=/dev/input/event7
P: /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.8/2-1.8.1/2-1.8.1.1/2-1.8.1.1:1.0/input/input7/event7
N: input/event7
E: DEVNAME=/dev/input/event7
E: DEVPATH=/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.8/2-1.8.1/2-1.8.1.1/2-1.8.1.1:1.0/input/input7/event7
E: MAJOR=13
E: MINOR=71
E: SUBSYSTEM=input

# udevadm info --query=all --name=/dev/input/event8
P: /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.8/2-1.8.1/2-1.8.1.2/2-1.8.1.2:1.0/input/input8/event8
N: input/event8
E: DEVNAME=/dev/input/event8
E: DEVPATH=/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.8/2-1.8.1/2-1.8.1.2/2-1.8.1.2:1.0/input/input8/event8
E: MAJOR=13
E: MINOR=72
E: SUBSYSTEM=input
Back to top
View user's profile Send private message
VoidMage
Watchman
Watchman


Joined: 14 Oct 2006
Posts: 5624

PostPosted: Fri Jul 05, 2013 4:33 am    Post subject: Reply with quote

Well, i.e. my mouse/keyboard look like this (note that this is a ps2 mouse/keyboard):
Code:
P: /devices/platform/i8042/serio1/input/input5/event5
N: input/event5
S: input/by-path/platform-i8042-serio-1-event-mouse
E: DEVLINKS=/dev/input/by-path/platform-i8042-serio-1-event-mouse
E: DEVNAME=/dev/input/event5
E: DEVPATH=/devices/platform/i8042/serio1/input/input5/event5
E: ID_INPUT=1
E: ID_INPUT_MOUSE=1
E: ID_PATH=platform-i8042-serio-1
E: ID_PATH_TAG=platform-i8042-serio-1
E: ID_SERIAL=noserial
E: MAJOR=13
E: MINOR=69
E: SUBSYSTEM=input
E: USEC_INITIALIZED=60611

P: /devices/platform/i8042/serio0/input/input4/event4
N: input/event4
S: input/by-path/platform-i8042-serio-0-event-kbd
E: DEVLINKS=/dev/input/by-path/platform-i8042-serio-0-event-kbd
E: DEVNAME=/dev/input/event4
E: DEVPATH=/devices/platform/i8042/serio0/input/input4/event4
E: DMI_VENDOR=MSI
E: ID_INPUT=1
E: ID_INPUT_KEY=1
E: ID_INPUT_KEYBOARD=1
E: ID_PATH=platform-i8042-serio-0
E: ID_PATH_TAG=platform-i8042-serio-0
E: ID_SERIAL=noserial
E: MAJOR=13
E: MINOR=68
E: SUBSYSTEM=input
E: USEC_INITIALIZED=60359

By tags in this context I mean those ID_* vars.
Back to top
View user's profile Send private message
rburcham
Apprentice
Apprentice


Joined: 20 Mar 2003
Posts: 178

PostPosted: Fri Jul 05, 2013 12:54 pm    Post subject: Reply with quote

So what was the udevadm info command you issued to get your output?

What creates those ID_* entries? Is it possible I am missing some rules in /etc/udev/rules.d, or perhaps something in the hwdb?
Back to top
View user's profile Send private message
dmpogo
Advocate
Advocate


Joined: 02 Sep 2004
Posts: 2289
Location: Canada

PostPosted: Fri Jul 05, 2013 1:07 pm    Post subject: Reply with quote

Delete

Option "Device" "/dev/input/..."

lines from keyboard and mouse sections
Back to top
View user's profile Send private message
rburcham
Apprentice
Apprentice


Joined: 20 Mar 2003
Posts: 178

PostPosted: Fri Jul 05, 2013 1:58 pm    Post subject: Reply with quote

No change. All of the xorg.confs described in the top of the thread produce the same log. Using xorg.conf.inputDevice with the Option "Device" ... removed from the Sections shows no change.

I suspect VoidMage is on to something with the missing ID_* tags in the udevadm info output, but there are still some details I don't know, namely where those get created. I suspect there is either a udev rule or possibly a hwbd record missing that is preventing udevd from matching on this hardware and preparing the node completely. I'm guessing if the event* nodes were populated completely then X would just detect the devices properly and set them up.

FWIW it is a powerbook 15" retina.
Back to top
View user's profile Send private message
VoidMage
Watchman
Watchman


Joined: 14 Oct 2006
Posts: 5624

PostPosted: Fri Jul 05, 2013 5:45 pm    Post subject: Reply with quote

:roll:
@dmpogo: if udev isn't tagging the devices properly, input hotplug can not work.

udev should be creating those tags, the exact rule responsible for it comes from 50-udev-default.rules
Code:
SUBSYSTEM=="input", ENV{ID_INPUT}=="", IMPORT{builtin}="input_id"

Obviously, for some reason either this rule doesn't run or fails.

You could try running 'udevadm monitor' in one terminal (or in this case tty) and 'udevadm trigger --subsystem-match=input' (as root) in another and see if there's anything interesting in the output or perhaps even 'udevadm test-builtin input_id' on one of sysfs paths of your input devices.
Back to top
View user's profile Send private message
patrix_neo
Guru
Guru


Joined: 08 Jan 2004
Posts: 382
Location: Svedala

PostPosted: Fri Jul 05, 2013 7:33 pm    Post subject: Reply with quote

How about removing anything not nVidia relative to xorg.conf?
X.org are very good at catching mouse and keyboard by it's own...or so I have experienced.

Here is my Xorg.conf:

Quote:

Section "Device"
Identifier "Nvidia Card"
Driver "nvidia"
Option "UseEdidDpi" "False"
Option "DPI" "96 x 96"
EndSection


Full mouse and keyboard support here.
Back to top
View user's profile Send private message
rburcham
Apprentice
Apprentice


Joined: 20 Mar 2003
Posts: 178

PostPosted: Fri Jul 05, 2013 11:45 pm    Post subject: Reply with quote

@patrix_neo - no, I have such an xorg.conf, see the cat of xorg.conf at the top of the thread.

VoidMage is totally on the right track, as udev is not preparing the event* device nodes properly at all.

So VM, check this out:
Code:

# equery f udev
 * Searching for udev ...
 * Contents of sys-fs/udev-204:
/bin
/bin/udevadm
/etc
/etc/udev
/etc/udev/hwdb.d
/etc/udev/rules.d
/etc/udev/udev.conf
/lib
/lib/udev
/lib/udev/accelerometer
/lib/udev/ata_id
/lib/udev/cdrom_id
/lib/udev/collect
/lib/udev/findkeyboards
/lib/udev/keyboard-force-release.sh
/lib/udev/keymap
/lib/udev/keymaps
/lib/udev/keymaps/acer
/lib/udev/keymaps/acer-aspire_5720
/lib/udev/keymaps/acer-aspire_5920g
/lib/udev/keymaps/acer-aspire_6920
/lib/udev/keymaps/acer-aspire_8930
/lib/udev/keymaps/acer-travelmate_c300
/lib/udev/keymaps/asus
/lib/udev/keymaps/compaq-e_evo
/lib/udev/keymaps/dell
/lib/udev/keymaps/dell-latitude-xt2
/lib/udev/keymaps/everex-xt5000
/lib/udev/keymaps/force-release
/lib/udev/keymaps/force-release/common-volume-keys
/lib/udev/keymaps/force-release/dell-touchpad
/lib/udev/keymaps/force-release/dell-xps
/lib/udev/keymaps/force-release/hp-other
/lib/udev/keymaps/force-release/samsung-other
/lib/udev/keymaps/force-release/samsung-series-9
/lib/udev/keymaps/fujitsu-amilo_li_2732
/lib/udev/keymaps/fujitsu-amilo_pa_2548
/lib/udev/keymaps/fujitsu-amilo_pro_edition_v3505
/lib/udev/keymaps/fujitsu-amilo_pro_v3205
/lib/udev/keymaps/fujitsu-amilo_si_1520
/lib/udev/keymaps/fujitsu-esprimo_mobile_v5
/lib/udev/keymaps/fujitsu-esprimo_mobile_v6
/lib/udev/keymaps/genius-slimstar-320
/lib/udev/keymaps/hewlett-packard
/lib/udev/keymaps/hewlett-packard-2510p_2530p
/lib/udev/keymaps/hewlett-packard-compaq_elitebook
/lib/udev/keymaps/hewlett-packard-hdx9494nr
/lib/udev/keymaps/hewlett-packard-pavilion
/lib/udev/keymaps/hewlett-packard-presario-2100
/lib/udev/keymaps/hewlett-packard-tablet
/lib/udev/keymaps/hewlett-packard-tx2
/lib/udev/keymaps/hewlett-packard_elitebook-8440p
/lib/udev/keymaps/hewlett-packard_elitebook-8460p
/lib/udev/keymaps/ibm-thinkpad-usb-keyboard-trackpoint
/lib/udev/keymaps/inventec-symphony_6.0_7.0
/lib/udev/keymaps/lenovo-3000
/lib/udev/keymaps/lenovo-ideapad
/lib/udev/keymaps/lenovo-thinkpad-usb-keyboard-trackpoint
/lib/udev/keymaps/lenovo-thinkpad_x200_tablet
/lib/udev/keymaps/lenovo-thinkpad_x6_tablet
/lib/udev/keymaps/lg-x110
/lib/udev/keymaps/logitech-wave
/lib/udev/keymaps/logitech-wave-cordless
/lib/udev/keymaps/logitech-wave-pro-cordless
/lib/udev/keymaps/maxdata-pro_7000
/lib/udev/keymaps/medion-fid2060
/lib/udev/keymaps/medionnb-a555
/lib/udev/keymaps/micro-star
/lib/udev/keymaps/module-asus-w3j
/lib/udev/keymaps/module-ibm
/lib/udev/keymaps/module-lenovo
/lib/udev/keymaps/module-sony
/lib/udev/keymaps/module-sony-old
/lib/udev/keymaps/module-sony-vgn
/lib/udev/keymaps/module-sony-vpc
/lib/udev/keymaps/olpc-xo
/lib/udev/keymaps/onkyo
/lib/udev/keymaps/oqo-model2
/lib/udev/keymaps/samsung-other
/lib/udev/keymaps/samsung-series-9
/lib/udev/keymaps/samsung-sq1us
/lib/udev/keymaps/samsung-sx20s
/lib/udev/keymaps/toshiba-satellite_a100
/lib/udev/keymaps/toshiba-satellite_a110
/lib/udev/keymaps/toshiba-satellite_m30x
/lib/udev/keymaps/zepto-znote
/lib/udev/mtd_probe
/lib/udev/rules.d
/lib/udev/rules.d/40-gentoo.rules
/lib/udev/rules.d/42-usb-hid-pm.rules
/lib/udev/rules.d/50-firmware.rules

/lib/udev/rules.d/50-udev-default.rules

/lib/udev/rules.d/60-cdrom_id.rules
/lib/udev/rules.d/60-persistent-alsa.rules
/lib/udev/rules.d/60-persistent-input.rules
/lib/udev/rules.d/60-persistent-serial.rules
/lib/udev/rules.d/60-persistent-storage-tape.rules
/lib/udev/rules.d/60-persistent-storage.rules
/lib/udev/rules.d/60-persistent-v4l.rules
/lib/udev/rules.d/61-accelerometer.rules
/lib/udev/rules.d/64-btrfs.rules
/lib/udev/rules.d/75-net-description.rules
/lib/udev/rules.d/75-probe_mtd.rules
/lib/udev/rules.d/75-tty-description.rules
/lib/udev/rules.d/78-sound-card.rules
/lib/udev/rules.d/80-drivers.rules
/lib/udev/rules.d/80-net-name-slot.rules
/lib/udev/rules.d/95-keyboard-force-release.rules
/lib/udev/rules.d/95-keymap.rules
/lib/udev/rules.d/95-udev-late.rules
/lib/udev/scsi_id
/lib/udev/v4l_id
/lib64
/lib64/libudev.so.1 -> libudev.so.1.3.5
/lib64/libudev.so.1.3.5
/sbin
/sbin/udevadm -> ../bin/udevadm
/sbin/udevd
/usr
/usr/include
/usr/include/gudev-1.0
/usr/include/gudev-1.0/gudev
/usr/include/gudev-1.0/gudev/gudev.h
/usr/include/gudev-1.0/gudev/gudevclient.h
/usr/include/gudev-1.0/gudev/gudevdevice.h
/usr/include/gudev-1.0/gudev/gudevenumerator.h
/usr/include/gudev-1.0/gudev/gudevenums.h
/usr/include/gudev-1.0/gudev/gudevenumtypes.h
/usr/include/gudev-1.0/gudev/gudevtypes.h
/usr/include/libudev.h
/usr/lib64
/usr/lib64/girepository-1.0
/usr/lib64/girepository-1.0/GUdev-1.0.typelib
/usr/lib64/libgudev-1.0.so -> libgudev-1.0.so.0.1.3
/usr/lib64/libgudev-1.0.so.0 -> libgudev-1.0.so.0.1.3
/usr/lib64/libgudev-1.0.so.0.1.3
/usr/lib64/libudev.so -> ../../lib64/libudev.so.1.3.5
/usr/lib64/pkgconfig
/usr/lib64/pkgconfig/gudev-1.0.pc
/usr/lib64/pkgconfig/libudev.pc
/usr/share
/usr/share/bash-completion
/usr/share/bash-completion/udevadm
/usr/share/doc
/usr/share/doc/udev-204
/usr/share/doc/udev-204/DISTRO_PORTING.bz2
/usr/share/doc/udev-204/NEWS.bz2
/usr/share/doc/udev-204/README.bz2
/usr/share/doc/udev-204/README.keymap.txt.bz2
/usr/share/doc/udev-204/TODO.bz2
/usr/share/gir-1.0
/usr/share/gir-1.0/GUdev-1.0.gir
/usr/share/man
/usr/share/man/man7
/usr/share/man/man7/udev.7.bz2
/usr/share/man/man8
/usr/share/man/man8/systemd-udevd.8.bz2
/usr/share/man/man8/systemd-udevd.service.8.bz2
/usr/share/man/man8/udevadm.8.bz2
/usr/share/man/man8/udevd.8.bz2
/usr/share/pkgconfig
/usr/share/pkgconfig/udev.pc



# less /lib/udev/rules.d/50-udev-default.rules
/lib/udev/rules.d/50-udev-default.rules: No such file or directory



# ls -la /lib/udev/rules.d/
total 20
drwxr-xr-x 2 root root 4096 Jul  3 16:10 .
drwxr-xr-x 3 root root 4096 Jul  3 16:10 ..
-rw-r--r-- 1 root root  284 Jul  3 09:00 77-nm-olpc-mesh.rules
-rw-r--r-- 1 root root  280 Jul  3 15:35 90-network.rules
-rw-r--r-- 1 root root  462 Jul  3 16:10 99-nvidia.rules


Somehow I have lost ALL of the default udevd rules in /lib/udev/rules.d and only the rules from NetworkManager and nvidia-drivers remain... This makes no sense. I'm reinstalling udev yet again to see why the rules don't copy.
Back to top
View user's profile Send private message
rburcham
Apprentice
Apprentice


Joined: 20 Mar 2003
Posts: 178

PostPosted: Sat Jul 06, 2013 2:25 am    Post subject: Reply with quote

Well damn. I know what the root cause for the incomplete device nodes was - i didn't have a single stock udev rule in /lib/udev/rules.d even though the package installs with like 20 of them. I don't know where they went though. I have reinstalled and they are back. Bounced udev and X and all is well. I don't know how the rules got deleted. There really aren't any steps to retrace as this is a fresh install.

I'll set the subject to [SOLVED], although I admit to feeling weird about doing so.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
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