Odd issue when laptop lid is shut
Alright, I've incessantly looked just about everywhere for anyone with a similar issue, no dice. Let's see if you guys can help me out. Whenever I shut my laptop lid (usually whenever I have it hooked up to an external monitor or TV), the mouse cursor goes absolutely nuts. It jumps around the screen in all directions, unable to be tamed until I open the lid again. Then all is well, except my screen (the built-in LCD) will come back at maximum brightness.
It's a bit difficult to explain, but I'd much appreciate it if you guys could maybe shed some light on the situation. Relevantly, I currently have ACPI, ACPID and laptop-mode-tools installed. My handler.sh is empty in the lid section.
A little information about my lappytop:
• Lenovo z560
• Arch Linux x86_64, fully updated
• Openbox
(any other information available upon request)
About this post
- Posted
- Archived
- Score
- 5 · 100% up
- Kind
- Text
- ID
- kmbiy
6 comments
Are you sure it isn't just the screen (almost) touching the touchpad? Does the problem occur when you hold the screen one or two centimeters from closed?
I had a similar problem on an old laptop with an oversensitive touchpad. I never bothered to fix it, but I guess you could disable the touchpad device if it is the touchpad causing the problem.
I'm pretty sure, as the issue doesn't occur when running Windows. I'll try it out just in case, make sure it's not a soft issue solely under Linux.
Try blocking it with a sheet of thick paper or something.
I had exactly the same issue and I've solved it by just disabling the touchpad when lid is closed and enabling it when the lid is opened. I'm also using ACPI,ACPID and laptop-mode-tools. This is my /etc/acpi/actions/lm_lid.sh
The vbetool dpms off turns off the backlight when the lid is closed so if you dont want that just delete those four lines. Have fun!
Thanks!
I did notice my laptop when not on-power going to lower backlight and not going back when reconnected for some reason. The
xbacklightcommand can set the brightness. (for instance 80%:xbacklight -set 80)Even if it is a hardware problem, maybe there is a software solution to it...
xinputalters behavior of inputs.For instance
xinput --set-prop \"PS/2 Logitech Wheel Mouse\" \"Device Enabled\ 1"turns it on 0 off, my touchpad is incorrectly identified as a mouse! But even if yours is correctly identified, something like that should still work.I don't know how to make things happen at events like closing the laptop or plugging in the USB.(Can it detect plugging in of a earphone too?) Conceptually it is simple..(specify device, function upon events on device with arguments giving state/event) I think you need to add things to /etc/udev/, but i am not entirely sure what. (Looking at a rule for memory sticks, i don't get how it identifies that it is a stick..)
(digression)I don't actually use that though, i was just annoyed by accidental clicking, so i made it drag
xinput --set-prop \"PS/2 Logitech Wheel Mouse\" \"Evdev Wheel Emulation Button\ 0off 4 on, to make that work i had toEdit: messed around a bit, trying to get said digression activated by usb plugin too, but so far failed. Found this, though btw
udevadm monitor --udevmonitors udev stuff, could get stuff to work by piping that to a program and having that program figure it out, but that isn't a very neat solution..Actually maybe in a sense it is very neat solution, it being a stream where the computer posts events sounds fine, then a single program reads from there and you provide that program regexpressions so you can quickly find which are interesting to which rules(rather than have each rule run and match a string, providing regular expressions might be neater), and then let the rules do their thing. Maybe that is what happens underneath already though, i wouldn't know. Either way, i am not working on that program so it is not neat for me to do this.