All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] Keyboard and mouse not working in X server
@ 2019-05-14 13:51 Laurentiu-Cristian Duca
  2019-05-14 20:12 ` Arnout Vandecappelle
  0 siblings, 1 reply; 4+ messages in thread
From: Laurentiu-Cristian Duca @ 2019-05-14 13:51 UTC (permalink / raw)
  To: buildroot

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 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 started.
X just shows 3 open xterm windows and I can not write or move mouse cursor
(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"
EndSection

  I have also tried with no success combinations with:

Section "InputDevice"
    Identifier  "Mouse"
    Driver      "mouse"
    Option      "Protocol"      "auto"
    Option      "Device"        "/dev/bus/usb/001/005"
EndSection

Section "InputDevice"
    Identifier     "Keyboard0"
    Driver         "kbd"
    Option         "XkbLayout" "us"
    Option         "XkbModel" "pc105"
EndSection

  When I have nothing connected to usb
find /dev/ | grep -i "usb"
it shows:
/dev/bus/usb
/dev/bus/usb/001
/dev/bus/usb/001/003
/dev/bus/usb/001/002
/dev/bus/usb/001/001
  If I insert keyboard and mouse it also shows:
/dev/bus/usb/001/006
/dev/bus/usb/001/005
/dev/bus/usb/001/004

# ls /usr/lib/xorg/modules/input/
kbd_drv.so    mouse_drv.so
# xinput --list
??? Virtual core pointer                        id=2    [master pointer  (3)]
???   ??? Virtual core XTEST pointer                    id=4    [slave
 pointer  (2)]
??? Virtual core keyboard                       id=3    [master keyboard (2)]
    ??? 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 have
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
AutoAddDevices.
[  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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Buildroot] Keyboard and mouse not working in X server
  2019-05-14 13:51 [Buildroot] Keyboard and mouse not working in X server Laurentiu-Cristian Duca
@ 2019-05-14 20:12 ` Arnout Vandecappelle
  2019-05-15 13:15   ` Laurentiu-Cristian Duca
  0 siblings, 1 reply; 4+ messages in thread
From: Arnout Vandecappelle @ 2019-05-14 20:12 UTC (permalink / raw)
  To: buildroot

 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 luck with
xdriver_xf86-input-evdev or -libinput. -keyboard and -mouse are more for legacy
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 started.
> X just shows 3 open xterm windows and I can not write or move mouse cursor
> (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"
> EndSection
> 
>   I have also tried with no success combinations with:
> 
> Section "InputDevice"

 I don't think there's any need for input device configuration in xorg.conf.

>     Identifier  "Mouse"
>     Driver      "mouse"
>     Option      "Protocol"      "auto"
>     Option      "Device"        "/dev/bus/usb/001/005"
> EndSection
> 
> Section "InputDevice"
>     Identifier     "Keyboard0"
>     Driver         "kbd"
>     Option         "XkbLayout" "us"
>     Option         "XkbModel" "pc105"
> EndSection
> 
>   When I have nothing connected to usb
> find /dev/ | grep -i "usb"
> it shows:
> /dev/bus/usb
> /dev/bus/usb/001
> /dev/bus/usb/001/003
> /dev/bus/usb/001/002
> /dev/bus/usb/001/001
>   If I insert keyboard and mouse it also shows:
> /dev/bus/usb/001/006
> /dev/bus/usb/001/005
> /dev/bus/usb/001/004

 Can you check that you also have /dev/input/eventN nodes? These are the ones
that get used by evdev and libinput. But if you don't have them, I don't think
the console keyboard would work either.

 Regards,
 Arnout

> 
> # ls /usr/lib/xorg/modules/input/
> kbd_drv.so    mouse_drv.so
> # xinput --list
> ??? Virtual core pointer                        id=2    [master pointer  (3)]
> ???   ??? Virtual core XTEST pointer                    id=4    [slave
>  pointer  (2)]
> ??? Virtual core keyboard                       id=3    [master keyboard (2)]
>     ??? 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 have
> 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
> AutoAddDevices.
> [  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
> http://lists.busybox.net/mailman/listinfo/buildroot
> 

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Buildroot] Keyboard and mouse not working in X server
  2019-05-14 20:12 ` Arnout Vandecappelle
@ 2019-05-15 13:15   ` Laurentiu-Cristian Duca
  2019-09-28  7:31     ` Laurentiu-Cristian Duca
  0 siblings, 1 reply; 4+ messages in thread
From: Laurentiu-Cristian Duca @ 2019-05-15 13:15 UTC (permalink / raw)
  To: buildroot

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"
EndSection

Best regards,
L-C.

