[Bug 196678] x11-servers/xorg-server: Update to 1.20.7 + make config/devd recognize /dev/input/eventX from multimedia/webcamd

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Tue Apr 7 09:13:12 UTC 2020


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=196678

--- Comment #181 from shadow53+freebsd at shadow53.com ---
I'm not sure whether this bug is the best place to put this, but it seems
related enough. If it should go elsewhere, let me know.

I'm trying to use my Logitech F310 with the updated xorg-server, libinput, and
SDL2 on 12.1-RELEASE-p3. SDL2 does not recognize the device as a
joystick/gamepad, and a little bit of digging makes me think xorg is having
some related issues.

The F310 has a switch that allows you to toggle between XInput and Direct Input
modes. XInput just is not recognized:

/var/log/Xorg.0.log
-------------------
[   104.266] (II) config/udev: Adding input device Logitech Gamepad F310
(/dev/i
nput/event3)
[   104.266] (II) No input driver specified, ignoring this device.
[   104.266] (II) This device may have been added with another device file.

Direct input is recognized as a pointer device and the left thumbstick can be
used to move the mouse pointer on screen, but nothing else works. Running
'libinput debug-events' shows that it does not recognize the d-pad at all, but
the other buttons cause an error like the following on every button press and
release:

libinput bug: timer event3 debounce: offset more than 5s, now 2299831 expire
1404381708

I should note that I am running webcamd and it is able to attach to the F310 in
XInput mode, but it doesn't seem to help anything. I'm also using custom
packages built using Poudriere, so here are the port options for the relevant
packages I can think of:

devel/sdl2
----------
OPTIONS_FILE_UNSET+=ALSA
OPTIONS_FILE_SET+=ASM
OPTIONS_FILE_SET+=DLOPEN
OPTIONS_FILE_SET+=HIDAPI
OPTIONS_FILE_UNSET+=JACK
OPTIONS_FILE_UNSET+=NAS
OPTIONS_FILE_SET+=OSS
OPTIONS_FILE_SET+=PTHREADS
OPTIONS_FILE_SET+=PULSEAUDIO
OPTIONS_FILE_UNSET+=SAMPLERATE
OPTIONS_FILE_SET+=SDL_ATOMIC
OPTIONS_FILE_SET+=SDL_AUDIO
OPTIONS_FILE_SET+=SDL_CPUINFO
OPTIONS_FILE_SET+=SDL_EVENTS
OPTIONS_FILE_SET+=SDL_FILE
OPTIONS_FILE_SET+=SDL_HAPTIC
OPTIONS_FILE_SET+=SDL_JOYSTICK
OPTIONS_FILE_SET+=SDL_LOADSO
OPTIONS_FILE_SET+=SDL_POWER
OPTIONS_FILE_SET+=SDL_RENDER
OPTIONS_FILE_SET+=SDL_THREADS
OPTIONS_FILE_SET+=SDL_TIMERS
OPTIONS_FILE_SET+=SDL_VIDEO
OPTIONS_FILE_UNSET+=SNDIO
OPTIONS_FILE_SET+=UDEV
OPTIONS_FILE_SET+=VIDEO_KMSDRM
OPTIONS_FILE_SET+=VIDEO_OPENGL
OPTIONS_FILE_SET+=VIDEO_OPENGLES2
OPTIONS_FILE_SET+=VIDEO_WAYLAND
OPTIONS_FILE_SET+=VIDEO_X11

multimedia/webcamd
------------------
OPTIONS_FILE_SET+=COMPAT32
OPTIONS_FILE_UNSET+=DEBUG
OPTIONS_FILE_SET+=DVB
OPTIONS_FILE_SET+=HAL
OPTIONS_FILE_SET+=INPUT
OPTIONS_FILE_SET+=KEYBOARD
OPTIONS_FILE_SET+=MOUSE
OPTIONS_FILE_SET+=RADIO
OPTIONS_FILE_UNSET+=VT_CLIENT
OPTIONS_FILE_UNSET+=VT_SERVER
OPTIONS_FILE_SET+=WEBCAM

sysutils/uhidd
--------------
OPTIONS_FILE_SET+=DEVD

x11-servers/xorg-server
-----------------------
OPTIONS_FILE_SET+=FIXDRM
OPTIONS_FILE_SET+=SUID
OPTIONS_FILE_UNSET+=DEVD
OPTIONS_FILE_SET+=UDEV


I do not have an options file for x11-drivers/xf86-input-libinput, so I assume
that means it is using default options?

I also even tried the patch for SDL2 at
https://forums.freebsd.org/threads/joystick-api.72643/#post-456120 but that
didn't work.

As I mentioned above, I'm putting this here because I *think* it is related to
Xorg's use of udev/evdev, but I'm really not familiar enough with the
technologies to be sure. I can post this as a separate bug if needed. Either
way, I can help debug the above libinput error and test any potential
solutions.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-x11 mailing list