[Bug 333711] New: s2ram and standby have no effect: "s2ram_do: No such device"
https://bugzilla.novell.com/show_bug.cgi?id=333711 Summary: s2ram and standby have no effect: "s2ram_do: No such device" Product: openSUSE 10.3 Version: Final Platform: i586 OS/Version: openSUSE 10.3 Status: NEW Severity: Major Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: estellnb@gmail.com QAContact: qa@suse.de Found By: Other ACTION:
s2ram -f Switching from vt7 to vt1 fbcon fb0 state 1 s2ram_do: No such device fbcon fb0 state 0 switching back to vt7 EFFECT: screen turns dark for the trickle of a second but is restored directly in consecution.
ACTION: s2ram -i This machine can be identified by: sys_vendor = "System Manufacturer" sys_product = "System Name" sys_version = "System Version" bios_version = "" ACTUAL HARDWARE IN USE: mainboard/bios revisoon: ASUS P2B-F, revision 1013.A It does not matter which kind of command line switches are passed to s2ram (-a 1..3, etc.), whether it is invoked from X or by init=/bin/bash. Adjusting Bios-settings has not helped; latest Bios revision. Powersave does offer the option to put the computer in Standby mode under Xorg, but that is for nothing as well. Fortunately suspend to disk works well. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=333711#c1
--- Comment #1 from Elmar Stellnberger
https://bugzilla.novell.com/show_bug.cgi?id=333711#c2
Mark Gordon
https://bugzilla.novell.com/show_bug.cgi?id=333711#c3
Elmar Stellnberger
https://bugzilla.novell.com/show_bug.cgi?id=333711
Mark Gordon
https://bugzilla.novell.com/show_bug.cgi?id=333711
Stefan Behlert
https://bugzilla.novell.com/show_bug.cgi?id=333711#c4
Stefan Seyfried
https://bugzilla.novell.com/show_bug.cgi?id=333711#c5
Stefan Seyfried
https://bugzilla.novell.com/show_bug.cgi?id=333711#c6
Elmar Stellnberger (AT/K)
powersave -u Suspend to ram request sent. ** nothing happens **
powersave -m Standby request sent. ** nothing happens **
s2ram -f Switching from vt7 to vt1 s2ram_do: No such device switching back to vt7 ** as before: screen turns dark, but directly thereupon machine awakens again *
Selecting Stand-by from the kpowersave tray menu has at first resulted in an increased system activity, but stayed without effect afterwards. Neither StandBy nor S2Ram work. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=333711#c7
Stefan Seyfried
https://bugzilla.novell.com/show_bug.cgi?id=333711
User estellnb@gmail.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=333711#c8
Elmar Stellnberger (AT/K)
powersave -m Standby request sent. powersave -u Suspend to ram request sent.
tail -n 1 -f /var/log/pm-suspend.log Wed Dec 5 16:38:39 CET 2007: done running thaw hooks.
-- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=333711
User seife@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=333711#c9
Stefan Seyfried
https://bugzilla.novell.com/show_bug.cgi?id=333711
User estellnb@gmail.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=333711#c10
--- Comment #10 from Elmar Stellnberger (AT/K)
https://bugzilla.novell.com/show_bug.cgi?id=333711
User seife@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=333711#c11
--- Comment #11 from Stefan Seyfried
https://bugzilla.novell.com/show_bug.cgi?id=333711
Elmar Stellnberger (AT/K)
https://bugzilla.novell.com/show_bug.cgi?id=333711
User estellnb@gmail.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=333711#c12
--- Comment #12 from Elmar Stellnberger (AT/K)
https://bugzilla.novell.com/show_bug.cgi?id=333711
User seife@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=333711#c13
Stefan Seyfried
https://bugzilla.novell.com/show_bug.cgi?id=333711
User estellnb@gmail.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=333711#c14
--- Comment #14 from Elmar Stellnberger (AT/K)
ldd $(which s2ram) linux-gate.so.1 => (0xffffe000) libx86.so.1 => /usr/lib/libx86.so.1 (0xb7f1a000) libz.so.1 => /lib/libz.so.1 (0xb7f07000) libc.so.6 => /lib/libc.so.6 (0xb7dd4000) /lib/ld-linux.so.2 (0xb7f4c000) ldd $(which powersave) linux-gate.so.1 => (0xffffe000) libpowersave.so.11 => /usr/lib/libpowersave.so.11 (0xb7f3b000) liblazy.so.1 => /usr/lib/liblazy.so.1 (0xb7f36000) libdbus-1.so.3 => /lib/libdbus-1.so.3 (0xb7f03000) libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0xb7e15000) libm.so.6 => /lib/libm.so.6 (0xb7df0000) libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb7de4000) libc.so.6 => /lib/libc.so.6 (0xb7cb0000) /lib/ld-linux.so.2 (0xb7f74000)
'powersave -u' does possibly invoke s2ram via DBUS/HAL. AYCI(As you can inference immediately) that error has absolutely nothing to do with DBUS/HAL. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=333711
Elmar Stellnberger (AT/K)
https://bugzilla.novell.com/show_bug.cgi?id=333711
User estellnb@gmail.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=333711#c15
--- Comment #15 from Elmar Stellnberger (AT/K)
https://bugzilla.novell.com/show_bug.cgi?id=333711
User estellnb@gmail.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=333711#c16
--- Comment #16 from Elmar Stellnberger (AT/K)
https://bugzilla.novell.com/show_bug.cgi?id=333711
User estellnb@gmail.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=333711#c17
--- Comment #17 from Elmar Stellnberger (AT/K)
https://bugzilla.novell.com/show_bug.cgi?id=333711
User estellnb@gmail.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=333711#c18
Elmar Stellnberger (AT/K)
https://bugzilla.novell.com/show_bug.cgi?id=333711
User seife@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=333711#c19
--- Comment #19 from Stefan Seyfried
No, s2ram does not use DBUS/HAL.
I know. (I wrote s2ram).
'powersave -u' does possibly invoke s2ram via DBUS/HAL.
Yes, and that was what my question was about. the s2ram binary will not work on your machine, since it does not support S3. Period. What i was trying to investigate was, why pm-suspend was not called by "powersave -u". -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=333711
User seife@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=333711#c20
Stefan Seyfried
https://bugzilla.novell.com/show_bug.cgi?id=333711
User estellnb@gmail.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=333711#c21
--- Comment #21 from Elmar Stellnberger (AT/K)
https://bugzilla.novell.com/show_bug.cgi?id=333711
User estellnb@gmail.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=333711#c22
--- Comment #22 from Elmar Stellnberger (AT/K)
.../pm-suspend-invocations.log).
-- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=333711
User estellnb@gmail.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=333711#c23
--- Comment #23 from Elmar Stellnberger (AT/K)
https://bugzilla.novell.com/show_bug.cgi?id=333711
User estellnb@gmail.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=333711#c24
--- Comment #24 from Elmar Stellnberger (AT/K)
https://bugzilla.novell.com/show_bug.cgi?id=333711
User estellnb@gmail.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=333711#c25
--- Comment #25 from Elmar Stellnberger (AT/K)
https://bugzilla.novell.com/show_bug.cgi?id=333711
User seife@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=333711#c26
Stefan Seyfried
No it does not even throw an error (just the message 'Suspend to ram request sent.' ; see Comment #6).
Ok, that's - as we now see by looking at the code - a bug in powersave. (In reply to comment #23 from Elmar Stellnberger (AT/K))
The reason why your hack to pm-action out of Comment #5 did not work as desired was that we have overlooked line 100: 100: if ! grep -q mem /sys/power/state ; then 101: echo "Error: kernel cannot suspend to ram." 1>&2 102: exit 1 103: fi have exchanged that by if ! grep -q '' /sys/power/state and the hack started to issue s2ram on powersave -u.
so now replace the "s2ram" invocation by "echo standby > /sys/power/state" and it should at least do standby. (In reply to comment #24 from Elmar Stellnberger (AT/K))
Nevertheless several problems still exist: * shutdown after resume (runlev 5: at first kicker & kdesktop vanish ~ black areas on screen (~ Comment #18)
This might be because the button module still throws a button event after resuming from standby, which it does not after suspend. A workaround might be that you unload the button module before suspend, see http://en.opensuse.org/Pm-utils on how to do that.
* screen is not turned off during standby; messages: Preparing suspend ... Stopping tasks ... done. Suspending console(s)
Probably a BIOS problem.
* wake only on mouse move; not on keybord, cd or wol - events (Comment #18)
Probably a BIOS problem, might also be a problem in ACPI wakeup handling.
* s2ram -i does refuses to detect my mainboard (first posting)
No, there is nothing to detect, since your machine cannot suspend to RAM. It does not provide capability "S3". There is nothing Linux can do about that. And since you can clearly see that standby is not very well supported and needs lots of testing, i hope that you now also understand why we don't support standby out of the box. Thus i have to close this bug as "WONTFIX" for now, since i simply cannot fix it. I will try to improve support for standby in further releases, but this needs lots of work and lots of testing before we can unleash it on unsuspecting users. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=333711
User estellnb@gmail.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=333711#c27
Elmar Stellnberger (AT/K)
participants (1)
-
bugzilla_noreply@novell.com