LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 09-06-2009, 05:07 AM   #1
brixtoncalling
Member
 
Registered: Jul 2008
Location: British Columbia
Distribution: Slackware current
Posts: 403

Rep: Reputation: 67
Scripts to run after resume from sleep


I've found that suspend to ram in Slackware 13.0 works out of the box. This is great, but I have one problem.

How can I run a script once I resume from suspend? In 12.2 I had my own hooks for dealing with acpi events and this let me add commands following a resume. But how does Slackware 13 / KDE 4.2 allow me to do such a thing?

(My problem is with harddrive spin downs as detailed in the thread http://www.linuxquestions.org/questi...clicks-731882/ for which the solution is to issue "hdparm -B 254 /dev/sda" in rc.local and after every resume from suspend to ram.)
 
Old 09-06-2009, 09:20 AM   #2
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,371

Rep: Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749
By using hooks. See /usr/doc/pm-utils-1.2.5/README.SLACKWARE and related documentation.
 
Old 09-06-2009, 03:27 PM   #3
brixtoncalling
Member
 
Registered: Jul 2008
Location: British Columbia
Distribution: Slackware current
Posts: 403

Original Poster
Rep: Reputation: 67
OK great. I wasn't sure if KDE 4 / SW were using pm-utils. They are, and making hooks is quite easy. Thanks allend.
 
  


Reply



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
*Sleep/Hibernate - freezes upon resume ---fix? Christastrophe Ubuntu 15 03-17-2009 05:11 AM
making the parent direct child processes to pause/sleep and resume execution expeliarmus Programming 1 08-14-2007 05:11 AM
no gnome sound events, mtrr overlaps, acpi sleep resume Markup Linux - Software 2 07-27-2005 05:19 AM
Suspend / Resume scripts on slackware 9 boney Slackware 0 06-19-2003 02:09 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 05:14 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