[Yaird-devel] Bug#396963: yaird: sysfs interface for suspend2 not supported

Tino Keitel tino.keitel+debbugs at tikei.de
Fri Nov 3 23:25:40 CET 2006


Package: yaird
Version: 0.0.12-18
Severity: normal
Tags: patch

Hi,

suspend2 changed the userspace interface to match the criteria for a
possible inclusion in the vanilla kernel.

All the files can now be found in /sys/power/suspend2. The attached patch
adds support for the new interface to Template.cfg. It's quite simple, so I
hope to see support for this in Etch.

Regards,
Tino

-- System Information:
Debian Release: 4.0
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18.1
Locale: LANG=C, LC_CTYPE=de_DE at euro (charmap=ISO-8859-15)

Versions of packages yaird depends on:
ii  cpio                         2.6-17      GNU cpio -- a program to manage ar
ii  dash                         0.5.3-4     The Debian Almquist Shell
ii  libc6                        2.3.6.ds1-7 GNU C Library: Shared libraries
ii  libhtml-template-perl        2.8-1       HTML::Template : A module for usin
ii  libparse-recdescent-perl     1.94.free-3 Generates recursive-descent parser
ii  perl                         5.8.8-6.1   Larry Wall's Practical Extraction 

yaird recommends no packages.

-- no debconf information
-------------- next part --------------
--- Templates.cfg	2006-08-27 05:36:05.000000000 +0200
+++ /home/scorpion/Templates.cfg	2006-09-29 10:17:52.309502122 +0200
@@ -419,6 +426,13 @@
 			!  if [ -w /proc/software_suspend/do_resume ]; then
 			!    echo > /proc/software_suspend/do_resume
 			!  fi
+			!  # for suspend2 (>= 2.2.7)
+			!  if [ -w /sys/power/suspend2/do_resume ]; then
+			!    echo activating suspend2
+			!    echo $resume2 > /sys/power/suspend2/resume2
+			!    echo > /sys/power/suspend2/do_resume
+			!    /bin/sleep 5
+			!  fi
 			!  # for swsusp
 			!  if [ -n "$resume" ]
 			!  then


More information about the Yaird-devel mailing list