Date: Thu, 8 Mar 2018 17:16:45 +0100 From: Bernd Walter <ticso@cicely7.cicely.de> To: freebsd-arm@freebsd.org, freebsd-current@freebsd.org Cc: Bernd Walter <ticso@cicely7.cicely.de> Subject: webcamd based touchscreen problem on Pi3 Message-ID: <20180308161645.GF80981@cicely7.cicely.de>
next in thread | raw e-mail | index | archive | help
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 ticso@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 <bernd@bwct.de> http://www.bwct.de Modbus/TCP Ethernet I/O Baugruppen, ARM basierte FreeBSD Rechner uvm.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20180308161645.GF80981>