[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#627982: marked as done (xorg: MatchDevicePath does not handle symlinks (required by latest udev))



Your message dated Fri, 27 May 2011 12:03:15 +0200
with message-id <20110527100315.GA31683@rhodium.pps.jussieu.fr>
and subject line Re: Bug#627982: xorg: MatchDevicePath does not handle symlinks (required by latest udev)
has caused the Debian Bug report #627982,
regarding xorg: MatchDevicePath does not handle symlinks (required by latest udev)
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
627982: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=627982
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: xorg
Version: 1:7.5+7
Severity: normal


Hi,

latest versions of udev require (or suggest strongly) to use SYMLINK
instead of NAME in udev rules, thus letting the kernel choose the name
and merely installing symlinks in /dev.
[ see http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=581593 for
  instance ]

I used to have the following udev rule:

# /etc/udev/rules.d/typematrix.rules
ATTRS{name}=="TypeMatrix.com USB Keyboard", NAME="input/typematrix"

and the corresponding xorg rule:

# /etc/X11/xorg.conf.d/typematrix.conf
Section "InputClass"
        Identifier "Typematrix Bepo"
        MatchIsKeyboard "on"
 
        MatchDevicePath "/dev/input/typematrix"
        Driver "evdev"
 
        Option "XkbRules"  "xorg"
        Option "XkbModel"  "pc105"
        Option "XkbLayout" "fr"
        Option "XkbVariant" "bepo"
EndSection

Facing warnings from udev, I changed the rule to read:

# /etc/udev/rules.d/typematrix.rules
ATTRS{name}=="TypeMatrix.com USB Keyboard", SYMLINK+="input/typematrix"

It correctly installs a symlink in /dev:

$ ls -l /dev/input
total 0
drwxr-xr-x 2 root root     80 26 mai   09:03 by-id
drwxr-xr-x 2 root root    140 26 mai   09:03 by-path
crw-r----- 1 root root 13, 64 26 mai   08:39 event0
crw-r----- 1 root root 13, 65 26 mai   09:03 event1
crw-r----- 1 root root 13, 66 26 mai   09:03 event2
crw-r----- 1 root root 13, 67 26 mai   08:39 event3
crw-r----- 1 root root 13, 68 26 mai   08:39 event4
crw-r----- 1 root root 13, 69 26 mai   08:39 event5
crw-r----- 1 root root 13, 70 26 mai   08:39 event6
crw-r----- 1 root root 13, 63 26 mai   08:39 mice
crw-r----- 1 root root 13, 32 26 mai   08:39 mouse0
lrwxrwxrwx 1 root root      6 26 mai   09:03 typematrix -> event2

But xorg does not set up the requested layout anymore.  I therefore
guess MatchDevicePath does not handle symlinks, which will become an
increasingly annoying issue as the udev switch to symlinks becomes more
widespread.

Best,
Gabriel

-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.39-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages xorg depends on:
ii  gnome-terminal [x-terminal-em 2.30.2-1   The GNOME terminal emulator applic
ii  libgl1-mesa-dri               7.10.2-2   free implementation of the OpenGL 
ii  libgl1-mesa-glx [libgl1]      7.10.2-2   free implementation of the OpenGL 
ii  libglu1-mesa                  7.10.2-2   The OpenGL utility library (GLU)
ii  x11-apps                      7.6+4      X applications
ii  x11-session-utils             7.6+1      X session utilities
ii  x11-utils                     7.5+4      X11 utilities
ii  x11-xfs-utils                 7.6+1      X font server utilities
ii  x11-xkb-utils                 7.6+2      X11 XKB utilities
ii  x11-xserver-utils             7.6+2      X server utilities
ii  xauth                         1:1.0.5-1  X authentication utility
ii  xfonts-100dpi                 1:1.0.3    100 dpi fonts for X
ii  xfonts-75dpi                  1:1.0.3    75 dpi fonts for X
ii  xfonts-base                   1:1.0.3    standard fonts for X
ii  xfonts-scalable               1:1.0.3-1  scalable fonts for X
ii  xfonts-utils                  1:7.6~1    X Window System font utility progr
ii  xinit                         1.3.0-1    X server initialisation tool
ii  xkb-data                      2.1-2      X Keyboard Extension (XKB) configu
ii  xorg-docs-core                1:1.6-1    Core documentation for the X.org X
ii  xserver-xorg                  1:7.5+7    the X.Org X server
ii  xterm [x-terminal-emulator]   269-1      X terminal emulator

xorg recommends no packages.

Versions of packages xorg suggests:
pn  xorg-docs                     <none>     (no description available)

-- no debconf information



--- End Message ---
--- Begin Message ---
On Thu, May 26, 2011 at 07:25:40PM +0200, Julien Cristau wrote:
> MatchDevicePath is almost never what you want to use.  Use MatchVendor
> or MatchProduct instead?

Section "InputClass"
    Identifier "Typematrix Bepo"
    MatchIsKeyboard "on"
    MatchVendor     "TypeMatrix.com"
    MatchProduct    "USB Keyboard"

    Option "XkbRules"  "xorg"
    Option "XkbModel"  "pc105"
    Option "XkbLayout" "fr"
    Option "XkbVariant" "bepo"
    Option "XkbOptions" "compose:lwin,grp:ctrls_toggle,lv3:ralt_switch"
EndSection

Works perfectly, no need for udev rules anymore.

Thank you very much,
-- 
Gabriel


--- End Message ---

Reply to: