Wirawan Purwanto | 13 Feb 01:56 2014
Picon

Who sleeps me? Who wakes me?

Hi,

Given a typical linux desktop setup, I want to know which hardware or
software event
causes (triggers) suspend or resume of a laptop. For example, in
Lenovo T400 laptop, an external USB keyboard (already plugged into a
laptop prior to suspending) keypress will cause the laptop to wake up.
is there a way to know that this "wake up" is caused by this keypress?
Or maybe it was caused by lid event (lid being closed or opened). I
know this is a complicated chain.
But occasionally I am facing a mysterious laptop waking up itself from
sleep (sleep-to-RAM) and I don't know what causing it. My OS is Debian
7 (stable, wheezy) x86-64.

--
Wirawan Purwanto
Research Scientist
College of William and Mary
Physics Department
Williamsburg, VA 23187
Tomas Davidek | 1 Nov 12:42 2013
Picon
Picon

pm-hibernate on a Lenovo T431s

Dear all,
     I got a new laptop Lenovo T431s and I am fighting a lot with 
hibernation.

When trying simply pm-hibernate from text console, the system apparently 
saves the image to swap and powers off. That's ok. But when booting 
again, the last message on the screen is
Booting the kernel.
Loading, please wait...

I expected more info, since I set PM_DEBUG="true" in 
/etc/pm/config.d/01_debug.conf

Anyway, looking in the log (/var/log/pm-suspend.log) there are thousands 
of messages, it finishes with:
+ inhibited
+ [ -f /var/run/pm-utils/pm-suspend/storage/inhibit ]
+ return 0
+ date
+ log Fri Nov  1 12:19:11 CET 2013: performing hibernate
+ is_set true
+ return 0
+ local fmt=%s\n
+ [ Fri Nov  1 12:19:11 CET 2013: performing hibernate = -n ]
+ printf %s\n Fri Nov  1 12:19:11 CET 2013: performing hibernate
Fri Nov  1 12:19:11 CET 2013: performing hibernate
+ sync
+ do_hibernate
+ [ -n  ]
+ echo -n disk
(Continue reading)

Tomas Davidek | 25 Oct 14:06 2013
Picon
Picon

displaying progress

Hello,
    when launching pm-hibernate, the display just blinks once, then 
nothing seems to be happening (well, I see the disk activity, so the 
system is really storing the memory image on swap) and then suddenly the 
system powers off. Everything works well, but I would prefer that the 
system shows the status. A simple option would be to switch to text 
console (chvt 1) and show the progress in percentage.

Is there a way to set this feature in pm-utils?

Best regards,
                         Tomas
Michel DEVEL | 21 Oct 03:23 2013
Picon

Black unresponsive screen after hibernate/thaw presumably due to NVIDIA driver

Dear pm-utils users and developers,

This is my first mail on this list so I present myself a bit:
I am a long time user of opensuse at work and at home, but I am only a user and certainly not a system expert, so that even after reading some of the documentation for the opensuse implementation of pm-utils, I still have problems to be able to sort out by myself a problem with pm-utils.

I have had a problem with hibernate/resume on my computer since at least the default pm-utils that was integrated in opensuse 11.4 until now (12.3)! (In fact I do not remember that it ever worked for me). The problem is that I usually have plenty of softs and at least one virtual machine opened at the same time (I have 24 GB of RAM) so that I almost never shutdown and reboot my PC and have very rarely the occasion and time to experiment with hibernate.
Hence, if you solve the following problem, you will also make a good action for the planet since I will be able to use hibernation at the end of every working day!


The current version of pm-utils on my PC is   1.4.1-26.17.1

p, li { white-space: pre-wrap; }

The hibernate and resume just go on all right (success at the end of pm-suspend.log and 100% of data image loaded) but I get a black screen afterward (and neither Ctrl-Alt-F1 to F12 works nor Ctrl-Alt-Esc or Ctrl-Alt-Del).

By checking Xorg.0.log against Xorg.0.log.old, I see that at the end after the EDID checks I have
[ 4863.515] (II) Open ACPI successful (/var/run/acpid.socket)
[ 4863.592] (WW) NVIDIA(GPU-0): Failed to enter interactive mode.
[ 4863.592] (EE) NVIDIA(GPU-0): Failed to determine display capabilities
[ 4863.592] (EE) *** Aborting ***
[ 4863.592]
Fatal server error:
[ 4863.592] EnterVT failed for screen 0
[ 4863.592]
[ 4863.592] (EE)
Please consult the The X.Org Foundation support
at xorg
for help.
[ 4863.592] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[ 4863.592] (EE)
[ 4863.594] (II) evdev: Logitech HID compliant keyboard: Close
[ 4863.594] (II) UnloadModule: "evdev"
[ 4863.594] (II) evdev: Logitech HID compliant keyboard: Close
[ 4863.595] (II) UnloadModule: "evdev"
[ 4863.596] (II) evdev: Microsoft Corporation Microsoft ® Laser Mouse 6000: Close
[ 4863.596] (II) UnloadModule: "evdev"
[ 4863.596] (II) evdev: STV06xx: Close
[ 4863.596] (II) UnloadModule: "evdev"
[ 4863.597] (II) evdev: Power Button: Close
[ 4863.597] (II) UnloadModule: "evdev"
[ 4863.597] (II) evdev: Power Button: Close
[ 4863.597] (II) UnloadModule: "evdev"


I have tried to google "(EE) NVIDIA(GPU-0): Failed to determine display capabilities" but the only reference are for my former posts on the opensuse forums

My graphics card is a GTX260 and I use x11-video-nvidiaG03, nvidia-gfx03-kmp-desktop and nvidia-computeG03 from obs://build.suse.de/home:sndirsch:drivers though I do not have this repo in my list (I have ftp://download.nvidia.com/opensuse/12.3/) ...

I have tried to create a script named first 99znvidia the 99nvidia with
::::::::::::::
/etc/pm/sleep.d/99znvidia
::::::::::::::
#!/bin/bash

. $PM_UTILS_LIBDIR/functions

case "$1" in
hibernate|suspend)
modunload nvidia
;;
thaw|resume)
modreload nvidia
;;
*)
;;
esac

exit 0

The script was executed during hibernate and thaw with success, but my screen stayed black and unresponsive after the image was loaded into memory and pm_suspend.log contains only success.

Any help will be appreciated.

_______________________________________________
Pm-utils mailing list
Pm-utils <at> lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/pm-utils
Nisha gunasekaran | 8 Oct 13:48 2013
Picon

Error while compiling after clean version-1.4.1

Hi all,

I have downloaded pm-utils-1.4.1. compiled and tested, It worked properly.
But the problem is, second make fails after make clean. I'm getting the following message.

make[2]: *** No rule to make target `service', needed by `all-am'.  Stop.

I have removed service from script_in_files(src/Makefile.in). Now it compiles.

Also i've checked the earlier version, this service clean was not there.

Is it okay to remove the service script from cleaning? Otherwise guide me in the right way.

Regards,
Nisha K



_______________________________________________
Pm-utils mailing list
Pm-utils <at> lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/pm-utils
Rheinländer | 27 Nov 04:34 2012
Picon
Picon

Prevent PCMCIA power-off

Hi,

how would I prevent pm-suspend from powering off my PCMCIA/cardbus cards? I have a network card in there and powering it off prevents Wake-on-lan.

Thanks!
    Jan

_______________________________________________
Pm-utils mailing list
Pm-utils <at> lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/pm-utils
CG | 20 Nov 22:38 2012
Picon
Picon

fixing (an almost fixed) suspend of the asus 1025c

Hardware/software context
=========================
Machine: ASUS eee pc 1025C
CPU: N2800
Integrated graphics processor: Intel GMA3650
OS: Ubuntu 12.04 LTS
kernel: 3.4.0-0304000-generic (note: I upgraded to a newer kernel than
the standard kernel packaged with Ubuntu 12.04. This was required to
exploit several features of the GMA3650.)

Problem
=======
suspend is broken (but almost fixed).

Observations
============
pm-suspend => garbled screen after wake up

pm-suspend --quirk-vbemode-restore => after wake up, screen is black
(that is, the active-type-of-black: the backlight is on). Moving mouse
or keyboard doesn't change anything. This is the case until the default
screen saver becomes active. Then the screen goes completely dark
(backlight off) and after that, moving mouse or keyboard brings back a
visible, and completely correct screen.

I also tried other combinations of quirks, but the results were in each
case one of the above.

Question
========
How can suspend be fixed? The screensaver apparently does something good
to the state of the graphics system, but what is it? I tried to simulate
it with calling the screensaver directly from the command line
(gnome-screensaver-command -a), but that didn't work (it didn't have the
same positive effect as the default screensaver which becomes active
automatically after X minutes).

Thanks in advance!

Chide
Athlion | 22 Jul 17:59 2012
Picon

Lenovo T420 issues

