cfengine / design-center

CFEngine community-contributed content
http://cfengine.com/
Other
80 stars 68 forks source link

Add sketch to suspend when lid closed and running on battery #374

Closed nickanderson closed 9 years ago

nickanderson commented 11 years ago

Does your suspend software only register actions when an event happens (like lid closing)? Mine does Do you ever close your laptop lid before unplugging the power? I do Does the running laptop in your backpack make your back sweat? Mine does Do you hate pulling out your laptop only to find out the battery is drained because it didn't suspend properly? I do

This has been tested on Ubuntu 13.04 with my Thinkpad W520, and its awesome. I no longer have to remember to pull the power from my laptop BEFORE I close the lid. All you have to do is activate the sketch.

nickanderson commented 11 years ago

I think I need some help with the activation id, in the enterprise UI it's stuck in orange.

tzz commented 11 years ago

Do you think this would be better as Utilities::Suspend with a lidclosed entry point?

nickanderson commented 11 years ago

Sure, any idea what I have done wrong with activation ID?

BTW as simple as this sketch is, I am finding it super duper useful :)

tzz commented 11 years ago

I can test it but at first glance, only one handle has the activation ID. Moar needed.