From owner-freebsd-x11@freebsd.org Sun Oct 6 01:42:06 2019 Return-Path: Delivered-To: freebsd-x11@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id B6284143702 for ; Sun, 6 Oct 2019 01:42:06 +0000 (UTC) (envelope-from greg@unrelenting.technology) Received: from out.migadu.com (out.migadu.com [91.121.223.63]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "smtp.migadu.com", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46m5vJ4KSCz4Mk0 for ; Sun, 6 Oct 2019 01:42:03 +0000 (UTC) (envelope-from greg@unrelenting.technology) Received: (Migadu outbound); Sun, 06 Oct 2019 01:42:00 +0000 Received: from [192.168.1.155] ([62.122.208.146]) by out.migadu.com (Haraka/2.8.16) with ESMTPSA id 14F89B82-AA29-4061-A240-4449F263358A.1 envelope-from (authenticated bits=0) (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 verify=FAIL); Sun, 06 Oct 2019 01:41:59 +0000 Date: Sun, 06 Oct 2019 04:41:54 +0300 User-Agent: K-9 Mail for Android In-Reply-To: References: <300f65b7469c608ad4cd32a9ad6c41d6@unrelenting.technology> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: Xorg with evdev input devices To: Vasily Postnicov CC: freebsd-x11@freebsd.org From: Greg V Message-ID: DKIM-Signature: v=1; a=rsa-sha256; bh=OC8mrPNO5ww9nHM7Y+IIXbNLJBMAdDkApVWBtoE8L9w=; c=relaxed/simple; d=unrelenting.technology; h=from:subject:date:to; s=default; b=WDn6yXW3VupL01WgWpQs/0LWiOWTdB7G7kSAszm+IYnOMDnlZPIHr6uLUy2rGmdV6Yz0mvLjZ9OAhq5lvgBRr5jEjpKlzafJrbkz+p+Ko3hnlG56JdiMiiKJOVdPrZGY0YIkhjMaiYfWWrLLi6LsvOMypgNmNkRJ5MaNGiG9sT0= X-Rspamd-Queue-Id: 46m5vJ4KSCz4Mk0 X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=unrelenting.technology header.s=default header.b=WDn6yXW3; dmarc=pass (policy=none) header.from=unrelenting.technology; spf=pass (mx1.freebsd.org: domain of greg@unrelenting.technology designates 91.121.223.63 as permitted sender) smtp.mailfrom=greg@unrelenting.technology X-Spamd-Result: default: False [-5.55 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[unrelenting.technology:s=default]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:91.121.223.63]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; TAGGED_RCPT(0.00)[]; MIME_GOOD(-0.10)[text/plain]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[unrelenting.technology:+]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[63.223.121.91.list.dnswl.org : 127.0.10.0]; DMARC_POLICY_ALLOW(-0.50)[unrelenting.technology,none]; FREEMAIL_TO(0.00)[gmail.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; IP_SCORE(-2.55)[ip: (-9.84), ipnet: 91.121.0.0/16(-4.38), asn: 16276(1.50), country: FR(-0.00)]; ASN(0.00)[asn:16276, ipnet:91.121.0.0/16, country:FR]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Oct 2019 01:42:06 -0000 On October 5, 2019 8:36:24 PM GMT+03:00, Vasily Postnicov wrote: >Hello again, Greg=2E I have some more time to play with Wayland=2E I'm >trying >to resolve permission errors when accessing /dev/input/event* using >consolekit2=2E >vasily@vonbraun:~ % sway >2019-10-05 19:44:54 - [backend/drm/legacy=2Ec:15] HDMI-A-2: Failed to set >CRTC: Permission denied > >UPD: Using truss I've found what ioctl DRM_IOCTL_MODE_SETCRTC fails [=2E= =2E=2E] >I don't know what DRM_MASTER is and if it is safe to remove it You probably didn't set everything up correctly=2E It is not safe to remove checks for DRM_MASTER=2E The master is the applic= ation that controls the displays =E2=80=93 i=2Ee=2E your compositor=2E Regu= lar applications should not be allowed to execute the same calls=2E Are you sure sway is using CK2? I think there's a verbose flag to sway tha= t shows a lot more info=2E Did you actually install wlroots with the consol= ekit option? You can use dbus-monitor --system to inspect dbus messages, if you don't s= ee CK requests from sway, it's just not trying to use it=2E wlroots likes to just silently try the next available backend, so if it ca= n't do CK, it goes to try direct=2E