Discussion:
webcamd based touchscreen problem on Pi3
(too old to reply)
Bernd Walter
2018-03-08 16:16:45 UTC
Permalink
Hardware is a Raspberry Pi3 with current r330034.
I'm trying to run a USB touchscreen.
Tested wmt and uep, but neither wants to attach, although the Waveshare
display I'm using is likely running an egalaxy firmware.
However webcamd accepts the device and creates a /dev/input/event0.
But I can't get X to use it.
xf86-input-evdev-2.10.5 is installed and it created an X config file
under /usr/local/share/X11/xorg.conf.d/10-evdev.conf.
I also tried some google results in /etc/X11/xorg.conf, but X never
touches the device:
[ 19417.932]
X.Org X Server 1.18.4
Release Date: 2016-07-19
[ 19417.932] X Protocol Version 11, Revision 0
[ 19417.932] Build Operating System: FreeBSD 12.0-CURRENT arm64
[ 19417.932] Current Operating System: FreeBSD sa 12.0-CURRENT FreeBSD 12.0-CURRENT #0: Mon Mar 5 16:28:19 UTC 2018 ***@sa:/usr/obj/usr/src-nfs/builder/current-anlage/head/arm64.aarch64/sys/GENERIC arm64
[ 19417.933] Build Date: 19 January 2018 09:58:28PM
[ 19417.934]
[ 19417.934] Current version of pixman: 0.34.0
[ 19417.934] Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
[ 19417.934] Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[ 19417.934] (==) Log file: "/var/log/Xorg.0.log", Time: Wed Mar 7 15:59:15 2018
[ 19417.935] (==) Using config file: "/etc/X11/xorg.conf"
[ 19417.935] (==) Using system config directory "/usr/local/share/X11/xorg.conf.d"
[ 19417.936] (==) No Layout section. Using the first Screen section.
[ 19417.936] (==) No screen section available. Using defaults.
[ 19417.936] (**) |-->Screen "Default Screen Section" (0)
[ 19417.936] (**) | |-->Monitor "<default monitor>"
[ 19417.937] (==) No monitor specified for screen "Default Screen Section".
Using a default monitor configuration.
[ 19417.938] (==) Automatically adding devices
[ 19417.938] (==) Automatically enabling devices
[ 19417.938] (==) Not automatically adding GPU devices
[ 19417.938] (==) Max clients allowed: 256, resource mask: 0x1fffff
[ 19417.938] (==) FontPath set to:
/usr/local/share/fonts/misc/,
/usr/local/share/fonts/TTF/,
/usr/local/share/fonts/OTF/,
/usr/local/share/fonts/Type1/,
/usr/local/share/fonts/100dpi/,
/usr/local/share/fonts/75dpi/
[ 19417.938] (==) ModulePath set to "/usr/local/lib/xorg/modules"
[ 19417.938] (II) The server relies on devd to provide the list of input devices.
If no devices become available, reconfigure devd or disable AutoAddDevices.
[ 19417.938] (II) Loader magic: 0x1e0018
[ 19417.939] (II) Module ABI versions:
[ 19417.939] X.Org ANSI C Emulation: 0.4
[ 19417.939] X.Org Video Driver: 20.0
[ 19417.939] X.Org XInput driver : 22.1
[ 19417.939] X.Org Server Extension : 9.0
[ 19417.939] (II) LoadModule: "glx"
[ 19417.940] (II) Loading /usr/local/lib/xorg/modules/extensions/libglx.so
[ 19417.951] (II) Module glx: vendor="X.Org Foundation"
[ 19417.951] compiled for 1.18.4, module version = 1.0.0
[ 19417.951] ABI class: X.Org Server Extension, version 9.0
[ 19417.951] (==) AIGLX enabled
[ 19417.951] (==) Matched modesetting as autoconfigured driver 0
[ 19417.951] (==) Matched scfb as autoconfigured driver 1
[ 19417.951] (==) Assigned the driver to the xf86ConfigLayout
[ 19417.951] (II) LoadModule: "modesetting"
[ 19417.952] (II) Loading /usr/local/lib/xorg/modules/drivers/modesetting_drv.so
[ 19417.952] (II) Module modesetting: vendor="X.Org Foundation"
[ 19417.952] compiled for 1.18.4, module version = 1.18.4
[ 19417.952] Module class: X.Org Video Driver
[ 19417.952] ABI class: X.Org Video Driver, version 20.0
[ 19417.952] (II) LoadModule: "scfb"
[ 19417.953] (II) Loading /usr/local/lib/xorg/modules/drivers/scfb_drv.so
[ 19417.953] (II) Module scfb: vendor="X.Org Foundation"
[ 19417.953] compiled for 1.18.4, module version = 0.0.4
[ 19417.953] ABI class: X.Org Video Driver, version 20.0
[ 19417.954] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[ 19417.954] (II) scfb: driver for wsdisplay framebuffer: scfb
[ 19417.954] (--) Using syscons driver with X support (version 2.0)
[ 19417.954] (--) using VT number 2

[ 19417.954] (WW) Falling back to old probe method for modesetting
[ 19417.955] (EE) open /dev/dri/card0: No such file or directory
[ 19417.955] (WW) Falling back to old probe method for scfb
[ 19417.955] scfb trace: probe start
[ 19417.955] (II) scfb(0): using default device
[ 19417.955] scfb trace: probe done
[ 19417.955] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
[ 19417.955] scfb: PreInit 0
[ 19417.955] (II) scfb(0): Using: depth (24), width (1280), height (800)
[ 19417.956] (II) scfb(0): Creating default Display subsection in Screen section
"Default Screen Section" for depth/fbbpp 24/24
[ 19417.956] (==) scfb(0): Depth 24, (==) framebuffer bpp 24
[ 19417.956] (==) scfb(0): RGB weight 888
[ 19417.956] (==) scfb(0): Default visual is TrueColor
[ 19417.956] (==) scfb(0): Using gamma correction (1.0, 1.0, 1.0)
[ 19417.956] (II) scfb(0): Vidmem: 3000k
[ 19417.956] (==) scfb(0): DPI set to (96, 96)
[ 19417.956] (**) scfb(0): Using "Shadow Framebuffer"
[ 19417.956] (II) Loading sub module "shadow"
[ 19417.956] (II) LoadModule: "shadow"
[ 19417.957] (II) Loading /usr/local/lib/xorg/modules/libshadow.so
[ 19417.958] (II) Module shadow: vendor="X.Org Foundation"
[ 19417.958] compiled for 1.18.4, module version = 1.1.0
[ 19417.958] ABI class: X.Org ANSI C Emulation, version 0.4
[ 19417.958] (II) Loading sub module "fb"
[ 19417.958] (II) LoadModule: "fb"
[ 19417.958] (II) Loading /usr/local/lib/xorg/modules/libfb.so
[ 19417.960] (II) Module fb: vendor="X.Org Foundation"
[ 19417.960] compiled for 1.18.4, module version = 1.0.0
[ 19417.961] ABI class: X.Org ANSI C Emulation, version 0.4
[ 19417.961] scfb: PreInit done
[ 19417.961] (II) UnloadModule: "modesetting"
[ 19417.961] (II) Unloading modesetting
[ 19417.961] (--) Depth 24 pixmap format is 24 bpp
[ 19417.961] scfb: ScfbScreenInit 0
[ 19417.961] bitsPerPixel=24, depth=24, defaultVisual=TrueColor
mask: ff0000,ff00,ff, offset: 16,8,0
[ 19417.962] mmap returns: addr 0x41abb000 len 0x2ee000, fd 5, off 0
[ 19417.962] scfb: ScfbSave 0
[ 19417.962] scfb: ScfbSave done
[ 19417.963] (==) scfb(0): Backing store enabled
[ 19417.963] scfb: ScfbScreenInit done
[ 19417.963] (==) RandR enabled
[ 19417.964] (II) AIGLX: Screen 0 is not DRI2 capable
[ 19417.964] (EE) AIGLX: reverting to software rendering
[ 19418.375] (II) AIGLX: enabled GLX_MESA_copy_sub_buffer
[ 19418.382] (II) AIGLX: Loaded and initialized swrast
[ 19418.382] (II) GLX: Initialized DRISWRAST GL provider for screen 0
[ 19419.556] (II) config/devd: probing input devices...
[ 19419.556] (II) config/devd: adding input device (null) (/dev/kbdmux)
[ 19419.556] (II) LoadModule: "kbd"
[ 19419.558] (II) Loading /usr/local/lib/xorg/modules/input/kbd_drv.so
[ 19419.558] (II) Module kbd: vendor="X.Org Foundation"
[ 19419.558] compiled for 1.18.4, module version = 1.9.0
[ 19419.558] Module class: X.Org XInput Driver
[ 19419.559] ABI class: X.Org XInput driver, version 22.1
[ 19419.559] (II) Using input driver 'kbd' for 'kbdmux'
[ 19419.559] (**) kbdmux: always reports core events
[ 19419.559] (**) kbdmux: always reports core events
[ 19419.559] (**) Option "Protocol" "standard"
[ 19419.559] (**) Option "XkbRules" "base"
[ 19419.559] (**) Option "XkbModel" "pc105"
[ 19419.559] (**) Option "XkbLayout" "us"
[ 19419.559] (**) Option "config_info" "devd:kbdmux"
[ 19419.560] (II) XINPUT: Adding extended input device "kbdmux" (type: KEYBOARD, id 6)
[ 19419.562] (II) config/devd: adding input device (null) (/dev/sysmouse)
[ 19419.562] (II) LoadModule: "mouse"
[ 19419.563] (II) Loading /usr/local/lib/xorg/modules/input/mouse_drv.so
[ 19419.564] (II) Module mouse: vendor="X.Org Foundation"
[ 19419.564] compiled for 1.18.4, module version = 1.9.2
[ 19419.564] Module class: X.Org XInput Driver
[ 19419.564] ABI class: X.Org XInput driver, version 22.1
[ 19419.564] (II) Using input driver 'mouse' for 'sysmouse'
[ 19419.565] (**) sysmouse: always reports core events
[ 19419.565] (**) Option "Device" "/dev/sysmouse"
[ 19419.565] (==) sysmouse: Protocol: "Auto"
[ 19419.565] (**) sysmouse: always reports core events
[ 19419.565] (==) sysmouse: Emulate3Buttons, Emulate3Timeout: 50
[ 19419.565] (**) sysmouse: ZAxisMapping: buttons 4 and 5
[ 19419.565] (**) sysmouse: Buttons: 5
[ 19419.565] (**) Option "config_info" "devd:sysmouse"
[ 19419.566] (II) XINPUT: Adding extended input device "sysmouse" (type: MOUSE, id 7)
[ 19419.566] (**) sysmouse: (accel) keeping acceleration scheme 1
[ 19419.566] (**) sysmouse: (accel) acceleration profile 0
[ 19419.566] (**) sysmouse: (accel) acceleration factor: 2.000
[ 19419.566] (**) sysmouse: (accel) acceleration threshold: 4
[ 19419.567] (II) sysmouse: SetupAuto: hw.iftype is 4, hw.model is 0
[ 19419.567] (II) sysmouse: SetupAuto: protocol is SysMouse
[ 19419.567] (II) config/devd: device /dev/ums0 already opened

[67]sa# grep webcam /etc/rc.conf
webcamd_enable="YES"
webcamd_0_flags="-N BYZHYYZHY-By-ZH851 -M 0"
#webcamd [-d ugen0.5] -N BYZHYYZHY-By-ZH851 -S P39112398 -M 0
[68]sa# ps -axl | grep webcam
0 592 1 0 -44 0 21736 1580 cuse-ser I<s - 0:08.99 /usr/local/sbin/webcamd -N BYZHYYZHY-By-ZH851 -M 0 -B -U webcamd -G webcamd
0 10267 738 0 21 0 11560 2640 - R+ 1 0:00.01 grep webcam
[69]sa# ls -la /dev/input/event0
crw-rw---- 1 webcamd webcamd 0x6c Mar 7 10:35 /dev/input/event0
--
B.Walter <***@bwct.de> http://www.bwct.de
Modbus/TCP Ethernet I/O Baugruppen, ARM basierte FreeBSD Rechner uvm.
Hans Petter Selasky
2018-03-08 16:20:22 UTC
Permalink
Post by Bernd Walter
Hardware is a Raspberry Pi3 with current r330034.
I'm trying to run a USB touchscreen.
Tested wmt and uep, but neither wants to attach, although the Waveshare
display I'm using is likely running an egalaxy firmware.
However webcamd accepts the device and creates a /dev/input/event0.
But I can't get X to use it.
xf86-input-evdev-2.10.5 is installed and it created an X config file
under /usr/local/share/X11/xorg.conf.d/10-evdev.conf.
I also tried some google results in /etc/X11/xorg.conf, but X never
[ 19417.932]
X.Org X Server 1.18.4
Release Date: 2016-07-19
[ 19417.932] X Protocol Version 11, Revision 0
[ 19417.932] Build Operating System: FreeBSD 12.0-CURRENT arm64
[ 19417.933] Build Date: 19 January 2018 09:58:28PM
[ 19417.934]
[ 19417.934] Current version of pixman: 0.34.0
[ 19417.934] Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
[ 19417.934] Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[ 19417.934] (==) Log file: "/var/log/Xorg.0.log", Time: Wed Mar 7 15:59:15 2018
[ 19417.935] (==) Using config file: "/etc/X11/xorg.conf"
[ 19417.935] (==) Using system config directory "/usr/local/share/X11/xorg.conf.d"
[ 19417.936] (==) No Layout section. Using the first Screen section.
[ 19417.936] (==) No screen section available. Using defaults.
[ 19417.936] (**) |-->Screen "Default Screen Section" (0)
[ 19417.936] (**) | |-->Monitor "<default monitor>"
[ 19417.937] (==) No monitor specified for screen "Default Screen Section".
Using a default monitor configuration.
[ 19417.938] (==) Automatically adding devices
[ 19417.938] (==) Automatically enabling devices
[ 19417.938] (==) Not automatically adding GPU devices
[ 19417.938] (==) Max clients allowed: 256, resource mask: 0x1fffff
/usr/local/share/fonts/misc/,
/usr/local/share/fonts/TTF/,
/usr/local/share/fonts/OTF/,
/usr/local/share/fonts/Type1/,
/usr/local/share/fonts/100dpi/,
/usr/local/share/fonts/75dpi/
[ 19417.938] (==) ModulePath set to "/usr/local/lib/xorg/modules"
[ 19417.938] (II) The server relies on devd to provide the list of input devices.
If no devices become available, reconfigure devd or disable AutoAddDevices.
[ 19417.938] (II) Loader magic: 0x1e0018
[ 19417.939] X.Org ANSI C Emulation: 0.4
[ 19417.939] X.Org Video Driver: 20.0
[ 19417.939] X.Org XInput driver : 22.1
[ 19417.939] X.Org Server Extension : 9.0
[ 19417.939] (II) LoadModule: "glx"
[ 19417.940] (II) Loading /usr/local/lib/xorg/modules/extensions/libglx.so
[ 19417.951] (II) Module glx: vendor="X.Org Foundation"
[ 19417.951] compiled for 1.18.4, module version = 1.0.0
[ 19417.951] ABI class: X.Org Server Extension, version 9.0
[ 19417.951] (==) AIGLX enabled
[ 19417.951] (==) Matched modesetting as autoconfigured driver 0
[ 19417.951] (==) Matched scfb as autoconfigured driver 1
[ 19417.951] (==) Assigned the driver to the xf86ConfigLayout
[ 19417.951] (II) LoadModule: "modesetting"
[ 19417.952] (II) Loading /usr/local/lib/xorg/modules/drivers/modesetting_drv.so
[ 19417.952] (II) Module modesetting: vendor="X.Org Foundation"
[ 19417.952] compiled for 1.18.4, module version = 1.18.4
[ 19417.952] Module class: X.Org Video Driver
[ 19417.952] ABI class: X.Org Video Driver, version 20.0
[ 19417.952] (II) LoadModule: "scfb"
[ 19417.953] (II) Loading /usr/local/lib/xorg/modules/drivers/scfb_drv.so
[ 19417.953] (II) Module scfb: vendor="X.Org Foundation"
[ 19417.953] compiled for 1.18.4, module version = 0.0.4
[ 19417.953] ABI class: X.Org Video Driver, version 20.0
[ 19417.954] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[ 19417.954] (II) scfb: driver for wsdisplay framebuffer: scfb
[ 19417.954] (--) Using syscons driver with X support (version 2.0)
[ 19417.954] (--) using VT number 2
[ 19417.954] (WW) Falling back to old probe method for modesetting
[ 19417.955] (EE) open /dev/dri/card0: No such file or directory
[ 19417.955] (WW) Falling back to old probe method for scfb
[ 19417.955] scfb trace: probe start
[ 19417.955] (II) scfb(0): using default device
[ 19417.955] scfb trace: probe done
[ 19417.955] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
[ 19417.955] scfb: PreInit 0
[ 19417.955] (II) scfb(0): Using: depth (24), width (1280), height (800)
[ 19417.956] (II) scfb(0): Creating default Display subsection in Screen section
"Default Screen Section" for depth/fbbpp 24/24
[ 19417.956] (==) scfb(0): Depth 24, (==) framebuffer bpp 24
[ 19417.956] (==) scfb(0): RGB weight 888
[ 19417.956] (==) scfb(0): Default visual is TrueColor
[ 19417.956] (==) scfb(0): Using gamma correction (1.0, 1.0, 1.0)
[ 19417.956] (II) scfb(0): Vidmem: 3000k
[ 19417.956] (==) scfb(0): DPI set to (96, 96)
[ 19417.956] (**) scfb(0): Using "Shadow Framebuffer"
[ 19417.956] (II) Loading sub module "shadow"
[ 19417.956] (II) LoadModule: "shadow"
[ 19417.957] (II) Loading /usr/local/lib/xorg/modules/libshadow.so
[ 19417.958] (II) Module shadow: vendor="X.Org Foundation"
[ 19417.958] compiled for 1.18.4, module version = 1.1.0
[ 19417.958] ABI class: X.Org ANSI C Emulation, version 0.4
[ 19417.958] (II) Loading sub module "fb"
[ 19417.958] (II) LoadModule: "fb"
[ 19417.958] (II) Loading /usr/local/lib/xorg/modules/libfb.so
[ 19417.960] (II) Module fb: vendor="X.Org Foundation"
[ 19417.960] compiled for 1.18.4, module version = 1.0.0
[ 19417.961] ABI class: X.Org ANSI C Emulation, version 0.4
[ 19417.961] scfb: PreInit done
[ 19417.961] (II) UnloadModule: "modesetting"
[ 19417.961] (II) Unloading modesetting
[ 19417.961] (--) Depth 24 pixmap format is 24 bpp
[ 19417.961] scfb: ScfbScreenInit 0
[ 19417.961] bitsPerPixel=24, depth=24, defaultVisual=TrueColor
mask: ff0000,ff00,ff, offset: 16,8,0
[ 19417.962] mmap returns: addr 0x41abb000 len 0x2ee000, fd 5, off 0
[ 19417.962] scfb: ScfbSave 0
[ 19417.962] scfb: ScfbSave done
[ 19417.963] (==) scfb(0): Backing store enabled
[ 19417.963] scfb: ScfbScreenInit done
[ 19417.963] (==) RandR enabled
[ 19417.964] (II) AIGLX: Screen 0 is not DRI2 capable
[ 19417.964] (EE) AIGLX: reverting to software rendering
[ 19418.375] (II) AIGLX: enabled GLX_MESA_copy_sub_buffer
[ 19418.382] (II) AIGLX: Loaded and initialized swrast
[ 19418.382] (II) GLX: Initialized DRISWRAST GL provider for screen 0
[ 19419.556] (II) config/devd: probing input devices...
[ 19419.556] (II) config/devd: adding input device (null) (/dev/kbdmux)
[ 19419.556] (II) LoadModule: "kbd"
[ 19419.558] (II) Loading /usr/local/lib/xorg/modules/input/kbd_drv.so
[ 19419.558] (II) Module kbd: vendor="X.Org Foundation"
[ 19419.558] compiled for 1.18.4, module version = 1.9.0
[ 19419.558] Module class: X.Org XInput Driver
[ 19419.559] ABI class: X.Org XInput driver, version 22.1
[ 19419.559] (II) Using input driver 'kbd' for 'kbdmux'
[ 19419.559] (**) kbdmux: always reports core events
[ 19419.559] (**) kbdmux: always reports core events
[ 19419.559] (**) Option "Protocol" "standard"
[ 19419.559] (**) Option "XkbRules" "base"
[ 19419.559] (**) Option "XkbModel" "pc105"
[ 19419.559] (**) Option "XkbLayout" "us"
[ 19419.559] (**) Option "config_info" "devd:kbdmux"
[ 19419.560] (II) XINPUT: Adding extended input device "kbdmux" (type: KEYBOARD, id 6)
[ 19419.562] (II) config/devd: adding input device (null) (/dev/sysmouse)
[ 19419.562] (II) LoadModule: "mouse"
[ 19419.563] (II) Loading /usr/local/lib/xorg/modules/input/mouse_drv.so
[ 19419.564] (II) Module mouse: vendor="X.Org Foundation"
[ 19419.564] compiled for 1.18.4, module version = 1.9.2
[ 19419.564] Module class: X.Org XInput Driver
[ 19419.564] ABI class: X.Org XInput driver, version 22.1
[ 19419.564] (II) Using input driver 'mouse' for 'sysmouse'
[ 19419.565] (**) sysmouse: always reports core events
[ 19419.565] (**) Option "Device" "/dev/sysmouse"
[ 19419.565] (==) sysmouse: Protocol: "Auto"
[ 19419.565] (**) sysmouse: always reports core events
[ 19419.565] (==) sysmouse: Emulate3Buttons, Emulate3Timeout: 50
[ 19419.565] (**) sysmouse: ZAxisMapping: buttons 4 and 5
[ 19419.565] (**) sysmouse: Buttons: 5
[ 19419.565] (**) Option "config_info" "devd:sysmouse"
[ 19419.566] (II) XINPUT: Adding extended input device "sysmouse" (type: MOUSE, id 7)
[ 19419.566] (**) sysmouse: (accel) keeping acceleration scheme 1
[ 19419.566] (**) sysmouse: (accel) acceleration profile 0
[ 19419.566] (**) sysmouse: (accel) acceleration factor: 2.000
[ 19419.566] (**) sysmouse: (accel) acceleration threshold: 4
[ 19419.567] (II) sysmouse: SetupAuto: hw.iftype is 4, hw.model is 0
[ 19419.567] (II) sysmouse: SetupAuto: protocol is SysMouse
[ 19419.567] (II) config/devd: device /dev/ums0 already opened
[67]sa# grep webcam /etc/rc.conf
webcamd_enable="YES"
webcamd_0_flags="-N BYZHYYZHY-By-ZH851 -M 0"
#webcamd [-d ugen0.5] -N BYZHYYZHY-By-ZH851 -S P39112398 -M 0
[68]sa# ps -axl | grep webcam
0 592 1 0 -44 0 21736 1580 cuse-ser I<s - 0:08.99 /usr/local/sbin/webcamd -N BYZHYYZHY-By-ZH851 -M 0 -B -U webcamd -G webcamd
0 10267 738 0 21 0 11560 2640 - R+ 1 0:00.01 grep webcam
[69]sa# ls -la /dev/input/event0
crw-rw---- 1 webcamd webcamd 0x6c Mar 7 10:35 /dev/input/event0
See here:

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

