{"action":"created","issue":{"url":"https://api.github.com/repos/stb-tester/stb-tester/issues/393","repository_url":"https://api.github.com/repos/stb-tester/stb-tester","labels_url":"https://api.github.com/repos/stb-tester/stb-tester/issues/393/labels{/name}","comments_url":"https://api.github.com/repos/stb-tester/stb-tester/issues/393/comments","events_url":"https://api.github.com/repos/stb-tester/stb-tester/issues/393/events","html_url":"https://github.com/stb-tester/stb-tester/pull/393","id":184336778,"number":393,"title":"Hdmi cec control","user":{"login":"wmanley","id":494659,"avatar_url":"https://avatars.githubusercontent.com/u/494659?v=3","gravatar_id":"","url":"https://api.github.com/users/wmanley","html_url":"https://github.com/wmanley","followers_url":"https://api.github.com/users/wmanley/followers","following_url":"https://api.github.com/users/wmanley/following{/other_user}","gists_url":"https://api.github.com/users/wmanley/gists{/gist_id}","starred_url":"https://api.github.com/users/wmanley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wmanley/subscriptions","organizations_url":"https://api.github.com/users/wmanley/orgs","repos_url":"https://api.github.com/users/wmanley/repos","events_url":"https://api.github.com/users/wmanley/events{/privacy}","received_events_url":"https://api.github.com/users/wmanley/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2016-10-20T20:48:34Z","updated_at":"2016-10-21T15:07:11Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/stb-tester/stb-tester/pulls/393","html_url":"https://github.com/stb-tester/stb-tester/pull/393","diff_url":"https://github.com/stb-tester/stb-tester/pull/393.diff","patch_url":"https://github.com/stb-tester/stb-tester/pull/393.patch"},"body":"This is an implementation of #365.  This implementation is based on the work by @danielandersson in #378, but has been fairly heavily modified and reworked such that it's mergable into stb-tester proper.\r\n\r\nHdmiCecControl: Implemented CEC support using libCEC\r\nIn combination with a USB-CEC adaptor this allows stb-tester to send\r\nkeypresses to devices over HDMI-CEC.  This is useful for testing devices\r\nwhich don't have an IR input like the Sony PlayStation 4.\r\n\r\nThe URI is of the form:\r\n\r\n    hdmi-cec:[<device>]:[<source>]:[<destination>]\r\n\r\nIf device is not specified then any available CEC adapter will be used.\r\n\r\nSimilar to the keymapping for Roku, a map is used to lookup the CEC\r\ncommands.  We raise `UnknownKeyError` if it's not one we've heard of.  The\r\nlist of keys is from http://www.cec-o-matic.com .  I've done my own\r\ninterpretation on how they should be mapped onto linux input keynames.\r\n\r\nThe tests are implemented by monkey-patching out the bits of libcec that\r\nactually interact with the hardware.  I'm not a great fan of this style\r\nof testing, but in the absence of hardware-in-the-loop testing this is\r\nthe best we can do.  At least some of this code will actually get run\r\nthrough during `make check`.\r\n\r\nThe tests are particularly ugly because the SWIG generated libcec bindings\r\nmakes inspecting `cec_commmand` objects inconvenient so I've had to use\r\n`ctypes` :(.\r\n\r\nThis is based on an initial prototype and research by Daniel Andersson\r\n<d.andersson92@gmail.com> (@danielandersson).  See PR #378 for more\r\ninformation.\r\n\r\nTODO:\r\n\r\n- [x] Release note\r\n- [x] Documentation\r\n- [ ] Review\r\n- [ ] Manual hardware-in-the-loop testing of final implementation "},"comment":{"url":"https://api.github.com/repos/stb-tester/stb-tester/issues/comments/255402565","html_url":"https://github.com/stb-tester/stb-tester/pull/393#issuecomment-255402565","issue_url":"https://api.github.com/repos/stb-tester/stb-tester/issues/393","id":255402565,"user":{"login":"drothlis","id":12424,"avatar_url":"https://avatars.githubusercontent.com/u/12424?v=3","gravatar_id":"","url":"https://api.github.com/users/drothlis","html_url":"https://github.com/drothlis","followers_url":"https://api.github.com/users/drothlis/followers","following_url":"https://api.github.com/users/drothlis/following{/other_user}","gists_url":"https://api.github.com/users/drothlis/gists{/gist_id}","starred_url":"https://api.github.com/users/drothlis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drothlis/subscriptions","organizations_url":"https://api.github.com/users/drothlis/orgs","repos_url":"https://api.github.com/users/drothlis/repos","events_url":"https://api.github.com/users/drothlis/events{/privacy}","received_events_url":"https://api.github.com/users/drothlis/received_events","type":"User","site_admin":false},"created_at":"2016-10-21T15:07:11Z","updated_at":"2016-10-21T15:07:11Z","body":"Hold on, is it *just* the tests that fail, or will the CEC control not work at all on Ubuntu 14.04?\r\n\r\nDoes that mean that we can only build the `stb-tester-gpl` deb for Ubuntu 16.04?\r\n"}}
{"actor":{"display_login":"drothlis"}}