[SOLVED] CentOS 7 and GNOME 3 - Closing Laptop Lid Spawns New Folder and Opens Them
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
CentOS 7 and GNOME 3 - Closing Laptop Lid Spawns New Folder and Opens Them
Sometimes, if I just close my laptop lid and leave my machine alone for a while, when I come back, it will have created a large number of folders and opened them all. The bar at the bottom of the screen will be full of these windows, and then some.
I suspect this has to do with this being a touchscreen laptop. I use an Inspiron 11 3147.
uname -a:
Linux localhost.localdomain 3.10.0-229.20.1.el7.x86_64 #1 SMP Tue Nov 3 19:10:07 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
i never heard of anything like it.
what did your web- and forum searches return?
the only thing i can think of is a mechanical problem (key pressing against screen or some such).
for testing purposes, you can close the lid far enough to trigger suspend, but not completely, so that the halves don't touch.
that said, the touchscreen/keyboard should be disabled when you close the lid.
are you sure sleep/suspend on lid close is working at all?
My laptop does something similar to this, or did until I fixed it.
I always turn off suspend/hibernate on lid close, I hate it, if I want to suspend my laptop I'll suspend it, otherwise just leave things alone. Turns out that on openSUSE Tumbleweed it doesn't bother disabling the touchpad when the lid closes, I suspect because the developers assume it'll just suspend, but when suspend is disabled it means the slight touches between the screen and the touchpad make the touchpad go nuts when the lid is closed, which causes it to open all kinds of things, click everywhere, etc. I've had it open hundreds of file browsers, launch programs with icons on the desktop, and if I leave a program active, it'll start clicking all over it. I even had it install some extensions in Thunderbird before.
To fix it I needed to set an ACPI rule to disable the touchpad when the lid is closed. The notes I made on the process are below:
Code:
zypper in acpid
# create /etc/acpi/lid.sh and give it execute permissions
#!/bin/bash
DEVICE="SynPS/2 Synaptics TouchPad"
grep -q closed /proc/acpi/button/lid/LID/state
su user -c "export DISPLAY=:0.0; /usr/bin/xinput set-int-prop '$DEVICE' 'Device Enabled' 8 $?"
# edit /etc/acpi/events/lm_lid
event=button/lid.*
action=/etc/acpi/lid.sh
chkconfig acpid on
service acpid restart
# ssh in from another machine
export DISPLAY=:0.0
xinput --watch-props "SynPS/2 Synaptics TouchPad"
# open and close the lid, make sure it's switching on and off
Cliff notes: set up an ACPI service to trigger on lid switch changes and launch a script. That script will check the lid switch status, and use xinput to enable or disable "SynPS/2 Synaptics TouchPad" (the name of my laptop's touchpad) accordingly.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.