--HPS
Greg
2018-03-08 16:30:26 UTC
Permalink
Post by Hans Petter Selasky
Post by Bernd Walter
Hardware is a Raspberry Pi3 with current r330034.
I'm trying to run a USB touchscreen.
Tested wmt and uep, but neither wants to attach, although the Waveshare
display I'm using is likely running an egalaxy firmware.
However webcamd accepts the device and creates a /dev/input/event0.
But I can't get X to use it.
xf86-input-evdev-2.10.5 is installed and it created an X config file
under /usr/local/share/X11/xorg.conf.d/10-evdev.conf.
I also tried some google results in /etc/X11/xorg.conf, but X never
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=196678
Or here:

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

But that's all about hotplug. It is definitely possible to manually
configure the device on the stock xorg-server package. I can't say if
the "google results" are correct without actually seeing them, but it
should explicitly specify the /dev/input/event0 path.
Bernd Walter
2018-03-08 19:11:31 UTC
Permalink
Post by Greg
Post by Hans Petter Selasky
Post by Bernd Walter
Hardware is a Raspberry Pi3 with current r330034.
I'm trying to run a USB touchscreen.
Tested wmt and uep, but neither wants to attach, although the Waveshare
display I'm using is likely running an egalaxy firmware.
However webcamd accepts the device and creates a /dev/input/event0.
But I can't get X to use it.
xf86-input-evdev-2.10.5 is installed and it created an X config file
under /usr/local/share/X11/xorg.conf.d/10-evdev.conf.
I also tried some google results in /etc/X11/xorg.conf, but X never
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=196678
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=222609
But that's all about hotplug. It is definitely possible to manually
configure the device on the stock xorg-server package. I can't say if
the "google results" are correct without actually seeing them, but it
should explicitly specify the /dev/input/event0 path.
Thank you both for the links.
I'd already seen them and had been a bit confused if they are required or
not and also found references that a manual configuration should work.
Post by Greg
Roberto Fernandez-Cueto schrieb am 08.03.2018 17:36
_____________________________________________________________________
You have to explicitely tell Xorg that you want to use the touch with
the layout.
Something like,
Section "ServerLayout"
Identifier "MyLayout"
InputDevice "touchscreen"
EndSection
Thank you - this was the missing link, why my static configuration failed.
I'd only setup the InputDevice section.

This is what I have right now:
[20]sa# cat /etc/X11/xorg.conf

Section "InputDevice"
Identifier "Touchscreen"
Driver "evdev"
Option "Device" "/dev/input/event0"
EndSection

Section "ServerLayout"
Identifier "MyLayout"
InputDevice "Touchscreen"
EndSection


Unfortunately now I face the next problem.

[112753.535] (II) Using input driver 'evdev' for 'evdev touchscreen'
[112753.536] (**) evdev touchscreen: always reports core events
[112753.536] (**) evdev: evdev touchscreen: Device: "/dev/input/event0"
[112753.598] (--) evdev: evdev touchscreen: Vendor 0xeef Product 0x5
[112753.598] (--) evdev: evdev touchscreen: Found absolute axes
[112753.598] (--) evdev: evdev touchscreen: Found absolute multitouch axes
[112753.598] (II) evdev: evdev touchscreen: No buttons found, faking one.
[112753.598] (--) evdev: evdev touchscreen: Found x and y absolute axes
[112753.598] (--) evdev: evdev touchscreen: Found absolute touchscreen
[112753.598] (II) evdev: evdev touchscreen: Configuring as touchscreen
[112753.598] (**) evdev: evdev touchscreen: YAxisMapping: buttons 4 and 5
[112753.598] (**) evdev: evdev touchscreen: EmulateWheelButton: 4, EmulateWheelInertia: 10, EmulateWheelTimeout: 200
[112753.598] (II) XINPUT: Adding extended input device "evdev touchscreen" (type: TOUCHSCREEN, id 6)
[112753.599] (II) evdev: evdev touchscreen: initialized for absolute axes.
[112753.600] (**) evdev touchscreen: (accel) keeping acceleration scheme 1
[112753.600] (**) evdev touchscreen: (accel) acceleration profile 0
[112753.600] (**) evdev touchscreen: (accel) acceleration factor: 2.000
[112753.600] (**) evdev touchscreen: (accel) acceleration threshold: 4
[112753.601] (WW) fcntl(6, F_SETOWN): Invalid argument

[26]sa-moeller> xinput
Virtual core pointer id=2 [master pointer (3)]
Virtual core XTEST pointer id=4 [slave pointer (2)]
Touchscreen id=6 [slave pointer (2)]
sysmouse id=8 [slave pointer (2)]
Virtual core keyboard id=3 [master keyboard (2)]
Virtual core XTEST keyboard id=5 [slave keyboard (3)]
kbdmux id=7 [slave keyboard (3)]

Everything looks good so far, at least in my eyes.
Well - wheel emulation and such sounds a bit strange, as if it is handled
as a touchpad and not like a touchscreen.
But it says type touchscreen, so I assume that's ok.
However, I get no touch events.
I've started xev fullscreen and still nothing.

Somewhere else I've read that /dev/input/event0 should deliver something
if read and a touch happens, but this is not the case for me.

Any ideas how I can debug this thing?
There was a reference somewhere about a commandline programm to run against
an evdev, but I can't find it anymore.
--
B.Walter <***@bwct.de> http://www.bwct.de
Modbus/TCP Ethernet I/O Baugruppen, ARM basierte FreeBSD Rechner uvm.
Bernd Walter
2018-03-08 20:08:49 UTC
Permalink
Post by Bernd Walter
[20]sa# cat /etc/X11/xorg.conf
Section "InputDevice"
Identifier "Touchscreen"
Driver "evdev"
Option "Device" "/dev/input/event0"
EndSection
Section "ServerLayout"
Identifier "MyLayout"
InputDevice "Touchscreen"
EndSection
Unfortunately now I face the next problem.
[112753.535] (II) Using input driver 'evdev' for 'evdev touchscreen'
[112753.536] (**) evdev touchscreen: always reports core events
[112753.536] (**) evdev: evdev touchscreen: Device: "/dev/input/event0"
[112753.598] (--) evdev: evdev touchscreen: Vendor 0xeef Product 0x5
[112753.598] (--) evdev: evdev touchscreen: Found absolute axes
[112753.598] (--) evdev: evdev touchscreen: Found absolute multitouch axes
[112753.598] (II) evdev: evdev touchscreen: No buttons found, faking one.
[112753.598] (--) evdev: evdev touchscreen: Found x and y absolute axes
[112753.598] (--) evdev: evdev touchscreen: Found absolute touchscreen
[112753.598] (II) evdev: evdev touchscreen: Configuring as touchscreen
[112753.598] (**) evdev: evdev touchscreen: YAxisMapping: buttons 4 and 5
[112753.598] (**) evdev: evdev touchscreen: EmulateWheelButton: 4, EmulateWheelInertia: 10, EmulateWheelTimeout: 200
[112753.598] (II) XINPUT: Adding extended input device "evdev touchscreen" (type: TOUCHSCREEN, id 6)
[112753.599] (II) evdev: evdev touchscreen: initialized for absolute axes.
[112753.600] (**) evdev touchscreen: (accel) keeping acceleration scheme 1
[112753.600] (**) evdev touchscreen: (accel) acceleration profile 0
[112753.600] (**) evdev touchscreen: (accel) acceleration factor: 2.000
[112753.600] (**) evdev touchscreen: (accel) acceleration threshold: 4
[112753.601] (WW) fcntl(6, F_SETOWN): Invalid argument
[26]sa-moeller> xinput
Virtual core pointer id=2 [master pointer (3)]
Virtual core XTEST pointer id=4 [slave pointer (2)]
Touchscreen id=6 [slave pointer (2)]
sysmouse id=8 [slave pointer (2)]
Virtual core keyboard id=3 [master keyboard (2)]
Virtual core XTEST keyboard id=5 [slave keyboard (3)]
kbdmux id=7 [slave keyboard (3)]
Everything looks good so far, at least in my eyes.
Well - wheel emulation and such sounds a bit strange, as if it is handled
as a touchpad and not like a touchscreen.
But it says type touchscreen, so I assume that's ok.
However, I get no touch events.
I've started xev fullscreen and still nothing.
Somewhere else I've read that /dev/input/event0 should deliver something
if read and a touch happens, but this is not the case for me.
Any ideas how I can debug this thing?
There was a reference somewhere about a commandline programm to run against
an evdev, but I can't find it anymore.
xinput test delivers nothing on the touchscreen.

Neither evtest nor evdev-dump compiles because they are both missing
linux include files at some point.
https://cgit.freedesktop.org/~whot/evtest/
[48]sa> make
make all-am
cc -DHAVE_CONFIG_H -I. -g -O2 -MT evtest.o -MD -MP -MF .deps/evtest.Tpo -c -o evtest.o evtest.c
evtest.c:46:10: fatal error: 'linux/version.h' file not found
#include <linux/version.h>
^~~~~~~~~~~~~~~~~
1 error generated.
*** Error code 1

Stop.
make[1]: stopped in /home/ticso/evtest
*** Error code 1

Stop.
make: stopped in /home/ticso/evtest
Exit 1

https://github.com/gonzoua/evdev-dump/tree/freebsd
...
checking for unistd.h... yes
checking linux/input.h usability... no
checking linux/input.h presence... no
checking for linux/input.h... no
checking for /usr/include/linux/input.h... no
configure: error: /usr/include/linux/input.h not found
4.765u 3.954s 0:08.64 100.8% 31397+2201k 0+27io 0pf+0w
Exit 1

The touchscreen itself should be functional as it has a touch area outside
the display, which is interpreted by the USB controller to change the
backlight.
The exact same display also worked fine on Raspbian.
--
B.Walter <***@bwct.de> http://www.bwct.de
Modbus/TCP Ethernet I/O Baugruppen, ARM basierte FreeBSD Rechner uvm.
Oleksandr Tymoshenko
2018-03-08 20:38:38 UTC
Permalink
Post by Bernd Walter
https://github.com/gonzoua/evdev-dump/tree/freebsd
...
checking for unistd.h... yes
checking linux/input.h usability... no
checking linux/input.h presence... no
checking for linux/input.h... no
checking for /usr/include/linux/input.h... no
configure: error: /usr/include/linux/input.h not found
4.765u 3.954s 0:08.64 100.8% 31397+2201k 0+27io 0pf+0w
Exit 1
I've just checked, evdev-dump should be buildable:

git clone ***@github.com:gonzoua/evdev-dump.git
cd evdev-dump
git checkout freebsd
sudo pkg install gawk gmake
sh bootstrap
./configure
gmake
--
gonzo
Bernd Walter
2018-03-08 22:23:07 UTC
Permalink
Post by Oleksandr Tymoshenko
Post by Bernd Walter
https://github.com/gonzoua/evdev-dump/tree/freebsd
...
checking for unistd.h... yes
checking linux/input.h usability... no
checking linux/input.h presence... no
checking for linux/input.h... no
checking for /usr/include/linux/input.h... no
configure: error: /usr/include/linux/input.h not found
4.765u 3.954s 0:08.64 100.8% 31397+2201k 0+27io 0pf+0w
Exit 1
cd evdev-dump
git checkout freebsd
sudo pkg install gawk gmake
sh bootstrap
./configure
gmake
That's exactly how I did.
Well - I've used git clone https://github.com/gonzoua/evdev-dump.git
Even with a fresh clone it failed at the same file.

I have the following:
/usr/include/dev/evdev/input.h
/usr/local/include/linux/input.h
/usr/local/include/xorg/input.h
--
B.Walter <***@bwct.de> http://www.bwct.de
Modbus/TCP Ethernet I/O Baugruppen, ARM basierte FreeBSD Rechner uvm.
Oleksandr Tymoshenko
2018-03-08 22:29:44 UTC
Permalink
Post by Bernd Walter
Post by Oleksandr Tymoshenko
Post by Bernd Walter
https://github.com/gonzoua/evdev-dump/tree/freebsd
...
checking for unistd.h... yes
checking linux/input.h usability... no
checking linux/input.h presence... no
checking for linux/input.h... no
checking for /usr/include/linux/input.h... no
configure: error: /usr/include/linux/input.h not found
4.765u 3.954s 0:08.64 100.8% 31397+2201k 0+27io 0pf+0w
Exit 1
cd evdev-dump
git checkout freebsd
sudo pkg install gawk gmake
sh bootstrap
./configure
gmake
That's exactly how I did.
Well - I've used git clone https://github.com/gonzoua/evdev-dump.git
Even with a fresh clone it failed at the same file.
/usr/include/dev/evdev/input.h
/usr/local/include/linux/input.h
/usr/local/include/xorg/input.h
Could you show output of "git branch" and
"grep -rl /usr/include/linux/input.h ." in cloned directory?

