Sleep and Hibernate don't work as expected.
Sleep
=============
Does sleep but most times doesn't wake up. To wake up I press the power button. A blue led is turned on if wake up is successful. But most of the time the screen stays black and the blue led flickers just one second. Only a reboot (press power button 5 seconds) is possible.
Syslog shows:
Aug 20 13:14:09 sparky NetworkManager[632]: <info> sleep requested (sleeping: no enabled: yes)
Aug 20 13:14:09 sparky NetworkManager[632]: <info> sleeping...
Aug 20 13:14:09 sparky NetworkManager[632]: <info> (wlan0): device state change: disconnected -> unmanaged (reason 'sleeping') [30 10 37]
Aug 20 13:14:09 sparky NetworkManager[632]: <info> NetworkManager state is now ASLEEP
Aug 20 13:14:09 sparky kernel: [ 8366.984644] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
Aug 20 13:14:09 sparky systemd[1]: Reached target Sleep.
Aug 20 13:14:09 sparky systemd[1]: Starting Suspend...
Aug 20 13:14:09 sparky systemd-sleep[30960]: Suspending system...
Hibernate
===========
Most of the time hibernate turns screen black but doesn't turn off as expected. Power consumption is as high as in running state.
Sylog of failed hibernate:
Aug 20 10:22:59 sparky NetworkManager[642]: <info> sleep requested (sleeping: no enabled: yes)
Aug 20 10:22:59 sparky NetworkManager[642]: <info> sleeping...
Aug 20 10:22:59 sparky NetworkManager[642]: <info> (wlan0): device state change: disconnected -> unmanaged (reason 'sleeping') [30 10 37]
Aug 20 10:22:59 sparky kernel: [ 3358.369700] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
Aug 20 10:22:59 sparky NetworkManager[642]: <info> NetworkManager state is now ASLEEP
Aug 20 10:22:59 sparky systemd[1]: Reached target Sleep.
Aug 20 10:22:59 sparky systemd[1]: Starting Hibernate...
Aug 20 10:22:59 sparky systemd-sleep[21300]: Suspending system...
Aug 20 10:22:59 sparky kernel: [ 3358.421812] PM: Hibernation mode set to 'platform'
Aug 20 10:23:00 sparky kernel: [ 3359.408778] (NULL device *): firmware: direct-loading firmware rtlwifi/rtl8192cfw.bin
How can I debug this problem?
Thanks for any help.
Sleep
==============
I changed now the hardware from a silent Shuttle XS35GTV2 to a silent XS35V4. Sleep works now without any problem. I think it has to do with nvidia driver (black screen on wakeup). By the way XS35V4 is a brilliant hardware with a J1900 processor, completely silent and consumes only 6-12W! Full screen hd movie on youtube no problem.
Hibernate
==============
Still not working. I did some search on the internet but didn't find a final solution. It looks like hibernation depends on a swap partition? But my sparkylinux doesn't have any swap partition.
Does hibernation work for others?