FedoraForum.org - Fedora Support Forums and Community
Results 1 to 7 of 7
  1. #1
    Join Date
    Sep 2012
    Location
    Canada
    Posts
    47
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Suspend trouble with lid close on Gnome 3.8 & Fedora 19

    Fedora 19 & Gnome 3.8, doesn't seem to want to suspend when I close the laptop lid.

    Checked dconf settings at >org>gnome>plugins>power, and the switch for suspend with lid close has been gnome enhanced, aka removed. Obviously nothing in the Gnome 3.8 release notes, aka marketing brochures, mentioned this. But I'm surprised Fedora release notes don't either.

    Only suspend related error I could find in my logs was in messages,
    Jul 2 14:38:51 localhost /etc/gdm/Xsession[904]: INFO : GSettings missing key org.gnome.settings-daemon.plugins.power (key lid-close-suspend-with-external-monitor)
    Jul 2 14:38:51 localhost /etc/gdm/Xsession[904]: INFO : GSettings missing key org.gnome.settings-daemon.plugins.power (key lid-close-battery-action)
    Jul 2 14:38:51 localhost /etc/gdm/Xsession[904]: INFO : GSettings missing key org.gnome.settings-daemon.plugins.power (key lid-close-ac-action)
    The pm-powersave log was completely empty.

    Any tips or advice greatly appreciated,

  2. #2
    Join Date
    Dec 2005
    Location
    North Carolina
    Age
    37
    Posts
    1,162
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Suspend trouble with lid close on Gnome 3.8 & Fedora 19

    Go to /etc/systemd/logind.conf and check and see if the line HandleLidSwitch=suspend is commented out. If it is, uncomment it. This change was introduced in Fedora 18 which is why the 19 notes probably don't mention it. Systemd now handles lid events.
    Laptop: Lenovo ThinkPad T410, CPU: Intel Core i5 520M, Ram: 8GB DDR3, Hard Drive: 320GB, Graphics: Intel HD, OS: Windows 7 / Arch Linux x86_64
    Desktop: Motherboard: ASRock Fatal1ty AB350 Gaming K4, CPU: AMD Ryzen 3 1200, RAM: 8GB DDR4, Storage: Samsung 850 Pro 256GB, Graphics: Asus Radeon RX 550 4GB, OS: Arch Linux x86_64

  3. #3
    Join Date
    Sep 2012
    Location
    Canada
    Posts
    47
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Suspend trouble with lid close on Gnome 3.8 & Fedora 19

    The line was commented out, but changing that had no effect. In fact, I've got the laptop setup to automatically suspend after 15 minutes when not plugged in, and 2 hours when plugged in, and when I came home from shopping I found that it had failed to suspend.

    And when I say failed to suspend, I don't mean still up and running, I mean, screen is off, power button and sleep indicator (a halfmoon led on the thinkpad) are flashing quickly to indicate an error. You can still hear the fan running and the disk is on. And it can't be woken up, you have to do a hard power off and then turn it back on.

    I'm going to look through the other logs now, but what happened to pm-utils log?

  4. #4
    Join Date
    Nov 2007
    Location
    Northern Territory, Australia
    Posts
    62
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Suspend trouble with lid close on Gnome 3.8 & Fedora 19

    I've got the opposite problem - when i close the lid it suspends and i don't want it to. There doesn't seem to be any way to change that any more. I never minded Gnome 3 before, but it seems to be getting worse!

  5. #5
    Join Date
    May 2006
    Posts
    299
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Suspend trouble with lid close on Gnome 3.8 & Fedora 19

    @WillKemp:

    I just had the same "need" as you - I didn't want my laptop (an HP Probook) to suspend when the lid is closed (primarily, because Fedora doesn't seem to resume correctly on HP Probooks for a few years now).

    Anyway, so I wanted it to not suspend when the lid is closed, dug around, found this post, and figured out what worked for me. If you haven't solved yours yet, this may work:

    Code:
    su -
    cd /etc/systemd/
    gedit logind.conf
    From here, uncomment the line "HandleLidSwitch=suspend", then change "suspend" to "lock".

    I also uncommented the line "LidSwitchIgnoreInhibited=yes", but I don't think it's actually necessary because that is already the default behavior.

    It worked as expected on my next boot (didn't try it right after, but I don't suppose it won't work). It doesn't suspend, screen just locks and blanks.

  6. #6
    Join Date
    Nov 2007
    Location
    Northern Territory, Australia
    Posts
    62
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Suspend trouble with lid close on Gnome 3.8 & Fedora 19

    Thanks for that! It worked.

  7. #7
    Join Date
    Dec 2014
    Location
    Brazil
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Suspend trouble with lid close on Gnome 3.8 & Fedora 19

    Quote Originally Posted by jvroig
    @WillKemp:

    I just had the same "need" as you - I didn't want my laptop (an HP Probook) to suspend when the lid is closed (primarily, because Fedora doesn't seem to resume correctly on HP Probooks for a few years now).

    Anyway, so I wanted it to not suspend when the lid is closed, dug around, found this post, and figured out what worked for me. If you haven't solved yours yet, this may work:

    Code:
    su -
    cd /etc/systemd/
    gedit logind.conf
    From here, uncomment the line "HandleLidSwitch=suspend", then change "suspend" to "lock".

    I also uncommented the line "LidSwitchIgnoreInhibited=yes", but I don't think it's actually necessary because that is already the default behavior.

    It worked as expected on my next boot (didn't try it right after, but I don't suppose it won't work). It doesn't suspend, screen just locks and blanks.
    Quote Originally Posted by csillva
    The line was commented out, but changing that had no effect. In fact, I've got the laptop setup to automatically suspend after 15 minutes when not plugged in, and 2 hours when plugged in, and when I came home from shopping I found that it had failed to suspend.

    And when I say failed to suspend, I don't mean still up and running, I mean, screen is off, power button and sleep indicator (a halfmoon led on the thinkpad) are flashing quickly to indicate an error. You can still hear the fan running and the disk is on. And it can't be woken up, you have to do a hard power off and then turn it back on.

    I'm going to look through the other logs now, but what happened to pm-utils log?


    Thanks man, it's work's for me !

Similar Threads

  1. suspend on lid close
    By zemlik in forum Hardware
    Replies: 8
    Last Post: 9th April 2013, 02:03 PM
  2. GNOME suspends on lid close
    By PythonNut in forum Using Fedora
    Replies: 3
    Last Post: 25th February 2013, 05:46 AM
  3. Gnome-Screensaver lock on lid close
    By harshad1 in forum Using Fedora
    Replies: 8
    Last Post: 29th July 2012, 03:30 AM
  4. Lid close doesn't trigger suspend in GNOME
    By drivelikebrazil in forum Hardware
    Replies: 2
    Last Post: 24th January 2012, 11:39 PM
  5. How to force gdm not to suspend on lid close
    By zaitcev in forum Using Fedora
    Replies: 3
    Last Post: 11th January 2010, 02:01 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •