m9 nougat DLNA & sleep - Verizon HTC One (M9)

Hi there,
Is there any way to prevent htc m9 from going to sleep when the screen is off?
I use the phone's stock Music App to play music from a DLNA Server.
It plays for about 2 minutes then stops.
So I guess it's gone to sleep or something.
The screen is off as it's night time.
It's running android 7.0.
Are there better DLNA Players maybe that will stay playing while the screen is off maybe ?
Is there a custom rom that doesn't do this maybe ?
I got the phone specifically for its audio capabilities so this is a showstopper for me.
Tried setting HTC Service - DLNA, Music, Music Widget, HTC Sense Input to 'Not optimized' in 'Battery optimization'. Didn't make **** difference.
thanks for any ideas,

FYI for anyone interested, turns out phone wasn't the problem.
Tried a different dlna source (miniDLNA) and the app MediaHouse . Works as expected - no more pauses, timeouts, sleeps, cut off or doze when the screen turns off or not charging battery.
Also, before that amongst other things I tried rooting it and playing around with the governor and minimum speed. No effect at all.

Related

Do you know of a media player software that keeps playing when device in standby ?

Currently I'm using Windows Media Player 10 mobile, and when the device goes to Standby (to save battery), the player stops playing.
When I had the HTC Diamond the ROM I used had a tweak in it to allow Media Player to keep playing even in standby mode.
Do you know of a way to solve this problem with Media player, or can you suggest other player that can play in standby ?
Thanks.
S2P does it
Try A_C's S2P, the best mobile media player ever.
It turns off backlight automatically and is really great to use.
Enjoy!
Gien
Kinoma Freeplay all the way, most fluid and pretty interfrace you can get.
Mortplayer!
all player will auto "shut off" music in standby mode;
ONLY when u have earpiece plug in, then it wont cut off the music.
anyway, kinoma freeplay is very buggy.. mortplayer FTW
Pocket Player 4
mate, all these players mentioned above are good, but i've always felt the whole thing getting a bit sticky when they're running.
however (not perfect either) i would recommend Pocket Player 4. is the one i been using for a few months and cooking in my own roms. it plays everything from audio to video and has full support for online streaming.
it will carry on playing as normal when you put the phone in standby and will keep backlight on if you dont press the top button.
if youre listening to online radio via network it wont drop the connection - fantastic here in the uk where some of us have unlimited data - but it will stop if you're using wifi, but this has nothing to do with the app, by default, touch hd will drop wifi connection in standby mode.
it is skin changeable and i use the windows media player one, so i use different app but at least with same face.
the only bad thing about this app is that it takes about 20-40 seconds to load and for a moment you might think it isnt loading but it is. apart from that, it's all joy.
bigdeal88 said:
all player will auto "shut off" music in standby mode;
ONLY when u have earpiece plug in, then it wont cut off the music.
Click to expand...
Click to collapse
But I AM connected via bluetooth earpiece, and it does cut off the music (using windows media player), why ?
err... the TF3D player works fine over bluetooth when in standby!
skribzy said:
err... the TF3D player works fine over bluetooth when in standby!
Click to expand...
Click to collapse
Yes I know the TF3D works fine while in Standby, but it has a different problem.
Well, you could also try something else; use your favorite mediaplayer and let the screen be turned off when the device is faced down.
I use Gyrator to turn off the screen, no stand-by mode nessecary. When you need it be turned on again, press the on/off button.
As a slight aside, Resco Radio also works fine in standby. Just hit Disp Off.
Crackity Jones said:
As a slight aside, Resco Radio also works fine in standby. Just hit Disp Off.
Click to expand...
Click to collapse
"Display off" is not standby. There is a difference in battery usage between the two.
In standby/suspended mode the device is sleeping and all OS processes are suspended, therefore you can't have audio playback still active then.
In unattended mode, and this is what you are referring to, you can have audio playing while some other functionality is effectively disabled.
Since screen backlight is one of the major contributors to power consumption, turning the screen off is almost as good as running in unattended mode, don't exclude this option.
Sadly most players are not designed to fully take advantage of unattended mode. WMP IS aware of this mode though. However, with the variety of platforms around there's no easy way to make wave and bluetooth drivers remain operational in unattended mode.
Check out http://www.codeproject.com/KB/mobile/WiMoPower1.aspx for an article dicussing power state adjustments for various drivers in unattended mode. Be careful if you change anything, as the result may not be exactly as expected and effective power consumption may increase.
Thanks for the clarification stepw.
stepw said:
In standby/suspended mode the device is sleeping and all OS processes are suspended, therefore you can't have audio playback still active then.
In unattended mode, and this is what you are referring to, you can have audio playing while some other functionality is effectively disabled.
Since screen backlight is one of the major contributors to power consumption, turning the screen off is almost as good as running in unattended mode, don't exclude this option.
Sadly most players are not designed to fully take advantage of unattended mode. WMP IS aware of this mode though. However, with the variety of platforms around there's no easy way to make wave and bluetooth drivers remain operational in unattended mode.
Check out http://www.codeproject.com/KB/mobile/WiMoPower1.aspx for an article dicussing power state adjustments for various drivers in unattended mode. Be careful if you change anything, as the result may not be exactly as expected and effective power consumption may increase.
Click to expand...
Click to collapse
Well said, I was just about to type that up, but now you saved me the time and trouble.

[Q] Google music (v4.0.9) stutters when phone asleep

Hey guys,
Have searched a while, but found no solutions for this, so here goes.
Have stock Galaxy Nexus with ICS 4.0.1, build ITL41F, installed Google Music v4.0.9 (with online sync).
Music is synced with google's online music service (even though I'm in UK, worked-around US-only restriction), and plays nicely when the screen is on. Once I switch the screen off (press power button), one of two things happen:
- if sampling rate of a song is below 48,000 Hz -- everything continues as normal.
- if sampling rate is 48,000Hz and up -- every one/couple of seconds music stutters, and jerks. Feels like I'm listening to dusty ol' record!
The 48kHz part is my theory, compared a few mp3s that stutter and some that don't. This seems to happen irrespective of bps rate and other parameters (albeit haven't checked all).
Few people on the forum with similar symptoms (on other phones) suggested it has something to do with cpu throttle during sleep, and that by forcing it to higher frequencies during sleep this could be solved.
Installed setCPU (which required rooting) and forced phone to 1,200MHz in sleep as a trial, and the songs still were stuttering.
Anyone with a similar experience?
Prime suspect would be google_music.apk which is in beta i believe, and... well, i guess then I'm out. What do you guys think? Any idea what might be causing this?
This is my first android phone, so I'm not sure even how I'd go about submitting a bug, if that's indeed the beta version of music at fault here. Any pointers?
Ta,
Dan
omgrtm said:
Hey guys,
Have searched a while, but found no solutions for this, so here goes.
Have stock Galaxy Nexus with ICS 4.0.1, build ITL41F, installed Google Music v4.0.9 (with online sync).
Music is synced with google's online music service (even though I'm in UK, worked-around US-only restriction), and plays nicely when the screen is on. Once I switch the screen off (press power button), one of two things happen:
- if sampling rate of a song is below 48,000 Hz -- everything continues as normal.
- if sampling rate is 48,000Hz and up -- every one/couple of seconds music stutters, and jerks. Feels like I'm listening to dusty ol' record!
The 48kHz part is my theory, compared a few mp3s that stutter and some that don't. This seems to happen irrespective of bps rate and other parameters (albeit haven't checked all).
Few people on the forum with similar symptoms (on other phones) suggested it has something to do with cpu throttle during sleep, and that by forcing it to higher frequencies during sleep this could be solved.
Installed setCPU (which required rooting) and forced phone to 1,200MHz in sleep as a trial, and the songs still were stuttering.
Anyone with a similar experience?
Prime suspect would be google_music.apk which is in beta i believe, and... well, i guess then I'm out. What do you guys think? Any idea what might be causing this?
This is my first android phone, so I'm not sure even how I'd go about submitting a bug, if that's indeed the beta version of music at fault here. Any pointers?
Ta,
Dan
Click to expand...
Click to collapse
That, is weird - because I am facing this with Winamp so I've switched to Google Music to play my music.
Does anyone else face something similar?
Can you do me a favor and play something you know that stutters, and then try it over a bluetooth connection.
I'm curious if this is also related to the static I get when the screen is off and output is analog outputs - digital (bluetooth) works fine.
same here with poweramp... switched to googlemusic... now i have only stutters over the phone speaker..
Same thing happen to me with google music and pandora. Thought it was the connection.
Sent from my Galaxy Nexus using xda premium
I get the same using the Music app (have WinAmp but doesn't seem to integrate with the lockscreen so don't use it) as soon as the screen goes off (either timeout or manual) you can hear the music slow down and start to stutter, tap the power button, screen comes on and music goes back to normal.
Have noticed it's not all songs, but have't looked into the differences between those that do and those that don't.
Are these locally stored songs that this is happening on? So far so good here but I have been streaming from the Google Music cloud.. I wonder if the CPU is struggling during the underclocked sleep condition with local files that are high bitrate...
Mine are local files, not tried from another source.
I've used both, streaming from Google cloud, and when songs are available offline in the music app -- still stuttering. Haven't tried any other method though.
As for trying to stream over Bluetooth, haven't got any speakers/earphones that could receive the stream at home. Going to try my luck with a local pcworld, if they let me.
I haven't had any problems with Google Music stuttering while the screen is off, but I have had it crash frequently while listening to music and multitasking. I experienced a similar problem with Rhapsody as well.
http://forum.xda-developers.com/showthread.php?t=1379600
Pyrotechnic said:
I get the same using the Music app (have WinAmp but doesn't seem to integrate with the lockscreen so don't use it) as soon as the screen goes off (either timeout or manual) you can hear the music slow down and start to stutter, tap the power button, screen comes on and music goes back to normal.
Have noticed it's not all songs, but have't looked into the differences between those that do and those that don't.
Click to expand...
Click to collapse
totally true! thought my phone was a lemon at first.luckily i didnt return it.
yep having the same exact issue. on speaker its just fine. when i plug in headphones or aux to car stereo and screen goes off it stutters / skips or whatever you want to call it.
Turn the screen on and its fine. However doesnt happen to all music. This was streaming from google music for me.
I'm pretty positive you guys have same exact problem as many other people. So far no one has take my suggestion of playing those same songs that stutter, and play them over bluetooth. I bet you don't get any more stutters. I think it has to do with analog outputs vs digital. To output analog, the phone has to use the DAC (digital to analog converter). When it outputs over bluetooth, there is no conversion, and the music is in digital form and transmitted in digital form
If someone can try this I would appreciate it. And you'd be helping everyone find a common denominator in this problem.
Also be sure to star this bug on google code http://code.google.com/p/android/issues/detail?id=22444#c6
Can someone post an mp3 this is happening to them with? I have a ton of them and I have not seen this problem yet.
Sent from my Galaxy Nexus using Tapatalk
[hfm] said:
Can someone post an mp3 this is happening to them with? I have a ton of them and I have not seen this problem yet.
Sent from my Galaxy Nexus using Tapatalk
Click to expand...
Click to collapse
Didn't I PM you a link the other day? I thought it was to you. I didn't click the box to save it to my sent box so I can't just look it up :[
Circling back. I recreated the problem with luxferro's 48KHz mp3. Seems whatever happens on this phone to play mp3 with the screen off cannot handle that sample rate. Any 44.1KHz mp3 works fine.
Sent from my Galaxy Nexus using Tapatalk
There was another thread like this. The current workaround is to enable the Equalizer for Google Music. You don't have to actually use it (leave it on default) but this solves the problem.
Sent from my Galaxy Nexus using XDA App
I guess with the eq on its forcing the CPU to get involved even when in low power mode. Unfortunately I believe that was causing other issues with crashing. Since I don't use 48KHz mp3 I'll leave it off.
Sent from my Galaxy Nexus using Tapatalk
For poweramp try settings... Audio engine.. Advanced tweets and change the audio buffer size.
Sent from my Galaxy Nexus using xda premium
Having the EQ turned on seems to work, just set it to flat and turned the 3d effect down. Guess it'll use less extra battery than using a 'keep awake' app like I was doing.