Thanks
--
gonzo
Bernd Walter
2018-03-08 22:38:42 UTC
Permalink
Post by Oleksandr Tymoshenko
Post by Bernd Walter
Post by Oleksandr Tymoshenko
Post by Bernd Walter
https://github.com/gonzoua/evdev-dump/tree/freebsd
...
checking for unistd.h... yes
checking linux/input.h usability... no
checking linux/input.h presence... no
checking for linux/input.h... no
checking for /usr/include/linux/input.h... no
configure: error: /usr/include/linux/input.h not found
4.765u 3.954s 0:08.64 100.8% 31397+2201k 0+27io 0pf+0w
Exit 1
cd evdev-dump
git checkout freebsd
sudo pkg install gawk gmake
sh bootstrap
./configure
gmake
That's exactly how I did.
Well - I've used git clone https://github.com/gonzoua/evdev-dump.git
Even with a fresh clone it failed at the same file.
/usr/include/dev/evdev/input.h
/usr/local/include/linux/input.h
/usr/local/include/xorg/input.h
Could you show output of "git branch" and
"grep -rl /usr/include/linux/input.h ." in cloned directory?
[55]sa# git branch
* master
[56]sa# grep -rl /usr/include/linux/input.h .
./configure.ac
./autom4te.cache/output.0
./autom4te.cache/output.1
./configure
./config.log
--
B.Walter <***@bwct.de> http://www.bwct.de
Modbus/TCP Ethernet I/O Baugruppen, ARM basierte FreeBSD Rechner uvm.
Oleksandr Tymoshenko
2018-03-08 22:41:50 UTC
Permalink
Post by Bernd Walter
Post by Oleksandr Tymoshenko
Post by Bernd Walter
Post by Oleksandr Tymoshenko
Post by Bernd Walter
https://github.com/gonzoua/evdev-dump/tree/freebsd
...
checking for unistd.h... yes
checking linux/input.h usability... no
checking linux/input.h presence... no
checking for linux/input.h... no
checking for /usr/include/linux/input.h... no
configure: error: /usr/include/linux/input.h not found
4.765u 3.954s 0:08.64 100.8% 31397+2201k 0+27io 0pf+0w
Exit 1
cd evdev-dump
git checkout freebsd
sudo pkg install gawk gmake
sh bootstrap
./configure
gmake
That's exactly how I did.
Well - I've used git clone https://github.com/gonzoua/evdev-dump.git
Even with a fresh clone it failed at the same file.
/usr/include/dev/evdev/input.h
/usr/local/include/linux/input.h
/usr/local/include/xorg/input.h
Could you show output of "git branch" and
"grep -rl /usr/include/linux/input.h ." in cloned directory?
[55]sa# git branch
* master
[56]sa# grep -rl /usr/include/linux/input.h .
./configure.ac
./autom4te.cache/output.0
./autom4te.cache/output.1
./configure
./config.log
You need freebsd branch. master branch is unmodified
version of upstream, all my changes are on freebsd branch.

Run:

gmake clean
git checkout freebsd <- this step is important
sh bootstrap
./configure
gmake

Also you need bash installed, because original .h to .inc
conversion script uses some bash-isms.
--
gonzo
Bernd Walter
2018-03-08 22:58:34 UTC
Permalink
Post by Oleksandr Tymoshenko
Post by Bernd Walter
Post by Oleksandr Tymoshenko
Post by Bernd Walter
Post by Oleksandr Tymoshenko
Post by Bernd Walter
https://github.com/gonzoua/evdev-dump/tree/freebsd
...
checking for unistd.h... yes
checking linux/input.h usability... no
checking linux/input.h presence... no
checking for linux/input.h... no
checking for /usr/include/linux/input.h... no
configure: error: /usr/include/linux/input.h not found
4.765u 3.954s 0:08.64 100.8% 31397+2201k 0+27io 0pf+0w
Exit 1
cd evdev-dump
git checkout freebsd
sudo pkg install gawk gmake
sh bootstrap
./configure
gmake
That's exactly how I did.
Well - I've used git clone https://github.com/gonzoua/evdev-dump.git
Even with a fresh clone it failed at the same file.
/usr/include/dev/evdev/input.h
/usr/local/include/linux/input.h
/usr/local/include/xorg/input.h
Could you show output of "git branch" and
"grep -rl /usr/include/linux/input.h ." in cloned directory?
[55]sa# git branch
* master
[56]sa# grep -rl /usr/include/linux/input.h .
./configure.ac
./autom4te.cache/output.0
./autom4te.cache/output.1
./configure
./config.log
You need freebsd branch. master branch is unmodified
version of upstream, all my changes are on freebsd branch.
Lol - that makes sense.

Ok - it works, but I get nothing from my display, which this is more or
less already expected.
--
B.Walter <***@bwct.de> http://www.bwct.de
Modbus/TCP Ethernet I/O Baugruppen, ARM basierte FreeBSD Rechner uvm.
Bernd Walter
2018-03-08 21:08:05 UTC
Permalink
Post by Bernd Walter
Post by Bernd Walter
[20]sa# cat /etc/X11/xorg.conf
Section "InputDevice"
Identifier "Touchscreen"
Driver "evdev"
Option "Device" "/dev/input/event0"
EndSection
Section "ServerLayout"
Identifier "MyLayout"
InputDevice "Touchscreen"
EndSection
Unfortunately now I face the next problem.
[112753.535] (II) Using input driver 'evdev' for 'evdev touchscreen'
[112753.536] (**) evdev touchscreen: always reports core events
[112753.536] (**) evdev: evdev touchscreen: Device: "/dev/input/event0"
[112753.598] (--) evdev: evdev touchscreen: Vendor 0xeef Product 0x5
[112753.598] (--) evdev: evdev touchscreen: Found absolute axes
[112753.598] (--) evdev: evdev touchscreen: Found absolute multitouch axes
[112753.598] (II) evdev: evdev touchscreen: No buttons found, faking one.
[112753.598] (--) evdev: evdev touchscreen: Found x and y absolute axes
[112753.598] (--) evdev: evdev touchscreen: Found absolute touchscreen
[112753.598] (II) evdev: evdev touchscreen: Configuring as touchscreen
[112753.598] (**) evdev: evdev touchscreen: YAxisMapping: buttons 4 and 5
[112753.598] (**) evdev: evdev touchscreen: EmulateWheelButton: 4, EmulateWheelInertia: 10, EmulateWheelTimeout: 200
[112753.598] (II) XINPUT: Adding extended input device "evdev touchscreen" (type: TOUCHSCREEN, id 6)
[112753.599] (II) evdev: evdev touchscreen: initialized for absolute axes.
[112753.600] (**) evdev touchscreen: (accel) keeping acceleration scheme 1
[112753.600] (**) evdev touchscreen: (accel) acceleration profile 0
[112753.600] (**) evdev touchscreen: (accel) acceleration factor: 2.000
[112753.600] (**) evdev touchscreen: (accel) acceleration threshold: 4
[112753.601] (WW) fcntl(6, F_SETOWN): Invalid argument
[26]sa-moeller> xinput
Virtual core pointer id=2 [master pointer (3)]
Virtual core XTEST pointer id=4 [slave pointer (2)]
Touchscreen id=6 [slave pointer (2)]
sysmouse id=8 [slave pointer (2)]
Virtual core keyboard id=3 [master keyboard (2)]
Virtual core XTEST keyboard id=5 [slave keyboard (3)]
kbdmux id=7 [slave keyboard (3)]
Everything looks good so far, at least in my eyes.
Well - wheel emulation and such sounds a bit strange, as if it is handled
as a touchpad and not like a touchscreen.
But it says type touchscreen, so I assume that's ok.
However, I get no touch events.
I've started xev fullscreen and still nothing.
Somewhere else I've read that /dev/input/event0 should deliver something
if read and a touch happens, but this is not the case for me.
Any ideas how I can debug this thing?
There was a reference somewhere about a commandline programm to run against
an evdev, but I can't find it anymore.
xinput test delivers nothing on the touchscreen.
Neither evtest nor evdev-dump compiles because they are both missing
linux include files at some point.
https://cgit.freedesktop.org/~whot/evtest/
[48]sa> make
make all-am
cc -DHAVE_CONFIG_H -I. -g -O2 -MT evtest.o -MD -MP -MF .deps/evtest.Tpo -c -o evtest.o evtest.c
evtest.c:46:10: fatal error: 'linux/version.h' file not found
#include <linux/version.h>
^~~~~~~~~~~~~~~~~
1 error generated.
*** Error code 1
Stop.
make[1]: stopped in /home/ticso/evtest
*** Error code 1
Stop.
make: stopped in /home/ticso/evtest
Exit 1
https://github.com/gonzoua/evdev-dump/tree/freebsd
...
checking for unistd.h... yes
checking linux/input.h usability... no
checking linux/input.h presence... no
checking for linux/input.h... no
checking for /usr/include/linux/input.h... no
configure: error: /usr/include/linux/input.h not found
4.765u 3.954s 0:08.64 100.8% 31397+2201k 0+27io 0pf+0w
Exit 1
The touchscreen itself should be functional as it has a touch area outside
the display, which is interpreted by the USB controller to change the
backlight.
The exact same display also worked fine on Raspbian.
This is with webcamd compiled with debug support.

[18]sa# /usr/local/sbin/webcamd -d ugen0.5
Linux video capture interface: v2.00
IR NEC protocol handler initialized
IR RC5(x/sz) protocol handler initialized
IR RC6 protocol handler initialized
IR JVC protocol handler initialized
IR Sony protocol handler initialized
IR SANYO protocol handler initialized
IR LIRC bridge handler initialized
IR XMP protocol handler initialized
b2c2-flexcop: B2C2 FlexcopII/II(b)/III digital TV receiver chip loaded successfully
USB Video Class driver (1.1.1)
cpia2: V4L-Driver for Vision CPiA2 based cameras v3.0.1
pvrusb2: V4L in-tree version:Hauppauge WinTV-PVR-USB2 MPEG2 Encoder/Tuner
pvrusb2: Debug mask is 31 (0x1f)
USBVision USB Video Device Driver for Linux : 0.9.11
Attached to ugen0.5[0]
INFO: 0003:0EEF:0005.0001: input: USB HID v1.10 Mouse [BYZHYYZHY By ZH851] on usb-/dev/usb-/dev/usb/input0

DBG: 0003:0EEF:0005.0001: Kicking head 1 tail 0
Creating /dev/input/event0

I really think that it has some problems with the controller.
When I run webcamd against the mouse I get some kind data from the
evdev.
Well - I had to reboot after testing with the mouse, but probably
it was disabled by default for a reason.
So my assumption is that I have to look up my problem somewhere between
webcamd and the USB device.
--
B.Walter <***@bwct.de> http://www.bwct.de
Modbus/TCP Ethernet I/O Baugruppen, ARM basierte FreeBSD Rechner uvm.
Hans Petter Selasky
2018-03-08 21:10:47 UTC
Permalink
Post by Bernd Walter
Post by Bernd Walter
Post by Bernd Walter
[20]sa# cat /etc/X11/xorg.conf
Section "InputDevice"
Identifier "Touchscreen"
Driver "evdev"
Option "Device" "/dev/input/event0"
EndSection
Section "ServerLayout"
Identifier "MyLayout"
InputDevice "Touchscreen"
EndSection
Unfortunately now I face the next problem.
[112753.535] (II) Using input driver 'evdev' for 'evdev touchscreen'
[112753.536] (**) evdev touchscreen: always reports core events
[112753.536] (**) evdev: evdev touchscreen: Device: "/dev/input/event0"
[112753.598] (--) evdev: evdev touchscreen: Vendor 0xeef Product 0x5
[112753.598] (--) evdev: evdev touchscreen: Found absolute axes
[112753.598] (--) evdev: evdev touchscreen: Found absolute multitouch axes
[112753.598] (II) evdev: evdev touchscreen: No buttons found, faking one.
[112753.598] (--) evdev: evdev touchscreen: Found x and y absolute axes
[112753.598] (--) evdev: evdev touchscreen: Found absolute touchscreen
[112753.598] (II) evdev: evdev touchscreen: Configuring as touchscreen
[112753.598] (**) evdev: evdev touchscreen: YAxisMapping: buttons 4 and 5
[112753.598] (**) evdev: evdev touchscreen: EmulateWheelButton: 4, EmulateWheelInertia: 10, EmulateWheelTimeout: 200
[112753.598] (II) XINPUT: Adding extended input device "evdev touchscreen" (type: TOUCHSCREEN, id 6)
[112753.599] (II) evdev: evdev touchscreen: initialized for absolute axes.
[112753.600] (**) evdev touchscreen: (accel) keeping acceleration scheme 1
[112753.600] (**) evdev touchscreen: (accel) acceleration profile 0
[112753.600] (**) evdev touchscreen: (accel) acceleration factor: 2.000
[112753.600] (**) evdev touchscreen: (accel) acceleration threshold: 4
[112753.601] (WW) fcntl(6, F_SETOWN): Invalid argument
[26]sa-moeller> xinput
Virtual core pointer id=2 [master pointer (3)]
Virtual core XTEST pointer id=4 [slave pointer (2)]
Touchscreen id=6 [slave pointer (2)]
sysmouse id=8 [slave pointer (2)]
Virtual core keyboard id=3 [master keyboard (2)]
Virtual core XTEST keyboard id=5 [slave keyboard (3)]
kbdmux id=7 [slave keyboard (3)]
Everything looks good so far, at least in my eyes.
Well - wheel emulation and such sounds a bit strange, as if it is handled
as a touchpad and not like a touchscreen.
But it says type touchscreen, so I assume that's ok.
However, I get no touch events.
I've started xev fullscreen and still nothing.
Somewhere else I've read that /dev/input/event0 should deliver something
if read and a touch happens, but this is not the case for me.
Any ideas how I can debug this thing?
There was a reference somewhere about a commandline programm to run against
an evdev, but I can't find it anymore.
xinput test delivers nothing on the touchscreen.
Neither evtest nor evdev-dump compiles because they are both missing
linux include files at some point.
https://cgit.freedesktop.org/~whot/evtest/
[48]sa> make
make all-am
cc -DHAVE_CONFIG_H -I. -g -O2 -MT evtest.o -MD -MP -MF .deps/evtest.Tpo -c -o evtest.o evtest.c
evtest.c:46:10: fatal error: 'linux/version.h' file not found
#include <linux/version.h>
^~~~~~~~~~~~~~~~~
1 error generated.
*** Error code 1
Stop.
make[1]: stopped in /home/ticso/evtest
*** Error code 1
Stop.
make: stopped in /home/ticso/evtest
Exit 1
https://github.com/gonzoua/evdev-dump/tree/freebsd
...
checking for unistd.h... yes
checking linux/input.h usability... no
checking linux/input.h presence... no
checking for linux/input.h... no
checking for /usr/include/linux/input.h... no
configure: error: /usr/include/linux/input.h not found
4.765u 3.954s 0:08.64 100.8% 31397+2201k 0+27io 0pf+0w
Exit 1
The touchscreen itself should be functional as it has a touch area outside
the display, which is interpreted by the USB controller to change the
backlight.
The exact same display also worked fine on Raspbian.
This is with webcamd compiled with debug support.
[18]sa# /usr/local/sbin/webcamd -d ugen0.5
Linux video capture interface: v2.00
IR NEC protocol handler initialized
IR RC5(x/sz) protocol handler initialized
IR RC6 protocol handler initialized
IR JVC protocol handler initialized
IR Sony protocol handler initialized
IR SANYO protocol handler initialized
IR LIRC bridge handler initialized
IR XMP protocol handler initialized
b2c2-flexcop: B2C2 FlexcopII/II(b)/III digital TV receiver chip loaded successfully
USB Video Class driver (1.1.1)
cpia2: V4L-Driver for Vision CPiA2 based cameras v3.0.1
pvrusb2: V4L in-tree version:Hauppauge WinTV-PVR-USB2 MPEG2 Encoder/Tuner
pvrusb2: Debug mask is 31 (0x1f)
USBVision USB Video Device Driver for Linux : 0.9.11
Attached to ugen0.5[0]
INFO: 0003:0EEF:0005.0001: input: USB HID v1.10 Mouse [BYZHYYZHY By ZH851] on usb-/dev/usb-/dev/usb/input0
DBG: 0003:0EEF:0005.0001: Kicking head 1 tail 0
Creating /dev/input/event0
I really think that it has some problems with the controller.
When I run webcamd against the mouse I get some kind data from the
evdev.
Well - I had to reboot after testing with the mouse, but probably
it was disabled by default for a reason.
So my assumption is that I have to look up my problem somewhere between
webcamd and the USB device.
You can try running usbdump to capture USB packets.

ktrace is also your friend.

dd if=/dev/input/event0 bs=1

Also check ownership of devices, that X.org can read from them.

--HPS
Bernd Walter
2018-03-09 00:44:34 UTC
Permalink
Post by Hans Petter Selasky
You can try running usbdump to capture USB packets.
ktrace is also your friend.
dd if=/dev/input/event0 bs=1
Also check ownership of devices, that X.org can read from them.
It happens earlier, /dev/input/event0 delivers nothing at all.
But usbdump is interesting.
I've booted with webcamd disabled, started usbdump and started webcamd.

