General TC > General TC Talk
how to completely disable lid switch?
Rich:
Hi GNUser
I know it's late in the game, but I stumbled upon this:
https://www.x.org/releases/current/doc/man/man4/void.4.xhtml
It's an Xorg void input driver that basically does nothing. You could change your touchpads InputDevice section
From:
--- Code: --- Driver "synaptics"
--- End code ---
To:
--- Code: --- Driver "void"
--- End code ---
The caveat is the driver is not in the repository so you would need to compile it yourself.
GNUser:
Interesting. I'll try it when I get a chance. Thank you!
GNUser:
Even after running the commands in Reply #39, if I suspend my laptop with
--- Code: ---sudo sh -c "echo mem >/sys/power/state"
--- End code ---
then close the lid then open the lid, something causes the laptop to wake from suspend! So the lid switch is not completely dead yet :o
It turns out that even after lid switch is unbinded from the button driver, acpi can still detect the lid switch state and cause the laptop to wake up from suspend when the lid is opened. cat /proc/acpi/wakeup confirms this. Maybe the issue is that I'm running the commands that unbind the lid switch from the button driver after acpi has already detected the lid switch...
So the (hopefully) final solution is to do the things in Reply #39 plus run this command, which toggles LID's wakup status:
--- Code: ---sudo sh -c 'echo LID >/proc/acpi/wakeup'
--- End code ---
(Let's see how long it takes to me to truly, fully, completely kill the lid switch...)
Navigation
[0] Message Index
[*] Previous page
Go to full version