09-04-2015, 06:41 PM
(09-04-2015, 05:00 PM)firenice03 link Wrote: My Dell Netbook (w/ Intel Graphics) appears to do the similar. Running LL2.2 and same with LL2.6On some hardware putting the video card in the suspend state and recovering from it needs some special quirk handling.
Since its a "laptop" I want to close the lid or after X time have it hibernate after a screen saver. After waking from hibernate , I see the log on screen I can log in then black... Rebooting corrects until the next time.
I've read that it could be lightdm (I think how it was referenced) and/or the screen saver..
I used the following workaround when I want to hibernate..
In terminal (does require root)
I typically leave a terminal window up just having to up arrow to the last command. If I put into hibernate, I have no issues waking.Code:sudo pm-hibernate
One of these days I'm going to chase the cause down.... But the above works for the time being.
Read the manual.
Code:
man pm-suspend
For example:
Code:
sudo pm-suspend --quirk-vbe-post --quirk-vbemode-restore
Code:
sudo pm-suspend --quirk-reset-brightness
Code:
sudo pm-suspend --quirk-dpms-on
Code:
--quirk-dpms-on
--quirk-dpms-suspend
--quirk-radeon-off
--quirk-reset-brightness
--quirk-s3-bios
--quirk-s3-mode
--quirk-vbe-post
--quirk-vbemode-restore
--quirk-vbestate-restore
--quirk-vga-mode-3
--quirk-none
When you find the right quirk. Test your system to see if all is running OK.
From the manual, to save it create a file in /etc/pm/config.d/
Name it anyway you like.
Code:
gksu leafpad /etc/pm/config.d/my-quirk
Code:
ADD_PARAMETERS="pm-suspend --quirk-vbe-post --quirk-vbemode-restore"
Which quirk works depends on your hardware, kernel, driver, KMS settings and the probably the phase of the moon.

Save. After reboot it should work.
You can put the pc to suspend without sudo with dbus-send.
Code:
dbus-send --system --print-reply --dest="org.freedesktop.UPower" /org/freedesktop/UPower org.freedesktop.UPower.Suspend