This is what I get:
[22]sa# usbdump -v -f 4
00:30:09.379930 usbus0.4 SUBM-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=8,IVAL=0
frame[0] WRITE 8 bytes
0000 80 06 00 03 00 00 04 00 -- -- -- -- -- -- -- -- |........ |
frame[1] READ 4 bytes
00:30:09.382401 usbus0.4 DONE-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=4,IVAL=0,ERR=0
frame[0] WRITE 8 bytes
frame[1] READ 4 bytes
0000 04 03 09 04 -- -- -- -- -- -- -- -- -- -- -- -- |.... |
00:30:09.382448 usbus0.4 SUBM-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=8,IVAL=0
frame[0] WRITE 8 bytes
0000 80 06 00 03 00 00 04 00 -- -- -- -- -- -- -- -- |........ |
frame[1] READ 4 bytes
00:30:09.385398 usbus0.4 DONE-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=4,IVAL=0,ERR=0
frame[0] WRITE 8 bytes
frame[1] READ 4 bytes
0000 04 03 09 04 -- -- -- -- -- -- -- -- -- -- -- -- |.... |
00:30:09.385439 usbus0.4 SUBM-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=8,IVAL=0
frame[0] WRITE 8 bytes
0000 80 06 02 03 09 04 04 00 -- -- -- -- -- -- -- -- |........ |
frame[1] READ 4 bytes
00:30:09.388398 usbus0.4 DONE-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=4,IVAL=0,ERR=0
frame[0] WRITE 8 bytes
frame[1] READ 4 bytes
0000 12 03 42 00 -- -- -- -- -- -- -- -- -- -- -- -- |..B. |
00:30:09.388434 usbus0.4 SUBM-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=8,IVAL=0
frame[0] WRITE 8 bytes
0000 80 06 02 03 09 04 12 00 -- -- -- -- -- -- -- -- |........ |
frame[1] READ 18 bytes
00:30:09.391399 usbus0.4 DONE-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=20,IVAL=0,ERR=0
frame[0] WRITE 8 bytes
frame[1] READ 18 bytes
0000 12 03 42 00 79 00 20 00 5A 00 48 00 38 00 35 00 |..B.y. .Z.H.8.5.|
0010 31 00 -- -- -- -- -- -- -- -- -- -- -- -- -- -- |1. |
00:30:09.391474 usbus0.4 SUBM-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=8,IVAL=0
frame[0] WRITE 8 bytes
0000 80 06 00 03 00 00 04 00 -- -- -- -- -- -- -- -- |........ |
frame[1] READ 4 bytes
00:30:09.394398 usbus0.4 DONE-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=4,IVAL=0,ERR=0
frame[0] WRITE 8 bytes
frame[1] READ 4 bytes
0000 04 03 09 04 -- -- -- -- -- -- -- -- -- -- -- -- |.... |
00:30:09.394435 usbus0.4 SUBM-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=8,IVAL=0
frame[0] WRITE 8 bytes
0000 80 06 00 03 00 00 04 00 -- -- -- -- -- -- -- -- |........ |
frame[1] READ 4 bytes
00:30:09.397398 usbus0.4 DONE-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=4,IVAL=0,ERR=0
frame[0] WRITE 8 bytes
frame[1] READ 4 bytes
0000 04 03 09 04 -- -- -- -- -- -- -- -- -- -- -- -- |.... |
00:30:09.397436 usbus0.4 SUBM-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=8,IVAL=0
frame[0] WRITE 8 bytes
0000 80 06 01 03 09 04 04 00 -- -- -- -- -- -- -- -- |........ |
frame[1] READ 4 bytes
00:30:09.400398 usbus0.4 DONE-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=4,IVAL=0,ERR=0
frame[0] WRITE 8 bytes
frame[1] READ 4 bytes
0000 14 03 42 00 -- -- -- -- -- -- -- -- -- -- -- -- |..B. |
00:30:09.400433 usbus0.4 SUBM-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=8,IVAL=0
frame[0] WRITE 8 bytes
0000 80 06 01 03 09 04 14 00 -- -- -- -- -- -- -- -- |........ |
frame[1] READ 20 bytes
00:30:09.403398 usbus0.4 DONE-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=20,IVAL=0,ERR=0
frame[0] WRITE 8 bytes
frame[1] READ 20 bytes
0000 14 03 42 00 59 00 5A 00 48 00 59 00 59 00 5A 00 |..B.Y.Z.H.Y.Y.Z.|
0010 48 00 59 00 -- -- -- -- -- -- -- -- -- -- -- -- |H.Y. |
00:30:09.403440 usbus0.4 SUBM-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=8,IVAL=0
frame[0] WRITE 8 bytes
0000 80 06 00 03 00 00 04 00 -- -- -- -- -- -- -- -- |........ |
frame[1] READ 4 bytes
00:30:09.406398 usbus0.4 DONE-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=4,IVAL=0,ERR=0
frame[0] WRITE 8 bytes
frame[1] READ 4 bytes
0000 04 03 09 04 -- -- -- -- -- -- -- -- -- -- -- -- |.... |
00:30:09.406437 usbus0.4 SUBM-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=8,IVAL=0
frame[0] WRITE 8 bytes
0000 80 06 00 03 00 00 04 00 -- -- -- -- -- -- -- -- |........ |
frame[1] READ 4 bytes
00:30:09.409397 usbus0.4 DONE-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=4,IVAL=0,ERR=0
frame[0] WRITE 8 bytes
frame[1] READ 4 bytes
0000 04 03 09 04 -- -- -- -- -- -- -- -- -- -- -- -- |.... |
00:30:09.409434 usbus0.4 SUBM-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=8,IVAL=0
frame[0] WRITE 8 bytes
0000 80 06 03 03 09 04 04 00 -- -- -- -- -- -- -- -- |........ |
frame[1] READ 4 bytes
00:30:09.412398 usbus0.4 DONE-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=4,IVAL=0,ERR=0
frame[0] WRITE 8 bytes
frame[1] READ 4 bytes
0000 1A 03 1A 00 -- -- -- -- -- -- -- -- -- -- -- -- |.... |
00:30:09.412434 usbus0.4 SUBM-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=8,IVAL=0
frame[0] WRITE 8 bytes
0000 80 06 03 03 09 04 1A 00 -- -- -- -- -- -- -- -- |........ |
frame[1] READ 26 bytes
00:30:09.415398 usbus0.4 DONE-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=28,IVAL=0,ERR=0
frame[0] WRITE 8 bytes
frame[1] READ 26 bytes
0000 1A 03 1A 00 95 00 50 00 33 00 39 00 31 00 31 00 |......P.3.9.1.1.|
0010 06 00 32 00 33 00 39 00 38 00 -- -- -- -- -- -- |..2.3.9.8. |
00:30:09.420243 usbus0.4 SUBM-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=8,IVAL=0
frame[0] WRITE 8 bytes
0000 80 06 00 03 00 00 04 00 -- -- -- -- -- -- -- -- |........ |
frame[1] READ 4 bytes
00:30:09.422400 usbus0.4 DONE-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=4,IVAL=0,ERR=0
frame[0] WRITE 8 bytes
frame[1] READ 4 bytes
0000 04 03 09 04 -- -- -- -- -- -- -- -- -- -- -- -- |.... |
00:30:09.422441 usbus0.4 SUBM-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=8,IVAL=0
frame[0] WRITE 8 bytes
0000 80 06 00 03 00 00 04 00 -- -- -- -- -- -- -- -- |........ |
frame[1] READ 4 bytes
00:30:09.425398 usbus0.4 DONE-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=4,IVAL=0,ERR=0
frame[0] WRITE 8 bytes
frame[1] READ 4 bytes
0000 04 03 09 04 -- -- -- -- -- -- -- -- -- -- -- -- |.... |
00:30:09.425436 usbus0.4 SUBM-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=8,IVAL=0
frame[0] WRITE 8 bytes
0000 80 06 03 03 09 04 04 00 -- -- -- -- -- -- -- -- |........ |
frame[1] READ 4 bytes
00:30:09.428398 usbus0.4 DONE-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=4,IVAL=0,ERR=0
frame[0] WRITE 8 bytes
frame[1] READ 4 bytes
0000 1A 03 1A 00 -- -- -- -- -- -- -- -- -- -- -- -- |.... |
00:30:09.428436 usbus0.4 SUBM-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=8,IVAL=0
frame[0] WRITE 8 bytes
0000 80 06 03 03 09 04 1A 00 -- -- -- -- -- -- -- -- |........ |
frame[1] READ 26 bytes
00:30:09.431398 usbus0.4 DONE-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=28,IVAL=0,ERR=0
frame[0] WRITE 8 bytes
frame[1] READ 26 bytes
0000 1A 03 1A 00 95 00 50 00 33 00 39 00 31 00 31 00 |......P.3.9.1.1.|
0010 06 00 32 00 33 00 39 00 38 00 -- -- -- -- -- -- |..2.3.9.8. |
00:30:09.431941 usbus0.4 SUBM-CTRL-EP=00000000,SPD=FULL,NFR=1,SLEN=8,IVAL=0
frame[0] WRITE 8 bytes
0000 21 0A 00 00 00 00 00 00 -- -- -- -- -- -- -- -- |!....... |
00:30:09.433396 usbus0.4 DONE-CTRL-EP=00000000,SPD=FULL,NFR=1,SLEN=0,IVAL=0,ERR=STALLED
frame[0] WRITE 8 bytes
00:30:09.433442 usbus0.4 SUBM-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=8,IVAL=0
frame[0] WRITE 8 bytes
0000 81 06 00 22 00 00 FB 00 -- -- -- -- -- -- -- -- |...".... |
frame[1] READ 251 bytes
00:30:09.439403 usbus0.4 DONE-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=252,IVAL=0,ERR=0
frame[0] WRITE 8 bytes
frame[1] READ 251 bytes
00:30:09.447376 usbus0.4 SUBM-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=8,IVAL=0
frame[0] WRITE 8 bytes
0000 A1 01 02 03 00 00 02 00 -- -- -- -- -- -- -- -- |........ |
frame[1] READ 2 bytes
00:30:09.450400 usbus0.4 DONE-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=4,IVAL=0,ERR=0
frame[0] WRITE 8 bytes
frame[1] READ 2 bytes
0000 02 0A -- -- -- -- -- -- -- -- -- -- -- -- -- -- |.. |
00:30:09.451878 usbus0.4 SUBM-CTRL-EP=00000000,SPD=FULL,NFR=2,SLEN=12,IVAL=0
frame[0] WRITE 8 bytes
0000 21 09 03 03 00 00 03 00 -- -- -- -- -- -- -- -- |!....... |
frame[1] WRITE 3 bytes
0000 03 02 00 -- -- -- -- -- -- -- -- -- -- -- -- -- |... |
00:30:09.454404 usbus0.4 DONE-CTRL-EP=00000000,SPD=FULL,NFR=2,SLEN=0,IVAL=0,ERR=0
frame[0] WRITE 8 bytes
frame[1] WRITE 3 bytes
00:30:09.466235 usbus0.4 SUBM-INTR-EP=00000082,SPD=FULL,NFR=1,SLEN=0,IVAL=10
frame[0] READ 14 bytes
00:30:09.523430 usbus0.4 DONE-INTR-EP=00000082,SPD=FULL,NFR=0,SLEN=0,IVAL=10,ERR=CANCELLED

It is obvious that the communication fails very early.
--
B.Walter <***@bwct.de> http://www.bwct.de
Modbus/TCP Ethernet I/O Baugruppen, ARM basierte FreeBSD Rechner uvm.
Hans Petter Selasky
2018-03-09 08:40:00 UTC
Permalink
Post by Bernd Walter
Post by Hans Petter Selasky
You can try running usbdump to capture USB packets.
ktrace is also your friend.
dd if=/dev/input/event0 bs=1
Also check ownership of devices, that X.org can read from them.
It happens earlier, /dev/input/event0 delivers nothing at all.
But usbdump is interesting.
I've booted with webcamd disabled, started usbdump and started webcamd.
[22]sa# usbdump -v -f 4
00:30:09.379930 usbus0.4 SUBM-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=8,IVAL=0
frame[0] WRITE 8 bytes
0000 80 06 00 03 00 00 04 00 -- -- -- -- -- -- -- -- |........ |
frame[1] READ 4 bytes
00:30:09.382401 usbus0.4 DONE-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=4,IVAL=0,ERR=0
frame[0] WRITE 8 bytes
frame[1] READ 4 bytes
0000 04 03 09 04 -- -- -- -- -- -- -- -- -- -- -- -- |.... |
00:30:09.382448 usbus0.4 SUBM-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=8,IVAL=0
frame[0] WRITE 8 bytes
0000 80 06 00 03 00 00 04 00 -- -- -- -- -- -- -- -- |........ |
frame[1] READ 4 bytes
00:30:09.385398 usbus0.4 DONE-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=4,IVAL=0,ERR=0
frame[0] WRITE 8 bytes
frame[1] READ 4 bytes
0000 04 03 09 04 -- -- -- -- -- -- -- -- -- -- -- -- |.... |
00:30:09.385439 usbus0.4 SUBM-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=8,IVAL=0
frame[0] WRITE 8 bytes
0000 80 06 02 03 09 04 04 00 -- -- -- -- -- -- -- -- |........ |
frame[1] READ 4 bytes
00:30:09.388398 usbus0.4 DONE-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=4,IVAL=0,ERR=0
frame[0] WRITE 8 bytes
frame[1] READ 4 bytes
0000 12 03 42 00 -- -- -- -- -- -- -- -- -- -- -- -- |..B. |
00:30:09.388434 usbus0.4 SUBM-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=8,IVAL=0
frame[0] WRITE 8 bytes
0000 80 06 02 03 09 04 12 00 -- -- -- -- -- -- -- -- |........ |
frame[1] READ 18 bytes
00:30:09.391399 usbus0.4 DONE-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=20,IVAL=0,ERR=0
frame[0] WRITE 8 bytes
frame[1] READ 18 bytes
0000 12 03 42 00 79 00 20 00 5A 00 48 00 38 00 35 00 |..B.y. .Z.H.8.5.|
0010 31 00 -- -- -- -- -- -- -- -- -- -- -- -- -- -- |1. |
00:30:09.391474 usbus0.4 SUBM-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=8,IVAL=0
frame[0] WRITE 8 bytes
0000 80 06 00 03 00 00 04 00 -- -- -- -- -- -- -- -- |........ |
frame[1] READ 4 bytes
00:30:09.394398 usbus0.4 DONE-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=4,IVAL=0,ERR=0
frame[0] WRITE 8 bytes
frame[1] READ 4 bytes
0000 04 03 09 04 -- -- -- -- -- -- -- -- -- -- -- -- |.... |
00:30:09.394435 usbus0.4 SUBM-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=8,IVAL=0
frame[0] WRITE 8 bytes
0000 80 06 00 03 00 00 04 00 -- -- -- -- -- -- -- -- |........ |
frame[1] READ 4 bytes
00:30:09.397398 usbus0.4 DONE-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=4,IVAL=0,ERR=0
frame[0] WRITE 8 bytes
frame[1] READ 4 bytes
0000 04 03 09 04 -- -- -- -- -- -- -- -- -- -- -- -- |.... |
00:30:09.397436 usbus0.4 SUBM-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=8,IVAL=0
frame[0] WRITE 8 bytes
0000 80 06 01 03 09 04 04 00 -- -- -- -- -- -- -- -- |........ |
frame[1] READ 4 bytes
00:30:09.400398 usbus0.4 DONE-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=4,IVAL=0,ERR=0
frame[0] WRITE 8 bytes
frame[1] READ 4 bytes
0000 14 03 42 00 -- -- -- -- -- -- -- -- -- -- -- -- |..B. |
00:30:09.400433 usbus0.4 SUBM-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=8,IVAL=0
frame[0] WRITE 8 bytes
0000 80 06 01 03 09 04 14 00 -- -- -- -- -- -- -- -- |........ |
frame[1] READ 20 bytes
00:30:09.403398 usbus0.4 DONE-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=20,IVAL=0,ERR=0
frame[0] WRITE 8 bytes
frame[1] READ 20 bytes
0000 14 03 42 00 59 00 5A 00 48 00 59 00 59 00 5A 00 |..B.Y.Z.H.Y.Y.Z.|
0010 48 00 59 00 -- -- -- -- -- -- -- -- -- -- -- -- |H.Y. |
00:30:09.403440 usbus0.4 SUBM-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=8,IVAL=0
frame[0] WRITE 8 bytes
0000 80 06 00 03 00 00 04 00 -- -- -- -- -- -- -- -- |........ |
frame[1] READ 4 bytes
00:30:09.406398 usbus0.4 DONE-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=4,IVAL=0,ERR=0
frame[0] WRITE 8 bytes
frame[1] READ 4 bytes
0000 04 03 09 04 -- -- -- -- -- -- -- -- -- -- -- -- |.... |
00:30:09.406437 usbus0.4 SUBM-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=8,IVAL=0
frame[0] WRITE 8 bytes
0000 80 06 00 03 00 00 04 00 -- -- -- -- -- -- -- -- |........ |
frame[1] READ 4 bytes
00:30:09.409397 usbus0.4 DONE-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=4,IVAL=0,ERR=0
frame[0] WRITE 8 bytes
frame[1] READ 4 bytes
0000 04 03 09 04 -- -- -- -- -- -- -- -- -- -- -- -- |.... |
00:30:09.409434 usbus0.4 SUBM-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=8,IVAL=0
frame[0] WRITE 8 bytes
0000 80 06 03 03 09 04 04 00 -- -- -- -- -- -- -- -- |........ |
frame[1] READ 4 bytes
00:30:09.412398 usbus0.4 DONE-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=4,IVAL=0,ERR=0
frame[0] WRITE 8 bytes
frame[1] READ 4 bytes
0000 1A 03 1A 00 -- -- -- -- -- -- -- -- -- -- -- -- |.... |
00:30:09.412434 usbus0.4 SUBM-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=8,IVAL=0
frame[0] WRITE 8 bytes
0000 80 06 03 03 09 04 1A 00 -- -- -- -- -- -- -- -- |........ |
frame[1] READ 26 bytes
00:30:09.415398 usbus0.4 DONE-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=28,IVAL=0,ERR=0
frame[0] WRITE 8 bytes
frame[1] READ 26 bytes
0000 1A 03 1A 00 95 00 50 00 33 00 39 00 31 00 31 00 |......P.3.9.1.1.|
0010 06 00 32 00 33 00 39 00 38 00 -- -- -- -- -- -- |..2.3.9.8. |
00:30:09.420243 usbus0.4 SUBM-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=8,IVAL=0
frame[0] WRITE 8 bytes
0000 80 06 00 03 00 00 04 00 -- -- -- -- -- -- -- -- |........ |
frame[1] READ 4 bytes
00:30:09.422400 usbus0.4 DONE-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=4,IVAL=0,ERR=0
frame[0] WRITE 8 bytes
frame[1] READ 4 bytes
0000 04 03 09 04 -- -- -- -- -- -- -- -- -- -- -- -- |.... |
00:30:09.422441 usbus0.4 SUBM-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=8,IVAL=0
frame[0] WRITE 8 bytes
0000 80 06 00 03 00 00 04 00 -- -- -- -- -- -- -- -- |........ |
frame[1] READ 4 bytes
00:30:09.425398 usbus0.4 DONE-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=4,IVAL=0,ERR=0
frame[0] WRITE 8 bytes
frame[1] READ 4 bytes
0000 04 03 09 04 -- -- -- -- -- -- -- -- -- -- -- -- |.... |
00:30:09.425436 usbus0.4 SUBM-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=8,IVAL=0
frame[0] WRITE 8 bytes
0000 80 06 03 03 09 04 04 00 -- -- -- -- -- -- -- -- |........ |
frame[1] READ 4 bytes
00:30:09.428398 usbus0.4 DONE-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=4,IVAL=0,ERR=0
frame[0] WRITE 8 bytes
frame[1] READ 4 bytes
0000 1A 03 1A 00 -- -- -- -- -- -- -- -- -- -- -- -- |.... |
00:30:09.428436 usbus0.4 SUBM-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=8,IVAL=0
frame[0] WRITE 8 bytes
0000 80 06 03 03 09 04 1A 00 -- -- -- -- -- -- -- -- |........ |
frame[1] READ 26 bytes
00:30:09.431398 usbus0.4 DONE-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=28,IVAL=0,ERR=0
frame[0] WRITE 8 bytes
frame[1] READ 26 bytes
0000 1A 03 1A 00 95 00 50 00 33 00 39 00 31 00 31 00 |......P.3.9.1.1.|
0010 06 00 32 00 33 00 39 00 38 00 -- -- -- -- -- -- |..2.3.9.8. |
00:30:09.431941 usbus0.4 SUBM-CTRL-EP=00000000,SPD=FULL,NFR=1,SLEN=8,IVAL=0
frame[0] WRITE 8 bytes
0000 21 0A 00 00 00 00 00 00 -- -- -- -- -- -- -- -- |!....... |
00:30:09.433396 usbus0.4 DONE-CTRL-EP=00000000,SPD=FULL,NFR=1,SLEN=0,IVAL=0,ERR=STALLED
frame[0] WRITE 8 bytes
00:30:09.433442 usbus0.4 SUBM-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=8,IVAL=0
frame[0] WRITE 8 bytes
0000 81 06 00 22 00 00 FB 00 -- -- -- -- -- -- -- -- |...".... |
frame[1] READ 251 bytes
00:30:09.439403 usbus0.4 DONE-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=252,IVAL=0,ERR=0
frame[0] WRITE 8 bytes
frame[1] READ 251 bytes
00:30:09.447376 usbus0.4 SUBM-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=8,IVAL=0
frame[0] WRITE 8 bytes
0000 A1 01 02 03 00 00 02 00 -- -- -- -- -- -- -- -- |........ |
frame[1] READ 2 bytes
00:30:09.450400 usbus0.4 DONE-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=4,IVAL=0,ERR=0
frame[0] WRITE 8 bytes
frame[1] READ 2 bytes
0000 02 0A -- -- -- -- -- -- -- -- -- -- -- -- -- -- |.. |
00:30:09.451878 usbus0.4 SUBM-CTRL-EP=00000000,SPD=FULL,NFR=2,SLEN=12,IVAL=0
frame[0] WRITE 8 bytes
0000 21 09 03 03 00 00 03 00 -- -- -- -- -- -- -- -- |!....... |
frame[1] WRITE 3 bytes
0000 03 02 00 -- -- -- -- -- -- -- -- -- -- -- -- -- |... |
00:30:09.454404 usbus0.4 DONE-CTRL-EP=00000000,SPD=FULL,NFR=2,SLEN=0,IVAL=0,ERR=0
frame[0] WRITE 8 bytes
frame[1] WRITE 3 bytes
00:30:09.466235 usbus0.4 SUBM-INTR-EP=00000082,SPD=FULL,NFR=1,SLEN=0,IVAL=10
frame[0] READ 14 bytes
00:30:09.523430 usbus0.4 DONE-INTR-EP=00000082,SPD=FULL,NFR=0,SLEN=0,IVAL=10,ERR=CANCELLED
It is obvious that the communication fails very early.
Can you try connecting the device through an external USB HUB?

