LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   initrd 'echo > /proc/suspend2/do_resume gets write error:2 when booting (https://www.linuxquestions.org/questions/linux-hardware-18/initrd-echo-proc-suspend2-do_resume-gets-write-error-2-when-booting-493767/)

elie.zedeck 10-19-2006 03:21 AM

initrd 'echo > /proc/suspend2/do_resume gets write error:2 when booting
 
Hi guys,

I recently upgraded to kernel 2.6.18.1 and installed Software Suspend 2 with it.

I have setup the initrd correctly with 'echo > /proc/suspend2/do_resume' and when the system boots, it gets a 'write error: 2' on the proc interface.

What should I do to avoid this error ? I have though used the old config from my older 2.6.15.2 kernel (whose Software Suspend 2 works perfectly).

Please help. I hate to shutdown - boot - restart ... all the time.

Elie.

elie.zedeck 10-19-2006 03:27 AM

Hi again,

It seems that the /proc/suspend2 interface is not available. Though, the kernel is really compiled with it, and that the kernel log sais that it is active (no error messages).

Please help !

trinsics 05-21-2007 09:48 PM

me too
 
I'm having exactly the same problem. Did you ever solve this problem?

elie.zedeck 05-22-2007 09:45 PM

Yeah! I got the solution
 
Hi there,

Well, this been a long ago that I've solved the problem. But I forgot to post the solution here, sorry.

First of all, it's not the /proc interface anymore that you are supposed to talk to, it's the /sys interface now. /proc interfaces are now, deprecated.

Boot normally into your system, and then, get into /sys (needs root provilege), and look for the same file name under it. Sorry, but my current system is not having Suspend2, that's why I'm telling you to look for it.

But it should be like: /sys/suspend2/do_resume.

Now, edit your initrd again, and replace the /proc/.../do_resume with the right one from /sys interface. But this time, modify the echoed value to 1. That means:

echo 1 > /sys/suspend2/do_resume
# Deprecated: echo > /proc/suspend2/do_resume

Now, you have a system which can Suspend2 normally, as the earlier Kernels.

Hope that helps.


All times are GMT -5. The time now is 12:47 PM.