LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
Linux - Laptop and Netbook Having a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).

Notices


Reply
  Search this Thread
Old 07-31-2016, 09:52 AM   #1
dancog
LQ Newbie
 
Registered: Sep 2007
Location: Bangsaen Chonburi Thailand
Distribution: slackware64-15.0
Posts: 11

Rep: Reputation: 1
pm-suspend on thinkpad 200si via lid switch on slackware_64 14.2


I'm using the /etc/acpi/events/lid file to call /etc/acpi/suspend2ram.sh which reads as follows:
----------------------------
#!/bin/bash
grep -q closed /proc/acpi/button/lid/LID0/state
if [ $? = 0 ]
then
pm-suspend
fi
-----------------------------
Now this script works fine on my Samsung netbook and on my other Thinkpad X61, but on the Thinkpad X200si the system suspends and then sometime later, with the lid still closed, resumes. This usually happens in my bag or some other inconvenient, un-noticed location. Sometimes I'll hear the beep of the resume as I'm riding along on my bike.
I'm not using KDE or XFCE or any other desktop. Just fluxbox wm.

Any ideas what's triggering the resume?
 
  


Reply

Tags
acpi. thinkpad, suspend2ram



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] unable to shut lid without suspend schneidz Linux - Laptop and Netbook 4 12-09-2013 12:26 PM
[SOLVED] 14.0: What is the canonical way to suspend on lid-close padeen Slackware 5 10-16-2012 10:29 AM
No suspend on lid close AllanP Linux - Laptop and Netbook 26 05-19-2012 12:38 PM
How to suspend on lid closing? jerrybasham Linux - Laptop and Netbook 4 06-29-2007 12:03 PM
IBM thinkpad A31p How to enable Suspend on lid close for FC4? Boomba Linux - Laptop and Netbook 1 11-07-2005 09:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook

All times are GMT -5. The time now is 10:33 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