Can you capture the whole enumeration sequence. Can you also try setting
the UQ_NO_STRINGS quirk using usbconfig for this device and re-plug it?

--HPS

--HPS
Bernd Walter
2018-03-09 11:40:25 UTC
Permalink
Post by Hans Petter Selasky
Post by Hans Petter Selasky
You can try running usbdump to capture USB packets.
ktrace is also your friend.
dd if=/dev/input/event0 bs=1
Also check ownership of devices, that X.org can read from them.
Can you try connecting the device through an external USB HUB?
This test has to wait for me to change the setup
Post by Hans Petter Selasky
Can you capture the whole enumeration sequence. Can you also try setting
the UQ_NO_STRINGS quirk using usbconfig for this device and re-plug it?
This is on plug in:
[25]sa# usbdump -v -v -v -v -f 4
11:36:27.190408 usbus0.4 SUBM-CTRL-EP=00000000,SPD=FULL,NFR=1,SLEN=8,IVAL=0
frame[0] WRITE 8 bytes
0000 00 05 04 00 00 00 00 00 -- -- -- -- -- -- -- -- |........ |
flags 0x50 <PROXY_BUFFER|MANUAL_STATUS|0>
status 0xc03a3 <OPEN|TRANSFERRING|STARTED|CONTROL_XFR|CONTROL_HDR|CONTROL_ACT|CAN_CANCEL_IMMED|DOING_CALLBACK|0>
11:36:27.191546 usbus0.4 DONE-CTRL-EP=00000000,SPD=FULL,NFR=1,SLEN=0,IVAL=0,ERR=0
frame[0] WRITE 8 bytes
flags 0x50 <PROXY_BUFFER|MANUAL_STATUS|0>
status 0xc03a1 <OPEN|STARTED|CONTROL_XFR|CONTROL_HDR|CONTROL_ACT|CAN_CANCEL_IMMED|DOING_CALLBACK|0>
11:36:27.191568 usbus0.4 SUBM-CTRL-EP=00000000,SPD=FULL,NFR=1,SLEN=0,IVAL=0
frame[0] WRITE 0 bytes
flags 0x10 <PROXY_BUFFER|0>
status 0xc00a3 <OPEN|TRANSFERRING|STARTED|CONTROL_XFR|CAN_CANCEL_IMMED|DOING_CALLBACK|0>
11:36:27.192542 usbus0.4 DONE-CTRL-EP=00000000,SPD=FULL,NFR=1,SLEN=0,IVAL=0,ERR=0
frame[0] WRITE 0 bytes
flags 0x10 <PROXY_BUFFER|0>
status 0xc00a1 <OPEN|STARTED|CONTROL_XFR|CAN_CANCEL_IMMED|DOING_CALLBACK|0>
11:36:27.203447 usbus0.4 SUBM-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=8,IVAL=0
frame[0] WRITE 8 bytes
0000 80 06 00 01 00 00 08 00 -- -- -- -- -- -- -- -- |........ |
frame[1] READ 8 bytes
flags 0x10 <PROXY_BUFFER|0>
status 0xc01a3 <OPEN|TRANSFERRING|STARTED|CONTROL_XFR|CONTROL_HDR|CAN_CANCEL_IMMED|DOING_CALLBACK|0>
11:36:27.206539 usbus0.4 DONE-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=8,IVAL=0,ERR=0
frame[0] WRITE 8 bytes
frame[1] READ 8 bytes
0000 12 01 00 02 00 00 00 40 -- -- -- -- -- -- -- -- |.......@ |
flags 0x10 <PROXY_BUFFER|0>
status 0xc01a1 <OPEN|STARTED|CONTROL_XFR|CONTROL_HDR|CAN_CANCEL_IMMED|DOING_CALLBACK|0>
11:36:27.206618 usbus0.4 SUBM-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=8,IVAL=0
frame[0] WRITE 8 bytes
0000 80 06 00 01 00 00 12 00 -- -- -- -- -- -- -- -- |........ |
frame[1] READ 18 bytes
flags 0x10 <PROXY_BUFFER|0>
status 0xc01a3 <OPEN|TRANSFERRING|STARTED|CONTROL_XFR|CONTROL_HDR|CAN_CANCEL_IMMED|DOING_CALLBACK|0>
11:36:27.209538 usbus0.4 DONE-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=20,IVAL=0,ERR=0
frame[0] WRITE 8 bytes
frame[1] READ 18 bytes
0000 12 01 00 02 00 00 00 40 EF 0E 05 00 00 02 01 02 |***@........|
0010 03 01 -- -- -- -- -- -- -- -- -- -- -- -- -- -- |.. |
flags 0x10 <PROXY_BUFFER|0>
status 0xc01a1 <OPEN|STARTED|CONTROL_XFR|CONTROL_HDR|CAN_CANCEL_IMMED|DOING_CALLBACK|0>
11:36:27.209578 usbus0.4 SUBM-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=8,IVAL=0
frame[0] WRITE 8 bytes
0000 80 06 00 03 00 00 02 00 -- -- -- -- -- -- -- -- |........ |
frame[1] READ 2 bytes
flags 0x10 <PROXY_BUFFER|0>
status 0xc01a3 <OPEN|TRANSFERRING|STARTED|CONTROL_XFR|CONTROL_HDR|CAN_CANCEL_IMMED|DOING_CALLBACK|0>
11:36:27.212537 usbus0.4 DONE-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=4,IVAL=0,ERR=0
frame[0] WRITE 8 bytes
frame[1] READ 2 bytes
0000 04 03 -- -- -- -- -- -- -- -- -- -- -- -- -- -- |.. |
flags 0x10 <PROXY_BUFFER|0>
status 0xc01a1 <OPEN|STARTED|CONTROL_XFR|CONTROL_HDR|CAN_CANCEL_IMMED|DOING_CALLBACK|0>
11:36:27.212559 usbus0.4 SUBM-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=8,IVAL=0
frame[0] WRITE 8 bytes
0000 80 06 00 03 00 00 04 00 -- -- -- -- -- -- -- -- |........ |
frame[1] READ 4 bytes
flags 0x10 <PROXY_BUFFER|0>
status 0xc01a3 <OPEN|TRANSFERRING|STARTED|CONTROL_XFR|CONTROL_HDR|CAN_CANCEL_IMMED|DOING_CALLBACK|0>
11:36:27.215537 usbus0.4 DONE-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=4,IVAL=0,ERR=0
frame[0] WRITE 8 bytes
frame[1] READ 4 bytes
0000 04 03 09 04 -- -- -- -- -- -- -- -- -- -- -- -- |.... |
flags 0x10 <PROXY_BUFFER|0>
status 0xc01a1 <OPEN|STARTED|CONTROL_XFR|CONTROL_HDR|CAN_CANCEL_IMMED|DOING_CALLBACK|0>
11:36:27.215561 usbus0.4 SUBM-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=8,IVAL=0
frame[0] WRITE 8 bytes
0000 80 06 03 03 09 04 02 00 -- -- -- -- -- -- -- -- |........ |
frame[1] READ 2 bytes
flags 0x10 <PROXY_BUFFER|0>
status 0xc01a3 <OPEN|TRANSFERRING|STARTED|CONTROL_XFR|CONTROL_HDR|CAN_CANCEL_IMMED|DOING_CALLBACK|0>
11:36:27.218536 usbus0.4 DONE-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=4,IVAL=0,ERR=0
frame[0] WRITE 8 bytes
frame[1] READ 2 bytes
0000 1A 03 -- -- -- -- -- -- -- -- -- -- -- -- -- -- |.. |
flags 0x10 <PROXY_BUFFER|0>
status 0xc01a1 <OPEN|STARTED|CONTROL_XFR|CONTROL_HDR|CAN_CANCEL_IMMED|DOING_CALLBACK|0>
11:36:27.218557 usbus0.4 SUBM-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=8,IVAL=0
frame[0] WRITE 8 bytes
0000 80 06 03 03 09 04 1A 00 -- -- -- -- -- -- -- -- |........ |
frame[1] READ 26 bytes
flags 0x10 <PROXY_BUFFER|0>
status 0xc01a3 <OPEN|TRANSFERRING|STARTED|CONTROL_XFR|CONTROL_HDR|CAN_CANCEL_IMMED|DOING_CALLBACK|0>
11:36:27.221536 usbus0.4 DONE-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=28,IVAL=0,ERR=0
frame[0] WRITE 8 bytes
frame[1] READ 26 bytes
0000 1A 03 1A 00 95 00 50 00 33 00 39 00 31 00 31 00 |......P.3.9.1.1.|
0010 06 00 32 00 33 00 39 00 38 00 -- -- -- -- -- -- |..2.3.9.8. |
flags 0x10 <PROXY_BUFFER|0>
status 0xc01a1 <OPEN|STARTED|CONTROL_XFR|CONTROL_HDR|CAN_CANCEL_IMMED|DOING_CALLBACK|0>
11:36:27.221560 usbus0.4 SUBM-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=8,IVAL=0
frame[0] WRITE 8 bytes
0000 80 06 01 03 09 04 02 00 -- -- -- -- -- -- -- -- |........ |
frame[1] READ 2 bytes
flags 0x10 <PROXY_BUFFER|0>
status 0xc01a3 <OPEN|TRANSFERRING|STARTED|CONTROL_XFR|CONTROL_HDR|CAN_CANCEL_IMMED|DOING_CALLBACK|0>
11:36:27.224537 usbus0.4 DONE-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=4,IVAL=0,ERR=0
frame[0] WRITE 8 bytes
frame[1] READ 2 bytes
0000 14 03 -- -- -- -- -- -- -- -- -- -- -- -- -- -- |.. |
flags 0x10 <PROXY_BUFFER|0>
status 0xc01a1 <OPEN|STARTED|CONTROL_XFR|CONTROL_HDR|CAN_CANCEL_IMMED|DOING_CALLBACK|0>
11:36:27.224559 usbus0.4 SUBM-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=8,IVAL=0
frame[0] WRITE 8 bytes
0000 80 06 01 03 09 04 14 00 -- -- -- -- -- -- -- -- |........ |
frame[1] READ 20 bytes
flags 0x10 <PROXY_BUFFER|0>
status 0xc01a3 <OPEN|TRANSFERRING|STARTED|CONTROL_XFR|CONTROL_HDR|CAN_CANCEL_IMMED|DOING_CALLBACK|0>
11:36:27.227536 usbus0.4 DONE-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=20,IVAL=0,ERR=0
frame[0] WRITE 8 bytes
frame[1] READ 20 bytes
0000 14 03 42 00 59 00 5A 00 48 00 59 00 59 00 5A 00 |..B.Y.Z.H.Y.Y.Z.|
0010 48 00 59 00 -- -- -- -- -- -- -- -- -- -- -- -- |H.Y. |
flags 0x10 <PROXY_BUFFER|0>
status 0xc01a1 <OPEN|STARTED|CONTROL_XFR|CONTROL_HDR|CAN_CANCEL_IMMED|DOING_CALLBACK|0>
11:36:27.227559 usbus0.4 SUBM-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=8,IVAL=0
frame[0] WRITE 8 bytes
0000 80 06 02 03 09 04 02 00 -- -- -- -- -- -- -- -- |........ |
frame[1] READ 2 bytes
flags 0x10 <PROXY_BUFFER|0>
status 0xc01a3 <OPEN|TRANSFERRING|STARTED|CONTROL_XFR|CONTROL_HDR|CAN_CANCEL_IMMED|DOING_CALLBACK|0>
11:36:27.230537 usbus0.4 DONE-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=4,IVAL=0,ERR=0
frame[0] WRITE 8 bytes
frame[1] READ 2 bytes
0000 12 03 -- -- -- -- -- -- -- -- -- -- -- -- -- -- |.. |
flags 0x10 <PROXY_BUFFER|0>
status 0xc01a1 <OPEN|STARTED|CONTROL_XFR|CONTROL_HDR|CAN_CANCEL_IMMED|DOING_CALLBACK|0>
11:36:27.230559 usbus0.4 SUBM-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=8,IVAL=0
frame[0] WRITE 8 bytes
0000 80 06 02 03 09 04 12 00 -- -- -- -- -- -- -- -- |........ |
frame[1] READ 18 bytes
flags 0x10 <PROXY_BUFFER|0>
status 0xc01a3 <OPEN|TRANSFERRING|STARTED|CONTROL_XFR|CONTROL_HDR|CAN_CANCEL_IMMED|DOING_CALLBACK|0>
11:36:27.233536 usbus0.4 DONE-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=20,IVAL=0,ERR=0
frame[0] WRITE 8 bytes
frame[1] READ 18 bytes
0000 12 03 42 00 79 00 20 00 5A 00 48 00 38 00 35 00 |..B.y. .Z.H.8.5.|
0010 31 00 -- -- -- -- -- -- -- -- -- -- -- -- -- -- |1. |
flags 0x10 <PROXY_BUFFER|0>
status 0xc01a1 <OPEN|STARTED|CONTROL_XFR|CONTROL_HDR|CAN_CANCEL_IMMED|DOING_CALLBACK|0>
11:36:27.233590 usbus0.4 SUBM-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=8,IVAL=0
frame[0] WRITE 8 bytes
0000 80 06 00 02 00 00 09 00 -- -- -- -- -- -- -- -- |........ |
frame[1] READ 9 bytes
flags 0x10 <PROXY_BUFFER|0>
status 0xc01a3 <OPEN|TRANSFERRING|STARTED|CONTROL_XFR|CONTROL_HDR|CAN_CANCEL_IMMED|DOING_CALLBACK|0>
11:36:27.236536 usbus0.4 DONE-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=12,IVAL=0,ERR=0
frame[0] WRITE 8 bytes
frame[1] READ 9 bytes
0000 09 02 29 00 01 01 00 C0 32 -- -- -- -- -- -- -- |..).....2 |
flags 0x10 <PROXY_BUFFER|0>
status 0xc01a1 <OPEN|STARTED|CONTROL_XFR|CONTROL_HDR|CAN_CANCEL_IMMED|DOING_CALLBACK|0>
11:36:27.236560 usbus0.4 SUBM-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=8,IVAL=0
frame[0] WRITE 8 bytes
0000 80 06 00 02 00 00 29 00 -- -- -- -- -- -- -- -- |......). |
frame[1] READ 41 bytes
flags 0x10 <PROXY_BUFFER|0>
status 0xc01a3 <OPEN|TRANSFERRING|STARTED|CONTROL_XFR|CONTROL_HDR|CAN_CANCEL_IMMED|DOING_CALLBACK|0>
11:36:27.239537 usbus0.4 DONE-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=44,IVAL=0,ERR=0
frame[0] WRITE 8 bytes
frame[1] READ 41 bytes
0000 09 02 29 00 01 01 00 C0 32 09 04 00 00 02 03 00 |..).....2.......|
0010 00 00 09 21 10 01 00 01 22 FB 00 07 05 82 03 10 |...!....".......|
0020 00 0A 07 05 01 03 40 00 10 -- -- -- -- -- -- -- |***@.. |
flags 0x10 <PROXY_BUFFER|0>
status 0xc01a1 <OPEN|STARTED|CONTROL_XFR|CONTROL_HDR|CAN_CANCEL_IMMED|DOING_CALLBACK|0>
11:36:27.239561 usbus0.4 SUBM-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=8,IVAL=0
frame[0] WRITE 8 bytes
0000 80 00 00 00 00 00 02 00 -- -- -- -- -- -- -- -- |........ |
frame[1] READ 2 bytes
flags 0x10 <PROXY_BUFFER|0>
status 0xc01a3 <OPEN|TRANSFERRING|STARTED|CONTROL_XFR|CONTROL_HDR|CAN_CANCEL_IMMED|DOING_CALLBACK|0>
11:36:27.242536 usbus0.4 DONE-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=4,IVAL=0,ERR=0
frame[0] WRITE 8 bytes
frame[1] READ 2 bytes
0000 00 00 -- -- -- -- -- -- -- -- -- -- -- -- -- -- |.. |
flags 0x10 <PROXY_BUFFER|0>
status 0xc01a1 <OPEN|STARTED|CONTROL_XFR|CONTROL_HDR|CAN_CANCEL_IMMED|DOING_CALLBACK|0>
11:36:27.242559 usbus0.4 SUBM-CTRL-EP=00000000,SPD=FULL,NFR=1,SLEN=8,IVAL=0
frame[0] WRITE 8 bytes
0000 00 09 01 00 00 00 00 00 -- -- -- -- -- -- -- -- |........ |
flags 0x10 <PROXY_BUFFER|0>
status 0xc01a3 <OPEN|TRANSFERRING|STARTED|CONTROL_XFR|CONTROL_HDR|CAN_CANCEL_IMMED|DOING_CALLBACK|0>
11:36:27.244538 usbus0.4 DONE-CTRL-EP=00000000,SPD=FULL,NFR=1,SLEN=0,IVAL=0,ERR=0
frame[0] WRITE 8 bytes
flags 0x10 <PROXY_BUFFER|0>
status 0xc01a1 <OPEN|STARTED|CONTROL_XFR|CONTROL_HDR|CAN_CANCEL_IMMED|DOING_CALLBACK|0>
11:36:27.247225 usbus0.4 SUBM-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=8,IVAL=0
frame[0] WRITE 8 bytes
0000 81 06 00 22 00 00 FB 00 -- -- -- -- -- -- -- -- |...".... |
frame[1] READ 251 bytes
flags 0x10 <PROXY_BUFFER|0>
status 0xc01a3 <OPEN|TRANSFERRING|STARTED|CONTROL_XFR|CONTROL_HDR|CAN_CANCEL_IMMED|DOING_CALLBACK|0>
11:36:27.252550 usbus0.4 DONE-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=252,IVAL=0,ERR=0
frame[0] WRITE 8 bytes
frame[1] READ 251 bytes
flags 0x10 <PROXY_BUFFER|0>
status 0xc01a1 <OPEN|STARTED|CONTROL_XFR|CONTROL_HDR|CAN_CANCEL_IMMED|DOING_CALLBACK|0>
11:36:27.252709 usbus0.4 SUBM-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=8,IVAL=0
frame[0] WRITE 8 bytes
0000 81 06 00 22 00 00 FB 00 -- -- -- -- -- -- -- -- |...".... |
frame[1] READ 251 bytes
flags 0x10 <PROXY_BUFFER|0>
status 0xc01a3 <OPEN|TRANSFERRING|STARTED|CONTROL_XFR|CONTROL_HDR|CAN_CANCEL_IMMED|DOING_CALLBACK|0>
11:36:27.258546 usbus0.4 DONE-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=252,IVAL=0,ERR=0
frame[0] WRITE 8 bytes
frame[1] READ 251 bytes
flags 0x10 <PROXY_BUFFER|0>
status 0xc01a1 <OPEN|STARTED|CONTROL_XFR|CONTROL_HDR|CAN_CANCEL_IMMED|DOING_CALLBACK|0>

