Skip to content

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)

5 points6 comments
Open on Reddit
About this post
Posted
Archived
Score
5 · 100% up
Kind
Text
ID
kmbiy

Author

5
posts
16
comments
2
media
View profile

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.

2 points

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.

1 points
unknown author1 hidden

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

#! /bin/sh

test -f /usr/sbin/laptop_mode || exit 0
/usr/sbin/laptop_mode auto

case $(cat /proc/acpi/button/lid/LID/state | awk '{print $2}') in
    closed) vbetool dpms off ;;
    open)   vbetool dpms on  ;;
esac

case $(synclient -l |grep TouchpadOff | awk -F '= ' '{print $2}') in
    0) synclient TouchpadOff=1 ;;
    1) synclient TouchpadOff=0 ;;
esac

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!

1 points

I did notice my laptop when not on-power going to lower backlight and not going back when reconnected for some reason. The xbacklight command 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... xinput alters 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\ 0 off 4 on, to make that work i had to

xinput --set-prop "PS/2 Logitech Wheel Mouse" "Evdev Wheel Emulation" 4
xinput --set-prop "PS/2 Logitech Wheel Mouse" "Evdev Wheel Emulation Axes" 1, 0, 4, 5

Edit: messed around a bit, trying to get said digression activated by usb plugin too, but so far failed. Found this, though btw udevadm monitor --udev monitors 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.

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.