From owner-freebsd-arm@freebsd.org Thu Mar 8 16:20:29 2018 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5671BF406BD; Thu, 8 Mar 2018 16:20:29 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (turbocat.net [88.99.82.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id E390883298; Thu, 8 Mar 2018 16:20:28 +0000 (UTC) (envelope-from hps@selasky.org) Received: from hps2016.home.selasky.org (unknown [62.141.128.70]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id C2C7B2602E8; Thu, 8 Mar 2018 17:20:26 +0100 (CET) Subject: Re: webcamd based touchscreen problem on Pi3 To: ticso@cicely.de, freebsd-arm@freebsd.org, freebsd-current@freebsd.org Cc: Bernd Walter References: <20180308161645.GF80981@cicely7.cicely.de> From: Hans Petter Selasky Message-ID: <818e1917-0472-c0dd-a9d6-b7532faf4d4b@selasky.org> Date: Thu, 8 Mar 2018 17:20:22 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <20180308161645.GF80981@cicely7.cicely.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Mar 2018 16:20:29 -0000 On 03/08/18 17:16, Bernd Walter wrote: > 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 "" > [ 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 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