Hello all. I have a Lenovo T420 with the integrated intel HD3000 card
(no optimus) and have issues suspending the laptop. What happens is,
briefly, that after I've been using the laptop for about a day or two
(suspending/resuming with no problems) the suspend fails and the sleep
led will start flashing constantly. If I open the lid, I see that X
has dropped back to the display manager and no suspension has taken
place. You can see the thread I have opened in arch linux forums here:
https://bbs.archlinux.org/viewtopic.php?pid=1134478

What's more interesting is that if I try to reboot after the failed
suspend, the system starts rebooting, suspends correctly midway and
finishes the reboot upon resuming.

I am trying to figure the source of this problem as this affects other
laptops as well and in the process I have enabled PM_DEBUG and
collected the /var/log/pm-suspend.log from an OK and from a failed
one. You can find them here:
OK: https://dl.dropbox.com/u/63420/suspend.log.ok
Not OK: https://dl.dropbox.com/u/63420/suspend.log.notok

There are a couple of interesting points to notice
1. One glaring difference is that they differ only in the initial
active/not active (which I believe is referring to laptop_mode_tools)
- But this thing happens to users having completely removed laptop
mode tools, so this doesn't seem to be relevant
2. They are the same up to line 381 (when the OK version ends). What
goes beyond that in the not ok is beyond my comprehension....

Can anyone offer any help or info on what's going on and how I can
track the problem?

Thanks!
Weedy | 17 Jul 09:08 2012
Picon

Can't suspend on a Nvidia quadro 3600m

I used to have a m90 with a 1500m, for the most part it worked if you
exclude nvidia breaking shit every other release.

Now I got a m6300 and along with all the other upgrades compared to
the m90 I got a 3600m. This should actually be a chip with BETTER
support from nvidia but I haven't been able to get consistency out of
it since I swapped hard drives over.

Anyway kernel 3.3.7; x11-drivers/nvidia-drivers 173.14.34, 173.14.35,
295.59 (and a lot more 2xx), 302.17; and pm-utils-1.4.1-r2.
It seems to get stuck going into sleep but for all I know it could be
instantly coming out of sleep and sticking there.

Thanks for your time/ideas.
Bojan Smojver | 28 Jun 11:21 2012

[PATCH]: Support in-kernel suspend to both (i.e. hybrid suspend)

Hi,

The in-kernel suspend to both should surface soon (hopefully in 3.6), so
here is a patch (untested) for pm-utils.

-------------------------
 pm/pm-functions.in |   14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/pm/pm-functions.in b/pm/pm-functions.in
index c82be30..50cde73 100644
--- a/pm/pm-functions.in
+++ b/pm/pm-functions.in
 <at>  <at>  -317,6 +317,20  <at>  <at>  if [ -z "$HIBERNATE_MODULE" ] && \
 	}
 fi

+# for kernels that support suspend to both (i.e hybrid suspend)
+# since kernel 3.6
+if [ -z "$SUSPEND_HYBRID_MODULE" ] && \
+	[ -f /sys/power/disk ] && \
+	grep -q disk /sys/power/state && \
+	grep -q suspend /sys/power/disk; then
+	SUSPEND_HYBRID_MODULE="kernel"
+	do_suspend_hybrid()
+	{
+		HIBERNATE_MODE="suspend"
+		do_hibernate
+	}
+fi
+
 # since the kernel does not directly support hybrid sleep, we do
 # something else -- suspend and schedule an alarm to go into
 # hibernate if we have slept long enough.
-------------------------

--

-- 
Bojan
Leonid Isaev | 23 May 18:34 2012
Picon

Re: GIT: [PATCH] Move function log to pm/functions.in

Hi,

	There is a simple bug in pm-utils' logging logic: some hooks (like
75modules) try to call log() and fail because the hook
sources /usr/lib/pm-utils/functions, while log() is defined
in /usr/lib/pm-utils/pm-functions. This was discovered and fixed by openSUSE
folks back in 2010 for pm-utils 1.3.0, and posted on this list:
http://lists.freedesktop.org/archives/pm-utils/2010-September/002219.html.
	However, pm-utils 1.4.1 is still broken. Is there a reason why the
above patch has never been merged?

Thank you,

--

-- 
Leonid Isaev
GnuPG key: 0x164B5A6D
Fingerprint: C0DF 20D0 C075 C3F1 E1BE  775A A7AE F6CB 164B 5A6D
_______________________________________________
Pm-utils mailing list
Pm-utils <at> lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/pm-utils

Gmane