Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Hybrid sleep problem.

Linux Kernel, Network, and Services configuration.
Post Reply
Message
Author
User avatar
Mad_7
Posts: 111
Joined: 2010-01-09 21:05
Location: Patra, Greece, Europe.

Hybrid sleep problem.

#1 Post by Mad_7 »

Hi! :D
Does someone succeeded configuring the "Hybrid Sleep" mode?
Seems like it has many problem since systemd adaption.
(I'm trying to set it up, on Jessie x64 KDE).

The man page says that in order to put the system the system in Hybrid Sleep, the command "/lib/systemd/systemd-sleep hybrid-sleep" must be run, but one has to avoid directly invoking it! :shock:
I really can't understand that!
Anyway, the man page proposes executing "systemctl hybrid-sleep" instead.

In order to configure it, one has to edit the /etc/systemd/sleep.conf file.
The problem is, that there's no such file here! :shock:
Also I couldn't find any paradigm, so I can create my own.
Does anyone knows something related?

- Seems like you can do the same job with pm-utils, but it doesn't work here.
I could put the system to sleep, leaving the default setting (15min), but the time passed and nothing happened.
For the glorious men, every land is a grave.
Pericles' Funeral Oration. Thucydides.

User avatar
phenest
Posts: 1702
Joined: 2010-03-09 09:38
Location: The Matrix

Re: Hybrid sleep problem.

#2 Post by phenest »

EDIT: This is untested as I don't know how to configure hybrid sleep if it needed it, and I don't have any swap. But I did try this with 'systemctl poweroff' which works.

I tried this on Stretch, so maybe it'll work on Jessie.

Add:

Code: Select all

systemctl hybrid-sleep
to the beginning of /etc/acpi/powerbtn-acpi-suport.sh so it reads...

Code: Select all

#!/bin/sh

# This script initiates a shutdown when the power putton has been
# pressed. Loosely based on the sample that ships with the acpid package.
# If the acpid sample is present as a real config file (as it was in earlier
# versions of acpid), we skip this script. (Purging and reinstalling acpid
# resolves this situation, or simply deleting /etc/acpi/events/powerbtn.)

systemctl hybrid-sleep
exit 0

if [ -f /etc/acpi/events/powerbtn -o -f /etc/acpi/events/powerbtn.dpkg-bak ] ; then
	logger Acpi-support not handling power button, acpid handler exists at /etc/acpi/events/powerbtn or /etc/acpi/events/powerbtn.dpkg-bak.
	exit 0
fi

...
ASRock H77 Pro4-M i7 3770K - 32GB RAM - Pioneer BDR-209D

Post Reply