The 03.06.23 at 12:03, C Hamel wrote:
It would seem that apmd is not going to work on this Toshiba Satellite, no matter what I do. The best-case scenario is having to issue the command, 'rcalsasound restart' whenever the box is suspended
That is contemplated (/etc/sysconfig/powermanagement): # Sometimes the soundmodules do not survive a suspend/resume cycle. # In this case everything seems to be OK, but you can't hear anything. # To avoid this the soundmodules can be unloaded before suspend. A reload # of this modules will only be done if you use ALSA or OSS. If you use # modules from the kernel they will be reloaded automatically. If you like # that, set APMD_STOP_SOUND_BEFORE_SUSPEND to "alsa", "oss" or "kernel", # depending on what type of sound system you are using. # To unload all soundmodules succesfully, all soundapplications that are # currently using some of them must be killed. So don't wonder if you miss # an already started soundapplication after suspend/resume. # Default: "no" possible values: "alsa", "oss", "kernel" APMD_STOP_SOUND_BEFORE_SUSPEND="no"
--if apmd is not activated in runlevel or kernel; the worst-case scenario is having to reboot each & every time the box is suspended to get the sound, network (or both) to
Network is also contemplated: # If you have a build in NIC that does not survive a suspend/resume cycle # properly, you can add the interface name to this variable. It will then be # shut down before suspend and brought up after resume. # Default: "" APMD_INTERFACES_TO_STOP="" # If it does not help to shutdown the network interface via # APMD_INTERFACES_TO_STOP you can unload the module driving your NIC at suspend # and restart the network at resume. APMD_INTERFACES_TO_UNLOAD=""
So... the *only* thing I would like to know at this point is: Is there a way to get some script to auto-magically execute 'rcalsasound restart' when the box comes out of suspension/standby so that I don't have to futz w/issuing the command from the keyboard every time I reopen the lid!?
Seems you didn't look hard enough ;-)
-- SuSE has become a pitb
Tsk, tsk... they thought of that problem before: give them "some" credit. Search "apm" on the suse SDB. -- Cheers, Carlos Robinson