{"action":"created","issue":{"url":"https://api.github.com/repos/Pulse-Eight/libcec/issues/71","labels_url":"https://api.github.com/repos/Pulse-Eight/libcec/issues/71/labels{/name}","comments_url":"https://api.github.com/repos/Pulse-Eight/libcec/issues/71/comments","events_url":"https://api.github.com/repos/Pulse-Eight/libcec/issues/71/events","html_url":"https://github.com/Pulse-Eight/libcec/issues/71","id":65020268,"number":71,"title":"Source is not activated when receiver switch to ARC after switch on","user":{"login":"PavelKuzub","id":186876,"avatar_url":"https://avatars.githubusercontent.com/u/186876?v=3","gravatar_id":"","url":"https://api.github.com/users/PavelKuzub","html_url":"https://github.com/PavelKuzub","followers_url":"https://api.github.com/users/PavelKuzub/followers","following_url":"https://api.github.com/users/PavelKuzub/following{/other_user}","gists_url":"https://api.github.com/users/PavelKuzub/gists{/gist_id}","starred_url":"https://api.github.com/users/PavelKuzub/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PavelKuzub/subscriptions","organizations_url":"https://api.github.com/users/PavelKuzub/orgs","repos_url":"https://api.github.com/users/PavelKuzub/repos","events_url":"https://api.github.com/users/PavelKuzub/events{/privacy}","received_events_url":"https://api.github.com/users/PavelKuzub/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-29T04:04:49Z","updated_at":"2015-06-07T02:26:52Z","closed_at":null,"body":"Hello Pulse Eight team,\r\nHello Lars,\r\n\r\nI had this problem for a long time with my equipment and I have finally narrowed down scenario how to reproduce the problem.\r\n\r\nHardware setup:\r\nHTPC > Pulse Eight > Receiver: Sony STR-DN1030 > TV: Samsung ES7500\r\n\r\nAV receiver has a setting \"Ctrl for HDMI\" that when set to ON enables both these features at the same time: 1) Control AV from TV (volume, power, etc) 2) AV receiver can switch to Audio Return Channel (ARC) and stream the sounds from TV.\r\nReceiver can automatically switch between HTPC source or TV source (via ARC).\r\nIf \"Ctrl for HDMI\" is set to OFF - TV cannot control volume of AV receiver, AV receiver will never switch to TV as a source from it's active source.\r\n\r\nDescription of problem:\r\nUpon turning on TV and AV receiver - TV remote is not working for CEC device until CEC source is selected manually either on TV or on AV receiver.\r\n\r\nSteps on how to reproduce the problem:\r\nTV is switched from OFF to ON.\r\nAV receiver is switched from OFF to ON.\r\nXBMC / Kodi / libcec-daemon detects power on and sends signal to activate defined HDMI source on AV receiver and TV.\r\nTV is yet not receiving signal as AV receiver is booting up.\r\nAV receiver finish loading and enables signal from HTPC to TV.\r\nTV starts displaying Video signal from HTPC.\r\n(!!!) AV receiver change the source from BD/DVD (HTPC source) to TV (via ARC) and Kodi / libcec does not detect this event (!!!).\r\nKodi source is listed in TV sources, but it is NOT selected. HDMI1 source remains selected.\r\nTV Remote key presses are NOT delivered to Kodi / libcec.\r\n\r\nManual workaround:\r\nI have to change source on TV from HDMI1 to Kodi manually OR change the source on AV receiver from TV to BD/DVD manually - only then TV remote key presses start to work. \r\nOnce this is done - if I select HDMI1 on TV - it will anyway go to Kodi as source. \r\nAlso if I select TV on AV receiver - TV remote key presses continue being registered by Kodi / libcec.\r\nHave to apply a manual workaround on every power on is very annoying. For my wife especially.\r\n\r\nIf I disable \"Ctrl for HDMI\" on AV receiver - then there is no problem - after TV and AV receiver are turned ON - source is activated and TV remote keys are sent to Kodi / libcec just fine all the time.\r\nI cannot control the volume of AV receiver from TV remote, though, so this is not a solution for me.\r\n\r\nSo the problem is initial registration / activation of source that is distracted by ARC switching to TV, when auto switch to ARC is enabled.\r\nlibcec does not detect event when AV receiver automatically switch the source to TV and continue believes that that required sources are active, but the CEC chain is not active.\r\n\r\nWhy AV receiver is switching to TV as a sound source is not clear to me. \r\nMy key suspects: 1) When libcec sends CEC message to TV on what HDMI channel it should switch - it triggers AV receiver to believe that TV became the source and switch to TV as being the most recent source; 2) TV connects to AV receiver to enable volume control and this may trigger AV receiver to think that TV should be the source of audio.\r\n\r\nUnless there is actually a way to detect this event by libcec OR to poll that chain HTPC > TV is not active anymore - the solution may be just another force activation after certain time.\r\n\r\nLooking forward your attention and solution to this scenario that got my wife pissed off badly already :)\r\nThank you! Happy Wife - Happy Life!\r\n\r\nPavel"},"comment":{"url":"https://api.github.com/repos/Pulse-Eight/libcec/issues/comments/109676905","html_url":"https://github.com/Pulse-Eight/libcec/issues/71#issuecomment-109676905","issue_url":"https://api.github.com/repos/Pulse-Eight/libcec/issues/71","id":109676905,"user":{"login":"mk01","id":3136693,"avatar_url":"https://avatars.githubusercontent.com/u/3136693?v=3","gravatar_id":"","url":"https://api.github.com/users/mk01","html_url":"https://github.com/mk01","followers_url":"https://api.github.com/users/mk01/followers","following_url":"https://api.github.com/users/mk01/following{/other_user}","gists_url":"https://api.github.com/users/mk01/gists{/gist_id}","starred_url":"https://api.github.com/users/mk01/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mk01/subscriptions","organizations_url":"https://api.github.com/users/mk01/orgs","repos_url":"https://api.github.com/users/mk01/repos","events_url":"https://api.github.com/users/mk01/events{/privacy}","received_events_url":"https://api.github.com/users/mk01/received_events","type":"User","site_admin":false},"created_at":"2015-06-07T02:26:52Z","updated_at":"2015-06-07T02:26:52Z","body":"@PavelKuzub \r\n\r\nthis problem is with xbmc's peripheralcecdevice implementation, not libcec (specifically SetInitialConfiguration).\r\nI will try to catch @opdenkamp 's attention on this again."}}