Title photo
frugal technology, simple living and guerrilla large-appliance repair

Regular blog here, 'microblog' there

Many of my traditional blog post live on this site, but a great majority of my social-style posts can be found on my much-busier microbloging site at updates.passthejoe.net. It's busier because my BlogPoster "microblogging" script generates short, Twitter-style posts from the Linux or Windows (or anywhere you can run Ruby with too many Gems) command line, uploads them to the web server and send them out on my Twitter and Mastodon feeds.

I used to post to this blog via scripts and Unix/Linux utilities (curl and Unison) that helped me mirror the files locally and on the server. Since this site recently moved hosts, none of that is set up. I'm just using SFTP and SSH to write posts and manage the site.

Disqus comments are not live just yet because I'm not sure about what I'm going to do for the domain on this site. I'll probably restore the old domain at first just to have some continuity, but for now I like using the "free" domain from this site's new host, NearlyFreeSpeech.net.

Sat, 19 Oct 2013

How to stop GNOME 3 in Fedora 19 from suspending the laptop when the lid is closed

I thought you could take care of turning off suspend when the laptop lid is shut under GNOME 3 by using GNOME Tweak Tool. That doesn't work.

Automatic suspend when the lid is closed doesn't work for me because suspend/resume doesn't function on my HP hardware, and I'd like to close the damn lid every once in awhile without having to do a hard boot afterward.

It's the little things.

So I dug in a bit and found out in the Fedora Forum what you have to do (thanks to forum poster jvroig):

In a terminal:

su -
cd /etc/systemd/
gedit logind.conf

Once you're in logind.conf, uncomment (i.e. remove the #) on this line:


Then change "suspend" to "lock"

It should now read like this:


Save and close the logind.conf file.

Once you reboot, closing the lid should lock the screen and not suspend the laptop.

Note: Xfce doesn't suffer from the same inability as GNOME 3 to control what happens when you close the laptop lid.

Alternate instructions if you want to use vi and sudo:

Open a terminal and type:

$ sudo vi /etc/systemd/logind.conf

Change this line:


to this (remove #, replace suspend with lock):


Save and close the file in vi, then reboot.