LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 10-19-2006, 03:21 AM   #1
elie.zedeck
LQ Newbie
 
Registered: Jul 2006
Distribution: Fedora Core
Posts: 13

Rep: Reputation: 0
Question 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.
 
Old 10-19-2006, 03:27 AM   #2
elie.zedeck
LQ Newbie
 
Registered: Jul 2006
Distribution: Fedora Core
Posts: 13

Original Poster
Rep: Reputation: 0
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 !
 
Old 05-21-2007, 09:48 PM   #3
trinsics
LQ Newbie
 
Registered: May 2007
Posts: 1

Rep: Reputation: 0
Unhappy me too

I'm having exactly the same problem. Did you ever solve this problem?
 
Old 05-22-2007, 09:45 PM   #4
elie.zedeck
LQ Newbie
 
Registered: Jul 2006
Distribution: Fedora Core
Posts: 13

Original Poster
Rep: Reputation: 0
Lightbulb 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.
 
  


Reply

Tags
error, interface, proc, software, suspend, write



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't create file using echo: /proc/sys/net/ipv4/ip_local_port_change rsumbeling Linux - General 4 07-17-2013 04:20 AM
echo '214748364' > /proc/sys/kernel/shmmax rubendarioportillo SUSE / openSUSE 1 11-03-2005 06:05 PM
echo '214748364' > /proc/sys/kernel/shmmax SwannAnderson Linux - General 2 11-03-2005 02:54 PM
"echo 3 > /proc/acpi/sleep" does nothing - ?? achallenger1 Linux - Newbie 6 08-02-2005 11:28 PM
Anybody know how to write to proc??? greek Linux - Hardware 2 08-15-2004 01:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 06:53 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration