I have ubuntu 14.04 installed on my dell e5440. What I'm trying to do is to make my computer suspend when I close the lid when I'm plugged in and hibernate when on battery power.
What I've managed so far is to override the power settings to hibernate when I close the lid.
Suggestions?
[SOLVED]
to the title. Marking an answer as accepted is enough.