Jeff07971 wrote: > Hi, > > I've compiled a version of squeezelite with a 1 Hour timeout on the -G > option by setting the SLEEP_DELAY. > > I've compiled (lots of requirements !) it and tested it on PCP with the > "Custom Squeezelite" option and works fine (Times out properly). > > My coding skills are rather limited, is there an easy way for me to > disable it entirely ? > > Thanks > Jeff
Yes there are many libraries used for squeezelite. I've attached a patch that should disable the gpio sleep. I reformatted this part of the code yesterday so make sure you have the latest from github so the patch doesn't fail. I haven't tested the change other than confirm it compiles and runs okay. Or you could just remove the text in bold from slimproto.c. Don't delete the 2nd bracket the one if red. Code: -------------------- --- slimproto.c (revision 1103) +++ slimproto.c (working copy) @@ -74,7 +74,6 @@ static int ampidle = 0; static int ampidle_set = 0; extern int ampstate; -#define SLEEP_DELAY 300000 #endif static struct { @@ -636,8 +635,7 @@ //Watch for paused player and put amp to sleep or wake up if playing resumes if (gpio_active || power_script != NULL) { - if ((ampstate == 1) && (ampidle_set == 0) && (ampidle == 1) - *&& (now - ampidletime > SLEEP_DELAY)**)* + if ((ampstate == 1) && (ampidle_set == 0) && (ampidle == 1)) { ampidle_set = 1; -------------------- +-------------------------------------------------------------------+ |Filename: nogpiosleep.patch.txt | |Download: http://forums.slimdevices.com/attachment.php?attachmentid=25154| +-------------------------------------------------------------------+ Ralphy *1*-Touch, *5*-Classics, *3*-Booms, *1*-UE Radio 'Squeezebox client builds' (https://sourceforge.net/projects/lmsclients/files/) 'donations' (https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=LL5P6365KQEXN&lc=CA&item_name=Squeezebox%20client%20builds¤cy_code=USD&bn=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHosted) always appreciated. ------------------------------------------------------------------------ ralphy's Profile: http://forums.slimdevices.com/member.php?userid=3484 View this thread: http://forums.slimdevices.com/showthread.php?t=97046 _______________________________________________ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix