Android Sleep policy, screen timeout, using UPnP problems

Report bugs & feature requests for MediaMonkey for Android and learn about the newest beta build.

Moderator: Gurus

andreklaver
Posts: 8
Joined: Sun Mar 27, 2005 7:10 am
Location: Utrecht, The Netherlands
Contact:

Android Sleep policy, screen timeout, using UPnP problems

Post by andreklaver »

Playing songs from my MMW library through UPnP on my Android device works pretty nice. The problem I run into is that as soon as the screen times out, MMA stops playing music from my MMW library. As soon as I turn on the screen, playback resumes. I can fix this somewhat by setting the screen timeout to 30 minutes, but this is not desirable. Also, I have set the sleep policy of my WiFi off. It is on always, looking at the Wifi settings. I can ping my phone with the screen timed out but the times returned are high or it times out often.

Has anyone experienced this, and what can be done to make the phone playback continuously?

I use an HTC Desire HD equipped with Cyanogenmod 7.2
rovingcowboy
Posts: 14163
Joined: Sat Oct 25, 2003 7:57 am
Location: (Texas)
Contact:

Re: Android Sleep policy, screen timeout, using UPnP problem

Post by rovingcowboy »

Why not just sync some songs to the memory on your phone or its sd card then use mma's widget to play music it will show widget on locked screen so you do not have to keep unlocking it. The way your doing it now is always going to be cut off as android cuts the connection when the screen locks. If there is an keep connection app on the play google store then it might be the thing to use i dont think mma can do it.
roving cowboy / keith hall. My skins http://www.mediamonkey.com/forum/viewto ... =9&t=16724 for some help check on Monkey's helpful messages at http://www.mediamonkey.com/forum/viewto ... 4008#44008 MY SYSTEMS.1.Jukebox WinXp pro sp 3 version 3.5 gigabyte mb. 281 GHz amd athlon x2 240 built by me.) 2.WinXP pro sp3, vers 2.5.5 and vers 3.5 backup storage, shuttle 32a mb,734 MHz amd athlon put together by me.) 3.Dell demension, winxp pro sp3, mm3.5 spare jukebox.) 4.WinXp pro sp3, vers 3.5, dad's computer bought from computer store. )5. Samsung Galaxy A51 5G Android ) 6. amd a8-5600 apu 3.60ghz mm version 4 windows 7 pro bought from computer store.
Lowlander
Posts: 58325
Joined: Sat Sep 06, 2003 5:53 pm

Re: Android Sleep policy, screen timeout, using UPnP problem

Post by Lowlander »

I can't reproduce, when the screen turns off UPnP play continues on MMA 0087 for me.
andreklaver
Posts: 8
Joined: Sun Mar 27, 2005 7:10 am
Location: Utrecht, The Netherlands
Contact:

Re: Android Sleep policy, screen timeout, using UPnP problem

Post by andreklaver »

I've done some research and figured it out, my MMA is playing continuously without hick ups now. The cause was in my WiFi-router. I have set the Beacon Interval to a higher value once to do some testing and never set it back to the default of the WiFi-router. The default of 100 ms suffices to have proper playback, this was set to 1000 ms. This must trigger some mechanisms in Android to shut down WiFi or something? If I run into anything related to this again I'll post it.

Beacon interval This is the time interval between beacon transmissions. The time at which a node (AP or station when in Ad-hoc) must send a beacon is known as Target Beacon Transmission Time (TBTT). Beacon interval expressed in Time Unit (TU). It is a configurable parameter in the AP and typically configured as 100 TU.[1]
rovingcowboy
Posts: 14163
Joined: Sat Oct 25, 2003 7:57 am
Location: (Texas)
Contact:

Re: Android Sleep policy, screen timeout, using UPnP problem

Post by rovingcowboy »

Glad you found an answer to get it working. 8)
roving cowboy / keith hall. My skins http://www.mediamonkey.com/forum/viewto ... =9&t=16724 for some help check on Monkey's helpful messages at http://www.mediamonkey.com/forum/viewto ... 4008#44008 MY SYSTEMS.1.Jukebox WinXp pro sp 3 version 3.5 gigabyte mb. 281 GHz amd athlon x2 240 built by me.) 2.WinXP pro sp3, vers 2.5.5 and vers 3.5 backup storage, shuttle 32a mb,734 MHz amd athlon put together by me.) 3.Dell demension, winxp pro sp3, mm3.5 spare jukebox.) 4.WinXp pro sp3, vers 3.5, dad's computer bought from computer store. )5. Samsung Galaxy A51 5G Android ) 6. amd a8-5600 apu 3.60ghz mm version 4 windows 7 pro bought from computer store.
brasssmonkey

Re: Android Sleep policy, screen timeout, using UPnP problem

Post by brasssmonkey »

I have the same problem but when it plays back from phone external SD card. I had the issue with Galaxy S3 and HTC thunderbolt.

Can anyone advise? Should I start a seperate thread?
rovingcowboy
Posts: 14163
Joined: Sat Oct 25, 2003 7:57 am
Location: (Texas)
Contact:

Re: Android Sleep policy, screen timeout, using UPnP problem

Post by rovingcowboy »

brasssmonkey wrote:I have the same problem but when it plays back from phone external SD card. I had the issue with Galaxy S3 and HTC thunderbolt.

Can anyone advise? Should I start a seperate thread?
You dont have same issue yours is already on the phone his was in computer being sent to phone by wireless file transfer signal.

You should start new thread.
roving cowboy / keith hall. My skins http://www.mediamonkey.com/forum/viewto ... =9&t=16724 for some help check on Monkey's helpful messages at http://www.mediamonkey.com/forum/viewto ... 4008#44008 MY SYSTEMS.1.Jukebox WinXp pro sp 3 version 3.5 gigabyte mb. 281 GHz amd athlon x2 240 built by me.) 2.WinXP pro sp3, vers 2.5.5 and vers 3.5 backup storage, shuttle 32a mb,734 MHz amd athlon put together by me.) 3.Dell demension, winxp pro sp3, mm3.5 spare jukebox.) 4.WinXp pro sp3, vers 3.5, dad's computer bought from computer store. )5. Samsung Galaxy A51 5G Android ) 6. amd a8-5600 apu 3.60ghz mm version 4 windows 7 pro bought from computer store.
Post Reply