nice value and rtprio of pulseaudio reset after resume

Jae-hyeon Park <[email protected]> Fri, 01 Feb 2013 15:15:42 +0100
Newsgroups gmane.linux.swsusp.devel
Message-ID <[email protected]>
Hello,

It sometimes happens that the nice value and the realtime priority of my
pulseaudio process are reset by a suspend/resume cycle.  Before the
suspension, the attributes are for instance:

$ ps H -eO nice,rtprio
  PID  NI RTPRIO S TTY          TIME COMMAND
13165 -11      - S ?        00:00:00 /usr/bin/pulseaudio --start
13165   -      5 S ?        00:00:00 /usr/bin/pulseaudio --start
13165   -      5 S ?        00:00:00 /usr/bin/pulseaudio --start

After the resume, these can change to:

13165   0      - S ?        00:00:00 /usr/bin/pulseaudio --start
13165   0      - S ?        00:00:00 /usr/bin/pulseaudio --start
13165   0      - S ?        00:00:00 /usr/bin/pulseaudio --start

Not every suspend/resume cycle resets the priorities.  Sometimes, it
happens after several cycles on my current laptop.  On my old laptop, by
contrast, each suspend/resume cycle almost certainly reset the
priorities.

I am using kernel 3.1.10 +
https://github.com/NigelCunningham/tuxonice-kernel/compare/vanilla-3.1...tuxonice-3.1.diff
on x86_64.

Cheers,
Jae-hyeon