Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#5132 - mkinitcpio needs change to suspend hook

Attached to Project: Arch Linux
Opened by James Rayner (iphitus) - Saturday, 29 July 2006, 06:04 GMT
Task Type Bug Report
Category Packages: Current
Status Closed
Assigned To Aaron Griffin (phrakture)
Architecture not specified
Severity Medium
Priority High
Reported Version 0.7.2 Gimmick
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

suspend2 2.2.7.4 removes its procfs support
in favour of a newer sysfs interface. This is in beyond2.2 and beyond3.

It's now located at: /sys/power/suspend2

echo "" > /sys/power/suspend2/do_resume
will not do it, as sys seems to ignore the empty echos,
echo 1 > /sys/power/suspend2/do_resume
works however

To facilitate this new setup, the following needs to be added to the resume
hook:

if [ -e "/sys/power/suspend2" -a "x${resume2}" != "x" ]; then
echo ${resume2} > /sys/power/suspend2/resume2
echo 1 > /sys/power/suspend2/do_resume
fi

It might be a good idea to leave the procfs setup there for people with other kernels, as 2.2.7.4 isnt 'officially' on 2.6.17, I backported for fixes.
This task depends upon

Closed by  Aaron Griffin (phrakture)
Tuesday, 01 August 2006, 02:13 GMT
Reason for closing:  Implemented
Additional comments about closing:  mkinitcpio 0.4.4
Comment by James Rayner (iphitus) - Sunday, 30 July 2006, 12:54 GMT
poke?
Comment by Thomas Bächler (brain0) - Monday, 31 July 2006, 14:11 GMT
This is fixed in mkinitcpio svn. If /sys ignores the empty echoes, maybe echo "x" > do_resume would be enough?
Comment by Aaron Griffin (phrakture) - Monday, 31 July 2006, 14:26 GMT
I apologize for this - I've been super busy and haven't had the chance to fix a few bugs in mkinitcpio. I gave brain0 svn access so he could fix the resume issue. If you guys want, you can generate a new tarball (see the top level scripts that make life easier) and then just upload a new package (iphitus, you may want to toss it into testing first if you do not have current access).

Tonight I _swear_ I will sit down and hammer out a few bugs.
Comment by Thomas Bächler (brain0) - Monday, 31 July 2006, 15:19 GMT
@iphitus: have you tried this? I can't try it, as suspend2.2.7.4 is quite unstable, but someone on suspend2 irc claims that the empty echo works for him.
Comment by Thomas Bächler (brain0) - Monday, 31 July 2006, 17:06 GMT
Ok, I tried with a vanilla kernel with 2.2.7.4 and it worked (after I fixed another issue). I commited it to svn http://phraktured.net/initramfs/mkinitcpio/hooks/resume

Loading...