Bugzilla – Bug 9737
Add Boom-Like 'Snooze' Clock Display to SB
Last modified: 2009-09-08 09:12:46 UTC
enhancement request: taken from resolved bug 9476 to show the clock display when SB is off by pressing the Sleep button - similar to the Boom when pressing the Snooze button. Proposed patch below & attached files: Remove the sleep.* line and put in the same as the snooze button in the default.map file: sleep.single = snooze sleep.hold = dead Other enhancements: 1. have the time show up even if the display is not 0(dark). I often have my bedroom SB set to dispay 1 when off, so I would like to be able to press sleep and have it brighten up to see better. (this could also be a user option). 2. have the time show up at max brightnes (not 'powerOn' brightness). When showing time w/ the sleep/snooze button, you can assume that a person would like to see it bright. Again, my bedroom SB 'powerOn' brightness is often 1, so pressing the sleep/snooze button and having its brightness 1 isn't all that useful. (this could also be a user option). Propsed patch in attached file. I'm not a programmer, so I'm sure the syntax/coding style isn't quite right, but it's working for me, thanks!
Created attachment 4143 [details] change to Default.map to user sleep button as snooze
Created attachment 4144 [details] changes to Date/Time Plugin.pm
Slav: thanks for the patch. Andy: can you take a look at the patch and implement for 7.3
this effectively turns the 'sleep' remote button into a 'snooze' button. cc'ing Dean as I believe his intent was to keep these as different button behaviours.
Ping Dean.
As long as the old sleep behavior (i.e. when playing, press sleep button to start sleep timer) still works, this seems like a win.
-this only affects the sleep button when the player is off -when power is on, the sleep button functions as normal (starts sleep timer)
Thanks, but please re-attach patches against 7.3, not full files.
ok - I'll get this going for 7.3 question: how do I attach just a patch & not the full file?? thx.
The easiest way is to checkout the source using Subversion, edit in your changes, and run svn diff on the files. Or you can make a copy of the original file, edit your changes, and run: diff -u old_file new_file
thanks Andy However I'm having some problems w/ this (I've never done this before) I installed subversion, and tried a checkout (based on some syntax I found in the forums) and this is what I get: C:\temp>svn co http://svn.slimdevices.com/7.3/trunk/server/IR/Default.map svn: XML data was not well-formed When I try w/ /repos/ in the URL I get: C:\temp>svn co http://svn.slimdevices.com/repos/7.3/trunk/server/IR/Default.map svn: Server sent unexpected return value (403 Forbidden) in response to OPTIONS request for 'http://svn.slimdevices.com/repos/7.3/trunk/server/IR/Default.map' Am I using the wrong syntax? Wrong URL?? thx.
http://svn.slimdevices.com/repos/slim/7.3/trunk/server/IR/Default.map
Created attachment 4239 [details] Sleep Button Snooze - Patch
-uploaded patch -tested OK w/ 7.3 -hopefully the way I created the patch was right (it looks OK viewing above): thanks Andy for helping w/ the patch creation/subversion process
Added in change 24511.
Verified to be working in 7.3.3 - 24684.
Fixed - Closed Message (SC) This bug has been fixed in the 7.3.3 release version of SqueezeCenter! Please download the new version from http://www.slimdevices.com/su_downloads.html if you haven't already. If you are still experiencing this problem, feel free to reopen the bug with your new comments and we'll have another look.
Correction: SqueezeCenter version is 7.3.2
Reduce number of active targets for SC