LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   CentOS 7 and GNOME 3 - Closing Laptop Lid Spawns New Folder and Opens Them (https://www.linuxquestions.org/questions/linux-newbie-8/centos-7-and-gnome-3-closing-laptop-lid-spawns-new-folder-and-opens-them-4175560101/)

killingthemonkey 11-28-2015 05:43 PM

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

gnome-shell --version:
GNOME Shell 3.8.4

ondoho 11-29-2015 03:58 AM

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?

killingthemonkey 11-29-2015 07:46 AM

Ondoho,
I'll give that a try. I had the same thought about the key presses.

EDIT: Well, I can say that the screen goes off... How do I tell if it's going to sleep?

killingthemonkey 12-02-2015 09:27 PM

Going to mark this as solved as I can't get it to happen again.

Twice in two days... Then, nothing.

suicidaleggroll 12-02-2015 11:03 PM

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.


All times are GMT -5. The time now is 03:40 PM.