[GUIDE] [DISCUSSION] (Fixing) the Audio Stuttering Bug - Lenovo Vibe K5 Plus Guides, News, & Discussion

Here's a way to work around audio stuttering during music playback, on ROMs using kernels with core_ctl. Tested on LineageOS's and AospExtended's latest official builds on an A6020a40 (HW39), with Dolby Atmos enabled.
If audio playback is stuttering, set the CPU governors for both processors to "performance". Check if the stuttering goes away or decreases. If it does, change the governor "ondemand", and set "Minimum CPUs big" to 4 (found under Hotplug settings in Kernel Adiutor). This won't kill the stuttering issue entirely, but fix it to a considerable extent.
Of course, this thread has been marked as a discussion, so feel free to post your results here.

I set min offline cpu to 1 and it fixes shuttering issue. :good:

Droidge said:
After a little bit of experimentation on my A6020a40 S616 running scritch007/Shreps's LineageOS 14.1 20170317, I seem to have figured out a way to work around audio stuttering during music playback.
If audio playback is stuttering, set the CPU governors for both processors to "performance". Check if the stuttering goes away or decreases. If it does, change the governors to "interactive" or "ondemand", and note the results. If setting the governors to "performance" reduces stuttering, it has to do with how the kernel handles the phone's processors.
Of course, this thread has been marked as a discussion, so feel free to post your results here, and talk about what you think is causing the issue. Changing the governors is a drastic measure, but it works well for me when I use my phone for short bursts of time.
Click to expand...
Click to collapse
Playing with the minimum frequencies/online cores did the trick here...
You can set a more sensitive target_load for the lower frequencies too.

Related

Overclock: really necessary?

Hi all!
Is it the overclock really necessary for Jamin?
I don't use it to see alot of video so I'm askin' my self if I really need overclock and make the battery time worst...
Anyway... what an exelent compromise (stable os), in MHZ, with the last ROM?
Hi Markino.
I've been using my Jamin with the latest ROM for 2 month now. My uses include watching divx video or listening to MP3 and surfing the net at the same time. (Also some use of built in apps). I even watched some presentations (pps) as big as 1MB.
Didn't need to overclock at all. The performance isf fine.
You may have a problem with some heavy nav programs, but I don't use those so can't tell.
Thanks! :wink:
I've had my Prophet for only two days now, but used it constantly and installed lot's of apps to find my perfect configuration.
There were two times when I changed the clockspeed to 240mhz:
1.) Playing unconverted high quality high datarate Xvid video in fullscreen. Changing the playback quality to low in TCPMP would work with the normal clockrate. Overclocking to 240Mhz resulted in enough performance to set watch the video in fullscreen at "normal" quality
2.) Skype. I gave the "Skype for 312 MHz CPUs" version a try. Sound was distorted with default clock speed. I was amazed to see, that a clockspeed of 240Mhz would result in perfectly understandable sound.
When buying the Prophet yesterday I was a bit scared that the low performance CPU would ruin the unit for me, but after 24hours of toying around with it I absolutely love it.
I'd say overclocking is absolutely necessary if u are going to run skype on your prophet..
as the above post indicated... 240Mhz is the minimum for it to work..
Funny though.... at 240mhz, all conversations will be crystal clear..
but when u try calling the skype answering machine "echo123", it will still crackle...
normal skype calls will work out alright at 240mhz. except calls to echo123
Okay, thanks!
What program can I use to overclock my Jamin?
Max speed with last ITA ROM?
Thanks!!!
yoda_143 said:
1.) Playing unconverted high quality high datarate Xvid video in fullscreen. Changing the playback quality to low in TCPMP would work with the normal clockrate. Overclocking to 240Mhz resulted in enough performance to set watch the video in fullscreen at "normal" quality
Click to expand...
Click to collapse
in my prophet even overclocking it to 240.. TCMPMP jumps unconverted videos..
what can i do?
Batterystatus
@Markino
the best is Batterystatus first post of this forum (Page 1)

Using Bluetooth Audio Causes Judder in h264 Video Playback

Watching a movie that is h264 encoded while listening with bluetooth headphones causes a noticeable decrease in video quality. In slow panning scenes the amount of "judder", or stuttering is subtley increased. It gives the video a jerky feeling, as if the video is not quite smooth.
This effect is present across multiple video players in hardware decoding mode. The same videos play more smoothly when listening through wired headphones or the XOOM's built in speakers.
Again, I repeat this a somewhat subtle affect. I spent two days playing with video encoders and handbrake settings, driving myself crazy trying to smooth out my videos. Then, due to a battery failure in my samsung BT headset, I started watching movies with a wired headset and the cause finally dawned on me. I did multiple AB comparisons to confirm the problem.
So if your video doesn't seem quite right, and you are using BT audio, try wired audio or buit in speakers for a while, and compare.
I'm using moboplayer right now, and watching Top Chef masters that I encoded into h264 (via Handbrake).
I turned on soft-decoding option, it runs smoothly, and the audio works fine straight from the jack on the top and straight from the speakers.
EDIT: Oops didn't read the post all the way, Sorry.
overclock it a little and your problems will be solved.
patass said:
overclock it a little and your problems will be solved.
Click to expand...
Click to collapse
Yeah, I was thinking that too. Overclocking might solve the problem.
But wow! Wouldn't you think a 1GHz dual core CPU with hardware acceleration for h264 would be enough already just to play BT audio with your video? I'm just surprised overclocking is even necessary.
Edit: Just to point out - the video I'm playing has already been encoded specifically for the XOOM and is being handled by the hardware. The CPU should hardly be taxed to begin with. Is playing BT audio such a processor-intensive task that it should require more than a dual core 1GHz?