Will do the quirk test later.
--
B.Walter <***@bwct.de> http://www.bwct.de
Modbus/TCP Ethernet I/O Baugruppen, ARM basierte FreeBSD Rechner uvm.
Hans Petter Selasky
2018-03-09 12:19:54 UTC
Permalink
Post by Bernd Walter
Will do the quirk test later.
I don't see any stalls during plug-in, so it might be a request webcamd
issues, which the device doesn't support. Try building webcamd with
debug support.

--HPS
Bernd Walter
2018-03-09 13:25:39 UTC
Permalink
Post by Hans Petter Selasky
Post by Bernd Walter
Will do the quirk test later.
I don't see any stalls during plug-in, so it might be a request webcamd
issues, which the device doesn't support. Try building webcamd with
debug support.
It is already build with debug.
But I don't see anything of special interest in the output.

[24]sa# webcamd -d ugen0.4
Linux video capture interface: v2.00
IR NEC protocol handler initialized
IR RC5(x/sz) protocol handler initialized
IR RC6 protocol handler initialized
IR JVC protocol handler initialized
IR Sony protocol handler initialized
IR SANYO protocol handler initialized
IR LIRC bridge handler initialized
IR XMP protocol handler initialized
b2c2-flexcop: B2C2 FlexcopII/II(b)/III digital TV receiver chip loaded successfully
USB Video Class driver (1.1.1)
cpia2: V4L-Driver for Vision CPiA2 based cameras v3.0.1
pvrusb2: V4L in-tree version:Hauppauge WinTV-PVR-USB2 MPEG2 Encoder/Tuner
pvrusb2: Debug mask is 31 (0x1f)
USBVision USB Video Device Driver for Linux : 0.9.11
Attached to ugen0.4[0]
INFO: 0003:0EEF:0005.0001: input: USB HID v1.10 Mouse [BYZHYYZHY By ZH851] on usb-/dev/usb-/dev/usb/input0

DBG: 0003:0EEF:0005.0001: Kicking head 1 tail 0
Creating /dev/input/event0

I will redo a test with raspbian.
Waveshare delivered a binary kernel (so much about GPL) for their 7" HDMI C
until they changed something in the device firmware and upgraded for a newer
panel about 2-3 years ago.
This is the 10.1" HMDI B and it is a very early version I have, which however
should use a firmware similar to the newer 7" HDMI C.
I will retest with a stock Raspbian image to be sure I wasn't accidently
using a Waveshare image back then.
As far as I can see the Linux drivers just quirk the device to the egalaxy
driver, so they do know the Waveshare by ID.
I couldn't spot a difference between Linux and what is included in the webcamd
source.
--
B.Walter <***@bwct.de> http://www.bwct.de
Modbus/TCP Ethernet I/O Baugruppen, ARM basierte FreeBSD Rechner uvm.
Bernd Walter
2018-03-10 00:03:39 UTC
Permalink
Post by Bernd Walter
Post by Hans Petter Selasky
Post by Bernd Walter
Will do the quirk test later.
I don't see any stalls during plug-in, so it might be a request webcamd
issues, which the device doesn't support. Try building webcamd with
debug support.
It is already build with debug.
But I don't see anything of special interest in the output.
[24]sa# webcamd -d ugen0.4
Linux video capture interface: v2.00
IR NEC protocol handler initialized
IR RC5(x/sz) protocol handler initialized
IR RC6 protocol handler initialized
IR JVC protocol handler initialized
IR Sony protocol handler initialized
IR SANYO protocol handler initialized
IR LIRC bridge handler initialized
IR XMP protocol handler initialized
b2c2-flexcop: B2C2 FlexcopII/II(b)/III digital TV receiver chip loaded successfully
USB Video Class driver (1.1.1)
cpia2: V4L-Driver for Vision CPiA2 based cameras v3.0.1
pvrusb2: V4L in-tree version:Hauppauge WinTV-PVR-USB2 MPEG2 Encoder/Tuner
pvrusb2: Debug mask is 31 (0x1f)
USBVision USB Video Device Driver for Linux : 0.9.11
Attached to ugen0.4[0]
INFO: 0003:0EEF:0005.0001: input: USB HID v1.10 Mouse [BYZHYYZHY By ZH851] on usb-/dev/usb-/dev/usb/input0
DBG: 0003:0EEF:0005.0001: Kicking head 1 tail 0
Creating /dev/input/event0
I will redo a test with raspbian.
Waveshare delivered a binary kernel (so much about GPL) for their 7" HDMI C
until they changed something in the device firmware and upgraded for a newer
panel about 2-3 years ago.
This is the 10.1" HMDI B and it is a very early version I have, which however
should use a firmware similar to the newer 7" HDMI C.
I will retest with a stock Raspbian image to be sure I wasn't accidently
using a Waveshare image back then.
As far as I can see the Linux drivers just quirk the device to the egalaxy
driver, so they do know the Waveshare by ID.
I couldn't spot a difference between Linux and what is included in the webcamd
source.
So the older 7" HDMI C Rev 1.1 with the non IPS panel won't even attach, but
it always needed some special binary support for Linux, no surprises here.
The newer Rev 2.1 with the IPS panel claims to be the same and work with
webcamd, at least I get data via /dev/input/event0, which looks reasonable
with evdev-dump.
That's an interesting starting point.
--
B.Walter <***@bwct.de> http://www.bwct.de
Modbus/TCP Ethernet I/O Baugruppen, ARM basierte FreeBSD Rechner uvm.
Bernd Walter
2018-03-12 11:12:47 UTC
Permalink
Post by Bernd Walter
Post by Bernd Walter
Post by Hans Petter Selasky
Post by Bernd Walter
Will do the quirk test later.
I don't see any stalls during plug-in, so it might be a request webcamd
issues, which the device doesn't support. Try building webcamd with
debug support.
It is already build with debug.
But I don't see anything of special interest in the output.
[24]sa# webcamd -d ugen0.4
Linux video capture interface: v2.00
IR NEC protocol handler initialized
IR RC5(x/sz) protocol handler initialized
IR RC6 protocol handler initialized
IR JVC protocol handler initialized
IR Sony protocol handler initialized
IR SANYO protocol handler initialized
IR LIRC bridge handler initialized
IR XMP protocol handler initialized
b2c2-flexcop: B2C2 FlexcopII/II(b)/III digital TV receiver chip loaded successfully
USB Video Class driver (1.1.1)
cpia2: V4L-Driver for Vision CPiA2 based cameras v3.0.1
pvrusb2: V4L in-tree version:Hauppauge WinTV-PVR-USB2 MPEG2 Encoder/Tuner
pvrusb2: Debug mask is 31 (0x1f)
USBVision USB Video Device Driver for Linux : 0.9.11
Attached to ugen0.4[0]
INFO: 0003:0EEF:0005.0001: input: USB HID v1.10 Mouse [BYZHYYZHY By ZH851] on usb-/dev/usb-/dev/usb/input0
DBG: 0003:0EEF:0005.0001: Kicking head 1 tail 0
Creating /dev/input/event0
I will redo a test with raspbian.
Waveshare delivered a binary kernel (so much about GPL) for their 7" HDMI C
until they changed something in the device firmware and upgraded for a newer
panel about 2-3 years ago.
This is the 10.1" HMDI B and it is a very early version I have, which however
should use a firmware similar to the newer 7" HDMI C.
I will retest with a stock Raspbian image to be sure I wasn't accidently
using a Waveshare image back then.
As far as I can see the Linux drivers just quirk the device to the egalaxy
driver, so they do know the Waveshare by ID.
I couldn't spot a difference between Linux and what is included in the webcamd
source.
So the older 7" HDMI C Rev 1.1 with the non IPS panel won't even attach, but
it always needed some special binary support for Linux, no surprises here.
The newer Rev 2.1 with the IPS panel claims to be the same and work with
webcamd, at least I get data via /dev/input/event0, which looks reasonable
with evdev-dump.
That's an interesting starting point.
I've got a new model of the 10" HDMI B.
It behaves differently.
First of all - uep seems to take it, which it didn't for any of
the previous displays I'd tested.
I had to remove the driver from the loader.conf to have webcamd attach to it.
webcamd attaches fine and it delivers touch events:
[29]sa# evdev-dump /dev/input/event0
/dev/input/event0 3041705595.425438 EV_ABS ABS_MT_TRACKING_ID 0x00000000
/dev/input/event0 3041705595.425438 EV_ABS ABS_MT_POSITION_X 0x000001CF
/dev/input/event0 3041705595.425438 EV_ABS ABS_MT_POSITION_Y 0x0000025E
/dev/input/event0 3041705595.425438 EV_ABS ABS_MT_PRESSURE 0x00000005
/dev/input/event0 3041705595.425438 EV_KEY BTN_TOUCH 0x00000001
/dev/input/event0 3041705595.425438 EV_ABS ABS_X 0x000001CF
/dev/input/event0 3041705595.425438 EV_ABS ABS_Y 0x0000025E
/dev/input/event0 3041705595.425438 EV_ABS ABS_PRESSURE 0x00000005
/dev/input/event0 3041705595.425438 EV_SYN SYN_REPORT 0x00000000

Whatever had been the cause for my previous problem, they obviously
have fixed them in firmware.
--
B.Walter <***@bwct.de> http://www.bwct.de
Modbus/TCP Ethernet I/O Baugruppen, ARM basierte FreeBSD Rechner uvm.
Bernd Walter
2018-03-25 23:11:28 UTC
Permalink
Post by Bernd Walter
Post by Bernd Walter
So the older 7" HDMI C Rev 1.1 with the non IPS panel won't even attach, but
it always needed some special binary support for Linux, no surprises here.
The newer Rev 2.1 with the IPS panel claims to be the same and work with
webcamd, at least I get data via /dev/input/event0, which looks reasonable
with evdev-dump.
That's an interesting starting point.
I've got a new model of the 10" HDMI B.
It behaves differently.
First of all - uep seems to take it, which it didn't for any of
the previous displays I'd tested.
I had to remove the driver from the loader.conf to have webcamd attach to it.
[29]sa# evdev-dump /dev/input/event0
/dev/input/event0 3041705595.425438 EV_ABS ABS_MT_TRACKING_ID 0x00000000
/dev/input/event0 3041705595.425438 EV_ABS ABS_MT_POSITION_X 0x000001CF
/dev/input/event0 3041705595.425438 EV_ABS ABS_MT_POSITION_Y 0x0000025E
/dev/input/event0 3041705595.425438 EV_ABS ABS_MT_PRESSURE 0x00000005
/dev/input/event0 3041705595.425438 EV_KEY BTN_TOUCH 0x00000001
/dev/input/event0 3041705595.425438 EV_ABS ABS_X 0x000001CF
/dev/input/event0 3041705595.425438 EV_ABS ABS_Y 0x0000025E
/dev/input/event0 3041705595.425438 EV_ABS ABS_PRESSURE 0x00000005
/dev/input/event0 3041705595.425438 EV_SYN SYN_REPORT 0x00000000
Whatever had been the cause for my previous problem, they obviously
have fixed them in firmware.
Unfortunately I still have some problems.
[63]sa# evdev-dump /dev/input/event1
/dev/input/event1 3043946310.664423 EV_ABS ABS_MT_TRACKING_ID 0x0000003F
/dev/input/event1 3043946310.664423 EV_ABS ABS_MT_POSITION_X 0x000001C9
/dev/input/event1 3043946310.664423 EV_ABS ABS_MT_POSITION_Y 0x00000112
/dev/input/event1 3043946310.664423 EV_KEY BTN_TOUCH 0x00000001
/dev/input/event1 3043946310.664423 EV_ABS ABS_X 0x000001C9
/dev/input/event1 3043946310.664423 EV_ABS ABS_Y 0x00000112
/dev/input/event1 3043946310.664423 EV_SYN SYN_REPORT 0x00000000
/dev/input/event1 3043946310.784395 EV_ABS ABS_MT_TRACKING_ID 0xFFFFFFFF
/dev/input/event1 3043946310.784395 EV_KEY BTN_TOUCH 0x00000000
/dev/input/event1 3043946310.784395 EV_SYN SYN_REPORT 0x00000000




/dev/input/event1 3043946316.944324 EV_ABS ABS_MT_TRACKING_ID 0x00000040
/dev/input/event1 3043946316.944324 EV_ABS ABS_MT_POSITION_X 0x000001CE
/dev/input/event1 3043946316.944324 EV_ABS ABS_MT_POSITION_Y 0x000000FE
/dev/input/event1 3043946316.944324 EV_KEY BTN_TOUCH 0x00000001
/dev/input/event1 3043946316.944324 EV_ABS ABS_X 0x000001CE
/dev/input/event1 3043946316.944324 EV_ABS ABS_Y 0x000000FE
/dev/input/event1 3043946316.944324 EV_SYN SYN_REPORT 0x00000000
/dev/input/event1 3043946317.004303 EV_ABS ABS_MT_TRACKING_ID 0xFFFFFFFF
/dev/input/event1 3043946317.004303 EV_KEY BTN_TOUCH 0x00000000
/dev/input/event1 3043946317.004303 EV_SYN SYN_REPORT 0x00000000



/dev/input/event1 3043946319.744283 EV_ABS ABS_MT_TRACKING_ID 0x00000041
/dev/input/event1 3043946319.744283 EV_ABS ABS_MT_POSITION_X 0x0000020E
/dev/input/event1 3043946319.744283 EV_ABS ABS_MT_POSITION_Y 0x000000D8
/dev/input/event1 3043946319.744283 EV_KEY BTN_TOUCH 0x00000001
/dev/input/event1 3043946319.744283 EV_ABS ABS_X 0x0000020E
/dev/input/event1 3043946319.744283 EV_ABS ABS_Y 0x000000D8
/dev/input/event1 3043946319.744283 EV_SYN SYN_REPORT 0x00000000
/dev/input/event1 3043946319.864240 EV_ABS ABS_MT_TRACKING_ID 0xFFFFFFFF
/dev/input/event1 3043946319.864240 EV_KEY BTN_TOUCH 0x00000000
/dev/input/event1 3043946319.864240 EV_SYN SYN_REPORT 0x00000000



/dev/input/event1 3043946322.004229 EV_ABS ABS_MT_TRACKING_ID 0x00000042
/dev/input/event1 3043946322.004229 EV_ABS ABS_MT_POSITION_X 0x00000209
/dev/input/event1 3043946322.004229 EV_ABS ABS_MT_POSITION_Y 0x000000CD
/dev/input/event1 3043946322.004229 EV_KEY BTN_TOUCH 0x00000001
/dev/input/event1 3043946322.004229 EV_ABS ABS_X 0x00000209
/dev/input/event1 3043946322.004229 EV_ABS ABS_Y 0x000000CD
/dev/input/event1 3043946322.004229 EV_SYN SYN_REPORT 0x00000000




/dev/input/event1 3043946325.454187 EV_ABS ABS_MT_POSITION_X 0x0000016A
/dev/input/event1 3043946325.454187 EV_ABS ABS_MT_POSITION_Y 0x000000D2
/dev/input/event1 3043946325.454187 EV_ABS ABS_X 0x0000016A
/dev/input/event1 3043946325.454187 EV_ABS ABS_Y 0x000000D2
/dev/input/event1 3043946325.454187 EV_SYN SYN_REPORT 0x00000000
/dev/input/event1 3043946325.574174 EV_ABS ABS_MT_POSITION_X 0x0000016B
/dev/input/event1 3043946325.574174 EV_ABS ABS_X 0x0000016B
/dev/input/event1 3043946325.574174 EV_SYN SYN_REPORT 0x00000000

