(2014-03-19, 23:15)606u Wrote: (2014-03-19, 22:42)MilhouseVH Wrote: @606u: turn on debug log (wiki), specifically JSON logging, and I'm pretty sure the reason for increased load will become clear. Unfortunately some smartphone remotes are just not that smart...
Here it is.
Pretty much as suspected, the remote control app is spamming the client with JSON requests several times a second, most likely to maintain it's own state (what's playing, seek positiion etc.). Most (if not all of these) JSON requests are completely unnecessary, as the app could get the same information via JSON notifications without spamming the client.
Code:
23:06:29 62.758083 T:2667574352 DEBUG: JSONRPC: Incoming request: {"method":"Player.GetProperties","id":-472574362,"jsonrpc":"2.0","params":{"playerid":1,"properties":["percentage","time","totaltime","partymode","position","canrepeat","canshuffle","repeat","shuffled","canseek"]}}
23:06:29 62.760704 T:2794067024 DEBUG: JSONRPC: Incoming request: {"method":"Player.GetItem","id":-613133993,"jsonrpc":"2.0","params":{"playerid":1,"properties":["album","artist","title","thumbnail","track","studio","showtitle","episode","season"]}}
23:06:29 62.881805 T:2794067024 DEBUG: GetMovieId (nfs://192.168.0.2/c/media/Series/Lilo & Stitch. The Series/s01e01 Richter (513).m4v), query = select idMovie from movie where idFile=467
23:06:29 62.891171 T:2794067024 DEBUG: GetEpisodeId (nfs://192.168.0.2/c/media/Series/Lilo & Stitch. The Series/s01e01 Richter (513).m4v), query = select idEpisode from episode where idFile=467
23:06:29 63.084656 T:2667574352 DEBUG: webserver: request received for /jsonrpc
23:06:29 63.085541 T:2667574352 DEBUG: JSONRPC: Incoming request: {"method":"XBMC.GetInfoLabels","id":456093242,"jsonrpc":"2.0","params":{"labels":["MusicPlayer.Codec","MusicPlayer.SampleRate","MusicPlayer.BitRate","VideoPlayer.VideoResolution","VideoPlayer.VideoAspect"]}}
23:06:30 63.725456 T:2794067024 DEBUG: webserver: request received for /jsonrpc
23:06:30 63.726749 T:2794067024 DEBUG: JSONRPC: Incoming request: {"method":"Player.GetActivePlayers","id":1121127974,"jsonrpc":"2.0","params":{}}
Note how there are two separate threads (T:2667574352 and T:2794067024) on the Pi both responding to JSON requests, suggesting that you have the same app running on two iOS devices and that when you start playing a movie on the XBMC client the app on each device goes into overdrive spamming the XBMC client with JSON requrests just to maintain it's own internal state. If you add this app to a third iOS device... well, you can see the problem, eventually you won't be able to play movies! There's an Android app (Yatse) that does the same, it's ridiculous.
My advice would be to uninstall this garbage and find a smarter app...
(2014-03-19, 21:45)ijsbeer79 Wrote: Are the changes to bcm2835-bootloader only for 'new' SD cards, or are those also applied to the current working setups?
Occording to the filename, it's only about new ones. Is this correct?
https://github.com/OpenELEC/OpenELEC.tv/...19f313e0da
Yes, it would be for when creating a new installation from scratch, it will have no effect when updating an existing installation.