LinuxQuestions.org
Visit Jeremy's Blog.
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 03-30-2012, 02:27 PM   #1
TroN-0074
Senior Member
 
Registered: Dec 2011
Location: Michigan USA
Distribution: OpenSUSE 13.1 64bit-Gnome 3.10 on ASUS U52F
Posts: 1,388

Rep: Reputation: 333Reputation: 333Reputation: 333Reputation: 333
how can I prevent my laptop from suspend or hibernate when closing its lid?


Will this work in OpenSuSE 12.1 with Gnome?
I am asking because I found it in the Ubuntu documentation site and I would like to prevent my laptop from suspend or hibernating when the lid is closed
I will appreciate all advices.

Thank you.

Quote:
Stop the computer from suspending when the lid is closed

If you don't want the computer to suspend when you close the lid, you can change the settings for that behavior. To set the computer to blank the screen, rather than suspend, when the lid is closed:
Be very careful if you change this setting. Some laptops can overheat if they are left running with the lid closed, especially if they are in a confined place like a backpack.
Open the Terminal application from the Dash.

To change the setting used when running on battery power, type this command and press Enter:
Code:
gsettings set org.gnome.settings-daemon.plugin.power lid-close-battery-action blank
To change the setting used when running on AC power, type this command and press Enter:
Code:
gsettings set org.gnome.settings-daemon.plugin.power lid-close-ac-action blank
There are other settings available besides "blank," such as "nothing," which causes the computer to do nothing.
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 03-30-2012, 02:54 PM   #2
uniquerockrz
LQ Newbie
 
Registered: Mar 2012
Location: Kolkata, India
Distribution: Arch Linux
Posts: 17

Rep: Reputation: Disabled
Heyy you can install gnome-tweak-tool and find options which says what to do when laptop lid is closed. Hopefully changing them will prevent suspension on lid close.
 
Old 03-30-2012, 08:34 PM   #3
Bigbigworld
LQ Newbie
 
Registered: Mar 2012
Posts: 1

Rep: Reputation: 0
If your on XP (dunno about others) go into control panel then performance and mentenance then go into the power settings. go to the advanced tab and change the when i close my lid option to; do nothing.
Problem Solved

If your vista, then go to control panel, then power settings. on the left should be options- including change times when computer sleeps.
 
Old 03-30-2012, 09:04 PM   #4
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Gentoo
Posts: 15,438
Blog Entries: 2

Rep: Reputation: 4001Reputation: 4001Reputation: 4001Reputation: 4001Reputation: 4001Reputation: 4001Reputation: 4001Reputation: 4001Reputation: 4001Reputation: 4001Reputation: 4001
Quote:
Originally Posted by Bigbigworld View Post
If your on XP (dunno about others) go into control panel then performance and mentenance then go into the power settings. go to the advanced tab and change the when i close my lid option to; do nothing.
Problem Solved

If your vista, then go to control panel, then power settings. on the left should be options- including change times when computer sleeps.
You realize that this is a Linux forum and the OP is asking for advice when using openSuse with Gnome?
 
Old 03-30-2012, 09:56 PM   #5
rahulkya
Member
 
Registered: Feb 2009
Location: New Delhi
Distribution: Linux mint,Ubuntu,Debian,RHEL 5,slackware 13.1, free BSD,solaris.
Posts: 186
Blog Entries: 3

Rep: Reputation: 33
if you can see your battery icon try right click or left click on that icon and you can see preference . Then you can probably see two options one for battery and another for AC power. There is a option when laptop lid is closed. Choose blank screen .
This may help you
 
Old 03-30-2012, 10:25 PM   #6
uniquerockrz
LQ Newbie
 
Registered: Mar 2012
Location: Kolkata, India
Distribution: Arch Linux
Posts: 17

Rep: Reputation: Disabled
this is what I meant

http://i.imgur.com/5o7uz.png
 
Old 03-31-2012, 08:48 AM   #7
TroN-0074
Senior Member
 
Registered: Dec 2011
Location: Michigan USA
Distribution: OpenSUSE 13.1 64bit-Gnome 3.10 on ASUS U52F
Posts: 1,388

Original Poster
Rep: Reputation: 333Reputation: 333Reputation: 333Reputation: 333
Well the code I had found didnt work. What extension do you have to do that @ uniquerockrz?

thank you for your response.
 
Old 03-31-2012, 09:06 AM   #8
uniquerockrz
LQ Newbie
 
Registered: Mar 2012
Location: Kolkata, India
Distribution: Arch Linux
Posts: 17

Rep: Reputation: Disabled
Quote:
Originally Posted by TroN-0074 View Post
Well the code I had found didnt work. What extension do you have to do that @ uniquerockrz?

thank you for your response.
install gnome-tweak-tool software from YAST. There you will get an option like that
 
2 members found this post helpful.
Old 03-31-2012, 09:35 AM   #9
TroN-0074
Senior Member
 
Registered: Dec 2011
Location: Michigan USA
Distribution: OpenSUSE 13.1 64bit-Gnome 3.10 on ASUS U52F
Posts: 1,388

Original Poster
Rep: Reputation: 333Reputation: 333Reputation: 333Reputation: 333
Quote:
Originally Posted by uniquerockrz View Post
install gnome-tweak-tool software from YAST. There you will get an option like that
Thank You, Yo!

Last edited by TroN-0074; 03-31-2012 at 09:38 AM.
 
  


Reply

Tags
hibernate, laptop, suspend


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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] Closing laptop lid stops computer Nunana Debian 5 12-08-2010 05:18 AM
System lock when closing laptop lid on 12.2 brixtoncalling Slackware 10 03-31-2009 06:51 AM
Temporarily prevent suspend/hibernate tromboneman Linux - Newbie 1 07-26-2008 05:20 PM
How to suspend on lid closing? jerrybasham Linux - Laptop and Netbook 4 06-29-2007 12:03 PM
closing laptop lid causes display to go crazy disciple061 Linux - Laptop and Netbook 0 03-20-2004 12:48 AM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration