<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="https://dev1galaxy.org/extern.php?action=feed&amp;tid=2021&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / how to completely disable laptop lid detection? [SOLVED]]]></title>
		<link>https://dev1galaxy.org/viewtopic.php?id=2021</link>
		<description><![CDATA[The most recent posts in how to completely disable laptop lid detection? [SOLVED].]]></description>
		<lastBuildDate>Wed, 10 May 2023 16:15:39 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: how to completely disable laptop lid detection? [SOLVED]]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=42214#p42214</link>
			<description><![CDATA[<p>Hello:</p><div class="quotebox"><cite>Danielsan wrote:</cite><blockquote><div><p>... missing lid in the section he used to disable it:</p><div class="codebox"><pre><code>cat /proc/acpi/wakeup
Device	S-state	  Status   Sysfs node
HDAS	  S3	*disabled  pci:0000:00:0e.0
XHC	  S3	*enabled   pci:0000:00:15.0
XDCI	  S4	*disabled
RP01	  S4	*enabled   pci:0000:00:14.0
PXSX	  S4	*disabled  pci:0000:02:00.0
CNVW	  S4	*disabled</code></pre></div></div></blockquote></div><p>Maybe one of the enabled ones is causing problems.<br />ie: some conflict.</p><div class="quotebox"><cite>Danielsan wrote:</cite><blockquote><div><p>Any suggestion?</p></div></blockquote></div><p>As I understand it, you have only <em>two</em> options with an actual address <em>and</em> enabled :</p><div class="codebox"><pre><code>XHC	  S3	*enabled   pci:0000:00:15.0
RP01	  S4	*enabled   pci:0000:00:14.0</code></pre></div><p>I think XHC is related to <em>something</em> USB and that RP01 is related to <em>something</em> PCIE.</p><p>Your mouse is probably on the USB bus (?).</p><p>Try disabling one at a time or both at the same time, reboot and see what happens.<br />ie: if the lid works properly and the mouse does not freeze any more.</p><p>BTW: in my WS, I have <em>all</em> entries in <span class="bbc">/proc/acpi/wakeup</span> set to disabled, even the ones with no address.&#160; 8^°</p><p>HTH.</p><p>Best,</p><p>A.</p>]]></description>
			<author><![CDATA[dummy@example.com (Altoid)]]></author>
			<pubDate>Wed, 10 May 2023 16:15:39 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=42214#p42214</guid>
		</item>
		<item>
			<title><![CDATA[Re: how to completely disable laptop lid detection? [SOLVED]]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=42205#p42205</link>
			<description><![CDATA[<p>Hi, I ended up here because I am trying to fix an issue with LID that I temporaraly resolved with this trick but some recent changes made it ineffective:</p><div class="codebox"><pre><code>xfconf-query -c xfce4-power-manager -p /xfce4-power-manager/logind-handle-lid-switch -n -t bool -s true</code></pre></div><p>When I open the lid the system got frozen but the mouse, therefore disabling it looks like a better solution, however I don&#039;t have the same output as <strong>GNU User</strong>:</p><div class="codebox"><pre><code>find /proc/acpi -iname lid
/proc/acpi/button/lid
/proc/acpi/button/lid/LID</code></pre></div><p>I am missing lid in the section he used to disable it:</p><div class="codebox"><pre><code>cat /proc/acpi/wakeup
Device	S-state	  Status   Sysfs node
HDAS	  S3	*disabled  pci:0000:00:0e.0
XHC	  S3	*enabled   pci:0000:00:15.0
XDCI	  S4	*disabled
RP01	  S4	*enabled   pci:0000:00:14.0
PXSX	  S4	*disabled  pci:0000:02:00.0
CNVW	  S4	*disabled</code></pre></div><p>Any suggestion? Thanks! 🙏</p>]]></description>
			<author><![CDATA[dummy@example.com (Danielsan)]]></author>
			<pubDate>Tue, 09 May 2023 23:10:35 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=42205#p42205</guid>
		</item>
		<item>
			<title><![CDATA[Re: how to completely disable laptop lid detection? [SOLVED]]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=36759#p36759</link>
			<description><![CDATA[<div class="quotebox"><cite>GNUser wrote:</cite><blockquote><div><p>Running this command at boot will disable the lid switch at the kernel level:</p><div class="codebox"><pre><code>echo &#039;PNP0C0D:00&#039; | sudo tee /sys/bus/acpi/drivers/button/unbind</code></pre></div></div></blockquote></div><p>The <a href="https://pkginfo.devuan.org/cgi-bin/policy-query.html?c=package&amp;q=sysfsutils&amp;x=submit" rel="nofollow">sysfsutils</a> package provides /etc/sysfs.conf, which can be used to set values in /sys/.</p><p>However:</p><div class="quotebox"><cite>GNUser wrote:</cite><blockquote><div><p>after closing and reopening the laptop lid the display settings are severely messed up</p></div></blockquote></div><p>Did you try removing the xserver-xorg-video-intel package? It is said to be more buggy than the modesetting DDX driver which is used as a fallback in the absence of that package. The DDX driver draws the screen for most desktops so it&#039;s more likely to be the culprit than the i915 kernel driver (which is responsible for the direct hardware interface).</p>]]></description>
			<author><![CDATA[dummy@example.com (Head_on_a_Stick)]]></author>
			<pubDate>Sun, 24 Jul 2022 12:00:36 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=36759#p36759</guid>
		</item>
		<item>
			<title><![CDATA[Re: how to completely disable laptop lid detection? [SOLVED]]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=36754#p36754</link>
			<description><![CDATA[<p>How the hell did you work that out!!? I struggled with this for a few hours before finding your simple fix. Thank you GNUser for coming back to a thread 10 months later and posting a solution - impressive persistence award unlocked.&#160; :-)</p>]]></description>
			<author><![CDATA[dummy@example.com (hotproton)]]></author>
			<pubDate>Sun, 24 Jul 2022 07:28:49 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=36754#p36754</guid>
		</item>
		<item>
			<title><![CDATA[Re: how to completely disable laptop lid detection? [SOLVED]]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=14450#p14450</link>
			<description><![CDATA[<div class="quotebox"><cite>GNUser wrote:</cite><blockquote><div><p>I figured out how to disable the lid switch at kernel level.</p></div></blockquote></div><p>Astounding! Well done!</p>]]></description>
			<author><![CDATA[dummy@example.com (PedroReina)]]></author>
			<pubDate>Mon, 18 Feb 2019 20:12:06 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=14450#p14450</guid>
		</item>
		<item>
			<title><![CDATA[Re: how to completely disable laptop lid detection? [SOLVED]]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=14439#p14439</link>
			<description><![CDATA[<p>At long last, I figured out how to disable the lid switch at kernel level.</p><div class="codebox"><pre><code>bruno@thinkpad:~378$ cat /proc/acpi/wakeup
Device	S-state	  Status   Sysfs node
HDEF	  S4	*disabled  pci:0000:00:1b.0
...
SLPB	  S3	*enabled   platform:PNP0C0E:00
LID	  S3	*enabled   platform:PNP0C0D:00</code></pre></div><p>Note that the node for LID is <strong>PNP0C0D:00</strong></p><p>Running this command at boot will disable the lid switch at the kernel level:</p><div class="codebox"><pre><code>echo &#039;PNP0C0D:00&#039; | sudo tee /sys/bus/acpi/drivers/button/unbind</code></pre></div><p>Now lid switch is totally disabled--closing and opening the lid has no effect whatsoever and I can no longer trigger the graphics bug I described in my first post <img src="https://dev1galaxy.org/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></description>
			<author><![CDATA[dummy@example.com (GNUser)]]></author>
			<pubDate>Mon, 18 Feb 2019 16:50:15 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=14439#p14439</guid>
		</item>
		<item>
			<title><![CDATA[Re: how to completely disable laptop lid detection? [SOLVED]]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=8652#p8652</link>
			<description><![CDATA[<p>To attempt to answer my own question: </p><p>When I try miscellaneous other kernels, the lid-related graphics bug I describe in post #1 goes away. (Unfortunately these other kernels affect my system in other less tolerable ways, so using them is out of the question.) Therefore, although I can&#039;t prove it, I think the 4.16.2 kernel itself (or its i915 module) is the bad guy that messes up my display when I close and open the lid. </p><p>At any rate, with the lid switch disabled I can finally just sit back and enjoy my Devuan Ascii installation <img src="https://dev1galaxy.org/img/smilies/smile.png" width="15" height="15" alt="smile" /> </p><p>Devuan rules!</p>]]></description>
			<author><![CDATA[dummy@example.com (GNUser)]]></author>
			<pubDate>Mon, 30 Apr 2018 14:11:14 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=8652#p8652</guid>
		</item>
		<item>
			<title><![CDATA[Re: how to completely disable laptop lid detection? [SOLVED]]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=8641#p8641</link>
			<description><![CDATA[<p>Haha, indeed!</p><p>Parenthetically, this whole thread was just a workaround/bandaid for my issue. The real question is &quot;which system component is changing display settings in response to the laptop lid?&quot; Before I close the laptop lid my display settings are fine, but after closing and reopening the laptop lid the display settings are severely messed up (see post #1).</p>]]></description>
			<author><![CDATA[dummy@example.com (GNUser)]]></author>
			<pubDate>Sun, 29 Apr 2018 23:32:55 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=8641#p8641</guid>
		</item>
		<item>
			<title><![CDATA[Re: how to completely disable laptop lid detection? [SOLVED]]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=8638#p8638</link>
			<description><![CDATA[<p>LOL!&#160; Sometimes low-tech is the only solution.</p>]]></description>
			<author><![CDATA[dummy@example.com (golinux)]]></author>
			<pubDate>Sun, 29 Apr 2018 19:21:29 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=8638#p8638</guid>
		</item>
		<item>
			<title><![CDATA[Re: how to completely disable laptop lid detection? [SOLVED]]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=8637#p8637</link>
			<description><![CDATA[<p>I found a low-tech solution: I taped a tiny magnet at the right spot*. Now the switch is still detected as an input device, but closing and opening the lid has absolutely no effect.</p><p>P.S. To find the right spot, I just moved a magnet around until it triggered the lid switch. For my T400, the spot was below the display and just above the bluetooth LED.</p>]]></description>
			<author><![CDATA[dummy@example.com (GNUser)]]></author>
			<pubDate>Sun, 29 Apr 2018 19:00:08 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=8637#p8637</guid>
		</item>
		<item>
			<title><![CDATA[Re: how to completely disable laptop lid detection? [SOLVED]]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=8632#p8632</link>
			<description><![CDATA[<p>These are all excellent ideas, which makes me all the more flabbergasted that I don&#039;t have a hot lead yet:</p><p>1. My kernel is linux-libre 4.16.2, which causes me the fewest problems (only the bug described in post #1). The <span class="bbc">button</span> driver is definitely not a kernel module for this particular kernel, so I guess it must be a built-in driver.</p><p>2. Indeed, I found the <span class="bbc">thinkpad_acpi</span> module loaded. Surprisingly, blacklisting it has no discernible effect.</p><p>3. <span class="bbc">modinfo $(lsmod | sed &#039;s/\s.*//&#039;)</span> is a great idea. Alas, I cannot find the string &quot;button&quot; in the output. I did find the <span class="bbc">panel_ignore_lid</span> parameter for the i915 kernel module and I tried all of the values, no joy.</p><p>4. I installed <span class="bbc">xserver-xorg-input-evdev</span>. Interestingly, there is basically no change in <span class="bbc">/var/log/Xorg.0.log</span>:</p><div class="codebox"><pre><code>[     7.869] (II) config/udev: Adding input device Lid Switch (/dev/input/event1)
[     7.869] (II) No input driver specified, ignoring this device.
[     7.869] (II) This device may have been added with another device file.</code></pre></div><p>5. I&#039;d like to try disabling the Lid Switch input method in X with a custom config file in <span class="bbc">/usr/share/X11/xorg.conf.d</span> similar to <a href="https://unix.stackexchange.com/a/278344" rel="nofollow">this</a> (without the MatchIsTouchscreen, of course), but it&#039;s looking bleak given that <span class="bbc">$ xinput --list</span> does not output anything that looks like a lid switch.</p><p>It seems that I underestimated the complexity involved in completely disabling the lid switch. One would think it would be simple.</p>]]></description>
			<author><![CDATA[dummy@example.com (GNUser)]]></author>
			<pubDate>Sun, 29 Apr 2018 02:55:51 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=8632#p8632</guid>
		</item>
		<item>
			<title><![CDATA[Re: how to completely disable laptop lid detection? [SOLVED]]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=8631#p8631</link>
			<description><![CDATA[<p>Right, the kernel uses the <span class="bbc">ec</span> and <span class="bbc">button</span> drivers for dealing with the lid switch. In my <span class="bbc">lsmod</span> I have a <span class="bbc">button</span> module, used by <span class="bbc">nouveau</span> and <span class="bbc">i915</span>. I don&#039;t have an&#160; <span class="bbc">ec</span> module, so that&#039;s probably built-in, and maybe so is the <span class="bbc">button</span> module for you(?)<br />(my kernel is linux-image-4.9.0-5-amd64 version 4.9.65-3+deb9u2 from ascii-security)</p><p>If <span class="bbc">button</span> is built-in, blacklisting is not an option, and according to <span class="bbc">modinfo button</span> there are only the two parameters <span class="bbc">lid_report_interval</span> and <span class="bbc">lid_init_state</span>, which don&#039;t appear to be useful here.</p><p>But, maybe you have a <span class="bbc">thinkpad_acpi</span> module, or some other module, that registers as <span class="bbc">button</span> driver? A quick glance at<br /><span class="bbc">modinfo $(lsmod | sed &#039;s/\s.*//&#039;)</span> might lead to something...</p><p>The other end of the chain is at X, and perhaps installing that <span class="bbc">xserver-xorg-input-evdev</span> would lead to something...</p>]]></description>
			<author><![CDATA[dummy@example.com (ralph.ronnquist)]]></author>
			<pubDate>Sat, 28 Apr 2018 23:53:20 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=8631#p8631</guid>
		</item>
		<item>
			<title><![CDATA[Re: how to completely disable laptop lid detection? [SOLVED]]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=8625#p8625</link>
			<description><![CDATA[<p>From looking at the output of the <span class="bbc">udevadm</span> command in post #11, another option might be to somehow blacklist the <span class="bbc">button</span> driver. Alas, <span class="bbc">button</span> does not seem to be a kernel module (I don&#039;t see <span class="bbc">button</span> in the output of <span class="bbc">lsmod</span>), so I have no idea how to blacklist it.</p>]]></description>
			<author><![CDATA[dummy@example.com (GNUser)]]></author>
			<pubDate>Sat, 28 Apr 2018 15:43:20 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=8625#p8625</guid>
		</item>
		<item>
			<title><![CDATA[Re: how to completely disable laptop lid detection? [SOLVED]]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=8624#p8624</link>
			<description><![CDATA[<p>Here is the output of <span class="bbc">udevadm info -a -n /dev/input/event1</span>:</p><div class="codebox"><pre class="vscroll"><code>Udevadm info starts with the device specified by the devpath and then
walks up the chain of parent devices. It prints for every device
found, all possible attributes in the udev rules key format.
A rule to match, can be composed by the attributes of the device
and the attributes from one single parent device.

  looking at device &#039;/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:2a/PNP0C09:00/PNP0C0D:00/input/input1/event1&#039;:
    KERNEL==&quot;event1&quot;
    SUBSYSTEM==&quot;input&quot;
    DRIVER==&quot;&quot;

  looking at parent device &#039;/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:2a/PNP0C09:00/PNP0C0D:00/input/input1&#039;:
    KERNELS==&quot;input1&quot;
    SUBSYSTEMS==&quot;input&quot;
    DRIVERS==&quot;&quot;
    ATTRS{uniq}==&quot;&quot;
    ATTRS{properties}==&quot;0&quot;
    ATTRS{phys}==&quot;PNP0C0D/button/input0&quot;
    ATTRS{name}==&quot;Lid Switch&quot;

  looking at parent device &#039;/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:2a/PNP0C09:00/PNP0C0D:00&#039;:
    KERNELS==&quot;PNP0C0D:00&quot;
    SUBSYSTEMS==&quot;acpi&quot;
    DRIVERS==&quot;button&quot;
    ATTRS{hid}==&quot;PNP0C0D&quot;
    ATTRS{path}==&quot;\_SB_.PCI0.LPCB.EC__.LID_&quot;

  looking at parent device &#039;/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:2a/PNP0C09:00&#039;:
    KERNELS==&quot;PNP0C09:00&quot;
    SUBSYSTEMS==&quot;acpi&quot;
    DRIVERS==&quot;ec&quot;
    ATTRS{uid}==&quot;0&quot;
    ATTRS{hid}==&quot;PNP0C09&quot;
    ATTRS{path}==&quot;\_SB_.PCI0.LPCB.EC__&quot;

  looking at parent device &#039;/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:2a&#039;:
    KERNELS==&quot;device:2a&quot;
    SUBSYSTEMS==&quot;acpi&quot;
    DRIVERS==&quot;&quot;
    ATTRS{adr}==&quot;0x001f0000&quot;
    ATTRS{path}==&quot;\_SB_.PCI0.LPCB&quot;

  looking at parent device &#039;/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00&#039;:
    KERNELS==&quot;PNP0A08:00&quot;
    SUBSYSTEMS==&quot;acpi&quot;
    DRIVERS==&quot;&quot;
    ATTRS{adr}==&quot;0x00000000&quot;
    ATTRS{hid}==&quot;PNP0A08&quot;
    ATTRS{path}==&quot;\_SB_.PCI0&quot;

  looking at parent device &#039;/devices/LNXSYSTM:00/LNXSYBUS:00&#039;:
    KERNELS==&quot;LNXSYBUS:00&quot;
    SUBSYSTEMS==&quot;acpi&quot;
    DRIVERS==&quot;&quot;
    ATTRS{hid}==&quot;LNXSYBUS&quot;
    ATTRS{path}==&quot;\_SB_&quot;

  looking at parent device &#039;/devices/LNXSYSTM:00&#039;:
    KERNELS==&quot;LNXSYSTM:00&quot;
    SUBSYSTEMS==&quot;acpi&quot;
    DRIVERS==&quot;&quot;
    ATTRS{hid}==&quot;LNXSYSTM&quot;
    ATTRS{path}==&quot;\&quot;</code></pre></div><p>The lid switch has the convenient &quot;Lid Switch&quot; name attribute. Can someone help me write a udev rule that will disable the lid switch?</p><p>I know very little about udev rules, but tried creating <span class="bbc">/etc/udev/rules.d/90-disable-lid-switch</span> with this in it:</p><div class="codebox"><pre><code>ACTION==&quot;add&quot;, ATTRS{name}==&quot;Lid Switch&quot;, RUN=&quot;/bin/sh -c &#039;echo 0 &gt;/sys/\$devpath/authorized&#039;&quot;</code></pre></div><p>Not surprisingly, my feeble attempt at a udev rule had no effect--lid switch is still functional and able to trigger the video bug.</p>]]></description>
			<author><![CDATA[dummy@example.com (GNUser)]]></author>
			<pubDate>Sat, 28 Apr 2018 15:14:24 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=8624#p8624</guid>
		</item>
		<item>
			<title><![CDATA[Re: how to completely disable laptop lid detection? [SOLVED]]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=8623#p8623</link>
			<description><![CDATA[<p>I hope you figure it out! Please be sure to follow up with the solution once you find it as it might help others.</p>]]></description>
			<author><![CDATA[dummy@example.com (mlsmith)]]></author>
			<pubDate>Sat, 28 Apr 2018 14:29:02 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=8623#p8623</guid>
		</item>
	</channel>
</rss>
