Arjan van de Ven wrote:
> Randy Dunlap wrote:
>> On Thu, 6 Aug 2009 09:12:24 +0530 Ritesh Raj Sarraf wrote:
>>
>>> Hi Randy,
>>>
>>> On Thursday 06 Aug 2009 04:52:11 Randy Dunlap wrote:
>>>> +void hda_power_on(void)
>>>> +{
>>>> +       FILE *file;
>>>> +
>>>> +       file = fopen("/sys/module/snd_hda_intel/parameters/power_save",
>>>> "w"); +       if (!file)
>>>> +               return;
>>>> +       fprintf(file,"1");
>>>> +       fclose(file);
>>>> +       if (access("/dev/dsp", F_OK))
>>>> +               return;
>>>> +       file = fopen("/dev/dsp", "w");
>>>> +       if (file) {
>>>> +               fprintf(file,"1");
>>>> +               fclose(file);
>>>> +       }
>>>> +}
>>>> +
>>> What is the "/dev/dsp" stuff for ?
>>> Does that too save power ?
>> Hi,
>>
>> That's certainly a good question.  I just copied the powertop ac97
>> code and that's what it does.
>>
>> Hopefully someone else here can explain...
> 
> the timer change for power mgmt only kicks in after the device is closed.
> which we force by open + close action.

or that, thanks Arjan.

I added a comment about this in SVN, seems useful to document that.

Auke

_______________________________________________
Discuss mailing list
[email protected]
http://lists.lesswatts.org/listinfo/discuss

Reply via email to