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

Bug#568458: xserver-xorg-input-evdev: still no documentation



Package: xserver-xorg-input-evdev
Version: 1:2.3.2-3
Followup-For: Bug #568458


This has been an issue for some time now.

The evdev man page is quite misleading.

It mentions only mouse options, no keyboard or other device options.

It does not mention used at all but udev is the only reasonable way of
configuring these input devices with recent xorg.

It is completely possible to install a default keyboard configuration
with udev which applies to every keyboard plugged into the system but I
cannot find any place where this is documented.

I installed the following small file adapted from the file shipped with
evdev which binds the X11 evedev driver to input devices.

-- /etc/udev/rules.d/z50_xserver-xorg-keyboard-layout.rules


ACTION!="add|change", GOTO="xorg_evdev_end"


ENV{ID_INPUT_KEY}=="", GOTO="xorg_evdev_end"

ENV{x11_options.xkb_layout}="us,cz_qwerty"
ENV{x11_options.xkb_options}="ctrl:nocaps,altwin:meta_win,group:shifts_toggle,level3:menu_switch,numpad:microsoft,grp_led:scroll,grp:shifts_toggle"

LABEL="xorg_evdev_end"

-- Package-specific info:

Contents of /etc/X11/xorg.conf:

Section "Device"
    Identifier     "Device0"
    Driver         "nouveau"
EndSection


Contents of most recent Xorg X server log file
/var/log/Xorg.0.log:

X.Org X Server 1.7.5
Release Date: 2010-02-16
X Protocol Version 11, Revision 0
Build Operating System: Linux 2.6.32.8-dsa-amd64 x86_64 Debian
Current Operating System: Linux IPX7A-ION 2.6.34-rc1 #1 SMP Fri Mar 12 21:19:36 CET 2010 x86_64
Kernel command line: root=UUID=3b8f6a64-5899-462a-aec0-6ddefd878ecf ro 
Build Date: 16 February 2010  10:23:38AM
xorg-server 2:1.7.5-1 (buildd@brahms.debian.org) 
Current version of pixman: 0.16.4
	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Mon Mar 15 18:16:22 2010
(==) Using config file: "/etc/X11/xorg.conf"
(==) No Layout section.  Using the first Screen section.
(==) No screen section available. Using defaults.
(**) |-->Screen "Default Screen Section" (0)
(**) |   |-->Monitor "<default monitor>"
(==) No device specified for screen "Default Screen Section".
	Using the first device section listed.
(**) |   |-->Device "Device0"
(==) No monitor specified for screen "Default Screen Section".
	Using a default monitor configuration.
