Re: suspend config

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Tim <ignored_mailbox@xxxxxxxxxxxx> a écrit :

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).


I tried something like:

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

        hibernate|suspend)
                service slmodem stop && rmmod snd_intel8x0m
                ;;


        thaw|resume)
                modprobe snd_intel8x0m && service slmodem start
                ;;

        *)
                ;;

esac

exit $?


Result: none! Even no complain in the log file....

Thanks anyway.
--
François Patte
UFR de mathématiques et informatique
Université Paris Descartes
45, rue des Saints Pères
F-75270 Paris Cedex 06
Tél. +33 (0)1 4286 2413
http://www.math-info.univ-paris5.fr/~patte


----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux