EmulationStation icon indicating copy to clipboard operation
EmulationStation copied to clipboard

CEC support for Emulationstation

Open kubax opened this issue 8 years ago • 10 comments

First of all. It's not my work!

The patch to implement libCEC to Emulationstation is done by https://github.com/CeRiAl/EmulationStation

Only thing i did was cherry-picking the commits to bring the commits to the latest git from you, make it compatible to libCEC3 (also borrowed from https://github.com/fkmclane/overlay/blob/master/media-tv/plex-home-theater/files/libcec.patch) and restructuring the code to make it run even without a working CEC adapter.

Sadly i'm at work, and couldn't test the CEC part, but i'll post soon if it works and let you know. Just wanted to don't forget to post the PR :)

kubax avatar Jun 10 '16 13:06 kubax

Just to let you know, it's tested, and the CEC part seems to work (it didn't at first, but it seems that the Pule eight USB Adapter can only be used by one Program, and that was Kodi at this point).

So everything seems fine :) (except i have to find another way to have kodi start emulationstation and have it controlled with the remote...)

kubax avatar Jun 10 '16 16:06 kubax

I see there's a fix in there, but it still segfaults for me when launching a game (no CEC adapter).

escalade avatar Jun 22 '16 08:06 escalade

Oh, might be possible i didn't check if it actually launces games. I'll investigate in this this evening and give it a try.

kubax avatar Jun 22 '16 08:06 kubax

Pushed a fix for the crash. Problem seemed to be cause by to early unloading cec adapter and later trying it again.

kubax avatar Jun 22 '16 10:06 kubax

Now it crashes when returning to ES after game exit.

escalade avatar Jun 22 '16 22:06 escalade

For the moment i#m not in reach of an linux system. But i'll investigate in this tomorrow or monday (depends on when i'm in reach of one) but i didn't had this problem.. if reproducable could you add a backtrace from gdb. it might be possible that i can fix it without getting in reach of a linux box.

kubax avatar Jun 23 '16 10:06 kubax

Sorry, I'm not a developer so that's beyond my skillset :) Do I just run gdb with emulationstation as an argument, or?

escalade avatar Jun 23 '16 17:06 escalade

basically it's

gdb ../emulationstation (when you are in the build directory) r (to run the programm when crash occours "bt" to backtrace. and i'm neither, those are the only two commands i know from gdb ;)

kubax avatar Jun 23 '16 17:06 kubax

So i tested, and couldn't reproduce your problem.. could you please attach a backtrace?

kubax avatar Jun 27 '16 10:06 kubax

Been busy last few days, but will do so when I get some time :)

escalade avatar Jun 27 '16 11:06 escalade