[Q] Do you have problems with Google Music/other Music apps?

There are several threads now detailing a problem with playing music, mainly reported when using the Google Music app. To be more specific here are some examples:
When playing music and then multitasking, the phone crashes and requires a battery pull and reboot.
Another is when playing music and then turning the screen off, the music is jerky and stutters.
People have reported this happening with apps other than Google Music, so it would appear that this isn't a problem with the Music app, but either the phone or ICS.
I wanted to start a poll to gauge how many people have this problem and establish whether it's everyone or not.
Here are some links to what I'm referring to:
http://forum.xda-developers.com/showthread.php?t=1381413
http://forum.xda-developers.com/showthread.php?t=1380773
http://forum.xda-developers.com/showthread.php?t=1379600
http://code.google.com/p/android/issues/detail?id=22669
Your poll is a bit flawed. My experience so far is that these crashes are a bit more random than being attributed to any specific apps right now. I've experienced the crash, but long story short, I am not convinced it was related to the exact app that I was using at the time.
Well just because you have experienced an unrelated crash it doesn't mean my poll is flawed, just that you have a separate issue
People have spoken of this happening repeatedly when trying to use Music and multitask so I think it is definitely an issue of it's own. Usually it is said that the sound/screen goes corrupt and then requires a battery pull. Are you not referring to a random reboot or something?
i have a couple of problems with PowerAmp, no problems with google music though.
1. PowerAmp can't see playlists that were created in google music
2. PowerAmp stutters when the screen goes to sleep. (does the clock speed lower when the screen goes off?)
i've read that increasing the buffer size in poweramp options fixes no. 2. I havent tried it due to no.1.
i'm just using google music at the moment.
WinAmp i found would often have slight cracks in the music (i.e. stop and start again quickly, almost like it was being disturbed/cpu high).
doubletwist is fine though, as is Music player
This is such a huge problem I can't believe more people haven't responded :S
I've had Google Music, Rhapsody, and Pandora all crash at one time or another.
str355 said:
i have a couple of problems with PowerAmp, no problems with google music though.
1. PowerAmp can't see playlists that were created in google music
2. PowerAmp stutters when the screen goes to sleep. (does the clock speed lower when the screen goes off?)
i've read that increasing the buffer size in poweramp options fixes no. 2. I havent tried it due to no.1.
i'm just using google music at the moment.
Click to expand...
Click to collapse
increasing the buffer size in power amp fixes no.2
Sent from Mobile..
problem number 2 here for me. songs with high bit rates tends to trigger the stutter problem after the phone goes to sleep. tried on google music and playerpro
Google Music 4.0.1 (ICS stock) often crashes within a minute after I reboot the phone - without me actually using it.
Obviously it's trying to do something in the background on start-up and fails. Miserably.
Did not crash while I was using it so far, but I didn't run it for any lengths of time either. No problems with other apps crashing, just Music.
rayvioli said:
problem number 2 here for me. songs with high bit rates tends to trigger the stutter problem after the phone goes to sleep. tried on google music and playerpro
Click to expand...
Click to collapse
Yes I notice it too, it's very annoying especially since I payed so much for this phone and a good set of headphones just for my high bit-rate music to constantly stutter; hopefully google fixes this. I seem to only notice this on the stock music player, but I prefer to use it over others due to its integration with the lockscreen and notification pulldown bar, especially considering the nice visuals it now has.
my 2 cents:
i can recreate the crash consistently by doing the following:
1. reboot the phone and connect a pair of headphones
2. stream a song (i.e., a song that's not already saved to the phone) using google music
3. use the home button to leave the google music app and return to the homescreen
4. while the song is playing, try to increase or decrease the volume of the music with the volume buttons and then almost immediately the phone reboots automatically.
i haven't been able to recreate the issue once with the headphones disconnected. also, the issue doesn't seem to occur if you connect the headphones after you start playing the music. i need to test that theory some more though.
I noticed this right away when I got my phone (launch day)
Since I constantly stream music from google music, I noticed pops and weird noises all the time. Very weird and SUPER annoying
The stock music app is not able to find my music at all. I use PowerAMP now and that works fine.
Music also crashes when not actively in use at all. When I open a lot of apps, i.e. multi-task a lot, Music often just force closes after a while.
I'm using PowerAmp now to listen to music stored in either .flac or the highest quality .mp3 files lame could produce. Some are 320kbps cbr others are vbr. In PowerAmp I set the process to the highest priority possible but left the buffer on auto.
I have never had any reboots or studering when locking the screen and I've been listening to music for over 3 hours now while doing some home work. Just to test it I put on one of my flac files and quickly locked and unlocked the screen. The phone took it like and champ with no studers at all.
No problems with music apps crashing, or needing to pull the battery. The only issue I have is with music or podcasts played through the native music player or Google Listen stopping at random intervals. Happens using wired speaker/headphones or bluetooth audio.
Frustrating, but not a dealbreaker yet.
I called Verizon for no other reason other than trying to create a record of the issue... They claimed to have not heard of this... Is there any way to let Samsung know directly? I know there is a google code ticket open, but Google hasn't "owned" the issue yet... I'd also say if you have the issue to let VZW know so they can get things in motion on their side as well.
kptkill said:
I called Verizon for no other reason other than trying to create a record of the issue... They claimed to have not heard of this... Is there any way to let Samsung know directly? I know there is a google code ticket open, but Google hasn't "owned" the issue yet... I'd also say if you have the issue to let VZW know so they can get things in motion on their side as well.
Click to expand...
Click to collapse
It seems they don't give a ****, unfortunately. Just have to live with it..
WinAMP - today while playing an album with the screen off paused (twice). I had to turn on the display, and hit the play button to continue. There was a bit of a lag (I got the FC screen, but when i hit wait the app returned a few seconds later)

Choppy music playback during sleep

Hi all, I was wondering if anyone else is having the same problem.
My music playback gets really choppy when my phone is "asleep" (i.e., display is turned off). Otherwise, like when I'm browsing the web or doing anything else with my phone (i.e., display is turned on and phone is not "asleep"), music playback is flawless. This is really annoying! No, it's not my microSD card since the same problem exists when playing music from my phone memory.
Help :crying: I really love my Note 2 but this is driving me crazy! I've been using my phone as a music player since the Nokia 5300 XpressMusic days. This is the first time I'm encountering such an annoying problem! This can't be happening...on a quad core phone in 2012?!
no problem whatsoever here :cyclops:
what's ur Rom? kernel ?
Dude. Who listens to music while they're sleeping? J/k.
Are you streaming? Then you might need to get the high performance WiFi widget app. It puts your WiFi into high performance mode rather low power mode while screen is off.
If not streaming, is there a wake lock or high priority option in your music player? That might need to be ticked to get your music as a higher priority.
I have never had this problem so I don't know if this will solve your issue but it is a place to start. Could possibly be something else taking up more resources or higher priority and you need to solve that issue.
Sent from my GT-N7100 using xda premium
I'm on stock ROM, rooted.
I think I may have found the problem, or at least the source of the problem. Live wallpapers. When I switched to "static" wallpapers, no more skipping/choppiness.
By the way, this isn't with music streaming. This is with music files on the phone/microSD card. I'm currently using the stock music player app, although I have tried using third party music apps and I can say that the problem still exists...
Just sad that it seems I'm alone with this issue. Meh, LWPs just drain the battery anyway. Static wallpaper it is.
Do you have Cpu sleeper installed on your phone. I had similar problems before I uninstalled thst
Sent from my GT-N7100 using xda premium
This happens to me occasionally even without a live wallpaper.
I think it's the kernel governor. Pegasus q seems to be the one I have the most problems with. I think it attempts to make the phone deep sleep even though music is playing.
Same here
I have the same problem: while screen is off music is chopped!
It was not like this all the time, just for the past month. I use stock ROM, not rooted. It does not matter what app I use to listen to music with or whether it is on built in memory or an SD card, the problem persists.
Does anyone has a solution for this problem, it drives me mad!
It happens to me too...but not all time...it just suddenly stops and resumes like if it were ram leak problem...
Pd: my note is 100% stock 4.3.
The only reason this happened to me was the music player somehow got killed by the system when the phone was put to sleep.. There's no workaround only one being using 3rd party players like I do.. I have a legit copy of shuttle plus and poweramp.. Both work flawless..
Sent from my GT-N7100 using XDA Premium 4 mobile app

Why can't this phone stream video through DLNA without cutting off the stream?

Is anyone else able to stream movies from this phone to their DLNA devices (my case I use either Panasonic smart TV or Xbox One to stream to)? I've tried AllConnect and BubbleUPnP (and lesser know ones from google play) and they all drop connection between 5 - 15 minutes into the stream. I've tried turning off battery optimisation on the apps but it made no difference, nor did a reset. On occasion the phone even soft reboots whilst streaming.
Never had this problem on my android tablet or other phones. Any ideas?
I'm on the latest stock android nougat, unrooted. Never got to see if it worked on MM.
Hi guys, could anyone help me out with this?
Had a bit of a breakthrough with it today... the phone streams video perfectly without cutting off after 5/10mins if I set the phone to 'stay awake while charging' in developer options and leave it plugged in. I assume by activating that setting there are processes being overridden and prevented from occurring that cut the video stream off in normal use.
Perhaps some system process related to doze/battery optimization?

Categories

Resources