[Bug 771366] New: /usr/lib/pm-utils/sleep.d/75modules calls log, which does not exist.
https://bugzilla.novell.com/show_bug.cgi?id=771366 https://bugzilla.novell.com/show_bug.cgi?id=771366#c0 Summary: /usr/lib/pm-utils/sleep.d/75modules calls log, which does not exist. Classification: openSUSE Product: openSUSE 11.4 Version: Final Platform: x86-64 OS/Version: openSUSE 11.4 Status: NEW Severity: Normal Priority: P5 - None Component: Kernel AssignedTo: kernel-maintainers@forge.provo.novell.com ReportedBy: carlos.e.r@opensuse.org QAContact: qa-bugs@suse.de Found By: --- Blocker: --- Summary:/usr/lib/pm-utils/sleep.d/75modules calls log, which does not exist. Component: pm-utils After several days of sucesful hibernation (while investigating Bug 765084 - Random crashes in s2disk), hibernation stopped with this message: Running hook /usr/lib/pm-utils/sleep.d/75modules hibernate hibernate: Unloading kernel module button...FATAL: Module nouveau is in use. /usr/lib/pm-utils/functions: line 89: log: command not found Failed. Unloading kernel module button...FATAL: Module nouveau is in use. /usr/lib/pm-utils/functions: line 89: log: command not found Failed. Notice that the 'log' call fails because 'log' does not exist - that's the bug I'm reporting here. Module issue addressed in Bug 771363 - Hibernation fails if nouveau is in use. -- 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=771366 https://bugzilla.novell.com/show_bug.cgi?id=771366#c Jeff Mahoney <jeffm@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|kernel-maintainers@forge.pr |mvyskocil@suse.com |ovo.novell.com | -- 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=771366 https://bugzilla.novell.com/show_bug.cgi?id=771366#c Michal Vyskocil <mvyskocil@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|mvyskocil@suse.com |vdziewiecki@suse.com -- 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=771366 https://bugzilla.novell.com/show_bug.cgi?id=771366#c Wojtek Dziewięcki <vdziewiecki@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED -- 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=771366 https://bugzilla.novell.com/show_bug.cgi?id=771366#c1 Jeff Mahoney <jeffm@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED CC| |jeffm@suse.com Resolution| |WONTFIX --- Comment #1 from Jeff Mahoney <jeffm@suse.com> 2012-08-02 11:58:33 EDT --- With the coming release of openSUSE 12.2, openSUSE kernel developers are focusing their efforts there. Reports against openSUSE 11.4 and prior will not get the attention needed to resolve them before openSUSE 12.2 is release and openSUSE 11.4 becomes unmaintained. Please re-test with openSUSE 12.1 or openSUSE RC2+ and re-open with an updated Product if you still encounter your issue. We apologize for this issue not getting the attention it deserves but we are focusing our resources in the area where they will have the most impact for our users. We're working hard to make openSUSE 12.2 the best openSUSE release yet! -- 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=771366 https://bugzilla.novell.com/show_bug.cgi?id=771366#c2 Carlos Robinson <carlos.e.r@opensuse.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|WONTFIX |FIXED --- Comment #2 from Carlos Robinson <carlos.e.r@opensuse.org> 2012-08-02 16:55:29 UTC --- COMMON! This one is very easy to solve! :-/ -- 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=771366 https://bugzilla.novell.com/show_bug.cgi?id=771366#c3 Wojtek Dziewięcki <vdziewiecki@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|FIXED | --- Comment #3 from Wojtek Dziewięcki <vdziewiecki@suse.com> 2012-08-13 13:12:13 UTC --- I would change this part (from line 85 onwards) in /usr/lib/pm-utils/pm-functions: . "${PM_FUNCTIONS}" # Simple little logging function. # We do it this way because 'echo -n' is not posix. log() { is_set "$LOGGING" || return 0; local fmt='%s\n' [ "$1" = "-n" ] && { fmt='%s'; shift; } printf "$fmt" "$*" } to: # Simple little logging function. # We do it this way because 'echo -n' is not posix. log() { is_set "$LOGGING" || return 0; local fmt='%s\n' [ "$1" = "-n" ] && { fmt='%s'; shift; } printf "$fmt" "$*" } . "${PM_FUNCTIONS}" This way the "log" function wouldn't be called before it is declared. Carlos, could you try it? -- 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=771366 https://bugzilla.novell.com/show_bug.cgi?id=771366#c4 --- Comment #4 from Carlos Robinson <carlos.e.r@opensuse.org> 2012-08-13 13:44:44 UTC --- Thanks, I will. You are lucky that I still have my main 11.4 available, I almost destroyed it by accident the other day. I was actually doing a new backup when a test destroyed the entire /var and more (an "rsync --del ..."). My previous full backup was 11.2, so I installed that and then upgraded again to 11.4. Also, I'm avoiding hibernation because it crashes my main machine in 11.4 (Bug 765084 - Random crashes in s2disk). The laptop is ok. To business :-) So for this test I first create /etc/pm/sleep.d/99NOWAY to inhibit the process at the last possible moment: +++·························· #!/bin/bash # Impede hibernation . /usr/lib/pm-utils/functions RETVAL=0 case "$1" in suspend,hibernate) RETVAL=1 #This does not abort. touch $INHIBIT #This does. MESSAGE="Aborting suspend because it crashes system. " /bin/logger -t pm-utils -p syslog.warn $MESSAGE echo "$MESSAGE Touched $INHIBIT" ;; thaw|resume) ;; *) ;; esac exit $RETVAL # Idea for $INHIBIT in /usr/lib/pm-utils/sleep.d/30s2disk-check ··························++- Now I can try your code. First I do without the change, it aborts hibernation as reported in this bugzilla: +++·························· /etc/pm/sleep.d/5nfscheck hibernate hibernate: success. Running hook /usr/lib/pm-utils/sleep.d/75modules hibernate hibernate: Unloading kernel module button...FATAL: Module nouveau is in use. /usr/lib/pm-utils/functions: line 89: log: command not found Failed. Unloading kernel module button...FATAL: Module nouveau is in use. /usr/lib/pm-utils/functions: line 89: log: command not found Failed. ··························++- Ok, what you do is change the point where PM_FUNCTIONS is sourced, right? Done. I'll commit this report to cover the case when my machine crashes, hold on. -- 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=771366 https://bugzilla.novell.com/show_bug.cgi?id=771366#c5 --- Comment #5 from Carlos Robinson <carlos.e.r@opensuse.org> 2012-08-13 14:14:32 UTC --- No, it does not work, sorry. +++·························· /etc/pm/sleep.d/5nfscheck hibernate hibernate: success. Running hook /usr/lib/pm-utils/sleep.d/75modules hibernate hibernate: Unloading kernel module button...FATAL: Module nouveau is in use. /usr/lib/pm-utils/functions: line 89: log: command not found Failed. Unloading kernel module button...FATAL: Module nouveau is in use. /usr/lib/pm-utils/functions: line 89: log: command not found Failed. ··························++- I appreciate your effort to solve this problem. I have not hit this problem in 12.1 - I have a test partition where I'm trying 12.1 in this same machine. The log code is the same there, as far as I can see. And I'm using nouveau on both places, but apparently it doesn't try to unload the “button” module there, which is the trigger event for this bug: /etc/pm/sleep.d/5nfscheck hibernate hibernate: success. Running hook /usr/lib/pm-utils/sleep.d/75modules hibernate hibernate: /usr/lib/pm-utils/sleep.d/75modules hibernate hibernate: success. Running hook /usr/lib/pm-utils/sleep.d/80acpi-fan hibernate hibernate: And my laptop, which runs 11.4, has Intel graphics, so that one doesn't hit the problem either. -- 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=771366 https://bugzilla.novell.com/show_bug.cgi?id=771366#c6 Wojtek Dziewięcki <vdziewiecki@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution| |WONTFIX --- Comment #6 from Wojtek Dziewięcki <vdziewiecki@suse.com> 2012-08-13 15:06:28 UTC --- Sorry to hear that. Good thing that it works on 12.1 though. Now I have no choice then to agree with Comment 1... -- 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=771366 https://bugzilla.novell.com/show_bug.cgi?id=771366#c7 Carlos Robinson <carlos.e.r@opensuse.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Component|Kernel |Kernel Resolution|WONTFIX | AssignedTo|vdziewiecki@suse.com |kernel-maintainers@forge.pr | |ovo.novell.com Product|openSUSE 11.4 |openSUSE 12.1 Target Milestone|--- |Final OS/Version|openSUSE 11.4 |openSUSE 12.1 --- Comment #7 from Carlos Robinson <carlos.e.r@opensuse.org> 2012-08-20 03:26:41 UTC --- The problem has reapeared when upgraded that system to 12.1: /etc/pm/sleep.d/5nfscheck hibernate hibernate: success. Running hook /usr/lib/pm-utils/sleep.d/75modules hibernate hibernate: Unloading kernel module button...FATAL: Module nouveau is in use. /usr/lib/pm-utils/functions: line 89: log: command not found Failed. Unloading kernel module button...FATAL: Module nouveau is in use. /usr/lib/pm-utils/functions: line 89: log: command not found Failed. -- 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=771366 https://bugzilla.novell.com/show_bug.cgi?id=771366#c Jeff Mahoney <jeffm@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|kernel-maintainers@forge.pr |vdziewiecki@suse.com |ovo.novell.com | -- 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=771366 https://bugzilla.novell.com/show_bug.cgi?id=771366#c8 --- Comment #8 from Wojtek Dziewięcki <vdziewiecki@suse.com> 2012-10-29 10:13:45 UTC --- Do you need to suspend that button module? Do you have it in SUSPEND_MODULES in/etc/pm/config.d? If you do, could you remove it and see if it works? Sorry for the late answer. -- 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=771366 https://bugzilla.novell.com/show_bug.cgi?id=771366#c Wojtek Dziewięcki <vdziewiecki@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |ASSIGNED -- 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=771366 https://bugzilla.novell.com/show_bug.cgi?id=771366#c9 --- Comment #9 from Carlos Robinson <carlos.e.r@opensuse.org> 2012-11-06 21:28:52 UTC --- Oh. Sorry for not reporting earlier. In Bug 771363, from comment number 5 onwards, we discovered that I had an obsolete /etc/pm/config.d/conf file with a SUSPEND_MODULES="button" line in it, which as far as I can remember I did not write. -- 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=771366 https://bugzilla.novell.com/show_bug.cgi?id=771366#c10 --- Comment #10 from Wojtek Dziewięcki <vdziewiecki@suse.com> 2012-11-12 08:54:51 UTC --- Then I have no idea where it came from, because pm-utils only installs rtcwake.config in /etc/pm/config.d/. You could try rpm -qf /etc/pm/config.d/conf. But you already deleted it right? -- 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=771366 https://bugzilla.novell.com/show_bug.cgi?id=771366#c11 --- Comment #11 from Carlos Robinson <carlos.e.r@opensuse.org> 2012-11-28 20:33:35 UTC --- (In reply to comment #10)
Then I have no idea where it came from, because pm-utils only installs rtcwake.config in /etc/pm/config.d/. You could try rpm -qf /etc/pm/config.d/conf. But you already deleted it right?
Sorry, I had to delay till back home to check. Yes, I had deleted the file already. There is a bit more info in <https://bugzilla.novell.com/show_bug.cgi?id=771363#c6> Sometimes it is a pity not to have a perfect memory or a "historic" filesystem. -- 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=771366 https://bugzilla.novell.com/show_bug.cgi?id=771366#c12 Wojtek Dziewięcki <vdziewiecki@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |WONTFIX --- Comment #12 from Wojtek Dziewięcki <vdziewiecki@suse.com> 2014-07-16 15:26:49 UTC --- Noone has time to fix pm-utils any more, sorry. This package will not be present in future opensuse versions as it has been replaced by systemd's suspend functionality. -- 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.
participants (1)
-
bugzilla_noreply@novell.com