Audio gaps

Anyone else experiencing audio gaps while playing music with screen off?
App doesn't seem to matter (Play Music, N7, ...), Boeffla Sound enabled, Eargasm preset, no saturation prevention, no privacy mode, earphones and speaker boosted and optimised.
Any obvious suspects? Any hints anyone?
NB: Yes, I do use a custom kernel, but I can't tell who's the culprit, so I ask for others experiences to allow to find the cause of it.
husky69 said:
Anyone else experiencing audio gaps while playing music with screen off?
App doesn't seem to matter (Play Music, N7, ...), Boeffla Sound enabled, Eargasm preset, no saturation prevention, no privacy mode, earphones and speaker boosted and optimised.
Any obvious suspects? Any hints anyone?
NB: Yes, I do use a custom kernel, but I can't tell who's the culprit, so I ask for others experiences to allow to find the cause of it.
Click to expand...
Click to collapse
Hi
I do not know if this is related but since I installed Omni (coming from latest AOKP); I have issues with my Samsung HS3000 Bluetooth receiver, i use poweramp and I experience a lot of skips when playing music (poweramp is set to automatically turn off the screen after a few seconds); I increased buffer size, poweramp priority, bluetooth priority but the skips remain... Playing thru headphones directly plugged in is ok
Hey guys,
I've been having this issue as well, and I've managed to narrow down what's wrong, but still haven't been able to fix it or find out what's causing it. I'm using stock kernel with the latest nightly on a GS4 i9505.
The issue seems to be that the device is constantly going into Deep Sleep mode. Go into the Performance tab in Settings (unlock Developer Mode first, I think) and have a look at the Time In State data. Right now, for 12h of uptime, my phone is showing 8h of Deep Sleep, despite me using it as GPS and listening to Audiobooks for most of the work day. Even more, it's been happening while I am actually USING the device.
Additionally, it's reporting that my Max CPU speed is 0 MHz, with Min at 486 MHz. Any time I put the slider up to full (or anything, really), it forgets it and goes back down to 0. I've changed Governer and Scheduler, and even used other tweaking apps to control the kernel, but nothing seems to stick.
On the whole, I'd really not mind too much except I listen to audio books while I'm working/driving, and having it skip and stutter because the phone is struggling to process the audio is exceedingly frustrating.
Going to take a closer look around for this, now that I know what the issue is. Putting it up here so you guys can look as well.
Cheers.
BenG7 said:
Hi
I do not know if this is related but since I installed Omni (coming from latest AOKP); I have issues with my Samsung HS3000 Bluetooth receiver, i use poweramp and I experience a lot of skips when playing music (poweramp is set to automatically turn off the screen after a few seconds); I increased buffer size, poweramp priority, bluetooth priority but the skips remain... Playing thru headphones directly plugged in is ok
Click to expand...
Click to collapse
XD

Choppy bluetooth music streaming

My S5 has constant issues with choppy bluetooth to the point were it is unusable in my car. The only way to get around it is to put "daydream" on which IIRC forces the phone to not sleep. Also, I've read it causes bluetooth to not go into low power mode. Is there a way to force this without daydream? Having my screen on while charging is a pain and having to keep my phone plugged in is also a pain.
My phone does this too. Even with the screen on and the car charger plugged the volume cuts in and out. I don't know what the cause of it is. Thought it was just me so I been living with it. Any insight with be appreciated.
Sent from my SM-G900P using Tapatalk
I'm going to try cpu tuner and see if keeping my cpu normal when the screen off helps. this requires root. i would really like a solution that does not require my phone to be plugged in.
CPU tuner did not work.
i use to have this problem to, what i did was to change cpu governor manualy to performance and put max frecuency, but the important thing was cpu governor. Also but i'm not sure that i make any diference was to disable Samsung DVFS with xposed, but like i said i never test if this make any diference.

Set minimum CPU frequency but only when playing audio. Possible?

I have a GT-I9505 with this ROM and stock kernel. I noticed when I'm listening to music with the screen off the audio stutters sometimes when minimum CPU frequency is set to the lowest value of 384MHz. The stuttering is completely gone when I increase the min frequency to 594MHz in Kernel Adiutor. But from my understanding, increasing the minimum frequency may have a negative impact on battery life. Therefore I would like to only have it increase when I'm listening to music. Is it possible to control minimum CPU frequency in Tasker for example? Maybe I could create some profile which changes it when I open/close spotify or connect/disconnect headphones or something? Any ideas?
Never mind, I figured it out myself Here's what I did if anyone else needs it:
1. Create 2 CPU profiles in Kernel Adiutor: one with 384MHz min freq, and another with 594MHz min freq.
2. In Tasker create 2 tasks and add action to each: Plugin > Kernel Adiutor, and select different profile in each.
3. Create a Tasker profile with State > Hardware > Headset plugged.
4. Assign the 2 tasks as Enter and Exit tasks.
Now I have no more audio stuttering and battery life remains unaffected when I'm not listening to music
I've used the Google Play app SetCPU successfully on a few Android phones with root access.
Just need to set up the given music app profile settings and you're good to go.
I mostly use a powersave governor when the screen is off, which tends to cover most bases.

Categories

Resources