Kernel not recognizing your hardware? Problems with power management or PCMCIA? What hardware is compatible with Gentoo? See here. (Only for kernels supported by Gentoo.)
leyvi wrote:There seems to be a lot of different options for Suspend to RAM, and I don't know which to choose. What do you guys use?
I just close the laptop lid
(Okay, I had to enable it in xfce. Menu --> Applications --> Settings --> Power Manager --> "System" tab. Other desktops must have similar functionality.)
From the command line, loginctl suspend also works. I avoid writing directly to /sys/power/state behind the desktop's back, but it should work too.
The practical unit of "Learning Experience" is the milli-Gentoo.
sublogic wrote:From the command line, loginctl suspend also works. I avoid writing directly to /sys/power/state behind the desktop's back, but it should work too.
The extreme minimalist sleeps by having root write mem to /sys/power/state. Most people won't like that, since it puts the kernel into S3 without giving user processes a chance to react, so your screen doesn't lock on the way down, daemons don't go into an idle state, etc. The slightly less minimal approach is for root to use sys-power/hibernate-script, which is a massive shell script with hooks to handle many of the common pre-sleep steps, and which will enter S3 (or S5, depending on configuration) once the pre-sleep steps are done.
Separately, you could arrange for the ACPI daemon to map lid close, power button tapped, or similar events into doing one of the above methods. That would allow a physically present user to initiate sleep without needing a logged in shell.