Turning off laptop trackpad when the lid is closed
Shane O'Connell
shane at oconnell.cc
Tue Jan 31 01:12:28 UTC 2012
Hi all,
I own a 2011 Macbook Air, and I'm having an issue with the trackpad
doing random clicks when I close the lid (I'm using the laptop with an
external monitor/keyboard/mouse). I'm trying to figure out where the
appropriate place is for a hook to go to fix the problem. I've
determined that I can stop the random clicks by running this command
before closing the lid:
xinput set-prop 11 "Device Enabled" 0
That turns off the trackpad. I've also determined that there's a file
/proc/acpi/button/lid/LID0/state which shows the state of the lid, and
also that there's a script /etc/acpi/lid.sh that is called when the
lid is closed which seems to be responsible for blanking the screen.
This is part of the package "acpi-support". I feel like there needs to
be something added here to disable the trackpad automatically, but I'm
not quite sure what. I think I could just hack the script with the
above command somehow to make it work for me but I was hoping to try
to figure out a way to do it that could be added to ubuntu so the
problem goes away permanently.
Does anybody have any pointers? Is there a standard place for this
kind of stuff to go?
Thanks!
-Shane
More information about the Ubuntu-devel-discuss
mailing list