I run Ubuntu 16.04 with kernel 93 generic on Dell laptop. When I disconnect the notebook from the large external screen (Benq BL 2405), DVI connection and close the lid, next I time I open the lid the laptop is dead, i.e. it's on and consuming energy but I the screen is black and I could't get it work. So the notebook keeps 'working' after closing the lid and saps the energy until the battery dies, but I can't do anything to actually get it to work. This only started after istalling Ubuntu 16.04 and disconnecting from the large screen.
1 Answers
When you close the lid, your notebook by default hibernates or goes to suspend-to-ram. As long as anexternal Monitor is attached (and can be detected), it stays awake, because you might sit in front of it and using it. When you detatch the monitor, it goes "asleep", because nobody obviously can be using it (except, of course, remotely via network). So it does, what most people would expect it to do.
When you reopen the lid, just press the POWER botton like switching it on, and it will be there like it never slept.
You can configure it to behave differently (System --> Power) if you prefer.
TomTomTom
Edit: Not a joke at all. I've seen several notebooks on 16.04 behaving as I described. But in your comment above you hinted the solution yourself:
HandleLidSwitch=suspend HandleLidSwitchDocked=hibernate #LidSwitchIgnoreInhibited=yes
There are the configurations "suspend" and "hibernate" you experience, first one if your are on battery, second one if power is attached. You might want to change them to ignore, so nothing sould change when you close the lid.
- 483