(==) Automatically adding devices
(==) Automatically enabling devices
(WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist.
	Entry deleted from font path.
(WW) The directory "/usr/share/fonts/X11/100dpi/" does not exist.
	Entry deleted from font path.
(WW) The directory "/usr/share/fonts/X11/75dpi/" does not exist.
	Entry deleted from font path.
(WW) The directory "/usr/share/fonts/X11/Type1" does not exist.
	Entry deleted from font path.
(WW) The directory "/usr/share/fonts/X11/100dpi" does not exist.
	Entry deleted from font path.
(WW) The directory "/usr/share/fonts/X11/75dpi" does not exist.
	Entry deleted from font path.
(==) FontPath set to:
	/usr/share/fonts/X11/misc,
	/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType,
	built-ins
(==) ModulePath set to "/usr/lib/xorg/modules"
(II) Cannot locate a core pointer device.
(II) Cannot locate a core keyboard device.
(II) The server relies on udev to provide the list of input devices.
	If no devices become available, reconfigure udev or disable AutoAddDevices.
(II) Loader magic: 0x7c1e20
(II) Module ABI versions:
	X.Org ANSI C Emulation: 0.4
	X.Org Video Driver: 6.0
	X.Org XInput driver : 7.0
	X.Org Server Extension : 2.0
(++) using VT number 7

...

(II) config/udev: removing device "NOVATEK Generic USB Keyboard"
(II) "NOVATEK Generic USB Keyboard": Close
(II) UnloadModule: "evdev"
(II) config/udev: Adding input device "NOVATEK Generic USB Keyboard" (/dev/input/event0)
(**) "NOVATEK Generic USB Keyboard": always reports core events
(**) "NOVATEK Generic USB Keyboard": Device: "/dev/input/event0"
(II) "NOVATEK Generic USB Keyboard": Found keys
(II) "NOVATEK Generic USB Keyboard": Configuring as keyboard
(II) XINPUT: Adding extended input device ""NOVATEK Generic USB Keyboard"" (type: KEYBOARD)
(**) Option "xkb_rules" "evdev"
(**) Option "xkb_model" "pc104"
(**) Option "xkb_layout" "us"
(II) config/udev: removing device "NOVATEK Generic USB Keyboard"
(II) "NOVATEK Generic USB Keyboard": Close
(II) UnloadModule: "evdev"
(II) config/udev: Adding input device "NOVATEK Generic USB Keyboard" (/dev/input/event0)
(**) "NOVATEK Generic USB Keyboard": always reports core events
(**) "NOVATEK Generic USB Keyboard": Device: "/dev/input/event0"
(II) "NOVATEK Generic USB Keyboard": Found keys
(II) "NOVATEK Generic USB Keyboard": Configuring as keyboard
(II) XINPUT: Adding extended input device ""NOVATEK Generic USB Keyboard"" (type: KEYBOARD)
(**) Option "xkb_rules" "evdev"
(**) Option "xkb_model" "pc104"
(**) Option "xkb_layout" "us"
(II) config/udev: removing device "NOVATEK Generic USB Keyboard"
(II) "NOVATEK Generic USB Keyboard": Close
(II) UnloadModule: "evdev"
(II) config/udev: Adding input device "NOVATEK Generic USB Keyboard" (/dev/input/event0)
(**) "NOVATEK Generic USB Keyboard": always reports core events
(**) "NOVATEK Generic USB Keyboard": Device: "/dev/input/event0"
(II) "NOVATEK Generic USB Keyboard": Found keys
(II) "NOVATEK Generic USB Keyboard": Configuring as keyboard
(II) XINPUT: Adding extended input device ""NOVATEK Generic USB Keyboard"" (type: KEYBOARD)
(**) Option "xkb_rules" "evdev"
(**) Option "xkb_model" "pc104"
(**) Option "xkb_layout" "us,cz_qwerty"
(**) Option "xkb_options" "ctrl:nocaps,altwin:meta_win,group:shifts_toggle,level3:menu_switch,numpad:microsoft,grp_led:scroll,grp:shifts_toggle"
(II) config/udev: removing device "NOVATEK Generic USB Keyboard"
(II) "NOVATEK Generic USB Keyboard": Close
(II) UnloadModule: "evdev"
(II) config/udev: Adding input device "NOVATEK Generic USB Keyboard" (/dev/input/event0)
(**) "NOVATEK Generic USB Keyboard": always reports core events
(**) "NOVATEK Generic USB Keyboard": Device: "/dev/input/event0"
(II) "NOVATEK Generic USB Keyboard": Found keys
(II) "NOVATEK Generic USB Keyboard": Configuring as keyboard
(II) XINPUT: Adding extended input device ""NOVATEK Generic USB Keyboard"" (type: KEYBOARD)
(**) Option "xkb_rules" "evdev"
(**) Option "xkb_model" "pc104"
(**) Option "xkb_layout" "us,cz_qwerty"
(**) Option "xkb_options" "ctrl:nocaps,altwin:meta_win,group:shifts_toggle,level3:menu_switch,numpad:microsoft,grp_led:scroll,grp:shifts_toggle"

udev information:
P: /devices/pci0000:00/0000:00:04.0/usb1/1-1/1-1:1.0/input/input14/event0
N: input/event0
S: char/13:64
S: input/by-id/usb-NOVATEK_Generic_USB_Keyboard-event-kbd
S: input/by-path/pci-0000:00:04.0-usb-0:1:1.0-event-kbd
E: UDEV_LOG=3
E: DEVPATH=/devices/pci0000:00/0000:00:04.0/usb1/1-1/1-1:1.0/input/input14/event0
E: MAJOR=13
E: MINOR=64
E: DEVNAME=/dev/input/event0
E: SUBSYSTEM=input
E: ID_INPUT=1
E: ID_INPUT_KEY=1
E: ID_INPUT_KEYBOARD=1
E: ID_VENDOR=NOVATEK
E: ID_VENDOR_ENC=NOVATEK
E: ID_VENDOR_ID=04a5
E: ID_MODEL=Generic_USB_Keyboard
E: ID_MODEL_ENC=Generic\x20USB\x20Keyboard
E: ID_MODEL_ID=7003
E: ID_REVISION=0100
E: ID_SERIAL=NOVATEK_Generic_USB_Keyboard
E: ID_TYPE=hid
E: ID_BUS=usb
E: ID_USB_INTERFACES=:030101:
E: ID_USB_INTERFACE_NUM=00
E: ID_USB_DRIVER=usbhid
E: ID_PATH=pci-0000:00:04.0-usb-0:1:1.0
E: XKBMODEL=pc104
E: XKBLAYOUT=us
E: DEVLINKS=/dev/char/13:64 /dev/input/by-id/usb-NOVATEK_Generic_USB_Keyboard-event-kbd /dev/input/by-path/pci-0000:00:04.0-usb-0:1:1.0-event-kbd
E: x11_driver=evdev
E: x11_options.xkb_layout=us,cz_qwerty
E: x11_options.xkb_options=ctrl:nocaps,altwin:meta_win,group:shifts_toggle,level3:menu_switch,numpad:microsoft,grp_led:scroll,grp:shifts_toggle



Reply to: