[Buildroot] Keyboard and mouse not working in X server
laurentiu.duca at gmail.com
Sat Sep 28 07:31:35 UTC 2019
On 5/15/19, Laurentiu-Cristian Duca <laurentiu.duca at gmail.com> wrote:
> Success in two situations:
> 1. udev + xdriver_xf86-input-evdev and xdriver_xf86-libinput
> (thanks Arnout Vandecappelle)
> 2. devtmpfs with the following lines to xorg.conf:
> Section "ServerFlags"
> Option "AutoAddDevices" "false"
I think item 2 above is wrong (AutoAddDevices false).
xorg.conf should have something like this:
Option "Protocol" "auto"
Option "Device" "/dev/input/mouse0"
Option "XkbLayout" "us"
Option "XkbModel" "pc105"
> Best regards,
> On 5/14/19, Arnout Vandecappelle <arnout at mind.be> wrote:
>> Hi L-C,
>> On 14/05/2019 15:51, Laurentiu-Cristian Duca wrote:
>>> Hello Buildroot community,
>>> I am an open source enthusisast and I am new to buildroot.
>>> I have built in buildroot 2019.02.1
>>> a raspberry pi 1 configuration
>>> with Xorg server (1.20.3) and xdriver_xf86-input-mouse-1.9.3
>>> xdriver_xf86-input-keyboard-1.9.0 and SystemV init.
>> I am not an X expert by a long shot, but I believe you'll have better
>> xdriver_xf86-input-evdev or -libinput. -keyboard and -mouse are more for
>> bus keyboard/mouse devices I think.
>>> I use simple USB keyboard and mouse.
>>> Keyboard works in consle tty1 (HDMI display).
>>> startx runs successfully but mouse and keyboard do not work with X
>>> X just shows 3 open xterm windows and I can not write or move mouse
>>> (which is showed in the center of the screen).
>>> I have tried xorg.conf with:
>>> Section "Device"
>>> Identifier "Allwinner A10/A13 FBDEV"
>>> Driver "fbturbo"
>>> Option "fbdev" "/dev/fb0"
>>> Option "SwapbuffersWait" "true"
>>> I have also tried with no success combinations with:
>>> Section "InputDevice"
>> I don't think there's any need for input device configuration in
>>> Identifier "Mouse"
>>> Driver "mouse"
>>> Option "Protocol" "auto"
>>> Option "Device" "/dev/bus/usb/001/005"
>>> Section "InputDevice"
>>> Identifier "Keyboard0"
>>> Driver "kbd"
>>> Option "XkbLayout" "us"
>>> Option "XkbModel" "pc105"
>>> When I have nothing connected to usb
>>> find /dev/ | grep -i "usb"
>>> it shows:
>>> If I insert keyboard and mouse it also shows:
>> Can you check that you also have /dev/input/eventN nodes? These are the
>> that get used by evdev and libinput. But if you don't have them, I don't
>> the console keyboard would work either.
>>> # ls /usr/lib/xorg/modules/input/
>>> kbd_drv.so mouse_drv.so
>>> # xinput --list
>>> ��⎡ Virtual core pointer id=2 [master pointer
>>> ��⎜ ��↳ Virtual core XTEST pointer id=4 [slave
>>> pointer (2)]
>>> ��⎣ Virtual core keyboard id=3 [master keyboard
>>> ��↳ Virtual core XTEST keyboard id=5 [slave
>>> keyboard (3)]
>>> No success with:
>>> # xinput enable 2
>>> (and 3, 4, 5)
>>> I do not use udev or mdev, instead I use devtmpfs. Is there any way to
>>> mouse and keyboard working?
>>> # cat /var/log/Xorg.0.log
>>> [ 2042.804] (II) The server relies on udev to provide the list of
>>> input devices.
>>> If no devices become available, reconfigure udev or disable
>>> [ 2042.804] (II) Loader magic: 0x1d8e58
>>> [ 2042.804] (II) Module ABI versions:
>>> [ 2042.804] X.Org ANSI C Emulation: 0.4
>>> [ 2042.804] X.Org Video Driver: 24.0
>>> [ 2042.804] X.Org XInput driver : 24.1
>>> [ 2042.804] X.Org Server Extension : 10.0
>>> [ 2042.816] (++) using VT number 1
>>> Any ideas?
>>> Thank you and best regards,
>>> L-C. Duca
>>> buildroot mailing list
>>> buildroot at busybox.net
More information about the buildroot