LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 08-17-2015, 02:49 PM   #1
4art4
LQ Newbie
 
Registered: Aug 2015
Posts: 3

Rep: Reputation: Disabled
logind.conf not working, closing lid will not suspend laptop


I am running Fedora 22 on a Dell Latitude E6230. At some point I got a software patch that broke the laptop suspending when I close the lid. It was working, and now it is not. I am not sure what patch caused this, or why. I am also a newbie to Linux (but not computers), so sorry if I did not investigate something I should have.

What I have looked into:
  • I tried un-commenting these lines in /etc/systemd/logind.conf and then rebooting:

    PHP Code:
    HandleLidSwitch=suspend
    LidSwitchIgnoreInhibited
    =yes
    HandleLidSwitchDocked
    =ignore 
  • sudo journalctl -b -u systemd-logind
    shows that the lid is detecting that it is closing and opening.
  • I tried installing gnome-power-manager... but this seemed to have no effect.
  • I installed gnome tweak tool and set "don't suspend on lid close" to "off". In playing with this, I also changed "power button action" to "hibernate", yet the power button just turns the laptop off, and closing the lid still does not suspend it.
  • I then went back to /etc/systemd/logind.conf and un-commented the lines:

    PHP Code:
    HandlePowerKey=suspend
    HandleSuspendKey
    =poweroff 
    Yes, that is backward... but this setting did not take hold. I.e., even after a reboot, the power button still turns the laptop off, and the suspend button will suspend the laptop. This seems to prove to me that the /etc/systemd/logind.conf file and the gnome tweak tool setting do not have any effect.
  • I tried this command... but I am not 100% what it does:

    PHP Code:
    gsettings set org.gnome.settings-daemon.plugins.xrandr default-monitors-setup do-nothing 
    I found this on one of the threads. I did notice at this point that closing the lid while on the dock will suspend the laptop.
  • I thought that maybe there was some double negative action going on. I changed these lines just to test:

    PHP Code:
    HandleLidSwitch=ignore
    HandleLidSwitchDocked
    =suspend 
    And the result is that the laptop no longer suspends while on the dock when the lid is closed, nor when the laptop is off the dock.
  • At no time are any external monitors hooked up.
So what the heck am I missing? What can override these settings?
 
Old 08-18-2015, 08:40 AM   #2
ugjka
Member
 
Registered: May 2015
Location: Latvia
Distribution: Arch, Centos
Posts: 368
Blog Entries: 5

Rep: Reputation: 264Reputation: 264Reputation: 264
Check yum or dnf history, it would be a blessing if you could figure out which update possibly broke things
 
Old 08-18-2015, 08:50 AM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,119

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Yes, I noticed similar a while back - a systemd update replaced the logind.conf. Resolution for me was to simply replace "HandleLidSwitch=suspend" and restart systemd-logind. This is on a Dell Studio XPS.
So you seem to have been looking in the right area. I'd be guessing you have some other power manager running that is conflicting. But that's just a guess.
 
Old 08-18-2015, 06:26 PM   #4
4art4
LQ Newbie
 
Registered: Aug 2015
Posts: 3

Original Poster
Rep: Reputation: Disabled
update: I got another software update. Now the laptop will suspend any time I close the lid, even on the dock. It should not suspend while on the dock as I have put the setting "HandleLidSwitchDocked=ignore" back. Also, and power and suspend buttons remain impervious to suggestions of change.

still broken... just in a different way.
 
  


Reply


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
Hp 15 laptop with Mint 17- closing lid Suspend) dose not reduce power usage abbarnett Linux - Laptop and Netbook 1 10-03-2014 02:48 PM
[SOLVED] Notebook suspends when closing lid even after editing logind.conf Silvyrfir Linux - Laptop and Netbook 2 04-08-2014 05:02 AM
[SOLVED] how can I prevent my laptop from suspend or hibernate when closing its lid? TroN-0074 Linux - Newbie 8 03-31-2012 09:35 AM
[SOLVED] Closing laptop lid stops computer Nunana Debian 5 12-08-2010 05:18 AM
How to suspend on lid closing? jerrybasham Linux - Laptop and Netbook 4 06-29-2007 12:03 PM

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

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