Re: suspend config



On Wed, 2009-04-15 at 10:24 +0200, François Patte wrote:
Suspend is working well on my laptop except one thing: on resume, I
cannot use the modem link without: 1) stopping slmodem 2) unloading
module snd_intel8x0m 3) reloading module snd_intel8x0m 4) restarting
slmodem.

Is there a way to make these operations automatically done?

You could write a script with the appropriate commands, and have the
script run by the power manager (it'll run scripts when going to sleep
and waking up). I'm not on Fedora 8, but on Fedora 9, there's
a /etc/pm/sleep.d/ directory for putting such scripts into.

Using the following as a template, you'd place your commands where I've
left a huge long line of hashes (your commands instead of the hashes).

#!/bin/bash
case "$1" in

thaw|resume)
############################
;;

*)
;;

esac

exit $?

--
[tim@localhost ~]$ uname -r
2.6.27.21-78.2.41.fc9.i686

Don't send private replies to my address, the mailbox is ignored. I
read messages from the public lists.



--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines



Relevant Pages

  • Re: Bash scripting problems
    ... >> You should always use the absolute paths to invoke commands in any script ... the script they were creating. ... Fedora or Linux systems. ...
    (Fedora)
  • Re: Making a dos floppy
    ... >> How do I make a dos floppy in Fedora? ... > These teo commands run sequensially are the best way to ... One more data point: Here's a script I've been using for years: ...
    (Fedora)
  • Re: suspend config
    ... cannot use the modem link without: 1) stopping slmodem 2) unloading ... script run by the power manager (it'll run scripts when going to sleep ... I'm not on Fedora 8, but on Fedora 9, there's ... This message was sent using IMP, the Internet Messaging Program. ...
    (Fedora)
  • =?ISO-8859-1?Q?New_System_Command_Script_Facility?=
    ... I'm currently finished writing a new replacement command script processor ... (at least that RACF thinks so, and better support for non-RACF sites). ... The IF-type commands now have ELSE processing ... non-scroll highlighted console message and BEEP until a specific JOB or TASK ...
    (bit.listserv.ibm-main)
  • Re: Command Line Interface
    ... >> should accept system commands only for an administrator. ... >> how should I supress the bash shell and launch my custom CLI ... > The script could run in a restricted shell and offer a menu of ... account, and either 1) change account password, 2) ...
    (comp.os.linux.misc)