Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Keyboard map randomly changed [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
slackline
Veteran
Veteran


Joined: 01 Apr 2005
Posts: 1477
Location: /uk/sheffield

PostPosted: Wed Oct 25, 2017 7:38 am    Post subject: Keyboard map randomly changed [SOLVED] Reply with quote

Hi,

Resumed my computer this morning from hibernate and went to login to the WebUI of my router but couldn't, password consistently failed, even though I could login to it from my phone.

Quickly realised that the keyboard was not typing correctly, I would type one character and get another so rebooted but the problem persists and I can not login to the computer (although can thankfully SSH into it).

The mappings I'm seeing are strange, those I've found so far are on SLIM are...

Code:

Type -> Get
5 -> 5#
_ -> -h
= -> ='
g -> `g
h -> -h
' -> ='
# ->5#
z -> zxc
x -> zxc
c -> zxc
| ->
. ->
? ->


On the numberpad...

Code:

Type -> Get
3 -> ;3


Read that old versions of SLIM sometimes misbehaved so disabled Numkey option in /etc/slim.conf and also took the time to write a simple /etc/X11/xorg.conf.d/10-keyboard.conf....

Code:

Section "InputClass"
    Identifier "keyboard-all"
    Driver "evdev"
    # Driver "libinput"
    Option "XkbLayout" "gb"
EndSection


I had recently switched to libinput but all examples of keyboard layout I'd seen suggested evdev as the driver (it doesn't seem to be used though, see log below, and fact its not just Xorg where the problem is).

But no joy, still have strange keymaping.

Its not exclusively an Xorg/X11 problem either as if I switch to a console (thankfully Alt +F1 still works!), keymaps there are screwed too and I can't login.

Here's dmesg and /var/log/Xorg.0.log ...

Code:

[    13.228]
X.Org X Server 1.19.5
Release Date: 2017-10-12
[    13.228] X Protocol Version 11, Revision 0
[    13.228] Build Operating System: Linux 4.13.5-gentoo x86_64 Gentoo
[    13.228] Current Operating System: Linux kimura 4.13.9-gentoo #1 SMP Sun Oct 22 08:53:34 BST 2017 x86_64
[    13.228] Kernel command line: BOOT_IMAGE=/vmlinuz-4.13.9 root=UUID=0e07d3aa-9d48-46dd-87ab-b8a351d21fc8 ro dolvm domdadm rootfstype=ext4
[    13.228] Build Date: 24 October 2017  06:54:29AM
[    13.228] 
[    13.228] Current version of pixman: 0.34.0
[    13.228]    Before reporting problems, check http://wiki.x.org
   to make sure that you have the latest version.
[    13.228] Markers: (--) probed, (**) from config file, (==) default setting,
   (++) from command line, (!!) notice, (II) informational,
   (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[    13.228] (==) Log file: "/var/log/Xorg.0.log", Time: Wed Oct 25 08:25:54 2017
[    13.230] (==) Using config directory: "/etc/X11/xorg.conf.d"
[    13.230] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[    13.231] (==) No Layout section.  Using the first Screen section.
[    13.231] (==) No screen section available. Using defaults.
[    13.231] (**) |-->Screen "Default Screen Section" (0)
[    13.231] (**) |   |-->Monitor "<default monitor>"
[    13.231] (==) No monitor specified for screen "Default Screen Section".
   Using a default monitor configuration.
[    13.231] (==) Automatically adding devices
[    13.231] (==) Automatically enabling devices
[    13.231] (==) Automatically adding GPU devices
[    13.231] (==) Max clients allowed: 256, resource mask: 0x1fffff
[    13.231] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/misc/".
[    13.231]    Entry deleted from font path.
[    13.231]    (Run 'mkfontdir' on "/usr/share/fonts/misc/").
[    13.231] (WW) The directory "/usr/share/fonts/TTF/" does not exist.
[    13.231]    Entry deleted from font path.
[    13.231] (WW) The directory "/usr/share/fonts/OTF/" does not exist.
[    13.231]    Entry deleted from font path.
[    13.231] (WW) The directory "/usr/share/fonts/Type1/" does not exist.
[    13.231]    Entry deleted from font path.
[    13.232] (==) FontPath set to:
   /usr/share/fonts/100dpi/,
   /usr/share/fonts/75dpi/
[    13.232] (==) ModulePath set to "/usr/lib64/xorg/modules"
[    13.232] (II) The server relies on udev to provide the list of input devices.
   If no devices become available, reconfigure udev or disable AutoAddDevices.
[    13.232] (II) Loader magic: 0x817c60
[    13.232] (II) Module ABI versions:
[    13.232]    X.Org ANSI C Emulation: 0.4
[    13.232]    X.Org Video Driver: 23.0
[    13.232]    X.Org XInput driver : 24.1
[    13.232]    X.Org Server Extension : 10.0
[    13.232] (II) xfree86: Adding drm device (/dev/dri/card0)
[    13.238] (--) PCI:*(0:0:2:0) 8086:1912:1043:8694 rev 6, Mem @ 0xf6000000/16777216, 0xe0000000/268435456, I/O @ 0x0000f000/64, BIOS @ 0x????????/131072
[    13.238] (II) LoadModule: "glx"
[    13.241] (II) Loading /usr/lib64/xorg/modules/extensions/libglx.so
[    13.243] (II) Module glx: vendor="X.Org Foundation"
[    13.243]    compiled for 1.19.5, module version = 1.0.0
[    13.243]    ABI class: X.Org Server Extension, version 10.0
[    13.243] (==) Matched intel as autoconfigured driver 0
[    13.243] (==) Matched intel as autoconfigured driver 1
[    13.243] (==) Matched modesetting as autoconfigured driver 2
[    13.243] (==) Matched fbdev as autoconfigured driver 3
[    13.243] (==) Matched vesa as autoconfigured driver 4
[    13.243] (==) Assigned the driver to the xf86ConfigLayout
[    13.243] (II) LoadModule: "intel"
[    13.243] (II) Loading /usr/lib64/xorg/modules/drivers/intel_drv.so
[    13.244] (II) Module intel: vendor="X.Org Foundation"
[    13.244]    compiled for 1.19.5, module version = 2.99.917
[    13.244]    Module class: X.Org Video Driver
[    13.244]    ABI class: X.Org Video Driver, version 23.0
[    13.244] (II) LoadModule: "modesetting"
[    13.245] (II) Loading /usr/lib64/xorg/modules/drivers/modesetting_drv.so
[    13.245] (II) Module modesetting: vendor="X.Org Foundation"
[    13.245]    compiled for 1.19.5, module version = 1.19.5
[    13.245]    Module class: X.Org Video Driver
[    13.245]    ABI class: X.Org Video Driver, version 23.0
[    13.245] (II) LoadModule: "fbdev"
[    13.245] (II) Loading /usr/lib64/xorg/modules/drivers/fbdev_drv.so
[    13.246] (II) Module fbdev: vendor="X.Org Foundation"
[    13.246]    compiled for 1.19.5, module version = 0.4.4
[    13.246]    Module class: X.Org Video Driver
[    13.246]    ABI class: X.Org Video Driver, version 23.0
[    13.246] (II) LoadModule: "vesa"
[    13.246] (WW) Warning, couldn't open module vesa
[    13.246] (II) UnloadModule: "vesa"
[    13.246] (II) Unloading vesa
[    13.246] (EE) Failed to load module "vesa" (module does not exist, 0)
[    13.246] (II) intel: Driver for Intel(R) Integrated Graphics Chipsets:
   i810, i810-dc100, i810e, i815, i830M, 845G, 854, 852GM/855GM, 865G,
   915G, E7221 (i915), 915GM, 945G, 945GM, 945GME, Pineview GM,
   Pineview G, 965G, G35, 965Q, 946GZ, 965GM, 965GME/GLE, G33, Q35, Q33,
   GM45, 4 Series, G45/G43, Q45/Q43, G41, B43
[    13.246] (II) intel: Driver for Intel(R) HD Graphics
[    13.246] (II) intel: Driver for Intel(R) Iris(TM) Graphics
[    13.246] (II) intel: Driver for Intel(R) Iris(TM) Pro Graphics
[    13.246] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[    13.246] (II) FBDEV: driver for framebuffer: fbdev
[    13.246] (++) using VT number 7

[    13.257] (II) intel(0): Using Kernel Mode Setting driver: i915, version 1.6.0 20170619
[    13.257] (WW) Falling back to old probe method for modesetting
[    13.257] (WW) Falling back to old probe method for fbdev
[    13.257] (II) Loading sub module "fbdevhw"
[    13.257] (II) LoadModule: "fbdevhw"
[    13.257] (II) Loading /usr/lib64/xorg/modules/libfbdevhw.so
[    13.258] (II) Module fbdevhw: vendor="X.Org Foundation"
[    13.258]    compiled for 1.19.5, module version = 0.0.2
[    13.258]    ABI class: X.Org Video Driver, version 23.0
[    13.259] (--) intel(0): Integrated Graphics Chipset: Intel(R) HD Graphics 530
[    13.259] (--) intel(0): CPU: x86-64, sse2, sse3, ssse3, sse4.1, sse4.2, avx, avx2; using a maximum of 4 threads
[    13.259] (II) intel(0): Creating default Display subsection in Screen section
   "Default Screen Section" for depth/fbbpp 24/32
[    13.259] (==) intel(0): Depth 24, (--) framebuffer bpp 32
[    13.259] (==) intel(0): RGB weight 888
[    13.259] (==) intel(0): Default visual is TrueColor
[    13.259] (II) intel(0): Output HDMI1 has no monitor section
[    13.259] (II) intel(0): Enabled output HDMI1
[    13.259] (II) intel(0): Output HDMI2 has no monitor section
[    13.259] (II) intel(0): Enabled output HDMI2
[    13.259] (II) intel(0): Output DP1 has no monitor section
[    13.259] (II) intel(0): Enabled output DP1
[    13.259] (II) intel(0): Output HDMI3 has no monitor section
[    13.259] (II) intel(0): Enabled output HDMI3
[    13.259] (II) intel(0): Output DP2 has no monitor section
[    13.259] (II) intel(0): Enabled output DP2
[    13.259] (--) intel(0): Using a maximum size of 256x256 for hardware cursors
[    13.259] (II) intel(0): Output VIRTUAL1 has no monitor section
[    13.259] (II) intel(0): Enabled output VIRTUAL1
[    13.259] (--) intel(0): Output HDMI2 using initial mode 1920x1080 on pipe 0
[    13.259] (==) intel(0): TearFree enabled
[    13.259] (==) intel(0): Using gamma correction (1.0, 1.0, 1.0)
[    13.259] (==) intel(0): DPI set to (96, 96)
[    13.259] (II) Loading sub module "dri3"
[    13.259] (II) LoadModule: "dri3"
[    13.259] (II) Module "dri3" already built-in
[    13.259] (II) Loading sub module "dri2"
[    13.259] (II) LoadModule: "dri2"
[    13.259] (II) Module "dri2" already built-in
[    13.259] (II) Loading sub module "present"
[    13.259] (II) LoadModule: "present"
[    13.259] (II) Module "present" already built-in
[    13.259] (II) UnloadModule: "modesetting"
[    13.259] (II) Unloading modesetting
[    13.259] (II) UnloadModule: "fbdev"
[    13.259] (II) Unloading fbdev
[    13.259] (II) UnloadSubModule: "fbdevhw"
[    13.259] (II) Unloading fbdevhw
[    13.259] (==) Depth 24 pixmap format is 32 bpp
[    13.262] (II) intel(0): SNA initialized with Skylake (gen9) backend
[    13.262] (==) intel(0): Backing store enabled
[    13.262] (==) intel(0): Silken mouse enabled
[    13.262] (II) intel(0): HW Cursor enabled
[    13.262] (II) intel(0): RandR 1.2 enabled, ignore the following RandR disabled message.
[    13.263] (==) intel(0): DPMS enabled
[    13.263] (==) intel(0): Display hotplug detection enabled
[    13.263] (II) intel(0): [DRI2] Setup complete
[    13.263] (II) intel(0): [DRI2]   DRI driver: i965
[    13.263] (II) intel(0): [DRI2]   VDPAU driver: va_gl
[    13.263] (II) intel(0): direct rendering: DRI2 enabled
[    13.263] (II) intel(0): hardware support for Present enabled
[    13.263] (--) RandR disabled
[    13.279] (II) AIGLX: enabled GLX_MESA_copy_sub_buffer
[    13.279] (II) AIGLX: enabled GLX_ARB_create_context
[    13.279] (II) AIGLX: enabled GLX_ARB_create_context_profile
[    13.279] (II) AIGLX: enabled GLX_EXT_create_context_es{,2}_profile
[    13.279] (II) AIGLX: enabled GLX_INTEL_swap_event
[    13.279] (II) AIGLX: enabled GLX_SGI_swap_control
[    13.279] (II) AIGLX: enabled GLX_EXT_framebuffer_sRGB
[    13.279] (II) AIGLX: enabled GLX_ARB_fbconfig_float
[    13.279] (II) AIGLX: enabled GLX_EXT_fbconfig_packed_float
[    13.279] (II) AIGLX: GLX_EXT_texture_from_pixmap backed by buffer objects
[    13.279] (II) AIGLX: enabled GLX_ARB_create_context_robustness
[    13.279] (II) AIGLX: Loaded and initialized i965
[    13.279] (II) GLX: Initialized DRI2 GL provider for screen 0
[    13.281] (II) intel(0): switch to mode 1920x1080@60.0 on HDMI2 using pipe 0, position (0, 0), rotation normal, reflection none
[    13.288] (II) intel(0): Setting screen physical size to 508 x 285
[    13.328] (II) config/udev: Adding input device Power Button (/dev/input/event2)
[    13.328] (**) Power Button: Applying InputClass "evdev keyboard catchall"
[    13.328] (**) Power Button: Applying InputClass "libinput keyboard catchall"
[    13.328] (**) Power Button: Applying InputClass "keyboard-all"
[    13.328] (II) LoadModule: "evdev"
[    13.328] (II) Loading /usr/lib64/xorg/modules/input/evdev_drv.so
[    13.330] (II) Module evdev: vendor="X.Org Foundation"
[    13.330]    compiled for 1.19.5, module version = 2.10.5
[    13.330]    Module class: X.Org XInput Driver
[    13.330]    ABI class: X.Org XInput driver, version 24.1
[    13.330] (II) Using input driver 'evdev' for 'Power Button'
[    13.330] (**) Power Button: always reports core events
[    13.330] (**) evdev: Power Button: Device: "/dev/input/event2"
[    13.330] (--) evdev: Power Button: Vendor 0 Product 0x1
[    13.330] (--) evdev: Power Button: Found keys
[    13.330] (II) evdev: Power Button: Configuring as keyboard
[    13.330] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXPWRBN:00/input/input2/event2"
[    13.330] (II) XINPUT: Adding extended input device "Power Button" (type: KEYBOARD, id 6)
[    13.330] (**) Option "xkb_rules" "evdev"
[    13.330] (**) Option "xkb_layout" "gb"
[    13.339] (II) config/udev: Adding input device Video Bus (/dev/input/event7)
[    13.339] (**) Video Bus: Applying InputClass "evdev keyboard catchall"
[    13.339] (**) Video Bus: Applying InputClass "libinput keyboard catchall"
[    13.339] (**) Video Bus: Applying InputClass "keyboard-all"
[    13.339] (II) Using input driver 'evdev' for 'Video Bus'
[    13.339] (**) Video Bus: always reports core events
[    13.339] (**) evdev: Video Bus: Device: "/dev/input/event7"
[    13.339] (--) evdev: Video Bus: Vendor 0 Product 0x6
[    13.339] (--) evdev: Video Bus: Found keys
[    13.339] (II) evdev: Video Bus: Configuring as keyboard
[    13.339] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/LNXVIDEO:00/input/input10/event7"
[    13.339] (II) XINPUT: Adding extended input device "Video Bus" (type: KEYBOARD, id 7)
[    13.339] (**) Option "xkb_rules" "evdev"
[    13.339] (**) Option "xkb_layout" "gb"
[    13.339] (II) config/udev: Adding input device Power Button (/dev/input/event1)
[    13.339] (**) Power Button: Applying InputClass "evdev keyboard catchall"
[    13.339] (**) Power Button: Applying InputClass "libinput keyboard catchall"
[    13.339] (**) Power Button: Applying InputClass "keyboard-all"
[    13.339] (II) Using input driver 'evdev' for 'Power Button'
[    13.339] (**) Power Button: always reports core events
[    13.339] (**) evdev: Power Button: Device: "/dev/input/event1"
[    13.339] (--) evdev: Power Button: Vendor 0 Product 0x1
[    13.339] (--) evdev: Power Button: Found keys
[    13.339] (II) evdev: Power Button: Configuring as keyboard
[    13.339] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0C:00/input/input1/event1"
[    13.339] (II) XINPUT: Adding extended input device "Power Button" (type: KEYBOARD, id 8)
[    13.339] (**) Option "xkb_rules" "evdev"
[    13.339] (**) Option "xkb_layout" "gb"
[    13.339] (II) config/udev: Adding input device Sleep Button (/dev/input/event0)
[    13.339] (**) Sleep Button: Applying InputClass "evdev keyboard catchall"
[    13.339] (**) Sleep Button: Applying InputClass "libinput keyboard catchall"
[    13.339] (**) Sleep Button: Applying InputClass "keyboard-all"
[    13.339] (II) Using input driver 'evdev' for 'Sleep Button'
[    13.339] (**) Sleep Button: always reports core events
[    13.339] (**) evdev: Sleep Button: Device: "/dev/input/event0"
[    13.339] (--) evdev: Sleep Button: Vendor 0 Product 0x3
[    13.339] (--) evdev: Sleep Button: Found keys
[    13.339] (II) evdev: Sleep Button: Configuring as keyboard
[    13.339] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0E:00/input/input0/event0"
[    13.339] (II) XINPUT: Adding extended input device "Sleep Button" (type: KEYBOARD, id 9)
[    13.339] (**) Option "xkb_rules" "evdev"
[    13.339] (**) Option "xkb_layout" "gb"
[    13.340] (II) config/udev: Adding input device Microsoft Natural® Ergonomic Keyboard 4000 (/dev/input/event3)
[    13.340] (**) Microsoft Natural® Ergonomic Keyboard 4000: Applying InputClass "evdev keyboard catchall"
[    13.340] (**) Microsoft Natural® Ergonomic Keyboard 4000: Applying InputClass "libinput keyboard catchall"
[    13.340] (**) Microsoft Natural® Ergonomic Keyboard 4000: Applying InputClass "keyboard-all"
[    13.340] (II) Using input driver 'evdev' for 'Microsoft Natural® Ergonomic Keyboard 4000'
[    13.340] (**) Microsoft Natural® Ergonomic Keyboard 4000: always reports core events
[    13.340] (**) evdev: Microsoft Natural® Ergonomic Keyboard 4000: Device: "/dev/input/event3"
[    13.340] (--) evdev: Microsoft Natural® Ergonomic Keyboard 4000: Vendor 0x45e Product 0xdb
[    13.340] (--) evdev: Microsoft Natural® Ergonomic Keyboard 4000: Found keys
[    13.340] (II) evdev: Microsoft Natural® Ergonomic Keyboard 4000: Configuring as keyboard
[    13.340] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.0/0003:045E:00DB.0001/input/input6/event3"
[    13.340] (II) XINPUT: Adding extended input device "Microsoft Natural® Ergonomic Keyboard 4000" (type: KEYBOARD, id 10)
[    13.340] (**) Option "xkb_rules" "evdev"
[    13.340] (**) Option "xkb_layout" "gb"
[    13.340] (II) config/udev: Adding input device Microsoft Natural® Ergonomic Keyboard 4000 (/dev/input/event4)
[    13.340] (**) Microsoft Natural® Ergonomic Keyboard 4000: Applying InputClass "evdev keyboard catchall"
[    13.340] (**) Microsoft Natural® Ergonomic Keyboard 4000: Applying InputClass "libinput keyboard catchall"
[    13.340] (**) Microsoft Natural® Ergonomic Keyboard 4000: Applying InputClass "keyboard-all"
[    13.340] (II) Using input driver 'evdev' for 'Microsoft Natural® Ergonomic Keyboard 4000'
[    13.340] (**) Microsoft Natural® Ergonomic Keyboard 4000: always reports core events
[    13.340] (**) evdev: Microsoft Natural® Ergonomic Keyboard 4000: Device: "/dev/input/event4"
[    13.340] (--) evdev: Microsoft Natural® Ergonomic Keyboard 4000: Vendor 0x45e Product 0xdb
[    13.340] (--) evdev: Microsoft Natural® Ergonomic Keyboard 4000: Found 1 mouse buttons
[    13.340] (--) evdev: Microsoft Natural® Ergonomic Keyboard 4000: Found scroll wheel(s)
[    13.340] (--) evdev: Microsoft Natural® Ergonomic Keyboard 4000: Found relative axes
[    13.340] (II) evdev: Microsoft Natural® Ergonomic Keyboard 4000: Forcing relative x/y axes to exist.
[    13.340] (--) evdev: Microsoft Natural® Ergonomic Keyboard 4000: Found absolute axes
[    13.340] (II) evdev: Microsoft Natural® Ergonomic Keyboard 4000: Forcing absolute x/y axes to exist.
[    13.340] (--) evdev: Microsoft Natural® Ergonomic Keyboard 4000: Found keys
[    13.340] (II) evdev: Microsoft Natural® Ergonomic Keyboard 4000: Configuring as mouse
[    13.340] (II) evdev: Microsoft Natural® Ergonomic Keyboard 4000: Configuring as keyboard
[    13.340] (II) evdev: Microsoft Natural® Ergonomic Keyboard 4000: Adding scrollwheel support
[    13.340] (**) evdev: Microsoft Natural® Ergonomic Keyboard 4000: YAxisMapping: buttons 4 and 5
[    13.340] (**) evdev: Microsoft Natural® Ergonomic Keyboard 4000: EmulateWheelButton: 4, EmulateWheelInertia: 10, EmulateWheelTimeout: 200
[    13.340] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.1/0003:045E:00DB.0002/input/input7/event4"
[    13.340] (II) XINPUT: Adding extended input device "Microsoft Natural® Ergonomic Keyboard 4000" (type: KEYBOARD, id 11)
[    13.340] (**) Option "xkb_rules" "evdev"
[    13.340] (**) Option "xkb_layout" "gb"
[    13.340] (II) evdev: Microsoft Natural® Ergonomic Keyboard 4000: initialized for relative axes.
[    13.340] (WW) evdev: Microsoft Natural® Ergonomic Keyboard 4000: ignoring absolute axes.
[    13.340] (**) Microsoft Natural® Ergonomic Keyboard 4000: (accel) keeping acceleration scheme 1
[    13.340] (**) Microsoft Natural® Ergonomic Keyboard 4000: (accel) acceleration profile 0
[    13.340] (**) Microsoft Natural® Ergonomic Keyboard 4000: (accel) acceleration factor: 2.000
[    13.340] (**) Microsoft Natural® Ergonomic Keyboard 4000: (accel) acceleration threshold: 4
[    13.341] (II) config/udev: Adding input device MOSART Semi. 2.4G Keyboard Mouse (/dev/input/event5)
[    13.341] (**) MOSART Semi. 2.4G Keyboard Mouse: Applying InputClass "evdev keyboard catchall"
[    13.341] (**) MOSART Semi. 2.4G Keyboard Mouse: Applying InputClass "libinput keyboard catchall"
[    13.341] (**) MOSART Semi. 2.4G Keyboard Mouse: Applying InputClass "keyboard-all"
[    13.341] (II) Using input driver 'evdev' for 'MOSART Semi. 2.4G Keyboard Mouse'
[    13.341] (**) MOSART Semi. 2.4G Keyboard Mouse: always reports core events
[    13.341] (**) evdev: MOSART Semi. 2.4G Keyboard Mouse: Device: "/dev/input/event5"
[    13.341] (--) evdev: MOSART Semi. 2.4G Keyboard Mouse: Vendor 0x62a Product 0x5918
[    13.341] (--) evdev: MOSART Semi. 2.4G Keyboard Mouse: Found keys
[    13.341] (II) evdev: MOSART Semi. 2.4G Keyboard Mouse: Configuring as keyboard
[    13.341] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:14.0/usb1/1-6/1-6:1.0/0003:062A:5918.0003/input/input8/event5"
[    13.341] (II) XINPUT: Adding extended input device "MOSART Semi. 2.4G Keyboard Mouse" (type: KEYBOARD, id 12)
[    13.341] (**) Option "xkb_rules" "evdev"
[    13.341] (**) Option "xkb_layout" "gb"
[    13.341] (II) config/udev: Adding input device MOSART Semi. 2.4G Keyboard Mouse (/dev/input/event6)
[    13.341] (**) MOSART Semi. 2.4G Keyboard Mouse: Applying InputClass "evdev pointer catchall"
[    13.341] (**) MOSART Semi. 2.4G Keyboard Mouse: Applying InputClass "evdev keyboard catchall"
[    13.341] (**) MOSART Semi. 2.4G Keyboard Mouse: Applying InputClass "libinput pointer catchall"
[    13.341] (**) MOSART Semi. 2.4G Keyboard Mouse: Applying InputClass "libinput keyboard catchall"
[    13.341] (**) MOSART Semi. 2.4G Keyboard Mouse: Applying InputClass "keyboard-all"
[    13.341] (II) Using input driver 'evdev' for 'MOSART Semi. 2.4G Keyboard Mouse'
[    13.341] (**) MOSART Semi. 2.4G Keyboard Mouse: always reports core events
[    13.341] (**) evdev: MOSART Semi. 2.4G Keyboard Mouse: Device: "/dev/input/event6"
[    13.341] (--) evdev: MOSART Semi. 2.4G Keyboard Mouse: Vendor 0x62a Product 0x5918
[    13.341] (--) evdev: MOSART Semi. 2.4G Keyboard Mouse: Found 9 mouse buttons
[    13.341] (--) evdev: MOSART Semi. 2.4G Keyboard Mouse: Found scroll wheel(s)
[    13.341] (--) evdev: MOSART Semi. 2.4G Keyboard Mouse: Found relative axes
[    13.341] (--) evdev: MOSART Semi. 2.4G Keyboard Mouse: Found x and y relative axes
[    13.341] (--) evdev: MOSART Semi. 2.4G Keyboard Mouse: Found absolute axes
[    13.341] (II) evdev: MOSART Semi. 2.4G Keyboard Mouse: Forcing absolute x/y axes to exist.
[    13.341] (--) evdev: MOSART Semi. 2.4G Keyboard Mouse: Found keys
[    13.341] (II) evdev: MOSART Semi. 2.4G Keyboard Mouse: Configuring as mouse
[    13.341] (II) evdev: MOSART Semi. 2.4G Keyboard Mouse: Configuring as keyboard
[    13.341] (II) evdev: MOSART Semi. 2.4G Keyboard Mouse: Adding scrollwheel support
[    13.341] (**) evdev: MOSART Semi. 2.4G Keyboard Mouse: YAxisMapping: buttons 4 and 5
[    13.341] (**) evdev: MOSART Semi. 2.4G Keyboard Mouse: EmulateWheelButton: 4, EmulateWheelInertia: 10, EmulateWheelTimeout: 200
[    13.341] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:14.0/usb1/1-6/1-6:1.1/0003:062A:5918.0004/input/input9/event6"
[    13.341] (II) XINPUT: Adding extended input device "MOSART Semi. 2.4G Keyboard Mouse" (type: KEYBOARD, id 13)
[    13.341] (**) Option "xkb_rules" "evdev"
[    13.341] (**) Option "xkb_layout" "gb"
[    13.341] (II) evdev: MOSART Semi. 2.4G Keyboard Mouse: initialized for relative axes.
[    13.341] (WW) evdev: MOSART Semi. 2.4G Keyboard Mouse: ignoring absolute axes.
[    13.341] (**) MOSART Semi. 2.4G Keyboard Mouse: (accel) keeping acceleration scheme 1
[    13.341] (**) MOSART Semi. 2.4G Keyboard Mouse: (accel) acceleration profile 0
[    13.341] (**) MOSART Semi. 2.4G Keyboard Mouse: (accel) acceleration factor: 2.000
[    13.341] (**) MOSART Semi. 2.4G Keyboard Mouse: (accel) acceleration threshold: 4
[    13.342] (II) config/udev: Adding input device MOSART Semi. 2.4G Keyboard Mouse (/dev/input/mouse0)
[    13.342] (**) MOSART Semi. 2.4G Keyboard Mouse: Applying InputClass "keyboard-all"
[    13.342] (II) Using input driver 'evdev' for 'MOSART Semi. 2.4G Keyboard Mouse'
[    13.342] (**) MOSART Semi. 2.4G Keyboard Mouse: always reports core events
[    13.342] (**) evdev: MOSART Semi. 2.4G Keyboard Mouse: Device: "/dev/input/mouse0"
[    13.342] (EE) evdev: MOSART Semi. 2.4G Keyboard Mouse: Unable to query fd: Inappropriate ioctl for device
[    13.358] (EE) PreInit returned 2 for "MOSART Semi. 2.4G Keyboard Mouse"
[    13.358] (II) UnloadModule: "evdev"
[    13.358] (II) config/udev: Adding input device HDA Intel PCH Front Mic (/dev/input/event8)
[    13.358] (**) HDA Intel PCH Front Mic: Applying InputClass "keyboard-all"
[    13.358] (II) Using input driver 'evdev' for 'HDA Intel PCH Front Mic'
[    13.358] (**) HDA Intel PCH Front Mic: always reports core events
[    13.358] (**) evdev: HDA Intel PCH Front Mic: Device: "/dev/input/event8"
[    13.358] (--) evdev: HDA Intel PCH Front Mic: Vendor 0 Product 0
[    13.358] (WW) evdev: HDA Intel PCH Front Mic: Don't know how to use device
[    13.374] (EE) PreInit returned 8 for "HDA Intel PCH Front Mic"
[    13.374] (II) UnloadModule: "evdev"
[    13.374] (II) config/udev: Adding input device HDA Intel PCH Rear Mic (/dev/input/event9)
[    13.374] (**) HDA Intel PCH Rear Mic: Applying InputClass "keyboard-all"
[    13.374] (II) Using input driver 'evdev' for 'HDA Intel PCH Rear Mic'
[    13.374] (**) HDA Intel PCH Rear Mic: always reports core events
[    13.374] (**) evdev: HDA Intel PCH Rear Mic: Device: "/dev/input/event9"
[    13.374] (--) evdev: HDA Intel PCH Rear Mic: Vendor 0 Product 0
[    13.374] (WW) evdev: HDA Intel PCH Rear Mic: Don't know how to use device
[    13.390] (EE) PreInit returned 8 for "HDA Intel PCH Rear Mic"
[    13.390] (II) UnloadModule: "evdev"
[    13.390] (II) config/udev: Adding input device HDA Intel PCH Line (/dev/input/event10)
[    13.390] (**) HDA Intel PCH Line: Applying InputClass "keyboard-all"
[    13.390] (II) Using input driver 'evdev' for 'HDA Intel PCH Line'
[    13.390] (**) HDA Intel PCH Line: always reports core events
[    13.390] (**) evdev: HDA Intel PCH Line: Device: "/dev/input/event10"
[    13.390] (--) evdev: HDA Intel PCH Line: Vendor 0 Product 0
[    13.390] (WW) evdev: HDA Intel PCH Line: Don't know how to use device
[    13.406] (EE) PreInit returned 8 for "HDA Intel PCH Line"
[    13.406] (II) UnloadModule: "evdev"
[    13.406] (II) config/udev: Adding input device HDA Intel PCH Line Out Front (/dev/input/event11)
[    13.406] (**) HDA Intel PCH Line Out Front: Applying InputClass "keyboard-all"
[    13.406] (II) Using input driver 'evdev' for 'HDA Intel PCH Line Out Front'
[    13.406] (**) HDA Intel PCH Line Out Front: always reports core events
[    13.406] (**) evdev: HDA Intel PCH Line Out Front: Device: "/dev/input/event11"
[    13.406] (--) evdev: HDA Intel PCH Line Out Front: Vendor 0 Product 0
[    13.406] (WW) evdev: HDA Intel PCH Line Out Front: Don't know how to use device
[    13.422] (EE) PreInit returned 8 for "HDA Intel PCH Line Out Front"
[    13.422] (II) UnloadModule: "evdev"
[    13.422] (II) config/udev: Adding input device HDA Intel PCH Line Out Surround (/dev/input/event12)
[    13.422] (**) HDA Intel PCH Line Out Surround: Applying InputClass "keyboard-all"
[    13.422] (II) Using input driver 'evdev' for 'HDA Intel PCH Line Out Surround'
[    13.422] (**) HDA Intel PCH Line Out Surround: always reports core events
[    13.422] (**) evdev: HDA Intel PCH Line Out Surround: Device: "/dev/input/event12"
[    13.422] (--) evdev: HDA Intel PCH Line Out Surround: Vendor 0 Product 0
[    13.422] (WW) evdev: HDA Intel PCH Line Out Surround: Don't know how to use device
[    13.447] (EE) PreInit returned 8 for "HDA Intel PCH Line Out Surround"
[    13.447] (II) UnloadModule: "evdev"
[    13.447] (II) config/udev: Adding input device HDA Intel PCH Line Out CLFE (/dev/input/event13)
[    13.447] (**) HDA Intel PCH Line Out CLFE: Applying InputClass "keyboard-all"
[    13.447] (II) Using input driver 'evdev' for 'HDA Intel PCH Line Out CLFE'
[    13.447] (**) HDA Intel PCH Line Out CLFE: always reports core events
[    13.447] (**) evdev: HDA Intel PCH Line Out CLFE: Device: "/dev/input/event13"
[    13.447] (--) evdev: HDA Intel PCH Line Out CLFE: Vendor 0 Product 0
[    13.447] (WW) evdev: HDA Intel PCH Line Out CLFE: Don't know how to use device
[    13.462] (EE) PreInit returned 8 for "HDA Intel PCH Line Out CLFE"
[    13.462] (II) UnloadModule: "evdev"
[    13.462] (II) config/udev: Adding input device HDA Intel PCH Front Headphone (/dev/input/event14)
[    13.462] (**) HDA Intel PCH Front Headphone: Applying InputClass "keyboard-all"
[    13.462] (II) Using input driver 'evdev' for 'HDA Intel PCH Front Headphone'
[    13.462] (**) HDA Intel PCH Front Headphone: always reports core events
[    13.462] (**) evdev: HDA Intel PCH Front Headphone: Device: "/dev/input/event14"
[    13.462] (--) evdev: HDA Intel PCH Front Headphone: Vendor 0 Product 0
[    13.462] (WW) evdev: HDA Intel PCH Front Headphone: Don't know how to use device
[    13.478] (EE) PreInit returned 8 for "HDA Intel PCH Front Headphone"
[    13.478] (II) UnloadModule: "evdev"


Recent package upgrades do include libinput xf86-input-libinput and xorg-server but this problem arose in a running session which I find strange...

Code:

$ genlop -l --date last week
 * packages merged:

     Wed Oct 18 06:49:56 2017 >>> dev-python/lxml-4.1.0
     Wed Oct 18 06:50:14 2017 >>> sys-libs/e2fsprogs-libs-1.43.7
     Wed Oct 18 06:50:48 2017 >>> sys-fs/e2fsprogs-1.43.7
     Wed Oct 18 06:51:11 2017 >>> media-libs/harfbuzz-1.6.0
     Wed Oct 18 06:51:30 2017 >>> net-wireless/wpa_supplicant-2.6-r3
     Wed Oct 18 06:51:38 2017 >>> www-plugins/adobe-flash-27.0.0.170
     Wed Oct 18 06:54:06 2017 >>> media-video/ffmpeg-3.4
     Wed Oct 18 06:54:20 2017 >>> app-crypt/pinentry-1.0.0-r2
     Wed Oct 18 06:54:27 2017 >>> www-plugins/chrome-binary-plugins-62.0.3202.62
     Wed Oct 18 06:54:58 2017 >>> media-gfx/exiv2-0.26_p20171018
     Wed Oct 18 07:36:35 2017 >>> media-sound/snapcast-9999
     Thu Oct 19 06:47:46 2017 >>> dev-perl/Class-Data-Inheritable-0.80.0-r2
     Thu Oct 19 06:47:54 2017 >>> media-libs/exiftool-10.64
     Thu Oct 19 06:48:00 2017 >>> dev-perl/Class-Factory-Util-1.700.0-r2
     Thu Oct 19 06:48:09 2017 >>> dev-perl/DateTime-1.440.0
     Thu Oct 19 06:48:16 2017 >>> dev-python/munkres-1.0.12
     Thu Oct 19 06:50:10 2017 >>> sys-devel/binutils-2.29.1-r1
     Thu Oct 19 06:50:57 2017 >>> sys-kernel/gentoo-sources-4.13.8
     Thu Oct 19 06:51:03 2017 >>> app-text/asciidoc-8.6.9-r6
     Thu Oct 19 06:51:22 2017 >>> dev-libs/libinput-1.8.3
     Thu Oct 19 06:51:43 2017 >>> media-sound/lame-3.100
     Thu Oct 19 06:51:51 2017 >>> x11-apps/xinit-1.3.4-r2
     Thu Oct 19 06:52:07 2017 >>> net-firewall/iptables-1.6.1-r2
     Thu Oct 19 06:52:21 2017 >>> xfce-extra/xfce4-notifyd-0.4.0
     Thu Oct 19 06:52:34 2017 >>> sys-apps/openrc-0.33.1
     Thu Oct 19 08:44:46 2017 >>> x11-drivers/xf86-input-libinput-0.26.0
     Thu Oct 19 09:07:52 2017 >>> x11-drivers/xf86-video-fbdev-0.4.4
     Thu Oct 19 10:10:11 2017 >>> x11-drivers/xf86-video-intel-2.99.917_p20170313
     Thu Oct 19 10:10:19 2017 >>> www-client/chromium-62.0.3202.62
     Fri Oct 20 06:49:59 2017 >>> dev-perl/Devel-StackTrace-2.20.0
     Fri Oct 20 06:50:10 2017 >>> dev-perl/Devel-Size-0.810.0
     Fri Oct 20 06:50:19 2017 >>> dev-perl/DateTime-TimeZone-2.130.0
     Fri Oct 20 06:50:25 2017 >>> dev-perl/DateTime-Format-Strptime-1.740.0
     Fri Oct 20 06:50:32 2017 >>> dev-python/pyasn1-0.3.7
     Fri Oct 20 06:50:39 2017 >>> dev-python/python-musicbrainz-ngs-0.6
     Fri Oct 20 06:50:46 2017 >>> dev-python/isodate-0.6.0
     Fri Oct 20 06:51:00 2017 >>> sys-apps/portage-2.3.12
     Fri Oct 20 06:51:50 2017 >>> dev-libs/libxml2-2.9.6
     Fri Oct 20 06:52:01 2017 >>> dev-python/cffi-1.11.2
     Fri Oct 20 06:52:10 2017 >>> x11-apps/xinit-1.3.4-r3
     Fri Oct 20 06:52:28 2017 >>> x11-libs/libXfont-1.5.3
     Fri Oct 20 06:53:06 2017 >>> dev-python/cryptography-2.0.3
     Fri Oct 20 06:57:23 2017 >>> media-libs/mesa-17.2.3
     Fri Oct 20 06:58:04 2017 >>> sys-libs/binutils-libs-2.29.1-r1
     Fri Oct 20 06:59:59 2017 >>> net-mail/mailutils-3.3
     Fri Oct 20 07:00:12 2017 >>> www-client/opera-48.0.2685.50
     Fri Oct 20 15:45:21 2017 >>> app-portage/eix-0.33.0-r1
     Sat Oct 21 07:50:50 2017 >>> dev-perl/Encode-HanExtra-0.230.0-r2
     Sat Oct 21 07:50:55 2017 >>> dev-perl/Exception-Class-1.430.0
     Sat Oct 21 07:51:00 2017 >>> dev-perl/File-ShareDir-1.104.0
     Sat Oct 21 07:51:05 2017 >>> dev-perl/Error-0.170.250
     Sat Oct 21 07:51:27 2017 >>> sys-apps/gawk-4.2.0
     Sat Oct 21 07:52:07 2017 >>> sys-block/thin-provisioning-tools-0.7.4
     Sat Oct 21 07:52:25 2017 >>> x11-libs/libdrm-2.4.85
     Sat Oct 21 07:54:04 2017 >>> x11-base/xorg-server-1.19.5-r1
     Sat Oct 21 07:54:44 2017 >>> x11-drivers/xf86-video-intel-2.99.917_p20171018
     Sat Oct 21 07:55:55 2017 >>> net-misc/networkmanager-1.8.4
     Sat Oct 21 07:56:18 2017 >>> gnome-extra/nm-applet-1.8.2
     Sat Oct 21 07:56:31 2017 >>> net-misc/networkmanager-openvpn-1.8.0
     Sat Oct 21 09:03:51 2017 >>> net-misc/youtube-dl-2017.10.15.1
     Sat Oct 21 09:14:07 2017 >>> net-misc/youtube-dl-2017.10.20
     Sun Oct 22 06:48:33 2017 >>> sys-kernel/gentoo-sources-4.13.9
     Sun Oct 22 06:52:32 2017 >>> media-libs/mesa-17.2.3
     Sun Oct 22 06:53:30 2017 >>> net-libs/gnutls-3.5.16
     Sun Oct 22 06:55:09 2017 >>> x11-base/xorg-server-1.19.5-r1
     Sun Oct 22 08:55:45 2017 >>> x11-drivers/xf86-input-libinput-0.26.0
     Sun Oct 22 08:55:54 2017 >>> x11-drivers/xf86-video-fbdev-0.4.4
     Sun Oct 22 08:56:34 2017 >>> x11-drivers/xf86-video-intel-2.99.917_p20171018
     Sun Oct 22 15:45:41 2017 >>> net-misc/networkmanager-1.4.4-r1
     Sun Oct 22 15:46:10 2017 >>> gnome-extra/nm-applet-1.4.6-r1
     Sun Oct 22 15:46:23 2017 >>> net-misc/networkmanager-openvpn-1.2.10
     Mon Oct 23 06:51:16 2017 >>> sys-libs/glibc-2.25-r8
     Mon Oct 23 06:51:49 2017 >>> dev-python/cryptography-2.1.1
     Mon Oct 23 06:52:17 2017 >>> www-servers/lighttpd-1.4.47
     Tue Oct 24 06:48:04 2017 >>> app-shells/bash-completion-2.7-r1
     Tue Oct 24 06:54:11 2017 >>> net-libs/nodejs-8.7.0
     Tue Oct 24 06:54:20 2017 >>> dev-perl/glib-perl-1.326.0
     Tue Oct 24 06:55:55 2017 >>> x11-base/xorg-server-1.19.5
     Tue Oct 24 06:56:39 2017 >>> sys-apps/util-linux-2.31
     Tue Oct 24 06:56:48 2017 >>> dev-libs/libinput-1.9.0
     Tue Oct 24 06:57:14 2017 >>> dev-libs/apr-1.6.3
     Tue Oct 24 06:57:25 2017 >>> dev-libs/apr-util-1.6.1
     Tue Oct 24 06:57:37 2017 >>> app-admin/apache-tools-2.4.29
     Tue Oct 24 06:58:22 2017 >>> www-servers/apache-2.4.29
     Tue Oct 24 06:58:57 2017 >>> dev-vcs/git-2.14.3
     Tue Oct 24 06:59:01 2017 >>> virtual/httpd-cgi-0-r2
     Wed Oct 25 07:52:54 2017 >>> x11-apps/setxkbmap-1.3.1
     Wed Oct 25 07:58:52 2017 >>> x11-drivers/xf86-input-evdev-2.10.5


It did occur to me that there may be someone in my system messing around so I checked the last logins (last) and I don't see any IP address' I don't recognise and I ran chkrootkit which didn't report any intrusions.

Utterly stumped by this, any pointers welcome.

EDIT : I realised I've a spare keyboard lying around so plugged it in and that works fine, detected by kernel and dmesg shows...

Code:

[ 1034.002138] usb 1-10: new low-speed USB device number 5 using xhci_hcd
[ 1034.178870] usb 1-10: New USB device found, idVendor=04f2, idProduct=0116
[ 1034.178870] usb 1-10: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 1034.178871] usb 1-10: Product: USB Keyboard
[ 1034.178872] usb 1-10: Manufacturer: CHICONY
[ 1034.184182] input: CHICONY USB Keyboard as /devices/pci0000:00/0000:00:14.0/usb1/1-10/1-10:1.0/0003:04F2:0116.0005/input/input18
[ 1034.236411] hid-generic 0003:04F2:0116.0005: input,hidraw4: USB HID v1.10 Keyboard [CHICONY USB Keyboard] on usb-0000:00:14.0-10/input0


To check I've just plugged the Ergonomic keyboard into the laptop from which I'm posting and get the same strange keymaps as above.

Could it be my Microsoft Ergonomic keyboard is dying? I'm not adverse to getting a new one, but how to check it is genuinely faulty hardware and avoid buying a new keyboard unnecessarily? Could it be that libinput or something else is incorrectly detecting and mapping the keyboard? I've tried under older kernels (4.12.14) as well as my current 4.13.9 and have the same problem.



Thanks in advance,

slackline
_________________
"Science is what we understand well enough to explain to a computer.  Art is everything else we do." - Donald Knuth


Last edited by slackline on Fri Nov 03, 2017 6:29 am; edited 1 time in total
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 7470

PostPosted: Wed Oct 25, 2017 10:08 am    Post subject: Reply with quote

remember evdev handle device on events only, and events are:
- device is present when boot (not booting the computer, booting X11)
- device is plug
- device is unplug

But once evdev has done its work, it will never do it again, waiting for an event to appears (in this case, the only events left could be "device is unplug" because X11 is already start and device is already plug).
It mean if someone alter your keyboard after you have start X11 and you don't unplug/replug the keyboard, evdev will never reconfigure the keyboard, leaving it in the state it is.
And you have indeed a "someone" that do that in many UI, i'm using mate, so i could only point that "someone" for mate: mate-keyboard-properties or mate-keybinding-properties, i think one is use to assign multimedia keys (the ones use to raise/lower volume...) and the other to alter the mapping (base on language, such as using azerty or qwerty...).
Also, using these kind of programs generally are aiming for a specific keyboard, and plugin a keyboard that is not the same as the one specified in them lead to the program not doing anything on the keyboard, leaving evdev handling it alone.
So if you have an "ms something" keyboard with its keys redefine, plugin a keyboard that is not "ms something" specific will lead to multimedia keys not assign, keyboard mapping left as define by evdev...

You should check if "someone" is bugging your keyboard, as i said, who is "someone" depends on the UI.

hint1: i'm using azerty keyboard mapping, and indeed i had myself too the problem about mapping keyboard and password, an easy way to get out of the blur is just typing your password in the user section (make sure none is looking) and you'll easy see if you have trouble at typing your password or if your mapping mismatch.
hint2: your keyboard class file match any devices and as such evdev try apply it to any device, such as your audio, you should specify that rule is only for keyboard device, which is just as easy as adding MatchIsKeyboard "on" inside your 10-keyboard.conf file. It won't change a lot, except you will remove error messages that the device cannot be handle as a keyboard because it is not a keyboard
Back to top
View user's profile Send private message
mike155
Advocate
Advocate


Joined: 17 Sep 2010
Posts: 4438
Location: Frankfurt, Germany

PostPosted: Wed Oct 25, 2017 10:11 am    Post subject: Reply with quote

Hi slackline,

you could use xev. If I press key "x" on my keyboard, it shows that key 53 was pressed and that it was translated to an "x".
Quote:
KeyPress event, serial 36, synthetic NO, window 0x1a00001,
root 0xf4, subw 0x0, time 1374444, (1292,603), root:(1357,698),
state 0x2000, keycode 53 (keysym 0x78, x), same_screen YES,
XLookupString gives 1 bytes: (78 ) "x"
XmbLookupString gives 1 bytes: (78 ) "x"
XFilterEvent returns: False

If the reason for getting "zxc" when pressing "x" is a dying keyboard, I'd expect that xev shows 3 separate events if you press key "x".

Mike
Back to top
View user's profile Send private message
slackline
Veteran
Veteran


Joined: 01 Apr 2005
Posts: 1477
Location: /uk/sheffield

PostPosted: Wed Oct 25, 2017 10:31 am    Post subject: Reply with quote

Thank you both for your responses.

@krinn : Its an issue outside of X11/xorg so I'm not too concerned about evdev, was just giving it a whirl. I use Xfce but have the same problems at a plain console so I think the issue is more likely hardware.

The strange thing is this happened right in the middle of a session after having resumed from hibernate, last night keys mapped fine and worked. This morning nothing doing, I used your hint1 to find out that this was a problem in the first place and was how I could list the erroneous key mapping in my above post. As its the same at a console and a spare USB keyboard works ok (I'm using it now) I'm inclined to think it is a keyboard hardware problem rather than evdev/Xorg configuration.

@mike155 : Had forgotten about xev, have used it in the past to map media keys on the Ergonomic Keyboard.

Firing it up and then hitting 'z' on the problematic keyboard gives...

Code:

$ xev
Outer window is 0x4a00001, inner window is 0x4a00002

PropertyNotify event, serial 8, synthetic NO, window 0x4a00001,
    atom 0x27 (WM_NAME), time 10980861, state PropertyNewValue

PropertyNotify event, serial 9, synthetic NO, window 0x4a00001,
    atom 0x22 (WM_COMMAND), time 10980861, state PropertyNewValue

PropertyNotify event, serial 10, synthetic NO, window 0x4a00001,
    atom 0x28 (WM_NORMAL_HINTS), time 10980861, state PropertyNewValue

CreateNotify event, serial 11, synthetic NO, window 0x4a00001,
    parent 0x4a00001, window 0x4a00002, (10,10), width 50, height 50
border_width 4, override NO

PropertyNotify event, serial 14, synthetic NO, window 0x4a00001,
    atom 0x12d (WM_PROTOCOLS), time 10980862, state PropertyNewValue

MapNotify event, serial 15, synthetic NO, window 0x4a00001,
    event 0x4a00001, window 0x4a00002, override NO

PropertyNotify event, serial 20, synthetic NO, window 0x4a00001,
    atom 0x13b (_NET_WM_STATE), time 10980862, state PropertyNewValue

PropertyNotify event, serial 20, synthetic NO, window 0x4a00001,
    atom 0x135 (_NET_WM_DESKTOP), time 10980862, state PropertyNewValue

ConfigureNotify event, serial 20, synthetic NO, window 0x4a00001,
    event 0x4a00001, window 0x4a00001, (0,0), width 178, height 178,
    border_width 0, above 0x3400036, override NO

ReparentNotify event, serial 20, synthetic NO, window 0x4a00001,
    event 0x4a00001, window 0x4a00001, parent 0x106c64e,
    (5,19), override NO

ConfigureNotify event, serial 20, synthetic NO, window 0x4a00001,
    event 0x4a00001, window 0x4a00001, (5,19), width 178, height 178,
    border_width 0, above 0x106c65d, override NO

ConfigureNotify event, serial 20, synthetic YES, window 0x4a00001,
    event 0x4a00001, window 0x4a00001, (871,473), width 178, height 178,
    border_width 0, above 0x0, override NO

MapNotify event, serial 20, synthetic NO, window 0x4a00001,
    event 0x4a00001, window 0x4a00001, override NO

VisibilityNotify event, serial 20, synthetic NO, window 0x4a00001,
    state VisibilityUnobscured

Expose event, serial 20, synthetic NO, window 0x4a00001,
    (0,0), width 178, height 10, count 3

Expose event, serial 20, synthetic NO, window 0x4a00001,
    (0,10), width 10, height 58, count 2

Expose event, serial 20, synthetic NO, window 0x4a00001,
    (68,10), width 110, height 58, count 1

Expose event, serial 20, synthetic NO, window 0x4a00001,
    (0,68), width 178, height 110, count 0

PropertyNotify event, serial 20, synthetic NO, window 0x4a00001,
    atom 0x19b (WM_STATE), time 10980864, state PropertyNewValue

PropertyNotify event, serial 20, synthetic NO, window 0x4a00001,
    atom 0x189 (_NET_WM_ALLOWED_ACTIONS), time 10980864, state PropertyNewValue

PropertyNotify event, serial 20, synthetic NO, window 0x4a00001,
    atom 0x13b (_NET_WM_STATE), time 10980864, state PropertyNewValue

FocusIn event, serial 20, synthetic NO, window 0x4a00001,
    mode NotifyNormal, detail NotifyNonlinear

KeymapNotify event, serial 20, synthetic NO, window 0x0,
    keys:  4294967181 0   0   0   16  0   0   0   0   0   0   0   0   0   0   0   
           0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   

PropertyNotify event, serial 20, synthetic NO, window 0x4a00001,
    atom 0x132 (_NET_FRAME_EXTENTS), time 10980864, state PropertyNewValue

PropertyNotify event, serial 20, synthetic NO, window 0x4a00001,
    atom 0x13b (_NET_WM_STATE), time 10980864, state PropertyNewValue

ColormapNotify event, serial 27, synthetic NO, window 0x4a00001,
    colormap 0x22, new NO, state ColormapInstalled

PropertyNotify event, serial 27, synthetic NO, window 0x4a00001,
    atom 0x13b (_NET_WM_STATE), time 10980869, state PropertyNewValue

KeyRelease event, serial 33, synthetic NO, window 0x4a00001,
    root 0x146, subw 0x0, time 10980904, (-143,361), root:(728,834),
    state 0x10, keycode 36 (keysym 0xff0d, Return), same_screen YES,
"   XLookupString gives 1 bytes: (0d) "
    XFilterEvent returns: False

MappingNotify event, serial 36, synthetic NO, window 0x0,
    request MappingKeyboard, first_keycode 8, count 248

KeyPress event, serial 36, synthetic NO, window 0x4a00001,
    root 0x146, subw 0x0, time 10984784, (-143,361), root:(728,834),
    state 0x10, keycode 52 (keysym 0x7a, z), same_screen YES,
    XLookupString gives 1 bytes: (7a) "z"
    XmbLookupString gives 1 bytes: (7a) "z"
    XFilterEvent returns: False

KeyPress event, serial 37, synthetic NO, window 0x4a00001,
    root 0x146, subw 0x0, time 10984791, (-143,361), root:(728,834),
    state 0x10, keycode 53 (keysym 0x78, x), same_screen YES,
    XLookupString gives 1 bytes: (78) "x"
    XmbLookupString gives 1 bytes: (78) "x"
    XFilterEvent returns: False

KeyPress event, serial 37, synthetic NO, window 0x4a00001,
    root 0x146, subw 0x0, time 10984799, (-143,361), root:(728,834),
    state 0x10, keycode 54 (keysym 0x63, c), same_screen YES,
    XLookupString gives 1 bytes: (63) "c"
    XmbLookupString gives 1 bytes: (63) "c"
    XFilterEvent returns: False

KeyRelease event, serial 37, synthetic NO, window 0x4a00001,
    root 0x146, subw 0x0, time 10984855, (-143,361), root:(728,834),
    state 0x10, keycode 52 (keysym 0x7a, z), same_screen YES,
    XLookupString gives 1 bytes: (7a) "z"
    XFilterEvent returns: False

KeyRelease event, serial 37, synthetic NO, window 0x4a00001,
    root 0x146, subw 0x0, time 10984855, (-143,361), root:(728,834),
    state 0x10, keycode 53 (keysym 0x78, x), same_screen YES,
    XLookupString gives 1 bytes: (78) "x"
    XFilterEvent returns: False

KeyRelease event, serial 37, synthetic NO, window 0x4a00001,
    root 0x146, subw 0x0, time 10984855, (-143,361), root:(728,834),
    state 0x10, keycode 54 (keysym 0x63, c), same_screen YES,
    XLookupString gives 1 bytes: (63) "c"
    XFilterEvent returns: False

FocusOut event, serial 37, synthetic NO, window 0x4a00001,
    mode NotifyNormal, detail NotifyNonlinear

PropertyNotify event, serial 37, synthetic NO, window 0x4a00001,
    atom 0x13b (_NET_WM_STATE), time 10987476, state PropertyNewValue



Doing the same on a spare USB keyboard that works fine I get....

Code:

$ xev
Outer window is 0x4a00001, inner window is 0x4a00002

PropertyNotify event, serial 8, synthetic NO, window 0x4a00001,
    atom 0x27 (WM_NAME), time 11064482, state PropertyNewValue

PropertyNotify event, serial 9, synthetic NO, window 0x4a00001,
    atom 0x22 (WM_COMMAND), time 11064482, state PropertyNewValue

PropertyNotify event, serial 10, synthetic NO, window 0x4a00001,
    atom 0x28 (WM_NORMAL_HINTS), time 11064482, state PropertyNewValue

CreateNotify event, serial 11, synthetic NO, window 0x4a00001,
    parent 0x4a00001, window 0x4a00002, (10,10), width 50, height 50
border_width 4, override NO

PropertyNotify event, serial 14, synthetic NO, window 0x4a00001,
    atom 0x12d (WM_PROTOCOLS), time 11064483, state PropertyNewValue

MapNotify event, serial 15, synthetic NO, window 0x4a00001,
    event 0x4a00001, window 0x4a00002, override NO

PropertyNotify event, serial 20, synthetic NO, window 0x4a00001,
    atom 0x13b (_NET_WM_STATE), time 11064483, state PropertyNewValue

PropertyNotify event, serial 20, synthetic NO, window 0x4a00001,
    atom 0x135 (_NET_WM_DESKTOP), time 11064483, state PropertyNewValue

ConfigureNotify event, serial 20, synthetic NO, window 0x4a00001,
    event 0x4a00001, window 0x4a00001, (0,0), width 178, height 178,
    border_width 0, above 0x3400036, override NO

ReparentNotify event, serial 20, synthetic NO, window 0x4a00001,
    event 0x4a00001, window 0x4a00001, parent 0x106f3d6,
    (5,19), override NO

ConfigureNotify event, serial 20, synthetic NO, window 0x4a00001,
    event 0x4a00001, window 0x4a00001, (5,19), width 178, height 178,
    border_width 0, above 0x106f3e5, override NO

ConfigureNotify event, serial 20, synthetic YES, window 0x4a00001,
    event 0x4a00001, window 0x4a00001, (871,473), width 178, height 178,
    border_width 0, above 0x0, override NO

MapNotify event, serial 20, synthetic NO, window 0x4a00001,
    event 0x4a00001, window 0x4a00001, override NO

VisibilityNotify event, serial 20, synthetic NO, window 0x4a00001,
    state VisibilityUnobscured

Expose event, serial 20, synthetic NO, window 0x4a00001,
    (0,0), width 178, height 10, count 3

Expose event, serial 20, synthetic NO, window 0x4a00001,
    (0,10), width 10, height 58, count 2

Expose event, serial 20, synthetic NO, window 0x4a00001,
    (68,10), width 110, height 58, count 1

Expose event, serial 20, synthetic NO, window 0x4a00001,
    (0,68), width 178, height 110, count 0

PropertyNotify event, serial 20, synthetic NO, window 0x4a00001,
    atom 0x19b (WM_STATE), time 11064484, state PropertyNewValue

PropertyNotify event, serial 20, synthetic NO, window 0x4a00001,
    atom 0x189 (_NET_WM_ALLOWED_ACTIONS), time 11064484, state PropertyNewValue

PropertyNotify event, serial 20, synthetic NO, window 0x4a00001,
    atom 0x13b (_NET_WM_STATE), time 11064484, state PropertyNewValue

FocusIn event, serial 20, synthetic NO, window 0x4a00001,
    mode NotifyNormal, detail NotifyNonlinear

KeymapNotify event, serial 20, synthetic NO, window 0x0,
    keys:  4294967181 0   0   0   16  0   0   0   0   0   0   0   0   0   0   0   
           0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   

PropertyNotify event, serial 20, synthetic NO, window 0x4a00001,
    atom 0x132 (_NET_FRAME_EXTENTS), time 11064484, state PropertyNewValue

PropertyNotify event, serial 20, synthetic NO, window 0x4a00001,
    atom 0x13b (_NET_WM_STATE), time 11064484, state PropertyNewValue

PropertyNotify event, serial 22, synthetic NO, window 0x4a00001,
    atom 0x13b (_NET_WM_STATE), time 11064485, state PropertyNewValue

KeyRelease event, serial 33, synthetic NO, window 0x4a00001,
    root 0x146, subw 0x0, time 11064528, (-359,-107), root:(512,366),
    state 0x10, keycode 36 (keysym 0xff0d, Return), same_screen YES,
"   XLookupString gives 1 bytes: (0d) "
    XFilterEvent returns: False

KeyPress event, serial 36, synthetic NO, window 0x4a00001,
    root 0x146, subw 0x0, time 11065544, (-359,-107), root:(512,366),
    state 0x10, keycode 52 (keysym 0x7a, z), same_screen YES,
    XLookupString gives 1 bytes: (7a) "z"
    XmbLookupString gives 1 bytes: (7a) "z"
    XFilterEvent returns: False

KeyRelease event, serial 36, synthetic NO, window 0x4a00001,
    root 0x146, subw 0x0, time 11065640, (-359,-107), root:(512,366),
    state 0x10, keycode 52 (keysym 0x7a, z), same_screen YES,
    XLookupString gives 1 bytes: (7a) "z"
    XFilterEvent returns: False

FocusOut event, serial 36, synthetic NO, window 0x4a00001,
    mode NotifyNormal, detail NotifyNonlinear

PropertyNotify event, serial 36, synthetic NO, window 0x4a00001,
    atom 0x13b (_NET_WM_STATE), time 11067582, state PropertyNewValue


Difference being x and c are also reported, pushing me more to the idea that this is indeed a hardware problem.

Will investigate further later, got to head out to another city for a pointless meeting :-/

Cheers,

slackline
_________________
"Science is what we understand well enough to explain to a computer.  Art is everything else we do." - Donald Knuth
Back to top
View user's profile Send private message
slackline
Veteran
Veteran


Joined: 01 Apr 2005
Posts: 1477
Location: /uk/sheffield

PostPosted: Fri Nov 03, 2017 6:29 am    Post subject: Reply with quote

Bit the bullet and ordered a new M$ Ergonomic 4000 keyboard, plugged it in and key maps are perfect, strongly suggesting it was failed hardware. Not bad as I'd had the thing for about a decade.

Thanks for @krinn and @mike155 for your assistance.

slackline
_________________
"Science is what we understand well enough to explain to a computer.  Art is everything else we do." - Donald Knuth
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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