You are not logged in.

#1 2011-08-16 09:09:21

Divinorum
Member
Registered: 2011-08-16
Posts: 44

wireless keyboard and mouse problem in X

Hello everyone

I recently installed arch linux and after overcoming issues with networking and drivers I have reached a problem that two days worth of research haven't solved. After starting X, neither my wireless keyboard nor mouse respond at all. I followed the Beginner's Guide, searched this forum, searched other forums, and double checked my inputs. I typed/copied the relevant information to #! and posting from there, so here's what I have:

Logitech EX110 Keyboard and Logitech laser mouse

1)

pacman -S xf86-input-evdev xf86-input-keyboard xf86-input-mouse

2)
Added usb and usbinput to HOOKS in mkinitcpio.conf, regenerated initramfs images:

HOOKS="base udev autodetect pata scsi sata usb usbinput filesystems"

3)

lsmod | grep -i usb

usbhid 38146 1 hid_logitech
hid 75579 2 hid_logitech

4)

xorg.conf

Section "InputDevice"
#generated from default
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/psaux"
Option "Emulate3Buttons" "no"
Option "ZAxisMapping" "4 5"
End Section

Section "InputDevice"
#generated from default
Identifier "Keyboard0"
Driver "kbd"
End Section

5)

/var/log/Xorg.0.log

(EE) config/hal: couldn't initialise context: unknown error (null)

Some important things I noticed
1) Not getting MatchIsKeyboard "on" and MatchDevicePath for keyboard in xorg.conf
2) setxkbmap us yields Cannot open display "default display" in both root and main user
3) setxkbmap -print -verbose 10 yields the same

At this point I feel like I am overlooking some simple component but I have no more leads so any help with this problem is greatly appreciated. Thanks!

Offline

#2 2011-08-16 10:00:21

Enverex
Member
From: UK
Registered: 2007-06-13
Posts: 159
Website

Re: wireless keyboard and mouse problem in X

You'll want to use evdev rather than keyboard/mouse (as those are the "old school" drivers). EVDev should handle everything these days. Remove the X mouse/keyboard drivers, make sure the evdev driver is installed and try X without a keyboard and mouse section in xorg.conf.

Offline

#3 2011-08-17 06:40:15

Divinorum
Member
Registered: 2011-08-16
Posts: 44

Re: wireless keyboard and mouse problem in X

Alright I removed the keyboard and mouse drivers, reinstalled the evdev driver, deleted the keyboard and mouse sections in xorg.conf, rebooted, and then started X. Same outcome as I am getting no response from neither the keyboard nor the mouse.

The USB wireless receiver for the keyboard has its green light on and there are no issues with the keyboard in grub or tty1.

In the Xorg wiki, I find this under keyboard settings:

Xorg may fail to detect your keyboard correctly. This might give problems with your keyboard layout or keyboard model not being set correctly.

To see a full list of keyboard models, layouts, variants and options, open:

/usr/share/X11/xkb/rules/xorg.lst

It then outlines steps using setxkbmap, none of which I can perform because I get always get the line "Cannot open display "default display."

Is it a problem with evdev or something else as I can't utilize setxkbmap?

Offline

#4 2011-08-18 06:10:47

Divinorum
Member
Registered: 2011-08-16
Posts: 44

Re: wireless keyboard and mouse problem in X

I would like to get this issue resolved because I'm prevented from doing any work in X so I attempted to ask around at #archlinux but Im not a +V.

Any more tips on how to verify that all my .conf's are in order or how to get become a +V for the channel? Thanks!

Offline

#5 2011-08-18 06:49:49

siriusb
Member
Registered: 2010-01-01
Posts: 424

Re: wireless keyboard and mouse problem in X

Recently I bought a cheap Trust wireless mouse. The only thing I had to do to connect the receiver. smile

1. No HAL, only udev
2. I have xf86-input-evdev installed only, no mouse or keyboard packages.
3. No xorg.conf at all
4. I pasted my evdev.conf below, the only thing I changed to add a custom layout section for my Hungarian keyboard at the end of the file, but it's not relevant now.

I don't know if any of these help, but I had no idea why your X doesn't recognize your input devices.

cat /etc/X11/xorg.conf.d/10-evdev.conf 
#
# Catch-all evdev loader for udev-based systems
# We don't simply match on any device since that also adds accelerometers
# and other devices that we don't really want to use. The list below
# matches everything but joysticks.

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

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

Section "InputClass"
        Identifier "evdev touchpad catchall"
        MatchIsTouchpad "on"
        MatchDevicePath "/dev/input/event*"
        Driver "evdev"
EndSection

Section "InputClass"
        Identifier "evdev tablet catchall"
        MatchIsTablet "on"
        MatchDevicePath "/dev/input/event*"
        Driver "evdev"
EndSection

Section "InputClass"
        Identifier "evdev touchscreen catchall"
        MatchIsTouchscreen "on"
        MatchDevicePath "/dev/input/event*"
        Driver "evdev"
EndSection

# custom keyboard layout
Section "InputClass"
    Identifier         "Keyboard Defaults"
    MatchIsKeyboard	   "yes"
    MatchProduct       "keyboard"
    Option	           "XkbLayout" "hu"
EndSection

Offline

Board footer

Powered by FluxBB