Solved devd script does not "fire"

mjollnir

Aspiring Daemon

Reaction score: 334
Messages: 749

Hi all,

I can't get this devd script to fire, i.e. no log message written to /var/log/messages:
Code:
notify 1000 {
        match "system"          "kern";
        match "subsystem"       "power";
        match "type"            "resume";
        action "/usr/sbin/logger -p kern.notice XXX";
};

#notify 1000 {
#       match "system"          "ACPI";
#       match "subsystem"       "Resume";
#       action "/usr/sbin/logger XXX";
##      action "/usr/sbin/service cpupdate resume";
#};
What am I missing? I tried with priority 100, 10000, no result. Neither does using the 2nd part (ACPI) help.
Thx for any suggestions.
 
OP
mjollnir

mjollnir

Aspiring Daemon

Reaction score: 334
Messages: 749

zzz... One must not blindly copy & paste... You helped me to detect that pressing the power button too early (too fast) when the system suspends, it goes to S4 state (hibernate to IRST partition, see my howto). But still, no log message written, neither do I see any output from sysutils/cpupdate when I enable that action instead. Invoking cpupdate(8) manually after resume tells me it updates the CPU, that means it did not fire up after suspend. I have no idea what could be the reason, except that the devd(8) handling should allow chaining of actions, which it does not.
 
Top