Skip to content

Instantly share code, notes, and snippets.

@smahs
Created September 22, 2010 19:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save smahs/592374 to your computer and use it in GitHub Desktop.
Save smahs/592374 to your computer and use it in GitHub Desktop.
Patch for Mint-FM2 menu sub-system to enable tuxonice support on Arch Linux
diff -c /etc/rc.d/mfmrootdaemon /etc/rc.d/mfmrootdaemon.new
*** /etc/rc.d/mfmrootdaemon 2010-09-21 20:52:50.000000000 +0200
--- /etc/rc.d/mfmrootdaemon.new 2010-09-22 21:27:34.382440785 +0200
***************
*** 95,101 ****
then
rm -rf $CIAODIR/*
# aplay /usr/share/sounds/mintfb-logout.wav &
! pm-suspend
fi
#hibernate
--- 95,107 ----
then
rm -rf $CIAODIR/*
# aplay /usr/share/sounds/mintfb-logout.wav &
! if [ -e /usr/sbin/hibernate]
! hibernate -F /etc/hibernate/ususpend-ram.conf
! elif [ -e /usr/sbin/pm-suspend]
! pm-suspend
! else
! zenity --error --text="Please install either pm-utils or uswsusp to enable this option."
! fi
fi
#hibernate
***************
*** 103,109 ****
then
rm -rf $CIAODIR/*
# aplay /usr/share/sounds/mintfb-logout.wav &
! pm-hibernate
fi
}
--- 109,121 ----
then
rm -rf $CIAODIR/*
# aplay /usr/share/sounds/mintfb-logout.wav &
! if [ -e /usr/sbin/hibernate]
! hibernate -F /etc/hibernate/tuxonice.conf
! elif [ -e /usr/sbin/pm-suspend]
! pm-hibernate
! else
! zenity --error --text="Please install either pm-utils (from repo) or tuxonice (search AUR) to enable this option."
! fi
fi
}
Diff finished. Wed Sep 22 21:27:50 2010
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment