LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Laptop and Netbook (https://www.linuxquestions.org/questions/linux-laptop-and-netbook-25/)
-   -   CentOS 6.2 sleeps when closing lid - DESPITE settings (https://www.linuxquestions.org/questions/linux-laptop-and-netbook-25/centos-6-2-sleeps-when-closing-lid-despite-settings-927882/)

d420 02-06-2012 06:39 AM

CentOS 6.2 sleeps when closing lid - DESPITE settings
 
I have freshly installed CentOS 6.2 on a DELL Latitude D420 and all seems going to be well - except for one critical problem: When I close the lid, the laptop goes to sleep, despite the settings in Power Management Preferences:

Code:

[On AC Power]
 Actions
  Put computer to sleep when inactive for: Never
  When laptop lid is closed:              Blank screen
  [] Spin down hard disks when possible    (unchecked)

 Display
  Put display to sleep when inactive for:  30 minuts
  Set display brightness to:                100%
  [v] Dim display when idle                (checked)

Yes, the power cable is connected!

Any idea how to solve this problem?

jefro 02-06-2012 04:48 PM

Any bios settings for this?

d420 02-06-2012 07:02 PM

Quote:

Originally Posted by jefro (Post 4595417)
Any bios settings for this?

No. The only power-management related BIOS settings are for WOL and USB powering.

However... I just set:

Code:

When laptop lid is closed:              Blank screen
For the On Battery Power tab as well, and now the laptop stays on when I close the lid.

I consider this a CentOS 6.2 bug.

jefro 02-06-2012 09:09 PM

I guess it could be that it was assumed that on closed lid a person might take it portable so the default is on lid closed use battery?

You never know about some of these things but glad you fixed it and posted back.

d420 02-07-2012 09:19 AM

Quote:

Originally Posted by jefro (Post 4595571)
I guess it could be that it was assumed that on closed lid a person might take it portable so the default is on lid closed use battery?

Well, I happen to use the laptop remotely (via LAN, AC powered) and I prefer the lid to be closed so that the keyboard doesn't collect dust. This is why there are 2 tabs: [On AC Power] and [On Battery Power]. It's a bug (unless unambiguously documented as a feature).

lowriepa 09-19-2014 10:29 PM

Put the laptop into Run-Level 3 (multi-user no graphics) works for me.

sudo init 3

and make it permanent change 5 to 3 in this line of /etc/inittab

id:3:initdefault:

Hope this helps.


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