From 21ba6c674e280bb2e5a8ffaa0c2d117472364c98 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Thu, 30 Aug 2007 14:03:55 +0000 Subject: (configure_sound_slots) enable snd-ac97-codec power_save=1 option if installed on laptop (#32213) --- perl-install/harddrake/sound.pm | 1 + 1 file changed, 1 insertion(+) (limited to 'perl-install/harddrake/sound.pm') diff --git a/perl-install/harddrake/sound.pm b/perl-install/harddrake/sound.pm index 405e76ed3..23e75eb69 100644 --- a/perl-install/harddrake/sound.pm +++ b/perl-install/harddrake/sound.pm @@ -374,6 +374,7 @@ sub configure_sound_slots { $altered ||= $default_driver; $modules_conf->set_sound_slot("sound-slot-$::i", $_->{driver}); $modules_conf->set_options($_->{driver}, "xbox=1") if $_->{driver} eq "snd_intel8x0" && detect_devices::is_xbox(); + $modules_conf->set_options('snd-ac97-codec', "power_save=1") if $_->{driver} =~ /^snd/ && detect_devices::isLaptop(); } } detect_devices::getSoundDevices(); $modules_conf->write if $altered && $::isStandalone; -- cgit v1.2.1