maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   Stuttering audio when multitasking? (https://talk.maemo.org/showthread.php?t=56945)

gabby131 2010-06-24 17:52

Re: Stuttering audio when multitasking?
 
hi!

i set /etc/pulse/daemon.conf to a certain level, my problem is, i forgot to read the default level......please! someone tell me :D Thanks!

gabby131 2010-06-24 18:07

Re: Stuttering audio when multitasking?
 
i did a wrong code:

Code:

echo -11 > /etc/pulse/daemon.conf
so now my music is on a very weak volume.....help....:D

gabby131 2010-06-24 18:23

Re: Stuttering audio when multitasking?
 
okay then.....i'll change my concern, can someone upload a zipped daemon.conf for me please? thanks :D

ndi 2010-06-24 18:24

Re: Stuttering audio when multitasking?
 
I'm no Linux expert, but doesn't that make the .conf file actually read "-11"?

My file is as follows:

Nokia-N900-42-11:~# cat /etc/pulse/daemon.conf
disable-shm = yes
shm-size-bytes = 16777216
exit-idle-time = -1

; This is an ugly combination and can lead into trouble, but needed for DVFS
no-cpu-limit = 1
; Limit max RT schedule slice to 10ms (= 10000000ns)
rlimit-rttime = 10000000

high-priority = yes
nice-level = -11
realtime-scheduling = yes
realtime-priority = 5
resample-method = speex-fixed-2

default-sample-format = s16le
default-sample-rate = 48000
default-sample-channels = 2
default-fragments = 2
default-fragment-size-msec = 20
Nokia-N900-42-11:~#

Remember to cut the prompt lines (first and last) should you decide to paste it in.

gabby131 2010-06-24 18:29

Re: Stuttering audio when multitasking?
 
thanks yo! im trying to extract that conf file, its not what i was thinking :d

extendedping 2010-06-24 18:34

Re: Stuttering audio when multitasking?
 
ttthhhaaatt sssuuuccckkkssss....

gabby131 2010-06-24 18:44

Re: Stuttering audio when multitasking?
 
@extendedping

hahaha! iknow! what dumb i am eh? :D

m0da 2010-06-24 18:47

Re: Stuttering audio when multitasking?
 
I've been browsing the net (3 windows open) over 3.5g with my bluetooth headset for about 20min now.

haven't had one stutter.

pr1.2, 250-900Mhz

hope you figure out what's causing your problems.

ndi 2010-06-24 18:55

Re: Stuttering audio when multitasking?
 
Is media player singing out an MP3?

gabby131 2010-06-24 18:56

Re: Stuttering audio when multitasking?
 
Quote:

Originally Posted by m0da (Post 727954)
I've been browsing the net (3 windows open) over 3.5g with my bluetooth headset for about 20min now.

haven't had one stutter.

pr1.2, 250-900Mhz

hope you figure out what's causing your problems.

hmmm....its not stutter problems, i kinda messed up the daemon.conf which is a configuration file. so hopefully, someone with a golden heart would upload a daemon.conf file for me :D

ndi 2010-06-24 19:12

Re: Stuttering audio when multitasking?
 
1 Attachment(s)
Ok, ok, here it is.

ETA: Why didn't you just paste the contents above into your conf file? I pasted you the original.

Flandry 2010-06-24 19:46

Re: Stuttering audio when multitasking?
 
Quote:

Originally Posted by ndi (Post 727846)
Which bug is that? :)

:confused: The one i quoted? Did i miss something?

Quote:

Anyway, I just wanted to say that OC to 900 MHz helps none. It's not a matter of power.
If anything mine seems worse now that it goes to 810 MHz. I'd agree with that statement.

ndi 2010-06-24 20:19

Re: Stuttering audio when multitasking?
 
Quote:

Originally Posted by Flandry (Post 728022)
:confused: The one i quoted? Did i miss something?

It was supposed to be tongue-in-cheek. I meant, that describes a heapload of bugs in bugzilla.

fmo 2010-06-24 21:19

Re: Stuttering audio when multitasking?
 
If you want to see proper stuttering of the media player, try it with a bluetooth headset!

It's absolutely ridiculous, CPU usage can go up to 60% with combined pulseaudio+mediaplayer and it drops like crazy.

If you add to that the fact that playing mp3's is offloaded to the DSP that gives you an idea of how many resources it takes.

