LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 11-28-2015, 05:43 PM   #1
killingthemonkey
Member
 
Registered: Mar 2011
Location: Winston-Salem, NC
Distribution: Fedora, CentOS, Linux Mint
Posts: 259

Rep: Reputation: 24
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
 
Old 11-29-2015, 03:58 AM   #2
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
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?
 
Old 11-29-2015, 07:46 AM   #3
killingthemonkey
Member
 
Registered: Mar 2011
Location: Winston-Salem, NC
Distribution: Fedora, CentOS, Linux Mint
Posts: 259

Original Poster
Rep: Reputation: 24
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?

Last edited by killingthemonkey; 11-29-2015 at 08:21 AM.
 
Old 12-02-2015, 09:27 PM   #4
killingthemonkey
Member
 
Registered: Mar 2011
Location: Winston-Salem, NC
Distribution: Fedora, CentOS, Linux Mint
Posts: 259

Original Poster
Rep: Reputation: 24
Going to mark this as solved as I can't get it to happen again.

Twice in two days... Then, nothing.
 
Old 12-02-2015, 11:03 PM   #5
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] CentOS 6.2 sleeps when closing lid - DESPITE settings d420 Linux - Laptop and Netbook 5 09-19-2014 10:29 PM
screen hanging after closing laptop lid makaukelvin Linux - Laptop and Netbook 1 04-27-2012 08:50 PM
System lock when closing laptop lid on 12.2 brixtoncalling Slackware 10 03-31-2009 06:51 AM
closing laptop lid causes display to go crazy disciple061 Linux - Laptop and Netbook 0 03-20-2004 12:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:27 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration