Re: [LAU] rtirq, kernels >= 3.2 and udev & pm

From: Fernando Lopez-Lezcano <nando@email-addr-hidden>
Date: Wed May 09 2012 - 20:44:19 EEST

On 05/09/2012 07:50 AM, Robin Gareus wrote:
> On 05/09/2012 04:38 PM, Rui Nuno Capela wrote:
>> On 05/09/2012 02:03 AM, Fernando Lopez-Lezcano wrote:
>>> PS: Another rtirq script in /etc/pm/sleep.d/ could save the current
>>> priorities before a suspend and restore them after a resume - that does
>>> not happen currently.
>>
>> what about just `rtirq restart` on the sleep.d script (on thaw|resume) ?
>
> indeed. that works just fine here since over 2 years.
>
> the scripts I use to retain jackd2& qjackctl during suspend/resume
> cycles are available from http://gareus.org/wiki/jack2contol
> for dynamically switching audio-interfaces I settled on dbus (and not
> udev, since jackd runs as user): http://gareus.org/blog/jack2dbus

Cool....

I'm attaching my first try at using a pm-utils script. This script saves
the priority state of all irq* processes and restores them after a
resume. It only restores the priority for processes that still exist
after the resume, and will do nothing for new processes (ie: you plugin
a usb card while the computer is sleeping). That would be taken care by
my previously posted udev script which would change priority of newly
inserted soundcards. I put 05rtirq it in /etc/pm/sleep.d/ directory...
it seems to be working fine in my laptop.

-- Fernando

_______________________________________________
Linux-audio-user mailing list
Linux-audio-user@email-addr-hidden
http://lists.linuxaudio.org/listinfo/linux-audio-user

Received on Thu May 10 00:15:01 2012

This archive was generated by hypermail 2.1.8 : Thu May 10 2012 - 00:15:02 EEST