[Bug 222609] x11-servers/xorg-server: Add UDEV option to support evdev devices autodetection

classic Classic list List threaded Threaded
34 messages Options
12
Reply | Threaded
Open this post in threaded view
|

[Bug 222609] x11-servers/xorg-server: Add UDEV option to support evdev devices autodetection

bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=222609

            Bug ID: 222609
           Summary: x11-servers/xorg-server: Add UDEV option to support
                    evdev devices autodetection
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: [hidden email]
          Reporter: [hidden email]
             Flags: maintainer-feedback?([hidden email])
          Assignee: [hidden email]

Created attachment 186724
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=186724&action=edit
xorg-server-udev.patch

This patch allows Xorg to be built with libudev-devd support, which allows
automatic detection of /dev/input/* (evdev) devices, supported by
xf86-input-libinput or xf86-input-evdev.

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-x11
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

maintainer-feedback requested: [Bug 222609] x11-servers/xorg-server: Add UDEV option to support evdev devices autodetection

bugzilla-noreply
Greg V <[hidden email]> has reassigned Bugzilla Automation
<[hidden email]>'s request for maintainer-feedback to [hidden email]:
Bug 222609: x11-servers/xorg-server: Add UDEV option to support evdev devices
autodetection
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=222609



--- Description ---
Created attachment 186724
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=186724&action=edit
xorg-server-udev.patch

This patch allows Xorg to be built with libudev-devd support, which allows
automatic detection of /dev/input/* (evdev) devices, supported by
xf86-input-libinput or xf86-input-evdev.
_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-x11
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

[Bug 222609] x11-servers/xorg-server: Add UDEV option to support evdev devices autodetection

bugzilla-noreply
In reply to this post by bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=222609

Jean-Sébastien Pédron <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[hidden email]

--- Comment #1 from Jean-Sébastien Pédron <[hidden email]> ---
Hi!

I tried your patch + drm-next and it's working quite nicely!

I used xf86-input-libinput to drive a Synaptics touchpad (Thinkpad T440p) and
an external USB mouse, and xf86-input-evdev to drive the internal keyboard of
the laptop and an external USB keyboard.

I couldn't get the keyboard to work with xf86-input-libinput, even though
correct events are reported by libinput-debug-events(1). With xf86-input-evdev,
it looks ok, though with the internal keyboard, the "less than/greater than"
key doesn't emit any event. I didn't check if the same issue exists with the
external keyboard. They are a few other bugs with the touchpad as well, but
it's still better than without libinput.

I don't know if it was necessary, but I added InputClass blocks to ignore other
devices, like duplicates (/dev/{psm,sysmouse,atkbd,kbdmux}* vs /dev/event/*).

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-x11
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

[Bug 222609] x11-servers/xorg-server: Add UDEV option to support evdev devices autodetection

bugzilla-noreply
In reply to this post by bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=222609

--- Comment #2 from Greg V <[hidden email]> ---
(In reply to Jean-Sébastien Pédron from comment #1)
It's not necessary, libudev-devd only discovers /dev/input/event* devices.

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-x11
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

[Bug 222609] x11-servers/xorg-server: Add UDEV option to support evdev devices autodetection

bugzilla-noreply
In reply to this post by bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=222609

Vladimir Kondratyev <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[hidden email]

--- Comment #3 from Vladimir Kondratyev <[hidden email]> ---
(In reply to Greg V from comment #0)
Slightly enhanced version of this patch was to included into XOrg update to
version 1.19.3 but it has not hit ports tree yet for unknown reasons:
https://lists.freebsd.org/pipermail/freebsd-x11/2017-March/019100.html

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-x11
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

[Bug 222609] x11-servers/xorg-server: Add UDEV option to support evdev devices autodetection

bugzilla-noreply
In reply to this post by bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=222609

--- Comment #4 from Greg V <[hidden email]> ---
(In reply to Vladimir Kondratyev from comment #3)
Hmm! "The devd config backend has been updated to handle /dev/hidX and
/dev/input/eventX devices as provided by webcamd" — I wonder how *that*
interacts with evdev devices from the kernel and handling duplicates in that
case…

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-x11
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

[Bug 222609] x11-servers/xorg-server: Add UDEV option to support evdev devices autodetection

bugzilla-noreply
In reply to this post by bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=222609

--- Comment #5 from Vladimir Kondratyev <[hidden email]> ---
(In reply to Jean-Sébastien Pédron from comment #1)
> I couldn't get the keyboard to work with xf86-input-libinput

IIRC, libinput requires "xkb_rules" set to "evdev" explicitly

Try to add lines below to your xorg.conf after this patch has been applied:
Section "InputClass"
       Identifier              "Evdev keyboard XkbRules"
       MatchDevicePath         "/dev/input/event*"
       MatchIsKeyboard         "on"
       Option                  "XkbRules" "evdev"
EndSection

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-x11
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

[Bug 222609] x11-servers/xorg-server: Add UDEV option to support evdev devices autodetection

bugzilla-noreply
In reply to this post by bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=222609

--- Comment #6 from Vladimir Kondratyev <[hidden email]> ---
(In reply to Greg V from comment #4)
> I wonder how *that* interacts with evdev devices from the kernel and handling duplicates in that case
webcamd inter-operates with inkernel evdev-capable drivers almost perfectly. It
just disables kernel driver at attach (but not restores it at detach). It has
support for free /dev/input/* character device units detection and has the same
API.

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-x11
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

[Bug 222609] x11-servers/xorg-server: Add UDEV option to support evdev devices autodetection

bugzilla-noreply
In reply to this post by bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=222609

--- Comment #7 from Vladimir Kondratyev <[hidden email]> ---
(In reply to Vladimir Kondratyev from comment #3)
> Slightly enhanced version of this patch was to included into XOrg update to version 1.19.3
I should mention that 1.19.3 update patches are made for kernel compiled w/o
option EVDEV_SUPPORT. They require some additional work to properly handle
kernels compiled with this option enabled.

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-x11
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

[Bug 222609] x11-servers/xorg-server: Add UDEV option to support evdev devices autodetection

bugzilla-noreply
In reply to this post by bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=222609

Ivan <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[hidden email]

--- Comment #8 from Ivan <[hidden email]> ---
Do we need CURRENT for testing ? I'm not sure I have /dev/input on my laptop
with 11.1-RELEASE generic kernel.

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-x11
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

[Bug 222609] x11-servers/xorg-server: Add UDEV option to support evdev devices autodetection

bugzilla-noreply
In reply to this post by bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=222609

--- Comment #9 from Greg V <[hidden email]> ---
(In reply to Ivan from comment #8)
I think some evdev stuff might have landed in 11, but you need to recompile
your kernel with 'device evdev' and 'options EVDEV_SUPPORT'. (Or kldload evdev
instead of compiling in the device I guess??)

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-x11
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

[Bug 222609] x11-servers/xorg-server: Add UDEV option to support evdev devices autodetection

bugzilla-noreply
In reply to this post by bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=222609

--- Comment #10 from Ivan <[hidden email]> ---
kldload evdev doesn't bring /dev/input node up for me, but custom kernel is.
Proceeding to test now. :)
How can I discover what device every eventX represents?

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-x11
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

[Bug 222609] x11-servers/xorg-server: Add UDEV option to support evdev devices autodetection

bugzilla-noreply
In reply to this post by bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=222609

--- Comment #11 from Greg V <[hidden email]> ---
(In reply to Ivan from comment #10)
Yeah, you need EVDEV_SUPPORT to enable the evdev support in the actual drivers
(ums, ukbd, psm, etc.)

Use libinput-list-devices to list devices

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-x11
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

[Bug 222609] x11-servers/xorg-server: Add UDEV option to support evdev devices autodetection

bugzilla-noreply
In reply to this post by bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=222609

--- Comment #12 from Ivan <[hidden email]> ---
I see echo from keys I pressing. It starts from the left top and proceeds to
right bottom, as if I write text with editor. When I hit enter here, echo makes
CR as well.
I use libinput driver.

Also, I've noticed that arrow keys are not working (but emitting something as
echo)

Synaptics touchpad in not working as well.

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-x11
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

[Bug 222609] x11-servers/xorg-server: Add UDEV option to support evdev devices autodetection

bugzilla-noreply
In reply to this post by bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=222609

--- Comment #13 from Ivan <[hidden email]> ---
Created attachment 187100
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=187100&action=edit
xorg log

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-x11
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

[Bug 222609] x11-servers/xorg-server: Add UDEV option to support evdev devices autodetection

bugzilla-noreply
In reply to this post by bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=222609

--- Comment #14 from Greg V <[hidden email]> ---
(In reply to Ivan from comment #12)
Make sure you have kern.evdev.rcpt_mask=12 to get events from psm/ums/ukbd
instead of sysmouse/kbdmux.

For arrow keys, make sure you have the evdev XKB ruleset (setxkbmap -rules
evdev).

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-x11
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

[Bug 222609] x11-servers/xorg-server: Add UDEV option to support evdev devices autodetection

bugzilla-noreply
In reply to this post by bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=222609

--- Comment #15 from Ivan <[hidden email]> ---
Created attachment 187101
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=187101&action=edit
device list

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-x11
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

[Bug 222609] x11-servers/xorg-server: Add UDEV option to support evdev devices autodetection

bugzilla-noreply
In reply to this post by bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=222609

--- Comment #16 from Ivan <[hidden email]> ---
I set sysctl option and evdev rules. Arrow keys are fixed now.
Touchpad is not working. I have /dev/psm0 and hw.psm.synaptics_support=1 in
loader.conf
And, echoing input is a show breaker.

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-x11
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

[Bug 222609] x11-servers/xorg-server: Add UDEV option to support evdev devices autodetection

bugzilla-noreply
In reply to this post by bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=222609

--- Comment #17 from Greg V <[hidden email]> ---
(In reply to Ivan from comment #16)
Synaptics works for me… You don't even have the /dev/input device for it,
that's weird. If you built your kernel with EVDEV_SUPPORT, psm should create an
evdev device.

I don't understand what you mean by "echo"…

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-x11
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

[Bug 222609] x11-servers/xorg-server: Add UDEV option to support evdev devices autodetection

bugzilla-noreply
In reply to this post by bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=222609

--- Comment #18 from Ivan <[hidden email]> ---
http://i.imgur.com/YzxZ225.png
When I type something, I see phantom output. It reflects all my actions, like
console under by X11 session. I never see this effect before with legacy
xf86-input drivers.

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-x11
To unsubscribe, send any mail to "[hidden email]"
12