I have the following problem: on lubuntu 16.04 I can send the laptop to sleep (suspend on RAM) using a hook script to switch to a virtual teminal before to suspend and reswitching out from a vt after suspend /etc/pm/sleep.d/01_switchvt

cat /etc/pm/sleep.d/01_switchvt

# Switch to a VC before suspending and back after resume

case "$1" in
            chvt 7
            chvt 1

but when I execute (and also the lxdesession-logout does) the dbus command

dbus-send --session --dest=org.freedesktop.PowerManagement  /org/freedesktop/PowerManagement  org.freedesktop.PowerManagement.Suspend

the hook script is not executed and the system does not wake-up properly (blank screen and need to reboot from vt1)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.