From mboxrd@z Thu Jan 1 00:00:00 1970 From: Takashi Iwai Subject: Re: Powersave doesn't work for snd_hda_intel with 3.0.0-rc2 Date: Fri, 10 Jun 2011 10:57:05 +0200 Message-ID: References: <20110609085616.GA4207@tiehlicka.suse.cz> <20110609090607.GB4207@tiehlicka.suse.cz> <20110609092826.GC4207@tiehlicka.suse.cz> <20110609111401.GA3994@tiehlicka.suse.cz> <20110610075640.GA4832@tiehlicka.suse.cz> <20110610083956.GE4832@tiehlicka.suse.cz> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mx1.suse.de (cantor.suse.de [195.135.220.2]) by alsa0.perex.cz (Postfix) with ESMTP id C6EBA103819 for ; Fri, 10 Jun 2011 10:57:09 +0200 (CEST) In-Reply-To: <20110610083956.GE4832@tiehlicka.suse.cz> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: alsa-devel-bounces@alsa-project.org Errors-To: alsa-devel-bounces@alsa-project.org To: Michal Hocko Cc: alsa-devel@alsa-project.org, LKML List-Id: alsa-devel@alsa-project.org At Fri, 10 Jun 2011 10:39:56 +0200, Michal Hocko wrote: > > [changed subject] > > As a summary: > I am loosing sound after powe_save timeout expires if there is no device > activity. The only way how to get sound back is to unload the module and > load it again. > > On Fri 10-06-11 10:17:09, Takashi Iwai wrote: > > At Fri, 10 Jun 2011 09:56:40 +0200, > > Michal Hocko wrote: > > > > > > > > Note that the one-minute thing happens only when you unplug AC cable, > > > > supposedly. > > > > > > Hmmm, I was plugged during testing all the time. OK, this looks like a > > > separate issue. I will repost it as a separate thread once we are done > > > with this. Any idea who to CC? > > > > First off, check /sys/modules/snd_hda_intel/parameters/powersave > > value. If this is set to non-zero, someone must have played with it, > > e.g. pm-utils or such. > > Yes, it contains 60. And the value comes from: > CONFIG_SND_HDA_POWER_SAVE_DEFAULT=60 > > which defaults to 0 so it must have been changed by me some time ago > (really do not remember when and why, though). Anyway I have the same > value in 2.6.39 kernel as well and I do not see any problem there. > So it looks like a regression. Interestingly, I see power_save=0 value in some of your alsa-info.sh outputs. That is, something changed it to 0 dynamically even though you set to 60 as default. (I thought it was set to 60 by daemon, but in reality, it was reverted -- it was clear to 0 dynamically.) It might be just coincidence that the older kernel didn't show the problem. It might have power_save=0 set dynamically without noticing... thanks, Takashi From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753187Ab1FJI5M (ORCPT ); Fri, 10 Jun 2011 04:57:12 -0400 Received: from cantor.suse.de ([195.135.220.2]:44850 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752211Ab1FJI5I (ORCPT ); Fri, 10 Jun 2011 04:57:08 -0400 Date: Fri, 10 Jun 2011 10:57:05 +0200 Message-ID: From: Takashi Iwai To: Michal Hocko Cc: LKML , alsa-devel@alsa-project.org Subject: Re: Powersave doesn't work for snd_hda_intel with 3.0.0-rc2 In-Reply-To: <20110610083956.GE4832@tiehlicka.suse.cz> References: <20110609085616.GA4207@tiehlicka.suse.cz> <20110609090607.GB4207@tiehlicka.suse.cz> <20110609092826.GC4207@tiehlicka.suse.cz> <20110609111401.GA3994@tiehlicka.suse.cz> <20110610075640.GA4832@tiehlicka.suse.cz> <20110610083956.GE4832@tiehlicka.suse.cz> User-Agent: Wanderlust/2.15.6 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL/10.7 Emacs/23.2 (x86_64-suse-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org At Fri, 10 Jun 2011 10:39:56 +0200, Michal Hocko wrote: > > [changed subject] > > As a summary: > I am loosing sound after powe_save timeout expires if there is no device > activity. The only way how to get sound back is to unload the module and > load it again. > > On Fri 10-06-11 10:17:09, Takashi Iwai wrote: > > At Fri, 10 Jun 2011 09:56:40 +0200, > > Michal Hocko wrote: > > > > > > > > Note that the one-minute thing happens only when you unplug AC cable, > > > > supposedly. > > > > > > Hmmm, I was plugged during testing all the time. OK, this looks like a > > > separate issue. I will repost it as a separate thread once we are done > > > with this. Any idea who to CC? > > > > First off, check /sys/modules/snd_hda_intel/parameters/powersave > > value. If this is set to non-zero, someone must have played with it, > > e.g. pm-utils or such. > > Yes, it contains 60. And the value comes from: > CONFIG_SND_HDA_POWER_SAVE_DEFAULT=60 > > which defaults to 0 so it must have been changed by me some time ago > (really do not remember when and why, though). Anyway I have the same > value in 2.6.39 kernel as well and I do not see any problem there. > So it looks like a regression. Interestingly, I see power_save=0 value in some of your alsa-info.sh outputs. That is, something changed it to 0 dynamically even though you set to 60 as default. (I thought it was set to 60 by daemon, but in reality, it was reverted -- it was clear to 0 dynamically.) It might be just coincidence that the older kernel didn't show the problem. It might have power_save=0 set dynamically without noticing... thanks, Takashi