From: Takashi Iwai Subject: Re: HD-audio runtime PM Date: Mon, 25 Nov 2013 08:17:50 +0100 Message-ID: References: <5292EF19.1040900@canonical.com> 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 mx2.suse.de (cantor2.suse.de [195.135.220.15]) by alsa0.perex.cz (Postfix) with ESMTP id C423F261A4D for ; Mon, 25 Nov 2013 08:17:51 +0100 (CET) In-Reply-To: <5292EF19.1040900@canonical.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org To: David Henningsson Cc: "Lin, Mengdong" , alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org At Mon, 25 Nov 2013 07:32:57 +0100, David Henningsson wrote: > > On 11/22/2013 12:57 PM, Takashi Iwai wrote: > > Hi, > > > > after my previous fix, the runtime PM seems working stably finally. > > However, there seem still some glitches: > > > > 1. The wakeup via jack or HDMI/DP detection doesn't seem to work on my > > test machines. WAKEEN is set properly. And its value can be read > > correctly at the point of runtime resume, too. > > Hi and thanks for working on this. > > I've been trying to reproduce the above, but I can't seem to activate > runtime PM at all. I can't seem to get a callback to runtime_suspend, > and further investigation shows that > /sys/class/sound/card0/power/runtime_status shows "unsupported". You need to adjust power/control of the parent PCM device, i.e. /sys/devices/pci/*/power/control. The following udev rule should work for HD-audio. Give it a try. ACTION=="add", SUBSYSTEM=="pci", ATTR{class}=="0x040300", TEST=="power/control", ATTR{power/control}="auto" Takashi