From nobody Tue Mar 17 15:53:36 2026 X-Original-To: freebsd-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 4fZxMT3Wc0z6VC5n for ; Tue, 17 Mar 2026 15:53:41 +0000 (UTC) (envelope-from shuriku@shurik.kiev.ua) Received: from mail.flex-it.com.ua (mail.flex-it.com.ua [193.239.74.7]) (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 mx1.freebsd.org (Postfix) with ESMTPS id 4fZxMS599Sz3XCW for ; Tue, 17 Mar 2026 15:53:40 +0000 (UTC) (envelope-from shuriku@shurik.kiev.ua) Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of shuriku@shurik.kiev.ua designates 193.239.74.7 as permitted sender) smtp.mailfrom=shuriku@shurik.kiev.ua Received: from [176.52.183.123] (helo=[100.66.193.31]) by mail.flex-it.com.ua with esmtpsa (TLS1.3) tls TLS_AES_128_GCM_SHA256 (Exim 4.98.2 (FreeBSD)) (envelope-from ) id 1w2Wjh-00000000LB6-3csu for freebsd-desktop@freebsd.org; Tue, 17 Mar 2026 17:53:37 +0200 Content-Type: multipart/alternative; boundary="------------nkYfTxk96SOk6aX5WPCLcvrH" Message-ID: Date: Tue, 17 Mar 2026 17:53:36 +0200 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 User-Agent: Mozilla Thunderbird Subject: Re: Resume from Suspend when triggered by Lid To: freebsd-desktop@freebsd.org References: <7fab23a7-723b-4857-a732-10238bf46d1f@benhutton.com.au> <609dbdd3-0d6c-463d-86a0-3c238acea213@shurik.kiev.ua> <31566b59-107d-42e6-8cc9-a4f93238534d@benhutton.com.au> <33814e2c-4ad9-4221-b40d-af2cecef0aec@shurik.kiev.ua> <2ea2c801-012b-445e-8605-4bab65a2471d@benhutton.com.au> Content-Language: uk-UA From: Oleksandr Kryvulia In-Reply-To: <2ea2c801-012b-445e-8605-4bab65a2471d@benhutton.com.au> X-ACL-Warn: SPF failed. 176.52.183.123 is not allowed to send mail from shurik.kiev.ua. X-Spamd-Result: default: False [-3.18 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-0.99)[-0.990]; NEURAL_HAM_SHORT(-0.89)[-0.894]; R_SPF_ALLOW(-0.20)[+mx]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; RCVD_COUNT_ONE(0.00)[1]; ASN(0.00)[asn:35297, ipnet:193.239.72.0/22, country:UA]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RCVD_TLS_ALL(0.00)[]; R_DKIM_NA(0.00)[]; MLMMJ_DEST(0.00)[freebsd-desktop@freebsd.org]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; TO_DN_NONE(0.00)[]; DMARC_NA(0.00)[shurik.kiev.ua]; TO_MATCH_ENVRCPT_ALL(0.00)[]; ARC_NA(0.00)[] X-Rspamd-Queue-Id: 4fZxMS599Sz3XCW X-Spamd-Bar: --- This is a multi-part message in MIME format. --------------nkYfTxk96SOk6aX5WPCLcvrH Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 17.03.26 08:22, Ben Hutton: > Fair enough, I can live with that. That's what I have been doing, I > did try a few hacky ways to initiating a lock but so far nothing has > worked. > > Anyway thank you for the help. > > On 3/17/26 13:32, Oleksandr Kryvulia wrote: >> 17.03.26 01:25, Ben Hutton: >>> That fixes the issue. New issue is how do you get the system to lock >>> the screen automatically on resume/suspend? >> >> I didn't solve this problem because I have a habit of locking the >> screen myself (by pressing Meta+L in KDE). >> > This works for me from root console: /usr/local/bin/qdbus6 --system org.freedesktop.ConsoleKit /org/freedesktop/ConsoleKit/Session1 org.freedesktop.ConsoleKit.Session.Lock Try to place it into /etc/rc.suspend --------------nkYfTxk96SOk6aX5WPCLcvrH Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit
17.03.26 08:22, Ben Hutton:
Fair enough, I can live with that. That's what I have been doing, I did try a few hacky ways to initiating a lock but so far nothing has worked.

Anyway thank you for the help.

On 3/17/26 13:32, Oleksandr Kryvulia wrote:
17.03.26 01:25, Ben Hutton:
That fixes the issue. New issue is how do you get the system to lock the screen automatically on resume/suspend?

I didn't solve this problem because I have a habit of locking the screen myself (by pressing Meta+L in KDE).



This works for me from root console:

/usr/local/bin/qdbus6 --system org.freedesktop.ConsoleKit /org/freedesktop/ConsoleKit/Session1 org.freedesktop.ConsoleKit.Session.Lock

Try to place it into /etc/rc.suspend --------------nkYfTxk96SOk6aX5WPCLcvrH--