modify module parameters after suspend.. how?
I have strange problem. Alsa uses by default power save in my sound card, what causes cracking noise. I can disable it by running:
sudo sh -c "echo '0' > /sys/module/snd_hda_intel/parameters/power_save"
But after I suspend and wake up machine, it is restored to 10..
I have tried almost everything. I put this to modprobe.conf:
options snd_hda_intel power_save=0
But still 10 after suspend..
Then I tried to add command to /etc/pm/sleep.d/sleep_commands file.
(This file is created by me, it sets pidgin state after suspend and sets correct time.)
sudo sh -c "echo '0' > /sys/module/snd_hda_intel/parameters/power_save"
I checked system log, that command is executed:
Mar 11 09:28:01 BlueGene sudo: root : TTY=unknown ; PWD=/usr/lib/hal/scripts ; USER=root ; COMMAND=/bin/sh -c echo '0' > /sys/module/snd_hda_intel/parameters/power_save
But still 10..
I have no clue how to get this working..
|