Skip to contentSkip to conversation

rpi-base.inc: Add xf86-input-evdev to XSERVER

PATCH In review Yusuke Mitsuki 5 participants 6 messages Feb 12, 2017 – Feb 16, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 rpi-base.inc: Add xf86-input-evdev to XSERVER

In order to fix problem that mouse does not work.

This is removed c40558173ffd96c499d101155f6c4c2be85d9f0f. However mouse does not worked from this.

---
 conf/machine/include/rpi-base.inc | 1 +
 1 file changed, 1 insertion(+)
conf/machine/include/rpi-base.inc +1 -0
index e069e70..051c717 100644
@@ -11,6 +11,7 @@ XSERVER = " \
     xserver-xorg \
     ${@bb.utils.contains("MACHINE_FEATURES", "vc4graphics", "xserver-xorg-extension-glx", "", d)} \
     ${@bb.utils.contains("MACHINE_FEATURES", "vc4graphics", "xf86-video-modesetting", "xf86-video-fbdev", d)} \
+    xf86-input-evdev \
     "
 
 KERNEL_DEVICETREE ?= " \
Signature · 1 line
2.7.4
#1 lore raw
Quoted 23 lines · Yusuke Mitsuki

In order to fix problem that mouse does not work.

This is removed c40558173ffd96c499d101155f6c4c2be85d9f0f. However mouse does not worked from this.

---
 conf/machine/include/rpi-base.inc | 1 +
 1 file changed, 1 insertion(+)
conf/machine/include/rpi-base.inc +1 -1
index e069e70..051c717 100644
@@ -11,6 +11,7 @@ XSERVER = " \
     xserver-xorg \
     ${@bb.utils.contains("MACHINE_FEATURES", "vc4graphics", "xserver-xorg-extension-glx", "", d)} \
     ${@bb.utils.contains("MACHINE_FEATURES", "vc4graphics", "xf86-video-modesetting", "xf86-video-fbdev", d)} \
+    xf86-input-evdev \
     "
 
 KERNEL_DEVICETREE ?= " \
--

2.7.4

Quoted 5 lines

--
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto

CC-ing [email protected] as he might have an opinion about this. I personally don't really hold on any of the options.

--
Andrei Gherzan
gpg: rsa4096/D4D94F67AD0E9640 | t: @agherzan

#2 lore raw
Quoted 24 lines · Andrei Gherzan
Quoted 23 lines · Yusuke Mitsuki

In order to fix problem that mouse does not work.

This is removed c40558173ffd96c499d101155f6c4c2be85d9f0f. However mouse does not worked from this.

---
 conf/machine/include/rpi-base.inc | 1 +
 1 file changed, 1 insertion(+)
conf/machine/include/rpi-base.inc +1 -1
index e069e70..051c717 100644
@@ -11,6 +11,7 @@ XSERVER = " \
     xserver-xorg \
     ${@bb.utils.contains("MACHINE_FEATURES", "vc4graphics", "xserver-xorg-extension-glx", "", d)} \
     ${@bb.utils.contains("MACHINE_FEATURES", "vc4graphics", "xf86-video-modesetting", "xf86-video-fbdev", d)} \
+    xf86-input-evdev \
     "
 
 KERNEL_DEVICETREE ?= " \
--

2.7.4

Quoted 8 lines
Quoted 5 lines

--
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto

CC-ing [email protected] as he might have an opinion about this. I personally don't really hold on any of the options.

I think it's the right thing to do, in fact, I was preparing a similar patch myself. The change that removed this argued that it was not the responsibility of the BSP layer, but if you look around at other BSP layers, almost all of them do include this driver as part of their X server setup. It also lets X work again on the RaspberryPi "out of the box" with the simplest configuration - HDMI display + USB keyboard & mouse.

+1

Signature · 4 lines
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------
#3 lore raw
Quoted 49 lines · Gary Thomas
Quoted 28 lines · Andrei Gherzan
Quoted 26 lines · Yusuke Mitsuki

In order to fix problem that mouse does not work.

This is removed c40558173ffd96c499d101155f6c4c2be85d9f0f. However mouse does not worked from this.

---
 conf/machine/include/rpi-base.inc | 1 +
 1 file changed, 1 insertion(+)
conf/machine/include/rpi-base.inc +1 -0
index e069e70..051c717 100644
@@ -11,6 +11,7 @@ XSERVER = " \
     xserver-xorg \
     ${@bb.utils.contains("MACHINE_FEATURES", "vc4graphics",
 "xserver-xorg-extension-glx", "", d)} \
     ${@bb.utils.contains("MACHINE_FEATURES", "vc4graphics",
 "xf86-video-modesetting", "xf86-video-fbdev", d)} \
+    xf86-input-evdev \
     "

KERNEL_DEVICETREE ?= " \
--
2.7.4

Quoted 10 lines
Quoted 6 lines

--
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto

CC-ing [email protected] as he might have an opinion about this. I personally don't really hold on any of the options.

I think it's the right thing to do, in fact, I was preparing a similar patch myself. The change that removed this argued that it was not the responsibility of the BSP layer, but if you look around at other BSP layers, almost all of them do include this driver as part of their X server setup. It also lets X work again on the RaspberryPi "out of the box" with the simplest configuration - HDMI display + USB keyboard & mouse.

Quoted 1 line

+1

Out of interest: Why is xf86-input-libinput not appropriate for these setups? I honestly did not know of a use case where -evdev would work but -libinput would not...

Jussi

#4 lore raw
Quoted 51 lines · Jussi Kukkonen

On 16 February 2017 at 04:14, Gary Thomas <[email protected] <mailto:[email protected]>> wrote:

    On 2017-02-16 02:45, Andrei Gherzan wrote:

        On Mon, Feb 13, 2017 at 12:25:48AM +0900, Yusuke Mitsuki wrote:

            In order to fix problem that mouse does not work.

            This is removed c40558173ffd96c499d101155f6c4c2be85d9f0f.
            However mouse does not worked from this.
            ---
             conf/machine/include/rpi-base.inc | 1 +
             1 file changed, 1 insertion(+)

            diff --git a/conf/machine/include/rpi-base.inc b/conf/machine/include/rpi-base.inc
            index e069e70..051c717 100644
            --- a/conf/machine/include/rpi-base.inc
            +++ b/conf/machine/include/rpi-base.inc
            @@ -11,6 +11,7 @@ XSERVER = " \
                 xserver-xorg \
                 ${@bb.utils.contains("MACHINE_FEATURES", "vc4graphics", "xserver-xorg-extension-glx", "", d)} \
                 ${@bb.utils.contains("MACHINE_FEATURES", "vc4graphics", "xf86-video-modesetting", "xf86-video-fbdev", d)} \
            +    xf86-input-evdev \
                 "

             KERNEL_DEVICETREE ?= " \
            --
            2.7.4

            --
            _______________________________________________
            yocto mailing list
            [email protected] <mailto:[email protected]>
            https://lists.yoctoproject.org/listinfo/yocto <https://lists.yoctoproject.org/listinfo/yocto>


        CC-ing [email protected] <mailto:[email protected]> as he might have an opinion about
        this. I personally don't really hold on any of the options.


    I think it's the right thing to do, in fact, I was preparing a
    similar patch myself.  The change that removed this argued that
    it was not the responsibility of the BSP layer, but if you look
    around at other BSP layers, almost all of them do include this
    driver as part of their X server setup.  It also lets X work
    again on the RaspberryPi "out of the box" with the simplest
    configuration - HDMI display + USB keyboard & mouse.

    +1
Quoted 2 lines

Out of interest: Why is xf86-input-libinput not appropriate for these setups? I honestly did not know of a use case where -evdev would work but -libinput would not...

I'm not sure (and I don't have a setup right now to test). I've always used -evdev as that was the recommended driver for many years now.

Signature · 4 lines
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------
#5 lore raw
In reply to Jussi Kukkonen
Quoted 51 lines · Jussi Kukkonen
Quoted 50 lines · Gary Thomas
Quoted 29 lines · Andrei Gherzan
Quoted 27 lines · Yusuke Mitsuki

In order to fix problem that mouse does not work.

This is removed c40558173ffd96c499d101155f6c4c2be85d9f0f. However mouse does not worked from this.

---
 conf/machine/include/rpi-base.inc | 1 +
 1 file changed, 1 insertion(+)
conf/machine/include/rpi-base.inc +1 -0
index e069e70..051c717 100644
@@ -11,6 +11,7 @@ XSERVER = " \
     xserver-xorg \
     ${@bb.utils.contains("MACHINE_FEATURES", "vc4graphics",
 "xserver-xorg-extension-glx", "", d)} \
     ${@bb.utils.contains("MACHINE_FEATURES", "vc4graphics",
 "xf86-video-modesetting", "xf86-video-fbdev", d)} \
+    xf86-input-evdev \
     "

KERNEL_DEVICETREE ?= " \
--
2.7.4

Quoted 9 lines
Quoted 5 lines

--
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto

CC-ing [email protected] as he might have an opinion about this. I personally don't really hold on any of the options.

I think it's the right thing to do, in fact, I was preparing a similar patch myself. The change that removed this argued that it was not the responsibility of the BSP layer, but if you look around at other BSP layers, almost all of them do include this driver as part of their X server setup. It also lets X work again on the RaspberryPi "out of the box" with the simplest configuration - HDMI display + USB keyboard & mouse.

Quoted 7 lines
Quoted 1 line

+1

Out of interest: Why is xf86-input-libinput not appropriate for these setups? I honestly did not know of a use case where -evdev would work but -libinput would not...

I would have asked the same question. When preferring -libinput it might be a good idea to remove recipes-graphics/xorg-xserver/xserver-xf86-config/rpi/xorg.conf.d/10-evdev.conf

Andreas