All 5 blocks are a single touch, which means finger on screen for a short
moment.
On the first 3 I get position data and BTN_TOUCH 1 as well as BTN_TOUCH 0.
But this is not consistent, sometime I get only a 1 and sometime only a 0.
In the 5th block I even got neither.
The timestamps on the first 3 cases mark it clearly when I removed the finger.
I got a 1 on touch-start and a 0 on touch-end.
On the 4th case I got a touch-start, but no touch-end.
In the 5th case I only got positon updates.
This is a 7" display - the 10" also delivers ABS_PRESSURE, but the problem
is the same that I don't consistently get the EV_KEY events.
--
B.Walter <***@bwct.de> http://www.bwct.de
Modbus/TCP Ethernet I/O Baugruppen, ARM basierte FreeBSD Rechner uvm.
Bernd Walter
2018-03-25 23:28:06 UTC
Permalink
Post by Bernd Walter
Post by Bernd Walter
Post by Bernd Walter
So the older 7" HDMI C Rev 1.1 with the non IPS panel won't even attach, but
it always needed some special binary support for Linux, no surprises here.
The newer Rev 2.1 with the IPS panel claims to be the same and work with
webcamd, at least I get data via /dev/input/event0, which looks reasonable
with evdev-dump.
That's an interesting starting point.
I've got a new model of the 10" HDMI B.
It behaves differently.
First of all - uep seems to take it, which it didn't for any of
the previous displays I'd tested.
I had to remove the driver from the loader.conf to have webcamd attach to it.
[29]sa# evdev-dump /dev/input/event0
/dev/input/event0 3041705595.425438 EV_ABS ABS_MT_TRACKING_ID 0x00000000
/dev/input/event0 3041705595.425438 EV_ABS ABS_MT_POSITION_X 0x000001CF
/dev/input/event0 3041705595.425438 EV_ABS ABS_MT_POSITION_Y 0x0000025E
/dev/input/event0 3041705595.425438 EV_ABS ABS_MT_PRESSURE 0x00000005
/dev/input/event0 3041705595.425438 EV_KEY BTN_TOUCH 0x00000001
/dev/input/event0 3041705595.425438 EV_ABS ABS_X 0x000001CF
/dev/input/event0 3041705595.425438 EV_ABS ABS_Y 0x0000025E
/dev/input/event0 3041705595.425438 EV_ABS ABS_PRESSURE 0x00000005
/dev/input/event0 3041705595.425438 EV_SYN SYN_REPORT 0x00000000
Whatever had been the cause for my previous problem, they obviously
have fixed them in firmware.
Unfortunately I still have some problems.
[63]sa# evdev-dump /dev/input/event1
/dev/input/event1 3043946310.664423 EV_ABS ABS_MT_TRACKING_ID 0x0000003F
/dev/input/event1 3043946310.664423 EV_ABS ABS_MT_POSITION_X 0x000001C9
/dev/input/event1 3043946310.664423 EV_ABS ABS_MT_POSITION_Y 0x00000112
/dev/input/event1 3043946310.664423 EV_KEY BTN_TOUCH 0x00000001
/dev/input/event1 3043946310.664423 EV_ABS ABS_X 0x000001C9
/dev/input/event1 3043946310.664423 EV_ABS ABS_Y 0x00000112
/dev/input/event1 3043946310.664423 EV_SYN SYN_REPORT 0x00000000
/dev/input/event1 3043946310.784395 EV_ABS ABS_MT_TRACKING_ID 0xFFFFFFFF
/dev/input/event1 3043946310.784395 EV_KEY BTN_TOUCH 0x00000000
/dev/input/event1 3043946310.784395 EV_SYN SYN_REPORT 0x00000000
/dev/input/event1 3043946316.944324 EV_ABS ABS_MT_TRACKING_ID 0x00000040
/dev/input/event1 3043946316.944324 EV_ABS ABS_MT_POSITION_X 0x000001CE
/dev/input/event1 3043946316.944324 EV_ABS ABS_MT_POSITION_Y 0x000000FE
/dev/input/event1 3043946316.944324 EV_KEY BTN_TOUCH 0x00000001
/dev/input/event1 3043946316.944324 EV_ABS ABS_X 0x000001CE
/dev/input/event1 3043946316.944324 EV_ABS ABS_Y 0x000000FE
/dev/input/event1 3043946316.944324 EV_SYN SYN_REPORT 0x00000000
/dev/input/event1 3043946317.004303 EV_ABS ABS_MT_TRACKING_ID 0xFFFFFFFF
/dev/input/event1 3043946317.004303 EV_KEY BTN_TOUCH 0x00000000
/dev/input/event1 3043946317.004303 EV_SYN SYN_REPORT 0x00000000
/dev/input/event1 3043946319.744283 EV_ABS ABS_MT_TRACKING_ID 0x00000041
/dev/input/event1 3043946319.744283 EV_ABS ABS_MT_POSITION_X 0x0000020E
/dev/input/event1 3043946319.744283 EV_ABS ABS_MT_POSITION_Y 0x000000D8
/dev/input/event1 3043946319.744283 EV_KEY BTN_TOUCH 0x00000001
/dev/input/event1 3043946319.744283 EV_ABS ABS_X 0x0000020E
/dev/input/event1 3043946319.744283 EV_ABS ABS_Y 0x000000D8
/dev/input/event1 3043946319.744283 EV_SYN SYN_REPORT 0x00000000
/dev/input/event1 3043946319.864240 EV_ABS ABS_MT_TRACKING_ID 0xFFFFFFFF
/dev/input/event1 3043946319.864240 EV_KEY BTN_TOUCH 0x00000000
/dev/input/event1 3043946319.864240 EV_SYN SYN_REPORT 0x00000000
/dev/input/event1 3043946322.004229 EV_ABS ABS_MT_TRACKING_ID 0x00000042
/dev/input/event1 3043946322.004229 EV_ABS ABS_MT_POSITION_X 0x00000209
/dev/input/event1 3043946322.004229 EV_ABS ABS_MT_POSITION_Y 0x000000CD
/dev/input/event1 3043946322.004229 EV_KEY BTN_TOUCH 0x00000001
/dev/input/event1 3043946322.004229 EV_ABS ABS_X 0x00000209
/dev/input/event1 3043946322.004229 EV_ABS ABS_Y 0x000000CD
/dev/input/event1 3043946322.004229 EV_SYN SYN_REPORT 0x00000000
/dev/input/event1 3043946325.454187 EV_ABS ABS_MT_POSITION_X 0x0000016A
/dev/input/event1 3043946325.454187 EV_ABS ABS_MT_POSITION_Y 0x000000D2
/dev/input/event1 3043946325.454187 EV_ABS ABS_X 0x0000016A
/dev/input/event1 3043946325.454187 EV_ABS ABS_Y 0x000000D2
/dev/input/event1 3043946325.454187 EV_SYN SYN_REPORT 0x00000000
/dev/input/event1 3043946325.574174 EV_ABS ABS_MT_POSITION_X 0x0000016B
/dev/input/event1 3043946325.574174 EV_ABS ABS_X 0x0000016B
/dev/input/event1 3043946325.574174 EV_SYN SYN_REPORT 0x00000000
All 5 blocks are a single touch, which means finger on screen for a short
moment.
On the first 3 I get position data and BTN_TOUCH 1 as well as BTN_TOUCH 0.
But this is not consistent, sometime I get only a 1 and sometime only a 0.
In the 5th block I even got neither.
The timestamps on the first 3 cases mark it clearly when I removed the finger.
I got a 1 on touch-start and a 0 on touch-end.
On the 4th case I got a touch-start, but no touch-end.
In the 5th case I only got positon updates.
This is a 7" display - the 10" also delivers ABS_PRESSURE, but the problem
is the same that I don't consistently get the EV_KEY events.
I somehow suspect that the device is dropping data, when the driver isn't
retrieving it fast enough.
I can't say for sure however, because usbdump has more interupt packets than
there is events on the /dev/input , although X and Y coordinates come in the
same packet.
But I couldn't isolate the button packets yet.
--
B.Walter <***@bwct.de> http://www.bwct.de
Modbus/TCP Ethernet I/O Baugruppen, ARM basierte FreeBSD Rechner uvm.
Bernd Walter
2018-03-27 04:24:51 UTC
Permalink
Post by Bernd Walter
I somehow suspect that the device is dropping data, when the driver isn't
retrieving it fast enough.
I can't say for sure however, because usbdump has more interupt packets than
there is events on the /dev/input , although X and Y coordinates come in the
same packet.
But I couldn't isolate the button packets yet.
The 10" (not the early model I had before) is working fine now using wmt(4).
I'd tested with wmt(4) before, but it failed.
Interestingly xf86-input-mouse via usbhidlib did work with mouse emulation on
the 7", which the 10" doesn't have, but the emulation of the device was bad
and in touch mode X crashed on both displays during device init.
uep(4) doesn't work at all, it is for a completely different protocol used on
some older eGalax devices - obviously some with resistive touch, but not sure.
Similar the egalax_ts.c in webcamd is only for the older eGalax devices.
Have to see why wmt(4) doesn't like the older devices, maybe this can be fixed.
--
B.Walter <***@bwct.de> http://www.bwct.de
Modbus/TCP Ethernet I/O Baugruppen, ARM basierte FreeBSD Rechner uvm.
Roberto Fernandez Cueto
2018-03-09 08:19:11 UTC
Permalink
Roberto Fernandez-Cueto schrieb am 09.03.2018 09:19
_____________________________________________________________________

I do not if this helps, but what I usually do when I get to work with a
new touchscreen is to see if FreeBSD detects it as UHID.

If it is recognized, then I check if the touchscreen send absolute
coordinates or relative coordinates.

You can do it with usbhidctl(1). See the collection, items and get the
values parsed by the HID layer.

If it helps, let me know.

Roberto Fernandez Cueto
Post by Bernd Walter
Post by Hans Petter Selasky
You can try running usbdump to capture USB packets.
ktrace is also your friend.
dd if=/dev/input/event0 bs=1
Also check ownership of devices, that X.org can read from them.
It happens earlier, /dev/input/event0 delivers nothing at all.
But usbdump is interesting.
I've booted with webcamd disabled, started usbdump and started webcamd.
[22]sa# usbdump -v -f 4
00:30:09.379930 usbus0.4 SUBM-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=8,IVAL=0
frame[0] WRITE 8 bytes
0000 80 06 00 03 00 00 04 00 -- -- -- -- -- -- -- -- |........ |
frame[1] READ 4 bytes
00:30:09.382401 usbus0.4 DONE-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=4,IVAL=0,ERR=0
frame[0] WRITE 8 bytes
frame[1] READ 4 bytes
0000 04 03 09 04 -- -- -- -- -- -- -- -- -- -- -- -- |.... |
00:30:09.382448 usbus0.4 SUBM-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=8,IVAL=0
frame[0] WRITE 8 bytes
0000 80 06 00 03 00 00 04 00 -- -- -- -- -- -- -- -- |........ |
frame[1] READ 4 bytes
00:30:09.385398 usbus0.4 DONE-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=4,IVAL=0,ERR=0
frame[0] WRITE 8 bytes
frame[1] READ 4 bytes
0000 04 03 09 04 -- -- -- -- -- -- -- -- -- -- -- -- |.... |
00:30:09.385439 usbus0.4 SUBM-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=8,IVAL=0
frame[0] WRITE 8 bytes
0000 80 06 02 03 09 04 04 00 -- -- -- -- -- -- -- -- |........ |
frame[1] READ 4 bytes
00:30:09.388398 usbus0.4 DONE-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=4,IVAL=0,ERR=0
frame[0] WRITE 8 bytes
frame[1] READ 4 bytes
0000 12 03 42 00 -- -- -- -- -- -- -- -- -- -- -- -- |..B. |
00:30:09.388434 usbus0.4 SUBM-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=8,IVAL=0
frame[0] WRITE 8 bytes
0000 80 06 02 03 09 04 12 00 -- -- -- -- -- -- -- -- |........ |
frame[1] READ 18 bytes
00:30:09.391399 usbus0.4 DONE-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=20,IVAL=0,ERR=0
frame[0] WRITE 8 bytes
frame[1] READ 18 bytes
0000 12 03 42 00 79 00 20 00 5A 00 48 00 38 00 35 00 |..B.y. .Z.H.8.5.|
0010 31 00 -- -- -- -- -- -- -- -- -- -- -- -- -- -- |1. |
00:30:09.391474 usbus0.4 SUBM-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=8,IVAL=0
frame[0] WRITE 8 bytes
0000 80 06 00 03 00 00 04 00 -- -- -- -- -- -- -- -- |........ |
frame[1] READ 4 bytes
00:30:09.394398 usbus0.4 DONE-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=4,IVAL=0,ERR=0
frame[0] WRITE 8 bytes
frame[1] READ 4 bytes
0000 04 03 09 04 -- -- -- -- -- -- -- -- -- -- -- -- |.... |
00:30:09.394435 usbus0.4 SUBM-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=8,IVAL=0
frame[0] WRITE 8 bytes
0000 80 06 00 03 00 00 04 00 -- -- -- -- -- -- -- -- |........ |
frame[1] READ 4 bytes
00:30:09.397398 usbus0.4 DONE-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=4,IVAL=0,ERR=0
frame[0] WRITE 8 bytes
frame[1] READ 4 bytes
0000 04 03 09 04 -- -- -- -- -- -- -- -- -- -- -- -- |.... |
00:30:09.397436 usbus0.4 SUBM-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=8,IVAL=0
frame[0] WRITE 8 bytes
0000 80 06 01 03 09 04 04 00 -- -- -- -- -- -- -- -- |........ |
frame[1] READ 4 bytes
00:30:09.400398 usbus0.4 DONE-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=4,IVAL=0,ERR=0
frame[0] WRITE 8 bytes
frame[1] READ 4 bytes
0000 14 03 42 00 -- -- -- -- -- -- -- -- -- -- -- -- |..B. |
00:30:09.400433 usbus0.4 SUBM-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=8,IVAL=0
frame[0] WRITE 8 bytes
0000 80 06 01 03 09 04 14 00 -- -- -- -- -- -- -- -- |........ |
frame[1] READ 20 bytes
00:30:09.403398 usbus0.4 DONE-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=20,IVAL=0,ERR=0
frame[0] WRITE 8 bytes
frame[1] READ 20 bytes
0000 14 03 42 00 59 00 5A 00 48 00 59 00 59 00 5A 00 |..B.Y.Z.H.Y.Y.Z.|
0010 48 00 59 00 -- -- -- -- -- -- -- -- -- -- -- -- |H.Y. |
00:30:09.403440 usbus0.4 SUBM-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=8,IVAL=0
frame[0] WRITE 8 bytes
0000 80 06 00 03 00 00 04 00 -- -- -- -- -- -- -- -- |........ |
frame[1] READ 4 bytes
00:30:09.406398 usbus0.4 DONE-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=4,IVAL=0,ERR=0
frame[0] WRITE 8 bytes
frame[1] READ 4 bytes
0000 04 03 09 04 -- -- -- -- -- -- -- -- -- -- -- -- |.... |
00:30:09.406437 usbus0.4 SUBM-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=8,IVAL=0
frame[0] WRITE 8 bytes
0000 80 06 00 03 00 00 04 00 -- -- -- -- -- -- -- -- |........ |
frame[1] READ 4 bytes
00:30:09.409397 usbus0.4 DONE-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=4,IVAL=0,ERR=0
frame[0] WRITE 8 bytes
frame[1] READ 4 bytes
0000 04 03 09 04 -- -- -- -- -- -- -- -- -- -- -- -- |.... |
00:30:09.409434 usbus0.4 SUBM-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=8,IVAL=0
frame[0] WRITE 8 bytes
0000 80 06 03 03 09 04 04 00 -- -- -- -- -- -- -- -- |........ |
frame[1] READ 4 bytes
00:30:09.412398 usbus0.4 DONE-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=4,IVAL=0,ERR=0
frame[0] WRITE 8 bytes
frame[1] READ 4 bytes
0000 1A 03 1A 00 -- -- -- -- -- -- -- -- -- -- -- -- |.... |
00:30:09.412434 usbus0.4 SUBM-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=8,IVAL=0
frame[0] WRITE 8 bytes
0000 80 06 03 03 09 04 1A 00 -- -- -- -- -- -- -- -- |........ |
frame[1] READ 26 bytes
00:30:09.415398 usbus0.4 DONE-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=28,IVAL=0,ERR=0
frame[0] WRITE 8 bytes
frame[1] READ 26 bytes
0000 1A 03 1A 00 95 00 50 00 33 00 39 00 31 00 31 00 |......P.3.9.1.1.|
0010 06 00 32 00 33 00 39 00 38 00 -- -- -- -- -- -- |..2.3.9.8. |
00:30:09.420243 usbus0.4 SUBM-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=8,IVAL=0
frame[0] WRITE 8 bytes
0000 80 06 00 03 00 00 04 00 -- -- -- -- -- -- -- -- |........ |
frame[1] READ 4 bytes
00:30:09.422400 usbus0.4 DONE-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=4,IVAL=0,ERR=0
frame[0] WRITE 8 bytes
frame[1] READ 4 bytes
0000 04 03 09 04 -- -- -- -- -- -- -- -- -- -- -- -- |.... |
00:30:09.422441 usbus0.4 SUBM-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=8,IVAL=0
frame[0] WRITE 8 bytes
0000 80 06 00 03 00 00 04 00 -- -- -- -- -- -- -- -- |........ |
frame[1] READ 4 bytes
00:30:09.425398 usbus0.4 DONE-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=4,IVAL=0,ERR=0
frame[0] WRITE 8 bytes
frame[1] READ 4 bytes
0000 04 03 09 04 -- -- -- -- -- -- -- -- -- -- -- -- |.... |
00:30:09.425436 usbus0.4 SUBM-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=8,IVAL=0
frame[0] WRITE 8 bytes
0000 80 06 03 03 09 04 04 00 -- -- -- -- -- -- -- -- |........ |
frame[1] READ 4 bytes
00:30:09.428398 usbus0.4 DONE-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=4,IVAL=0,ERR=0
frame[0] WRITE 8 bytes
frame[1] READ 4 bytes
0000 1A 03 1A 00 -- -- -- -- -- -- -- -- -- -- -- -- |.... |
00:30:09.428436 usbus0.4 SUBM-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=8,IVAL=0
frame[0] WRITE 8 bytes
0000 80 06 03 03 09 04 1A 00 -- -- -- -- -- -- -- -- |........ |
frame[1] READ 26 bytes
00:30:09.431398 usbus0.4 DONE-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=28,IVAL=0,ERR=0
frame[0] WRITE 8 bytes
frame[1] READ 26 bytes
0000 1A 03 1A 00 95 00 50 00 33 00 39 00 31 00 31 00 |......P.3.9.1.1.|
0010 06 00 32 00 33 00 39 00 38 00 -- -- -- -- -- -- |..2.3.9.8. |
00:30:09.431941 usbus0.4 SUBM-CTRL-EP=00000000,SPD=FULL,NFR=1,SLEN=8,IVAL=0
frame[0] WRITE 8 bytes
0000 21 0A 00 00 00 00 00 00 -- -- -- -- -- -- -- -- |!....... |
00:30:09.433396 usbus0.4 DONE-CTRL-EP=00000000,SPD=FULL,NFR=1,SLEN=0,IVAL=0,ERR=STALLED
frame[0] WRITE 8 bytes
00:30:09.433442 usbus0.4 SUBM-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=8,IVAL=0
frame[0] WRITE 8 bytes
0000 81 06 00 22 00 00 FB 00 -- -- -- -- -- -- -- -- |...".... |
frame[1] READ 251 bytes
00:30:09.439403 usbus0.4 DONE-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=252,IVAL=0,ERR=0
frame[0] WRITE 8 bytes
frame[1] READ 251 bytes
00:30:09.447376 usbus0.4 SUBM-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=8,IVAL=0
frame[0] WRITE 8 bytes
0000 A1 01 02 03 00 00 02 00 -- -- -- -- -- -- -- -- |........ |
frame[1] READ 2 bytes
00:30:09.450400 usbus0.4 DONE-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=4,IVAL=0,ERR=0
frame[0] WRITE 8 bytes
frame[1] READ 2 bytes
0000 02 0A -- -- -- -- -- -- -- -- -- -- -- -- -- -- |.. |
00:30:09.451878 usbus0.4 SUBM-CTRL-EP=00000000,SPD=FULL,NFR=2,SLEN=12,IVAL=0
frame[0] WRITE 8 bytes
0000 21 09 03 03 00 00 03 00 -- -- -- -- -- -- -- -- |!....... |
frame[1] WRITE 3 bytes
0000 03 02 00 -- -- -- -- -- -- -- -- -- -- -- -- -- |... |
00:30:09.454404 usbus0.4 DONE-CTRL-EP=00000000,SPD=FULL,NFR=2,SLEN=0,IVAL=0,ERR=0
frame[0] WRITE 8 bytes
frame[1] WRITE 3 bytes
00:30:09.466235 usbus0.4 SUBM-INTR-EP=00000082,SPD=FULL,NFR=1,SLEN=0,IVAL=10
frame[0] READ 14 bytes
00:30:09.523430 usbus0.4 DONE-INTR-EP=00000082,SPD=FULL,NFR=0,SLEN=0,IVAL=10,ERR=CANCELLED
It is obvious that the communication fails very early.
--
Modbus/TCP Ethernet I/O Baugruppen, ARM basierte FreeBSD Rechner uvm.
_______________________________________________
https://lists.freebsd.org/mailman/listinfo/freebsd-current
BALLY WULFF Games & Entertainment GmbH, Maybachufer 48-51, 12045 Berlin, Postanschrift: Postfach 44 01 57, 12001 Berlin Tel.: 030-620 02-0 FAX: 030-620 02-200, Geschaeftsfuehrer: Thomas Niehenke, Lars Rogge, Thomas Wendt, Amtsgericht Berlin-Charlottenburg HRB 139020 B, UST-IdNr. DE815328376
_____________________________________________________________________
Dieses E-Mail ist nur fuer den Empfaenger bestimmt, an den es gerichtet
ist und kann vertrauliches bzw. unter das Berufsgeheimnis fallendes
Material enthalten. Jegliche darin enthaltene Ansicht oder Meinungs-
aeusserung ist die des Autors und stellt nicht notwendigerweise die
Ansicht oder Meinung von Bally Wulff Games & Entertainment GmbH dar.
Sind Sie nicht der Empfaenger, so haben Sie diese E-Mail irrtuemlich
erhalten und jegliche Verwendung, Veroeffentlichung, Weiterleitung,
Abschrift oder jeglicher Druck dieser E-Mail ist strengstens untersagt.