On 5/14/19, Arnout Vandecappelle <arnout@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 luck
> with
> xdriver_xf86-input-evdev or -libinput. -keyboard and -mouse are more for
> legacy
> 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
>> started.
>> X just shows 3 open xterm windows and I can not write or move mouse
>> cursor
>> (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"
>> EndSection
>>
>>   I have also tried with no success combinations with:
>>
>> Section "InputDevice"
>
>  I don't think there's any need for input device configuration in
> xorg.conf.
>
>>     Identifier  "Mouse"
>>     Driver      "mouse"
>>     Option      "Protocol"      "auto"
>>     Option      "Device"        "/dev/bus/usb/001/005"
>> EndSection
>>
>> Section "InputDevice"
>>     Identifier     "Keyboard0"
>>     Driver         "kbd"
>>     Option         "XkbLayout" "us"
>>     Option         "XkbModel" "pc105"
>> EndSection
>>
>>   When I have nothing connected to usb
>> find /dev/ | grep -i "usb"
>> it shows:
>> /dev/bus/usb
>> /dev/bus/usb/001
>> /dev/bus/usb/001/003
>> /dev/bus/usb/001/002
>> /dev/bus/usb/001/001
>>   If I insert keyboard and mouse it also shows:
>> /dev/bus/usb/001/006
>> /dev/bus/usb/001/005
>> /dev/bus/usb/001/004
>
>  Can you check that you also have /dev/input/eventN nodes? These are the
> ones
> that get used by evdev and libinput. But if you don't have them, I don't
> think
> the console keyboard would work either.
>
>  Regards,
>  Arnout
>
>>
>> # ls /usr/lib/xorg/modules/input/
>> kbd_drv.so    mouse_drv.so
>> # xinput --list
>> ??? Virtual core pointer                        id=2    [master pointer
>> (3)]
>> ???   ??? Virtual core XTEST pointer                    id=4    [slave
>>  pointer  (2)]
>> ??? Virtual core keyboard                       id=3    [master keyboard
>> (2)]
>>     ??? 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
>> have
>> 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
>> AutoAddDevices.
>> [  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
>> http://lists.busybox.net/mailman/listinfo/buildroot
>>
>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Buildroot] Keyboard and mouse not working in X server
  2019-05-15 13:15   ` Laurentiu-Cristian Duca
@ 2019-09-28  7:31     ` Laurentiu-Cristian Duca
  0 siblings, 0 replies; 4+ messages in thread
From: Laurentiu-Cristian Duca @ 2019-09-28  7:31 UTC (permalink / raw)
  To: buildroot

On 5/15/19, Laurentiu-Cristian Duca <laurentiu.duca@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"
> EndSection

I think item 2 above is wrong (AutoAddDevices false).
xorg.conf should have something like this:
Section "InputDevice"
    Identifier  "Mouse"
    Driver      "mouse"
    Option      "Protocol"      "auto"
    Option      "Device"        "/dev/input/mouse0"
EndSection
Section "InputDevice"
    Identifier     "Keyboard0"
    Driver         "kbd"
    Option         "XkbLayout" "us"
    Option         "XkbModel" "pc105"
EndSection

>
> Best regards,
> L-C.
>
> On 5/14/19, Arnout Vandecappelle <arnout@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
>> luck
>> with
>> xdriver_xf86-input-evdev or -libinput. -keyboard and -mouse are more for
>> legacy
>> 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
>>> started.
>>> X just shows 3 open xterm windows and I can not write or move mouse
>>> cursor
>>> (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"
>>> EndSection
>>>
>>>   I have also tried with no success combinations with:
>>>
>>> Section "InputDevice"
>>
>>  I don't think there's any need for input device configuration in
>> xorg.conf.
>>
>>>     Identifier  "Mouse"
>>>     Driver      "mouse"
>>>     Option      "Protocol"      "auto"
>>>     Option      "Device"        "/dev/bus/usb/001/005"
>>> EndSection
>>>
>>> Section "InputDevice"
>>>     Identifier     "Keyboard0"
>>>     Driver         "kbd"
>>>     Option         "XkbLayout" "us"
>>>     Option         "XkbModel" "pc105"
>>> EndSection
>>>
>>>   When I have nothing connected to usb
>>> find /dev/ | grep -i "usb"
>>> it shows:
>>> /dev/bus/usb
>>> /dev/bus/usb/001
>>> /dev/bus/usb/001/003
>>> /dev/bus/usb/001/002
>>> /dev/bus/usb/001/001
>>>   If I insert keyboard and mouse it also shows:
>>> /dev/bus/usb/001/006
>>> /dev/bus/usb/001/005
>>> /dev/bus/usb/001/004
>>
>>  Can you check that you also have /dev/input/eventN nodes? These are the
>> ones
>> that get used by evdev and libinput. But if you don't have them, I don't
>> think
>> the console keyboard would work either.
>>
>>  Regards,
>>  Arnout
>>
>>>
>>> # ls /usr/lib/xorg/modules/input/
>>> kbd_drv.so    mouse_drv.so
>>> # xinput --list
>>> ??? Virtual core pointer                        id=2    [master pointer
>>> (3)]
>>> ???   ??? Virtual core XTEST pointer                    id=4    [slave
>>>  pointer  (2)]
>>> ??? Virtual core keyboard                       id=3    [master keyboard
>>> (2)]
>>>     ??? 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
>>> have
>>> 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
>>> AutoAddDevices.
>>> [  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
>>> http://lists.busybox.net/mailman/listinfo/buildroot
>>>
>>
>

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-09-28  7:31 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-14 13:51 [Buildroot] Keyboard and mouse not working in X server Laurentiu-Cristian Duca
2019-05-14 20:12 ` Arnout Vandecappelle
2019-05-15 13:15   ` Laurentiu-Cristian Duca
2019-09-28  7:31     ` Laurentiu-Cristian Duca

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.