From owner-freebsd-x11@freebsd.org Sun Oct 6 05:04:11 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 64385FBAC9 for ; Sun, 6 Oct 2019 05:04:11 +0000 (UTC) (envelope-from shamaz.mazum@gmail.com) Received: from mail-ed1-x532.google.com (mail-ed1-x532.google.com [IPv6:2a00:1450:4864:20::532]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46mBNV2GXGz4bxj for ; Sun, 6 Oct 2019 05:04:10 +0000 (UTC) (envelope-from shamaz.mazum@gmail.com) Received: by mail-ed1-x532.google.com with SMTP id f20so9456583edv.8 for ; Sat, 05 Oct 2019 22:04:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=FC3vCrLkB/318g0Y3rwXIbb131axEelfXP7If214mU0=; b=KwhIBkzc+1tg/6f0oDDZh9HM9OjykjNy2irjnGe/jy/HcwCouZQO4rD+x5+vUqihNf 3LjRPD/AvBIAiKzWbrnFMHjcH7auoXZ8MMsExBjUa/7YGePMiDIKuMMM4NG0NqtBqWw2 2mGRdaFl//Ks5veYL3OPRbNaxOuvr1oGyvHeBFIpksmJKgH7yU8HUgXlSnGKIZyASWXU s/cbYKpbNT7JXTYfaIW/XDW8+QmC2WwT3efEE8uy80mN4VqAoWn+v5i9fh8Hqkbt4/Gf Stnn+mIyIs+iUfX4VNcSdpoYLJbDr310R2XtZMiPh95XEIml5ojCymcuGpbxTIy4+nxn CHiQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=FC3vCrLkB/318g0Y3rwXIbb131axEelfXP7If214mU0=; b=NivWBL+4uj/lNBYQcXEoeRl9TM/wXSGtTKYC2LMwL+rhMbYim9B3QVsozaj8PwdThC RgFRl0xsVeMCXxp+Y7YkmGfDg1WNt6r+REJamez3FjArHXvI9iREux1T5lEjyZ0pZgzp yojvWdzrG/FZn5RoNxBcADuhJ3RUGeEd2GtqZrp95umZbUp/lm9PDlNxoVvtWxu4ItZ9 f6xIsTjnmsZq95RznC6QeWfHp6qtQSvXr936GCOw88yWweelG0E4s6UGemBQuKnq3MYa 7+qAiK2bwsEj7Ie6XwP6wwLjuy29WzcBpOQrXIe4i0tdcEErLvgH66sBrzd89vD+YIFL WXDQ== X-Gm-Message-State: APjAAAWKh0WyyOVr870eUBTIDGmkIIAl9nmUsypuBXStRiGKTRW1r6EL kMpUJbjM+3zs7R4Y5OKVoSTOnM3P+vWsnCRUZys59YJlqYA= X-Google-Smtp-Source: APXvYqxXyhvvmdYyo24vVIBowc5deD0gVWSM9KekO+4L88o83CIQccEnuLNJI1U02KOPZxBhSS3dgvtYwdtMD/98RUE= X-Received: by 2002:a05:6402:1855:: with SMTP id v21mr15566072edy.242.1570338248668; Sat, 05 Oct 2019 22:04:08 -0700 (PDT) MIME-Version: 1.0 References: <300f65b7469c608ad4cd32a9ad6c41d6@unrelenting.technology> In-Reply-To: From: Vasily Postnicov Date: Sun, 6 Oct 2019 08:03:57 +0300 Message-ID: Subject: Re: Xorg with evdev input devices To: Greg V Cc: freebsd-x11@freebsd.org X-Rspamd-Queue-Id: 46mBNV2GXGz4bxj X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=KwhIBkzc; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of shamazmazum@gmail.com designates 2a00:1450:4864:20::532 as permitted sender) smtp.mailfrom=shamazmazum@gmail.com X-Spamd-Result: default: False [-3.00 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; FREEMAIL_FROM(0.00)[gmail.com]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-x11@freebsd.org]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; IP_SCORE_FREEMAIL(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[2.3.5.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.5.4.1.0.0.a.2.list.dnswl.org : 127.0.5.0]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; IP_SCORE(0.00)[ip: (-9.52), ipnet: 2a00:1450::/32(-2.89), asn: 15169(-2.15), country: US(-0.05)]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; TAGGED_FROM(0.00)[]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2] Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.29 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 05:04:11 -0000 Today it's again libinput failure;) It seems there is some communication between sway and consolekit2: https://pastebin.com/5ARuVNQT To make sure libinput backend is not loaded I set WLR_BACKENDS to "drm". Here is the output of sway -dV: https://pastebin.com/Z14QJwV4. You can see the following line at the beginning of this log: > 2019-10-06 07:51:22 - [backend/session/consolekit2.c:833] Successfully loaded consolekit2 session But mouse and keyboard do not work when sway is started. Consolekit is built with your patches. Can I verify that is's working correctly? =D0=B2=D1=81, 6 =D0=BE=D0=BA=D1=82. 2019 =D0=B3. =D0=B2 04:42, Greg V : > On October 5, 2019 8:36:24 PM GMT+03:00, Vasily Postnicov < > shamaz.mazum@gmail.com> wrote: > >Hello again, Greg. I have some more time to play with Wayland. I'm > >trying > >to resolve permission errors when accessing /dev/input/event* using > >consolekit2. > > >vasily@vonbraun:~ % sway > >2019-10-05 19:44:54 - [backend/drm/legacy.c:15] HDMI-A-2: Failed to set > >CRTC: Permission denied > > > >UPD: Using truss I've found what ioctl DRM_IOCTL_MODE_SETCRTC fails [...= ] > >I don't know what DRM_MASTER is and if it is safe to remove it > > You probably didn't set everything up correctly. > > It is not safe to remove checks for DRM_MASTER. The master is the > application that controls the displays =E2=80=93 i.e. your compositor. Re= gular > applications should not be allowed to execute the same calls. > > Are you sure sway is using CK2? I think there's a verbose flag to sway > that shows a lot more info. Did you actually install wlroots with the > consolekit option? > > You can use dbus-monitor --system to inspect dbus messages, if you don't > see CK requests from sway, it's just not trying to use it. > > wlroots likes to just silently try the next available backend, so if it > can't do CK, it goes to try direct. >