Weder Bally Wulff Games & Entertainment GmbH noch der Absender
uebernehmen die Haftung fuer Viren. Es obliegt Ihrer Verantwortung,
die E-Mail und deren Anhaenge auf Viren zu pruefen.
Anhaenge:
_____________________________________________________________________
Versand am 09.03.2018 09:19 von Fernandez-Cueto Roberto
Bernd Walter
2018-03-09 11:44:22 UTC
Permalink
Post by Roberto Fernandez Cueto
Roberto Fernandez-Cueto schrieb am 09.03.2018 09:19
_____________________________________________________________________
I do not if this helps, but what I usually do when I get to work with a
new touchscreen is to see if FreeBSD detects it as UHID.
I hadn't loaded uhid, but it detects the device.
Post by Roberto Fernandez Cueto
If it is recognized, then I check if the touchscreen send absolute
coordinates or relative coordinates.
You can do it with usbhidctl(1). See the collection, items and get the
values parsed by the HID layer.
Well, this has to wait until I found time to read more about it.
HID is something I've always hated and never really spend much time into.
--
B.Walter <***@bwct.de> http://www.bwct.de
Modbus/TCP Ethernet I/O Baugruppen, ARM basierte FreeBSD Rechner uvm.
Roberto Fernandez Cueto
2018-03-08 16:36:06 UTC
Permalink
Roberto Fernandez-Cueto schrieb am 08.03.2018 17:36
_____________________________________________________________________

You have to explicitely tell Xorg that you want to use the touch with
the layout.

Something like,

Section "ServerLayout"
Identifier "MyLayout"
InputDevice "touchscreen"
EndSection
Post by Bernd Walter
Hardware is a Raspberry Pi3 with current r330034.
I'm trying to run a USB touchscreen.
Tested wmt and uep, but neither wants to attach, although the Waveshare
display I'm using is likely running an egalaxy firmware.
However webcamd accepts the device and creates a /dev/input/event0.
But I can't get X to use it.
xf86-input-evdev-2.10.5 is installed and it created an X config file
under /usr/local/share/X11/xorg.conf.d/10-evdev.conf.
I also tried some google results in /etc/X11/xorg.conf, but X never
[ 19417.932]
X.Org X Server 1.18.4
Release Date: 2016-07-19
[ 19417.932] X Protocol Version 11, Revision 0
[ 19417.932] Build Operating System: FreeBSD 12.0-CURRENT arm64
[ 19417.933] Build Date: 19 January 2018 09:58:28PM
[ 19417.934]
[ 19417.934] Current version of pixman: 0.34.0
[ 19417.934] Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
[ 19417.934] Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[ 19417.934] (==) Log file: "/var/log/Xorg.0.log", Time: Wed Mar 7 15:59:15 2018
[ 19417.935] (==) Using config file: "/etc/X11/xorg.conf"
[ 19417.935] (==) Using system config directory "/usr/local/share/X11/xorg.conf.d"
[ 19417.936] (==) No Layout section. Using the first Screen section.
[ 19417.936] (==) No screen section available. Using defaults.
[ 19417.936] (**) |-->Screen "Default Screen Section" (0)
[ 19417.936] (**) | |-->Monitor "<default monitor>"
[ 19417.937] (==) No monitor specified for screen "Default Screen Section".
Using a default monitor configuration.
[ 19417.938] (==) Automatically adding devices
[ 19417.938] (==) Automatically enabling devices
[ 19417.938] (==) Not automatically adding GPU devices
[ 19417.938] (==) Max clients allowed: 256, resource mask: 0x1fffff
/usr/local/share/fonts/misc/,
/usr/local/share/fonts/TTF/,
/usr/local/share/fonts/OTF/,
/usr/local/share/fonts/Type1/,
/usr/local/share/fonts/100dpi/,
/usr/local/share/fonts/75dpi/
[ 19417.938] (==) ModulePath set to "/usr/local/lib/xorg/modules"
[ 19417.938] (II) The server relies on devd to provide the list of input devices.
If no devices become available, reconfigure devd or disable AutoAddDevices.
[ 19417.938] (II) Loader magic: 0x1e0018
[ 19417.939] X.Org ANSI C Emulation: 0.4
[ 19417.939] X.Org Video Driver: 20.0
[ 19417.939] X.Org XInput driver : 22.1
[ 19417.939] X.Org Server Extension : 9.0
[ 19417.939] (II) LoadModule: "glx"
[ 19417.940] (II) Loading /usr/local/lib/xorg/modules/extensions/libglx.so
[ 19417.951] (II) Module glx: vendor="X.Org Foundation"
[ 19417.951] compiled for 1.18.4, module version = 1.0.0
[ 19417.951] ABI class: X.Org Server Extension, version 9.0
[ 19417.951] (==) AIGLX enabled
[ 19417.951] (==) Matched modesetting as autoconfigured driver 0
[ 19417.951] (==) Matched scfb as autoconfigured driver 1
[ 19417.951] (==) Assigned the driver to the xf86ConfigLayout
[ 19417.951] (II) LoadModule: "modesetting"
[ 19417.952] (II) Loading /usr/local/lib/xorg/modules/drivers/modesetting_drv.so
[ 19417.952] (II) Module modesetting: vendor="X.Org Foundation"
[ 19417.952] compiled for 1.18.4, module version = 1.18.4
[ 19417.952] Module class: X.Org Video Driver
[ 19417.952] ABI class: X.Org Video Driver, version 20.0
[ 19417.952] (II) LoadModule: "scfb"
[ 19417.953] (II) Loading /usr/local/lib/xorg/modules/drivers/scfb_drv.so
[ 19417.953] (II) Module scfb: vendor="X.Org Foundation"
[ 19417.953] compiled for 1.18.4, module version = 0.0.4
[ 19417.953] ABI class: X.Org Video Driver, version 20.0
[ 19417.954] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[ 19417.954] (II) scfb: driver for wsdisplay framebuffer: scfb
[ 19417.954] (--) Using syscons driver with X support (version 2.0)
[ 19417.954] (--) using VT number 2
[ 19417.954] (WW) Falling back to old probe method for modesetting
[ 19417.955] (EE) open /dev/dri/card0: No such file or directory
[ 19417.955] (WW) Falling back to old probe method for scfb
[ 19417.955] scfb trace: probe start
[ 19417.955] (II) scfb(0): using default device
[ 19417.955] scfb trace: probe done
[ 19417.955] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
[ 19417.955] scfb: PreInit 0
[ 19417.955] (II) scfb(0): Using: depth (24), width (1280), height (800)
[ 19417.956] (II) scfb(0): Creating default Display subsection in Screen section
"Default Screen Section" for depth/fbbpp 24/24
[ 19417.956] (==) scfb(0): Depth 24, (==) framebuffer bpp 24
[ 19417.956] (==) scfb(0): RGB weight 888
[ 19417.956] (==) scfb(0): Default visual is TrueColor
[ 19417.956] (==) scfb(0): Using gamma correction (1.0, 1.0, 1.0)
[ 19417.956] (II) scfb(0): Vidmem: 3000k
[ 19417.956] (==) scfb(0): DPI set to (96, 96)
[ 19417.956] (**) scfb(0): Using "Shadow Framebuffer"
[ 19417.956] (II) Loading sub module "shadow"
[ 19417.956] (II) LoadModule: "shadow"
[ 19417.957] (II) Loading /usr/local/lib/xorg/modules/libshadow.so
[ 19417.958] (II) Module shadow: vendor="X.Org Foundation"
[ 19417.958] compiled for 1.18.4, module version = 1.1.0
[ 19417.958] ABI class: X.Org ANSI C Emulation, version 0.4
[ 19417.958] (II) Loading sub module "fb"
[ 19417.958] (II) LoadModule: "fb"
[ 19417.958] (II) Loading /usr/local/lib/xorg/modules/libfb.so
[ 19417.960] (II) Module fb: vendor="X.Org Foundation"
[ 19417.960] compiled for 1.18.4, module version = 1.0.0
[ 19417.961] ABI class: X.Org ANSI C Emulation, version 0.4
[ 19417.961] scfb: PreInit done
[ 19417.961] (II) UnloadModule: "modesetting"
[ 19417.961] (II) Unloading modesetting
[ 19417.961] (--) Depth 24 pixmap format is 24 bpp
[ 19417.961] scfb: ScfbScreenInit 0
[ 19417.961] bitsPerPixel=24, depth=24, defaultVisual=TrueColor
mask: ff0000,ff00,ff, offset: 16,8,0
[ 19417.962] mmap returns: addr 0x41abb000 len 0x2ee000, fd 5, off 0
[ 19417.962] scfb: ScfbSave 0
[ 19417.962] scfb: ScfbSave done
[ 19417.963] (==) scfb(0): Backing store enabled
[ 19417.963] scfb: ScfbScreenInit done
[ 19417.963] (==) RandR enabled
[ 19417.964] (II) AIGLX: Screen 0 is not DRI2 capable
[ 19417.964] (EE) AIGLX: reverting to software rendering
[ 19418.375] (II) AIGLX: enabled GLX_MESA_copy_sub_buffer
[ 19418.382] (II) AIGLX: Loaded and initialized swrast
[ 19418.382] (II) GLX: Initialized DRISWRAST GL provider for screen 0
[ 19419.556] (II) config/devd: probing input devices...
[ 19419.556] (II) config/devd: adding input device (null) (/dev/kbdmux)
[ 19419.556] (II) LoadModule: "kbd"
[ 19419.558] (II) Loading /usr/local/lib/xorg/modules/input/kbd_drv.so
[ 19419.558] (II) Module kbd: vendor="X.Org Foundation"
[ 19419.558] compiled for 1.18.4, module version = 1.9.0
[ 19419.558] Module class: X.Org XInput Driver
[ 19419.559] ABI class: X.Org XInput driver, version 22.1
[ 19419.559] (II) Using input driver 'kbd' for 'kbdmux'
[ 19419.559] (**) kbdmux: always reports core events
[ 19419.559] (**) kbdmux: always reports core events
[ 19419.559] (**) Option "Protocol" "standard"
[ 19419.559] (**) Option "XkbRules" "base"
[ 19419.559] (**) Option "XkbModel" "pc105"
[ 19419.559] (**) Option "XkbLayout" "us"
[ 19419.559] (**) Option "config_info" "devd:kbdmux"
[ 19419.560] (II) XINPUT: Adding extended input device "kbdmux" (type: KEYBOARD, id 6)
[ 19419.562] (II) config/devd: adding input device (null) (/dev/sysmouse)
[ 19419.562] (II) LoadModule: "mouse"
[ 19419.563] (II) Loading /usr/local/lib/xorg/modules/input/mouse_drv.so
[ 19419.564] (II) Module mouse: vendor="X.Org Foundation"
[ 19419.564] compiled for 1.18.4, module version = 1.9.2
[ 19419.564] Module class: X.Org XInput Driver
[ 19419.564] ABI class: X.Org XInput driver, version 22.1
[ 19419.564] (II) Using input driver 'mouse' for 'sysmouse'
[ 19419.565] (**) sysmouse: always reports core events
[ 19419.565] (**) Option "Device" "/dev/sysmouse"
[ 19419.565] (==) sysmouse: Protocol: "Auto"
[ 19419.565] (**) sysmouse: always reports core events
[ 19419.565] (==) sysmouse: Emulate3Buttons, Emulate3Timeout: 50
[ 19419.565] (**) sysmouse: ZAxisMapping: buttons 4 and 5
[ 19419.565] (**) sysmouse: Buttons: 5
[ 19419.565] (**) Option "config_info" "devd:sysmouse"
[ 19419.566] (II) XINPUT: Adding extended input device "sysmouse" (type: MOUSE, id 7)
[ 19419.566] (**) sysmouse: (accel) keeping acceleration scheme 1
[ 19419.566] (**) sysmouse: (accel) acceleration profile 0
[ 19419.566] (**) sysmouse: (accel) acceleration factor: 2.000
[ 19419.566] (**) sysmouse: (accel) acceleration threshold: 4
[ 19419.567] (II) sysmouse: SetupAuto: hw.iftype is 4, hw.model is 0
[ 19419.567] (II) sysmouse: SetupAuto: protocol is SysMouse
[ 19419.567] (II) config/devd: device /dev/ums0 already opened
[67]sa# grep webcam /etc/rc.conf
webcamd_enable="YES"
webcamd_0_flags="-N BYZHYYZHY-By-ZH851 -M 0"
#webcamd [-d ugen0.5] -N BYZHYYZHY-By-ZH851 -S P39112398 -M 0
[68]sa# ps -axl | grep webcam
0 592 1 0 -44 0 21736 1580 cuse-ser I<s - 0:08.99 /usr/local/sbin/webcamd -N BYZHYYZHY-By-ZH851 -M 0 -B -U webcamd -G webcamd
0 10267 738 0 21 0 11560 2640 - R+ 1 0:00.01 grep webcam
[69]sa# ls -la /dev/input/event0
crw-rw---- 1 webcamd webcamd 0x6c Mar 7 10:35 /dev/input/event0
--
Modbus/TCP Ethernet I/O Baugruppen, ARM basierte FreeBSD Rechner uvm.
_______________________________________________
https://lists.freebsd.org/mailman/listinfo/freebsd-current
BALLY WULFF Games & Entertainment GmbH, Maybachufer 48-51, 12045 Berlin, Postanschrift: Postfach 44 01 57, 12001 Berlin Tel.: 030-620 02-0 FAX: 030-620 02-200, Geschaeftsfuehrer: Thomas Niehenke, Lars Rogge, Thomas Wendt, Amtsgericht Berlin-Charlottenburg HRB 139020 B, UST-IdNr. DE815328376
_____________________________________________________________________
Dieses E-Mail ist nur fuer den Empfaenger bestimmt, an den es gerichtet
ist und kann vertrauliches bzw. unter das Berufsgeheimnis fallendes
Material enthalten. Jegliche darin enthaltene Ansicht oder Meinungs-
aeusserung ist die des Autors und stellt nicht notwendigerweise die
Ansicht oder Meinung von Bally Wulff Games & Entertainment GmbH dar.
Sind Sie nicht der Empfaenger, so haben Sie diese E-Mail irrtuemlich
erhalten und jegliche Verwendung, Veroeffentlichung, Weiterleitung,
Abschrift oder jeglicher Druck dieser E-Mail ist strengstens untersagt.

Weder Bally Wulff Games & Entertainment GmbH noch der Absender
uebernehmen die Haftung fuer Viren. Es obliegt Ihrer Verantwortung,
die E-Mail und deren Anhaenge auf Viren zu pruefen.
Anhaenge:
_____________________________________________________________________
Versand am 08.03.2018 17:36 von Fernandez-Cueto Roberto
Loading...