The i3 FAQ has migrated to https://github.com/i3/i3/discussions. All content here is read-only.
Ask Your Question
0

Suspend on lid close for a laptop - best approaches?

asked 2012-11-28 02:24:35 +0000

Matt Godbolt gravatar image

Since upgrading to i3wm (v4.3) on my Ubuntu box I've discovered that closing my laptop lid no longer suspends my laptop. After considerable Googling, it seems that one solution is to hack my /etc/acpi/lid.sh to issue a pm-suspend. However that seems pretty intrusive, and I was wondering whether anyone had a better suggestion?

I believe that Gnome et al run a separate power daemon to monitor the lid and configurably suspend etc - am I missing something already in i3wm or is this something that perhaps could be added?

Thanks :)

edit retag flag offensive close merge delete

Comments

Which version of Ubuntu do you use? I am on 12.10 and I have no issues...

bruno.braga gravatar imagebruno.braga ( 2012-11-28 08:57:46 +0000 )edit

For the record I was on 12.10 too, but Michael has answered my question perfectly

Matt Godbolt gravatar imageMatt Godbolt ( 2012-11-29 00:16:27 +0000 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2012-11-28 10:51:41 +0000

Michael gravatar image

Have a look at http://off-topic.sardemff7.net/post/2... and see if that solves your issue.

edit flag offensive delete link more

Comments

Perfect! Thanks very much :)

Matt Godbolt gravatar imageMatt Godbolt ( 2012-11-29 00:15:47 +0000 )edit

Question Tools

1 follower

Stats

Asked: 2012-11-28 02:24:35 +0000

Seen: 5,142 times

Last updated: Nov 28 '12