sansoo22 11 Posted December 27, 2016 Posted December 27, 2016 This could be something I missed in the documentation or setup process but I was able to reproduce it twice doing a fresh install of Emby Theater on a fresh install Windows 10 Home. First attempt was on a REALLY slow 5400rpm platter drive so I thought maybe the install just crapped the bed. The second attempt was on a Samsung 850 EVO SSD with the same results. Emby Theater will load just fine after this but remote features do not work. Please see the attached image for the full error. If I install CecTrayInstaller v1.67 the error goes away and everything works as it should for the most part. Sometimes the HDMI-CEC adapater will wake the pc and then immediately put it back to sleep when i hit power on my TV remote. I was hoping it was an issue with the CecTrayInstaller application and not Emby. However I really have no way of testing this. Does Emby require CecTrayInstaller for the pulse8 drivers to work correctly?
Luke 42077 Posted December 27, 2016 Posted December 27, 2016 Hi, it does not require cectrayinstaller but keep in mind only one app can manage CEC at a time. If you have another cec-enabled app then you'll need to shut it down when you run Theater. I'm not sure that's the issue here, but just trying to give an idea here to try. Let us know how it goes. Thanks !
sansoo22 11 Posted December 27, 2016 Author Posted December 27, 2016 Theater is the only cec-enabled app I have running. In order to get the javascript error to go away I had to either use the cec tray application from here https://sites.google.com/site/chir21/home/CEC-Tray or use the one from Pulse Eight. The Pulse Eight tray app has never quite worked right with my Panasonic TV. I blame the TV for that tho. It has trouble running my sound bar correctly at times. Still strange that Emby Theater required one of the 2 trap apps to be running before the javascript error went away but at least its all working 90% accurately. When i power cycle the TV sometimes the HTPC still wakes up and immediately goes back to sleep but that isn't a theater issue. I tested with theater closed and the issue still happened. Last question. On windows is Theater using the "shutdown /h" command when i choose the sleep option? I noticed the mini pc was in full hibernate mode after using this option but can't seem to figure out if its a power policy unique to the mini pc or the command theater is using. Thanks!
Luke 42077 Posted December 27, 2016 Posted December 27, 2016 It's definitely not a requirement, although i'm not sure as of now why you're seeing that error. For sleep mode, we're using a nodejs package called sleep-mode, i would need to check it's source code to see how it's doing the sleep, but yes, i would guess that it's just via the command line.
sansoo22 11 Posted December 28, 2016 Author Posted December 28, 2016 The command sleep-mode uses is: rundll32.exe powrprof.dll,SetSuspendState 0,1,0 According to this SuperUser question http://superuser.com/questions/42124/how-can-i-put-the-computer-to-sleep-from-command-prompt-run-menu the above command will put the PC into hibernation if you do not disable hibernation. Thus confirming what I noticed earlier about the built in "Sleep" option in Theater sending my PC into hibernation. And if you're interested here is an article on why the above command is actually a bad idea https://blogs.msdn.microsoft.com/oldnewthing/20040115-00/?p=41043/. Sorry the developer side of my brain got the better of me and decided to dig into this a little. Still doesn't explain the javascript errors though. Not sure how much more digging i can do into that but I will keep poking at theater to see what I can come up with.
Luke 42077 Posted December 28, 2016 Posted December 28, 2016 Great info, thanks. If you were to submit a pull request to them and get it approved, then I'd update our local copy.
bennycooly 2 Posted December 28, 2016 Posted December 28, 2016 Hey sansoo22, Can you post your cec-log.txt file? It should be located in "Emby-Theater\system\electronapp\cec\logs\cec-log.txt". I can try to take a look and see what's happening. 1
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now