I tried installing pm-utils and invoking sudo pm-hibernate but that didn't work.
Can you be more specific? As @Lewis noted, hibernate is disabled by default (even in Ubuntu). If you wish to hibernate manually with pm-hibernate examine the pm-utils logs (less /var/log/pm-suspend.log) for clues.
If everything appears to be successful in ...
The solution given by cheekyngeeky does not work for some laptops.
sudo vim /etc/systemd/logind.conf
find line "#HandleLidSwitch=suspend"
Replace line with "HandleLidSwitch=ignore"
finaly, restart service:
sudo systemctl restart systemd-logind
elementary OS Freya is designed to resume from where you left it even when you Switch Off the machine. For instance, opening Scratch will, by default, open all the files you were editing last time. As such, a design decision was made to remove it, coupled with the fact that hibernate is hardware dependent, and does not work on many systems.
Aside from already suggested answers (force enabling of hibernation, and normal shutdown as apps should resume where they left, which obviously doesn't work for non-elementary apps like LibreOffice etc.), there is a third option:
Suspend. If you just want to start a new day where you left the day before, the prefered way is to suspend rather than hibernate. ...
You can configure the power button by opening System Settings -> Power and making your selection from the dropdown labeled "Power button"
There is not currently an option to show the end session dialog. This is not something that is provided by the upstream software component that elementary OS uses for this feature.
I wanted this functionality as well but couldn't find it online anywhere. It looks like the Hibernate option was removed a long time ago because it fails on some systems (which perhaps was the case a long time ago :-). On my Dell XPS 9350, hibernate works just fine with elementary OS (via 'sudo systemctl hibernate').
This aspect of elementary OS is handled ...
If you click on the menu entry called Shutdown... it does not turn off the system immediately but instead opens a dialog, where you can also click on Restart (pictured in the middle).
Alternatively you can just type "Restart" into Slingshot or use the terminal command sudo shutdown -r now.
Calibrating the battery may help with this. To calibrate it you just need to fully charge it, then use it and discharge completely and charge it again til 100%.
If you still experience the same issue then is probably what cheekyngeeky pointed out.
I believe this to be a solution for what you're wanting to do:
Open a Files window as admin by right clicking Files and selecting "New Window as Administrator.
Navigate in the File System to /etc/systemd and open logind.conf with Scratch Text Editor.
Directly below the line reading #HandlePowerKey=poweroff add a new line of text reading:
Check TLP Settings:
All TLP settings are stored in the config file /etc/default/tlp
Set autosuspend mode for all USB devices upon system start or a change of power source. Input devices like mice and keyboards are exluded by default (see USB_DRIVER_BLACKLIST below). Possible values:
1 – enable
0 – disable
Note: TLP activates USB ...
The command line 'copy-pasta' method for the impatient:
gsettings set org.gnome.settings-daemon.plugins.power lid-close-ac-action 'nothing'
gsettings set org.gnome.settings-daemon.plugins.power lid-close-battery-action 'nothing'
You can change to one of the following values
su - -s /bin/bash lightdm
gsettings get org.gnome.settings-daemon.plugins.power sleep-inactive-ac-type
dbus-launch gsettings set org.gnome.settings-daemon.plugins.power sleep-inactive-ac-type nothing
Note that if you 'sudo' instead, it won't work properly. This fixed it on my XPS 15 9560 :)
You should check wether your current graphics card drivers are up-to-date. Moreover, disabling such drivers can help to see if the issue is fixed. If using the intel-based graphics card, you can use these commands to fix the issue. /etc/default/grub and add acpi osi=linux to GRUB_CMDLINE_LINUX=. The run update-grup, it should work properly.
TL;DR It's up to apps to tell the system that they want to block sleep
The problem is that there's no way to know the semantic content of an audio or video stream without the app declaring it. You and I know that we don't want the computer to suspend in the middle of a movie, but the computer doesn't know the difference between a movie and a visualizer or ...
The issue is now solved: first I followed these two tutorials:
1. Improving Power management in EOS Freya (though using Loki 0.4.1)
2. Most Effective Ways to Reduce Laptop Overheating in Linux
Then I had a system update (drivers and intel chip) and since then resume from Suspend is going rather smoothly, and also lid close to Suspend goes fine too now.
You could use Terminal and
gsettings set org.gnome.desktop.lockdown disable-lock-screen true
or use dconf editor and go to:
org > gnome > desktop > lockdown
and set disable-lock-screen on true
This way you still can have the screen sleep and also enter suspend but still wake up directly into your desktop (without lock screen).
I'm not sure if this will be the solution for your problem, but you could try turning of the Screen Lock (normaly it shouldn't exit applications).
Got to System-Settings->Security->Locking:
Also try to set "Sleep when inactive" to "never" under Energy
You have the option to dim the display automatically when you aren't using it (on battery).
Also you can suspend your laptop automatically, saves much more energy than turning the screen off, and it takes just a few seconds to load everything again.
Brightness has nothing to do with plugged in / battery so it's good where it is now. I mean, you change the ...
I have experienced this type of problem on a number of different systems, but after a lot of work I tracked it down to the lid being opened (after suspend) not being recognised. The fix was simple in the end, just add the following to you kernel parameters
Basically this tells ACPI to emit an extra open event when waking from ...
I found the solution. I needed to add the ppa for caffeine
sudo add-apt-repository ppa:caffeine-developers/ppa
sudo apt-get update
sudo apt upgrade
That seemed to do the trick. Now I have caffeine indicator. Works well.
Disabling USB autosuspend completely – as described in the previous answer – will increase power consumption considerably.
I finer approach would be to isolate the offending USB device by blacklisting the devices one by one:
and apply the new setting by:
sudo tlp usb
Refer to TLP Troubleshooting for background on the subject.
you might also want to try the following
at grub boot... hit e
on the line with /vmlinuz ...
try adding the option nomodeset towards the end of the line
I have found that many display issues are "fixed" by this ... EXCEPT seens to not work with multi-monitor setup
Boot using the recovery option in your grub.
Then open a terminal window and type:
sudo nano /etc/default/grub
Add nomodeset to GRUB_CMDLINE_LINUX_DEFAULT:
It should now look like this
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
You should install TLP and Thermald
Be careful, TLP is NOT compatible with acpid or Laptop_mode_tools.
One more tweak:
open a terminal and type
gksu gedit /etc/default/grub
then look for
finally save and close gedit
after that write in the terminal:
Reboot and done.