Am Freitag, 16. März 2012 schrieb Marco d'Itri:
> On Mar 11, Martin Steigerwald <mar...@lichtvoll.de> wrote:
> > merkaba:~> cat /etc/modprobe.d/snd-hda-intel.conf
> > # c`t kompakt Linux 1/2012
> > # Thorsten Leemhuis, Notebooks unter Linux, S. 38ff
> > # S. 42, Kasten Handoptimiert
> > options snd_hda_intel power_save_controller=Y power_save=1
> 
> I cannot reproduce this.
> What happens if you manually remove and then reload the module without
> rebooting?

It works when manually removing and reloading the module - but still on 
rebooting it does not. The manual case:

merkaba:~> modprobe -r snd_hda_intel
merkaba:~> lsmod | grep snd_hda_intel 

merkaba:~#1> modprobe snd_hda_intel
merkaba:~> cat /sys/module/snd_hda_intel/parameters/power_save
1
merkaba:~> cat /sys/module/snd_hda_intel/parameters/power_save_controller 
Y


Another test for the manual case:

merkaba:~> echo "0" > /sys/module/snd_hda_intel/parameters/power_save
merkaba:~> echo "N" > 
/sys/module/snd_hda_intel/parameters/power_save_controller
merkaba:~> cat /sys/module/snd_hda_intel/parameters/power_save
0
merkaba:~> cat /sys/module/snd_hda_intel/parameters/power_save_controller
N

(I don´t think these above are necessary, but anyway.)

merkaba:~> modprobe -r snd_hda_intel
merkaba:~> modprobe snd_hda_intel                                 
merkaba:~> cat /sys/module/snd_hda_intel/parameters/power_save                  
1
merkaba:~> cat /sys/module/snd_hda_intel/parameters/power_save_controller       
Y


Now for the reboot case I disabled the sysfs.conf entry for setting it:

merkaba:/etc> vim sysfs.conf

merkaba:/etc> grep snd sysfs.conf  
# Macht modprobe/kmod anhand von /etc/modprobe.d/snd-hda-intel.conf 
derzeit nicht.
#module/snd_hda_intel/parameters/power_save = 1


Then I build a new initramfs with this configuration:

merkaba:/etc> cat modprobe.d/snd-hda-intel.conf 
# c`t kompakt Linux 1/2012
# Thorsten Leemhuis, Notebooks unter Linux, S. 38ff
# S. 42, Kasten Handoptimiert
options snd_hda_intel power_save_controller=Y power_save=1


merkaba:/etc> update-initramfs -k all -u
update-initramfs: Generating /boot/initrd.img-3.2.0-2-amd64
W: mdadm: /etc/mdadm/mdadm.conf defines no arrays.
W: mdadm: no arrays defined in configuration file.
update-initramfs: Generating /boot/initrd.img-3.1.0-1-amd64
W: mdadm: /etc/mdadm/mdadm.conf defines no arrays.
W: mdadm: no arrays defined in configuration file.
WARNING: could not open /var/tmp/mkinitramfs_B1Cp6D/lib/modules/3.1.0-1-
amd64/modules.builtin: No such file or directory
merkaba:/etc>


Then after reboot into 3.2.0-2-amd64:

merkaba:~> cat /sys/module/snd_hda_intel/parameters/power_save           
0
merkaba:~> cat /sys/module/snd_hda_intel/parameters/power_save_controller
Y
merkaba:~>


Further analysis of the initramfs yields:

merkaba:~> cp -p /boot/initrd.img-3.2.0-2-amd64 /tmp
merkaba:~> cd /tmp
merkaba:/tmp> file initrd.img-3.2.0-2-amd64 
initrd.img-3.2.0-2-amd64: gzip compressed data, from Unix, last modified: 
Sat Mar 17 11:20:42 2012
merkaba:/tmp> mv initrd.img-3.2.0-2-amd64 initrd.img-3.2.0-2-amd64.gz
merkaba:/tmp> gzip -d initrd.img-3.2.0-2-amd64.gz 
merkaba:/tmp> file initrd.img-3.2.0-2-amd64 
initrd.img-3.2.0-2-amd64: ASCII cpio archive (SVR4 with no CRC)
merkaba:/tmp> cpio --extract --no-absolute-filenames -I initrd.img-3.2.0-2-
amd64
66570 blocks

merkaba:/tmp> cat etc/modprobe.d/snd-hda-intel.conf 
# c`t kompakt Linux 1/2012
# Thorsten Leemhuis, Notebooks unter Linux, S. 38ff
# S. 42, Kasten Handoptimiert
options snd_hda_intel power_save_controller=Y power_save=1

merkaba:/tmp>

Thanks,
-- 
Martin 'Helios' Steigerwald - http://www.Lichtvoll.de
GPG: 03B0 0D6C 0040 0710 4AFA  B82F 991B EAAC A599 84C7



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to