From owner-freebsd-questions@freebsd.org Sun Feb 16 04:16:02 2020 Return-Path: Delivered-To: freebsd-questions@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 3609D253A03 for ; Sun, 16 Feb 2020 04:16:02 +0000 (UTC) (envelope-from yuripv@yuripv.me) Received: from wnew3-smtp.messagingengine.com (wnew3-smtp.messagingengine.com [64.147.123.17]) (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 48Kv1Y2gh5z4MLn for ; Sun, 16 Feb 2020 04:16:01 +0000 (UTC) (envelope-from yuripv@yuripv.me) Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailnew.west.internal (Postfix) with ESMTP id 96AEC5DD; Sat, 15 Feb 2020 23:08:44 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Sat, 15 Feb 2020 23:08:44 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yuripv.me; h= subject:to:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm1; bh=W QGAvchmrWu/gCSjn0Ck0WazQMnQBZU9iuq/2VVsfCI=; b=r7CQ8z/kKsur5UT2Z YrScdB1edPVP41Nr3ilVu5ctOMPEmMJtk8Kzbf2KtTniFosFwbhidgGyDcBCHcZl Hk/vC2EXygZj9ENTPvUJdOgRnsSuiJfmveZzJLpnL0QNy81RFMS6N73bWtVslNV0 BPVPub5uPd1M36i2zxN/9Dni03YXyDyof7YRuPtQYVkxUp7VmlhYgVbpOt7FMli5 k2BR5jB6ty7hcuy6dWGqSsSgyObwpkduMz7daIvyi5te6D7AsL4JaHHGpJG5wpXQ hmIe8i1UXgM5MM1kaiK5uDnjpfTTrTk7peZD/D+xj6moxIzMfGoyOxI9sCKYohYS OKQDQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=WQGAvchmrWu/gCSjn0Ck0WazQMnQBZU9iuq/2VVsf CI=; b=VdHvXTjfCZClubAw6DLI8tPCw0sthJYU0mOLZTanmXedQmhwZ5Rh/8jQv JKDfhHpTNmvcX4b89mgK8dqYKBPqawIFa/rwfJP+S4qZHGU/1JRsKmnENC68qwnL QqtRtaHOwhMXxyUCAkDYHhNwlfqV6G5IJrSj/qpFGOA7LJjH1rVWZ35BUvhy0wYK BzOBzhQ/vNigjEpsMmp5VTrr4XMUp9GU0a28lt4m0f2QfiqSOLsgFH7sIlTxdtoq UiwmVRfPSrlwBL2wS3cm/qYYcjMxp3oKtCaYA4uwd06dp68ZKG7l7JPLK89chzly TCrHbAKvfrRfaP5NiIJ4sfaWihpnQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedugedrjeefgdeilecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepuffvfhfhkffffgggjggtgfesthejre dttdefjeenucfhrhhomhepjghurhhiucfrrghnkhhovhcuoeihuhhrihhpvheshihurhhi phhvrdhmvgeqnecukfhppedujeekrdduheehrdegrdduieehnecuvehluhhsthgvrhfuih iivgeptdenucfrrghrrghmpehmrghilhhfrhhomhephihurhhiphhvseihuhhrihhpvhdr mhgv X-ME-Proxy: Received: from mercury.yuripv.me (unknown [178.155.4.165]) by mail.messagingengine.com (Postfix) with ESMTPA id 795513280059; Sat, 15 Feb 2020 23:08:43 -0500 (EST) Subject: Re: Update X when laptop lip is closed To: Noah Palmer , freebsd-questions@freebsd.org References: From: Yuri Pankov Message-ID: <2061301f-4f78-e50a-1864-f9a608b7c504@yuripv.me> Date: Sun, 16 Feb 2020 07:08:41 +0300 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 48Kv1Y2gh5z4MLn X-Spamd-Bar: ++++++++++ Authentication-Results: mx1.freebsd.org; dkim=pass header.d=yuripv.me header.s=fm1 header.b=r7CQ8z/k; dkim=pass header.d=messagingengine.com header.s=fm2 header.b=VdHvXTjf; dmarc=none; spf=pass (mx1.freebsd.org: domain of yuripv@yuripv.me designates 64.147.123.17 as permitted sender) smtp.mailfrom=yuripv@yuripv.me X-Spamd-Result: default: False [10.92 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(0.00)[+ip4:64.147.123.17:c]; RCVD_COUNT_THREE(0.00)[4]; DKIM_TRACE(0.00)[yuripv.me:+,messagingengine.com:+]; RCPT_COUNT_TWO(0.00)[2]; FREEMAIL_TO(0.00)[gmail.com]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; IP_SCORE(-3.48)[ip: (-9.73), ipnet: 64.147.123.0/24(-4.92), asn: 11403(-2.68), country: US(-0.05)]; RCVD_IN_DNSWL_LOW(-0.10)[17.123.147.64.list.dnswl.org : 127.0.5.1]; ASN(0.00)[asn:11403, ipnet:64.147.123.0/24, country:US]; MID_RHS_MATCH_FROM(0.00)[]; RECEIVED_SPAMHAUS_PBL(0.00)[165.4.155.178.khpj7ygk5idzvmvt5x4ziurxhy.zen.dq.spamhaus.net : 127.0.0.11]; ARC_NA(0.00)[]; RECEIVED_SPAMHAUS_XBL(5.00)[165.4.155.178.khpj7ygk5idzvmvt5x4ziurxhy.zen.dq.spamhaus.net : 127.0.0.4]; R_DKIM_ALLOW(0.00)[yuripv.me:s=fm1,messagingengine.com:s=fm2]; FROM_HAS_DN(0.00)[]; MIME_GOOD(-0.10)[text/plain]; MIME_TRACE(0.00)[0:+]; DMARC_NA(0.00)[yuripv.me]; NEURAL_SPAM_MEDIUM(1.00)[1.000,0]; BAD_REP_POLICIES(0.10)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_SPAM_LONG(1.00)[1.000,0]; URIBL_BLACK(7.50)[yuripv.me.multi.uribl.com]; GREYLIST(0.00)[pass,body] X-Spam: Yes X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 16 Feb 2020 04:16:02 -0000 Noah Palmer wrote: > is there a way to automatically remove or add the display to X when the > laptop lid is opened or closed. I have been using a script to read > dev.acpi_lid.0.state, but is there better way? Also what is the proper way > to reply to someone while using a mailing list. Do you reply to the person > or freebsd-questions@freebsd.org. If you are polling the dev.acpi_lid.0.state value, see /etc/devd.conf for examples of ACPI events notification, so you could invoke the need actions when lid is open/closed. As for the reply policy, I don't think there's one, so I just press "Reply all" in Thunderbird -- if someone doesn't want to be answered directly, they could (and usually do) set the Reply-To to the list.