From owner-freebsd-questions@freebsd.org Sun Feb 16 09:00:48 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 21294258943 for ; Sun, 16 Feb 2020 09:00:48 +0000 (UTC) (envelope-from yuripv@yuripv.me) Received: from wnew4-smtp.messagingengine.com (wnew4-smtp.messagingengine.com [64.147.123.18]) (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 48L1L721GLz4TdG for ; Sun, 16 Feb 2020 09:00:47 +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 BD93C647; Sun, 16 Feb 2020 04:00:44 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Sun, 16 Feb 2020 04:00:44 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yuripv.me; h= subject:to:cc:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm1; bh=1 eqFXud3oPcaUnJcHz9IG8dObBNiMhIUwrPFG44XfIg=; b=lBkgJXP+KS/2J9iiu lngOnk94opwa/s0kWilqDtI9KoUJ1fr7x4d1rhfozA47vy2TxE4BO4XT+73kYAWb nKJFGiMeBX6b84F6bSE/QfOJqy04DpSX89NbCR5y/QoaWgBJFA+7SK8RiA6xTecv EmYXWcYT05/J/MCGNrAXh+K66avSOAA8k9m8hxuieg4WqXJNihOzQt8rj7i87Pmb sTLSqaM46UpxC+GvKGfgXLFdlie55mi/7/QwTbkxbHGN93UovZ2VIHbGCwJE4ZQL fTFwbmQmpJaqGxSe+xU93ruaynGPc3+vfKHkA2rSruacRf9y1osFymdFZkEHKufg 8xQbg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc: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=1eqFXud3oPcaUnJcHz9IG8dObBNiMhIUwrPFG44Xf Ig=; b=XhJQ8YLiAog31zMeIzxm7l5PLDxRtLXoabZ0SqM83PuegmVC8NOycg6vw Zecr1bFBUe4zRUNHQOJL8xAQZFigyUmNOboXOBcq7Nfyd0YI1TsuqlHzTrZDNTc2 AntJs/svztRNZGOWAH9qbHOPoIcW6PEnypX4Lh3bstS43iLLE8RYvGj8ivjLuNWG YqB7Ntsj4MPRN3zdLVqnQXw6FSL6rEfMSaIGFFLHHt12XIvMChf+vHobGitHRg1y wyc6q9P7p3fL/5vJ6SwBs1jzSrgXp8iysSASG0thfbQXboIfIkP3uBoZn2YmhvDm cFwUx9gQhJmGpdaqoTaGTiAJAfh4g== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedugedrjeefgdduvdelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefuvfhfhffkffgfgggjtgfgsehtje ertddtfeejnecuhfhrohhmpegjuhhrihcurfgrnhhkohhvuceohihurhhiphhvseihuhhr ihhpvhdrmhgvqeenucffohhmrghinhepfhhrvggvsghsugdrohhrghenucfkphepudejke drudehhedrgedrudeiheenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgr ihhlfhhrohhmpeihuhhrihhpvheshihurhhiphhvrdhmvg X-ME-Proxy: Received: from earth.yuripv.me (unknown [178.155.4.165]) by mail.messagingengine.com (Postfix) with ESMTPA id AB8C0328005D; Sun, 16 Feb 2020 04:00:43 -0500 (EST) Subject: Re: Update X when laptop lip is closed To: Noah Palmer Cc: freebsd-questions@freebsd.org References: <2061301f-4f78-e50a-1864-f9a608b7c504@yuripv.me> From: Yuri Pankov Message-ID: <5fe7c2f2-9645-0c13-1878-7bbfa8f33487@yuripv.me> Date: Sun, 16 Feb 2020 12:00:42 +0300 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; 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: 48L1L721GLz4TdG X-Spamd-Bar: ++++++++++ Authentication-Results: mx1.freebsd.org; dkim=pass header.d=yuripv.me header.s=fm1 header.b=lBkgJXP+; dkim=pass header.d=messagingengine.com header.s=fm2 header.b=XhJQ8YLi; dmarc=none; spf=pass (mx1.freebsd.org: domain of yuripv@yuripv.me designates 64.147.123.18 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.18]; 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.76), ipnet: 64.147.123.0/24(-4.92), asn: 11403(-2.68), country: US(-0.05)]; RCVD_IN_DNSWL_LOW(-0.10)[18.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,meta] 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 09:00:48 -0000 Noah Palmer wrote: > On Sat, Feb 15, 2020 at 11:08 PM Yuri Pankov wrote: > >> 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. >> > Okay that seems to be the solution. I also have an issue that > dev.acpi_lid.0.state is incorrect if the lid was open at boot. you have to > close and open the lid for the value to be correct. Interesting, I'm seeing the same on my lenovo laptop, something to look into. BTW, there's somewhat related PR filed: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=240881.