[SOLVED] how can I prevent my laptop from suspend or hibernate when closing its lid?
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.
Distribution: OpenSUSE 13.2 64bit-Gnome on ASUS U52F
Posts: 1,444
Rep:
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.
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.
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.
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?
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.