Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 279067 - sys-power/hibernate-script-2.0-r1 double execution of OnResume commands during S3 resume
Summary: sys-power/hibernate-script-2.0-r1 double execution of OnResume commands durin...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High minor (vote)
Assignee: Krzysztof Pawlik (RETIRED)
URL: http://bugs.debian.org/cgi-bin/bugrep...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-25 15:58 UTC by John Shafer
Modified: 2010-04-18 12:40 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description John Shafer 2009-07-25 15:58:11 UTC
Calling hibernate results in the execution of OnResume commands twice after suspending to ram.  After resuming from suspend, the OnResume commands get called twice because common.conf is by default included through both the ususpend-ram.conf and sysfs-ram.conf files.  The ram.conf file by default tries these two suspend methods.  If the ususpend.conf file isn't used, then common.conf gets included twice and two instances of the OnResume commands are issued.  I guess the situation would be the same for hibernation as well.  See the debian bug post in the attached url for another description of the problem.

The workaround is pretty easy though - I only use the sysfs-ram.conf method, so I commented out the ususpend-ram.conf which eliminated the double include of common.conf.

There should be some method to ensure that common.conf doesn't get included twice though.

Reproducible: Always

Steps to Reproduce:
1. install sys-power/hibernate and include an OnResume command
2. suspend-to-ram
3. resume and see the OnResume executed twice

Actual Results:  
OnResume commands are executed twice.

Expected Results:  
OnResume commands executed once.

my emerge --info

Portage 2.1.6.13 (default/linux/amd64/2008.0, gcc-4.3.2, glibc-2.9_p20081201-r2, 2.6.
29-gentoo-r5 x86_64)
=================================================================
System uname: Linux-2.6.29-gentoo-r5-x86_64-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_
3800+-with-glibc2.2.5
Timestamp of tree: Sat, 25 Jul 2009 09:00:01 +0000
app-shells/bash:     3.2_p39
dev-java/java-config: 2.1.8-r1
dev-lang/python:     2.5.4-r3
dev-util/cmake:      2.6.4
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.63
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -pipe -msse3"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts
/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/la
nguage.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev
/rules.d"
CXXFLAGS="-march=athlon64 -O2 -pipe -msse3"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps=y"
FEATURES="collision-protect distlocks fixpackages parallel-fetch protect-owned sandbo
x sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.osuosl.org/"
LANG="en_US"
LC_ALL="en_US"
LDFLAGS="-Wl,-O1"
LINGUAS="en"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --for
ce --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local 
--exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac acl alsa amd64 apic avi bash-completion berkdb branding
 bzip2 cairo cdparanoia cdr cli cracklib crypt cups dbus divx4linux dri dv dvd dvdr d
vdread encode fame firefox flac fortran gdbm gif gimp gpm gtk hal hddtemp iconv ieee1
394 imagemagick imap ipv6 isdnlog jpeg kpathsea lame latex lm_sensors midi mmx mmxext
 mp3 mpeg mplayer mudflap multilib ncurses nls nptl nptlonly ogg opengl openmp pam pc
re pdf perl png pop ppds pppd python quicktime readline reflection sasl scanner sessi
on sound spell spl sse sse2 ssl startup-notification svg sysfs tcpd tiff tk truetype 
unicode usb vim-syntax vorbis xcb xorg xv xvid zlib" ALSA_CARDS="ali5451 als4000 atii
xp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-
intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALS
A_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec95
8 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share 
shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_d
bm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_
owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expir
es ext_filter file_cache filter headers include info log_config logio mem_cache mime 
mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vh
ost_alias" ELIBC="glibc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfo
ntz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" USERLAND="G
NU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_F
LAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Krzysztof Pawlik (RETIRED) gentoo-dev 2010-04-18 12:40:44 UTC
Should be fixed in 2.0-r2.