Using pulseaudio on such a low power device was a bad idea, and it shows, the device barely cope with it hence the stuttering.

Sathish 2010-06-24 21:58

Re: Stuttering audio when multitasking?
 
Quote:

Originally Posted by fmo (Post 728137)
If you want to see proper stuttering of the media player, try it with a bluetooth headset!

It's absolutely ridiculous, CPU usage can go up to 60% with combined pulseaudio+mediaplayer and it drops like crazy.

If you add to that the fact that playing mp3's is offloaded to the DSP that gives you an idea of how many resources it takes.

Using pulseaudio on such a low power device was a bad idea, and it shows, the device barely cope with it hence the stuttering.

Pulseaudio was such a pain in Ubuntu as well. At least until very recently. It has improved a lot in Lucid. To be honest, Someone from Pulseaudio actually blamed Ubuntu for poor implementation.
So, Nokia should take the blame:D

Laughing Man 2010-06-24 22:02

Re: Stuttering audio when multitasking?
 
Quote:

Originally Posted by dushkin (Post 727152)
In short, would you guys still recommend N900 as a good overall phone?

If you define phone as it makes and receives phone calls then yes. If your expecting features like groupable contacts than no.

woody14619 2010-06-25 15:12

Re: Stuttering audio when multitasking?
 
Quote:

Originally Posted by fmo (Post 728137)
If you want to see proper stuttering of the media player, try it with a bluetooth headset!

Really? That's the only way I listen to audio on my N900, and it's pretty good. (Usually with a stereo BT headset!)

Quote:

Originally Posted by dushkin (Post 727152)
In short, would you guys still recommend N900 as a good overall phone?

If you're the type to say "Hm... Why is this not working?" and look for an answer and type in a few things to fix it, yes. If you're the type to say "Dump Phone! I hate you for not working!" and smash it against a rock to try to "fix" it, no.

Quote:

Originally Posted by zimon (Post 727006)
But still I think OS should not get to state where it is unresponsive to any user input for several minutes

Careful... the UI is not the OS. This is unix/linux, the UI is a process, just like anything else, and is not part of the OS at all. You can change the priority of the UI just like you can with the audio process or anything else. (Though I don't recommend doing so.)

Quote:

Originally Posted by zimon (Post 727006)
The common thing in these lock ups were Mappero.

To be fair, it is talking to lots of things, between caching images on the file system, maybe pulling tiles over the network, checking the GPS, updating the UI... That's pretty intense.

Personally I have setup a script to launch/nice Mappero when it starts so it has a lower (if not the lowest) priority. So sometimes it pauses (usually just before a turn which it tells me of as I pass it), but the system as a whole can keep up. :)

Laughing Man 2010-06-25 15:19

Re: Stuttering audio when multitasking?
 
woody14619, mine sharing the script? I'm guessing it nices the process.

woody14619 2010-06-25 15:46

Re: Stuttering audio when multitasking?
 
Quote:

Originally Posted by Laughing Man (Post 729086)
woody14619, mine sharing the script? I'm guessing it nices the process.

Sure. I just un-linked /usr/bin/maemo-mapper (which is a link to the executable in the opt area) and made it this script:

Code:

#!/bin/sh
#
/usr/bin/nice -n 15 /opt/maemo/usr/bin/maemo-mapper


lifenexus 2010-06-25 17:51

Re: Stuttering audio when multitasking?
 
Quote:

Originally Posted by gabby131 (Post 727882)
hi!

i set /etc/pulse/daemon.conf to a certain level, my problem is, i forgot to read the default level......please! someone tell me :D Thanks!

i told u to change on value in the file to -20
it changes the nice value by default.
u can also
Code:

sudo renice -20 <process_id>

ndi 2010-06-29 18:11

Re: Stuttering audio when multitasking?
 
Does that work? Does making it less nice keep it from stuttering when navigating? Does it help when it sounds like an imploding robot with sms and email notifications?

I mean for you. I get limited results.

jeffsf 2010-07-14 17:01

Re: Stuttering audio when multitasking?
 
Audio stuttering is still a huge issue under PR1.2, even after adjusting the nice level of pulse-audio to -20

It is an issue using built-in ear/speaker/mic and Bluetooth.


All times are GMT. The time now is 22:32.

vBulletin® Version 3.8.8