From nobody Mon Mar 17 11:23:39 2025 X-Original-To: desktop@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4ZGXfM5gh7z5qSGy for ; Mon, 17 Mar 2025 11:23:39 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4ZGXfM1PcMz3CVP for ; Mon, 17 Mar 2025 11:23:39 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1742210619; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=t9nG9zLNZL4+bJpSRzkcq0vjWb8auBK2lRO7MV5pusc=; b=yG3sZBeZ/tEURtFHdYUnN3f4cmM5CVoh2VOlbiDG4fWmgDVnv0pAboOvJ0IJdsfU7NPRvB Icdm7hPZFYcc+tq92XyVSc5lQLQSqpYX5kjDZzV2hCEH9Gg+wOD3/Uvqh32ZOVMJV69F35 fz+zoqqWF0JxbxFxGWY70W0nKdkFArmalWRTFgMklIkiTSlwACMCSeBUps3UmcS5nDtrzf s7XE4k04eJgZRUWx8twpfSa4Xmbw/dvQDCuj6DnqYFIjxfjKRo3FCxNmfbdLzySwoAzJno Mdp7kb7TZYtVgnV3Pd2XNfF2Z/16ickBc8pciOjlls7goK8N9tKaWhoYFhW7MA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1742210619; a=rsa-sha256; cv=none; b=P/xDsspkWG8FXVPL99xMHDoYSh9MtFqBwoIrSKEAsGPLiwLL9j2+zndzk0o2r2F+cCfvjI EEnYTFdfJEcMXUp/AQDBMRQ9WuCRW+MxOhqUC5rv5iOmq6nuKIIK3f2HqgsokWTZKwhHNU Zf+h98t1Qjhe/YQXibRifOYPj6ZpmWJBUgGIKh9skay0s7JxlF+ovJ8Icz3Yy5wkgg3RMa XpdB8eQk3VFCYnMiM4fv+CZfQ0d6/YZ92NmZTk1dkTCAyAcqhdIRqJxNJO9eGEdhN6hrx+ YmQfJKdxVgY6pjC7xI8ni5o9VBjBU5KGxXWlryNdhxJcY6MvBXY35AjHLVP92Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1742210619; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=t9nG9zLNZL4+bJpSRzkcq0vjWb8auBK2lRO7MV5pusc=; b=ctB/RfwKA0UUUWc2Tbpp3vl43gxODZYFQQWl5L28X71BN4xhmFiWHfvRWT9/9JiETc1mwi x8o2U/G2bBow0mm3HXtMndWWbp/USJi+MWGwZHxwbrayHJOsKNEuxPArOKHqyCxCL5hj1g nErL8PBvT+CiUS4HvJ9Tz6bKZIu+8xN20ItgqFPv8ZriPsLP1L4huaxug/Bx5WpHCFRC0u MWwGP4VKC+EhSrKfOJv4kByGhm61JrVTOr4tJPXqI4dDcUMnmX4ett6EkOjtwRrcDC20rp wez37Kh1BY6v2U/UMVKRTh3BdG47qLyJMNg063qYyymlIssWn+yUXxlzOcsv9w== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4ZGXfM0pDpzlQH for ; Mon, 17 Mar 2025 11:23:39 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 52HBNcLe096933 for ; Mon, 17 Mar 2025 11:23:38 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 52HBNcs8096932 for desktop@FreeBSD.org; Mon, 17 Mar 2025 11:23:38 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: desktop@FreeBSD.org Subject: [Bug 285394] sysutils/consolekit2 seems to use wrong tty Date: Mon, 17 Mar 2025 11:23:39 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: arrowd@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: desktop@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Using and improving FreeBSD on the desktop List-Archive: https://lists.freebsd.org/archives/freebsd-desktop List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-desktop@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D285394 Gleb Popov changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |arrowd@FreeBSD.org --- Comment #3 from Gleb Popov --- Almost 2 years ago I was working on fixing concurrent sessions in (our clos= ed fork of) x11/sddm. It resulted in a substantial work done on the ConsoleKit side, which is now present in the Ports tree. The SDDM part was a bit ugly,= so I was reluctant to opensource it back then. While hacking on this problem I also bumped into a similar VT management is= sue. I don't remember all the details now, but the issue stems from the fact tha= t if you want to do an ioctl() on ttyvN then you should pass N+1 as an argument.= So one of my patches for SDDM was fixing functions that convert between device paths "/dev/ttyvN" and integer TTY numbers: QString path(int vt) { // ioctl interface returns N+1 for ttyvN char c =3D (vt <=3D 10 ? '0' : 'a') + (vt - 1); return QStringLiteral("/dev/ttyv%1").arg(c); } int number(QString path) { if (path.startsWith(QStringLiteral("/dev/"))) path =3D path.mid(5); if (path.startsWith(QStringLiteral("ttyv"))) path =3D path.mid(4); else path =3D path.mid(3); // "tty" int ret =3D path.toInt(nullptr, 16); #ifdef __FreeBSD__ // ioctl interface returns N+1 for ttyvN ret++; #endif return ret; } I think this is exactly the problem you see with LightDM. The warnings you = see in ConsoleKit are actually caused by LightDM asking about wrong TTYs. If you point to me the LightDM code that calls ConsoleKit, I'll look into that more closely. --=20 You are receiving this mail because: You are the assignee for the bug.=