Posts by sammaz

    Updated my MK808b plus with custom Aeon Nox 5 skin + emulators to 7.0.1.1 without issues

    -I am seeing a definate increase in performance when loading large rom lists like mame. scrolling and picking games is a bit quicker with the new file system settings. Loading IARL pages is also quicker.

    Did you stop libcec-daemon or it stopped by itself? If the second, this seems like a bug in libcec-daemon. Can you test if cec-client works, of course with no libcec-daemon running in background and CEC off in Kodi?

    libcec-daemon stops by itself.

    cec-client works when loaded by itself. It listens to my remote presses. No action is shown on-screen...but the terminal hears every remote press when I run cec-client in the manner you describe above. Here is a dmesg after booting and running cec-client.

    bPhC


    Can you please remove libcec-daemon from autostart, turn off CEC in Kodi, reboot the box and show me result of libcec-daemon -vv?

    LibreELEC:~ # libcec-daemon -vv
    TRACE - Main::getCecName()
    INFO - Opened /dev/uinput
    INFO - Created uinput device
    TRACE - Main::Main()
    TRACE - Main::loop()
    TRACE - Cec::open()
    INFO - Openning /dev/AmlogicCEC
    DEBUG - Main::onCecLogMessage(275 [D]Broadcast (F): osd name set to 'Broadcast')
    DEBUG - Main::onCecLogMessage(276 [N]connection opened)
    DEBUG - Main::onCecLogMessage(276 [D]<< Broadcast (F) -> TV (0): POLL)
    DEBUG - Main::onCecLogMessage(278 [T]<< f0)
    DEBUG - Main::onCecLogMessage(276 [D]processor thread started)
    DEBUG - Main::onCecLogMessage(330 [D]>> POLL sent)
    DEBUG - Main::onCecLogMessage(330 [D]TV (0): device status changed into 'present')
    DEBUG - Main::onCecLogMessage(330 [D]<< requesting vendor ID of 'TV' (0))
    DEBUG - Main::onCecLogMessage(330 [T]<< f0:8c)
    DEBUG - Main::onCecLogMessage(544 [T]>> 0f:87:00:80:45)
    DEBUG - Main::onCecCommand(Command 0->15[ ] 135)
    DEBUG - Main::onCecLogMessage(545 [D]TV (0): vendor = Panasonic (008045))
    DEBUG - Main::onCecLogMessage(546 [D]expected response received (87: device vendor id))
    DEBUG - Main::onCecLogMessage(547 [D]>> TV (0) -> Broadcast (F): device vendor id (87))
    DEBUG - Main::onCecLogMessage(550 [D]replacing the command handler for device 'TV' (0))
    DEBUG - Main::onCecLogMessage(555 [N]registering new CEC client - v3.0.1)
    DEBUG - Main::onCecLogMessage(557 [D]detecting logical address for type 'playback device')
    DEBUG - Main::onCecLogMessage(558 [D]trying logical address 'Playback 1')
    DEBUG - Main::onCecLogMessage(558 [D]<< Playback 1 (4) -> Playback 1 (4): POLL)
    DEBUG - Main::onCecLogMessage(558 [T]<< 44)
    DEBUG - Main::onCecLogMessage(726 [E]Write: write failed !)
    DEBUG - Main::onCecLogMessage(726 [T]<< 44)
    DEBUG - Main::onCecLogMessage(905 [E]Write: write failed !)
    DEBUG - Main::onCecLogMessage(906 [D]>> POLL not sent)
    DEBUG - Main::onCecLogMessage(906 [D]using logical address 'Playback 1')
    DEBUG - Main::onCecLogMessage(906 [D]Playback 1 (4): device status changed into 'handled by libCEC')
    DEBUG - Main::onCecLogMessage(906 [D]Playback 1 (4): power status changed from 'unknown' to 'on')
    DEBUG - Main::onCecLogMessage(907 [D]Playback 1 (4): vendor = Pulse Eight (001582))
    DEBUG - Main::onCecLogMessage(907 [D]Playback 1 (4): CEC version 1.4)
    DEBUG - Main::onCecLogMessage(907 [D]AllocateLogicalAddresses - device '0', type 'playback device', LA '4')
    DEBUG - Main::onCecLogMessage(908 [D]Playback 1 (4): osd name set to 'LibreELEC')
    DEBUG - Main::onCecLogMessage(908 [D]Playback 1 (4): menu language set to 'eng')
    DEBUG - Main::onCecLogMessage(909 [D]AutodetectPhysicalAddress - autodetected physical address '1000')
    DEBUG - Main::onCecLogMessage(909 [D]Playback 1 (4): physical address changed from ffff to 1000)
    DEBUG - Main::onCecLogMessage(909 [D]<< Playback 1 (4) -> broadcast (F): physical adddress 1000)
    DEBUG - Main::onCecLogMessage(910 [T]<< 4f:84:10:00:04)
    DEBUG - Main::onCecLogMessage(1056 [N]CEC client registered: libCEC version = 3.0.1, client version = 3.0.1, firmware version = 0, logical address(es) = Playback 1 (4) , physical address: 1.0.0.0, git revision: 0df8f10
    , compiled on Tue May 10 11:50:51 UTC 2016 by kszaq@FPGAWorker on Linux 3.10.0-327.10.1.el7.x86_64 (x86_64), features: P8_USB, P8_detect, Amlogic)
    DEBUG - Main::onCecLogMessage(1056 [D]SetClientVersion - using client version '3.0.1')
    DEBUG - Main::onCecLogMessage(1057 [D]SetOSDName - using OSD name 'LibreELEC')
    DEBUG - Main::onCecLogMessage(1057 [D]SetDeviceTypes - using primary device type 'playback device')
    DEBUG - Main::onCecLogMessage(1058 [N]unregistering client: libCEC version = 3.0.1, client version = 3.0.1, firmware version = 0, logical address(es) = Playback 1 (4) , physical address: 1.0.0.0, git revision: 0df8f10
    , compiled on Tue May 10 11:50:51 UTC 2016 by kszaq@FPGAWorker on Linux 3.10.0-327.10.1.el7.x86_64 (x86_64), features: P8_USB, P8_detect, Amlogic)
    DEBUG - Main::onCecLogMessage(1059 [D]Playback 1 (4): power status changed from 'on' to 'unknown')
    DEBUG - Main::onCecLogMessage(1059 [D]Playback 1 (4): vendor = Unknown (000000))
    DEBUG - Main::onCecLogMessage(1059 [D]Playback 1 (4): CEC version unknown)
    DEBUG - Main::onCecLogMessage(1059 [D]Playback 1 (4): osd name set to 'Playback 1')
    DEBUG - Main::onCecLogMessage(1060 [D]Playback 1 (4): device status changed into 'unknown')

    You can simply use libcec-daemon -d. Can you grab me a full kernel log (dmesg | paste) a few seconds after a reboot? I suspect CEC driver may be misbehaving and that's why you can't control your TV over CEC. I'm still trying to improve the new driver as I've seen it misbehaving, I'd like to see if the reason is the same on your side.

    [ 4.472711@0] not get gpio_wake [ 4.505809@0] wifi_request_32k_clk : OFF- - Pastebin.com

    Let me know if it got cut off..I think it is all there


    When libcec-daemon is already running or CEC adapter is active in Kodi, running libcec-daemon will fail as there can only be one connection with CEC kernel driver at the time. With libcec-daemon running in background, I am getting the same results as you do, yet there is a "LibreELEC" device available on the list from my TV and I'm able to control Kodi when I select it. Keys are mapped a bit differently, that needs some adjustment...


    I am also seeing the device show up in my TV list but when I select it I am unable to get any navigational control. I tried to edit the keymaps using the keymap editor but it did not pick up the daemon.

    I am using this explicit command :

    libcec-daemon -d -p 0 --usb /dev/AmlogicCEC

    I can tell that it is somewhat working because if I do not run that command in my autostart.sh I will not even see the device in my TV list. Thank you so much for pursuing this !!! We are very close!

    If there's no control in Kodi, it means that libcec-daemon was not able to connect over CEC. Turning off CEC adapter in Kodi does not always work for me without a reboot, can you try doing that?

    When Pulse8 CEC is disabled and I have this as my autostart.sh :

    (
    libcec-daemon -d;
    )

    I do not get any CEC control in Kodi.

    My dmesg looks like this:

    LibreELEC:~ # dmesg |grep daemon
    [ 9.952179@1] input: libcec-daemon as /devices/virtual/input/input2

    and if I run the command manualy in terminal :

    LibreELEC:~ # libcec-daemon
    INFO - Opened /dev/uinput
    INFO - Created uinput device
    INFO - Openning /dev/AmlogicCEC
    Failed to open adapter
    LibreELEC:~ # libcec-daemon -l
    INFO - Opened /dev/uinput
    INFO - Created uinput device
    [0] port:Amlogic path:/dev/AmlogicCEC
    Failed to open
    LibreELEC:~ # libcec-daemon -d
    INFO - Opened /dev/uinput
    INFO - Created uinput device


    sammaz After lots of trials and errors I was finally able to compile libcec-daemon! I needed to add log4cplus package, find libcec-daemon fork that works with libcec 3.0.1, find another fork that allows compiling with CMake (autoconf was throwing errors all the time), merge them and add a fix for the latest boost library. Lot of things learned down the way!

    You can download it from here: libcec_daemon
    Source code for plugin is available at GitHub - kszaq/my-addons: A simple VNC server for OpenELEC on Amlogic

    I have only verified that it works, I am not sure if key mapping are correct.

    What you can do for your retroarch setup - to have CEC work all the time - is disable CEC in Kodi settings (System -> Input -> Peripherals) and add libcec-daemon -d to autostart.sh. That way you'd be able to stop Kodi by SIGSTOP and not systemctl stop and have CEC input working all the time.

    Whoa! Will test this asap...just got home from a 5 day trip.

    Edit : I was able to shut down the cec in setting\system and I was able to load the libcec-daemon successfully (No cec controll in Kodi though). When retroarch is running it does not see the new udev CEC device as an input. Have you been able to get CEC recognized in retroarch with this?

    I was thinking that maybe I would be able to compile the daemon so that you can use it in Retroarch? You would have to use systemctl stop to kill Kodi, though. Would that be OK?

    That would be great...then we could get back to Kodi using just the remote....eventually the Pulse8 loosing connection error will be fixed but in the mean time we could extend CEC controll to Retroarch using this daemon.

    Also I have a treat for everyone using Retroarch on their MK808b plus sticks :

    Mame .37b5 working core for Retroarch :

    imame4all.rar - Google Drive

    And below is the full comlete (2Gb) Mame .37b5 romset clrmamed and verified!

    MEGA
    MEGA

    Password: Jackhammer

    All roms play at full 100% speed including mortal komat 1,2,3 NBA Jam ect...

    --Retroarch got an update yesterday Libretro – A crossplatform application API, powering the crossplatform gaming platform RetroArch looks really nice...It would be cool to use their new interface to launch all roms\cores.


    Hi!

    I found that the same developer that made chromium for openelec, developed also ppsspp for openelec,
    you can have it here https://www.dropbox.com/sh/7rwud8jv5xu85...psspp?dl=0
    for those who know, ppsspp is a psp emulator written in c++, and known as the fastest this days.

    My request is this:
    This addon supports only x86_64 as well as chromium, and is based on ppsspp v0.9.0 which is 3 years old more or less, and now there is 1.2.2 already.
    If someone can port it to run on rpi, and update it to 1.2.2

    Thanx in advance

    PPSSPP 1.2.2 has been ported to a libretro core.

    I have it working on Rpi (retroarch) in openelec.

    Here is a link to my cores package with the .so and info files.

    open?id=0BxdG04mQGssLOXBDMVBkblNveWM

    Have fun!

    I have figured out the CEC issue !

    To recreate :

    1. While a video stream is playing in kodi issue the below commands in terminal :

    pgrep kodi.bin | xargs kill -SIGSTOP

    (Then wait for about 10 seconds and execute the below command)

    pgrep kodi.bin | xargs kill -SIGCONT

    You will see the error message that the connection to the Pulse8 USB has been lost.

    2. Now navigate to your settings\input\CEC (using your phone or keyboard ect) and click on the radio button to "disable"...wait for 5 seconds. Then re-enable the radio button...wait 5 seconds. Now save and back out. CEC is restored!!!!

    3. I have captured the CEC command that is being sent when CEC is resotred :

    dmesg |grep cec

    [ 334.446269@0] [amlogic_cec] amlogic_cec_irq_handler(): cec msg status: rx: 0x2; tx: 0x0
    [ 334.447956@0] hdmitx: cec: CEC[4]: rx msg len: 2 dat: 04 8c
    [ 334.587782@0] [amlogic_cec] amlogic_cec_irq_handler(): cec msg status: rx: 0x0; tx: 0x2

    Whatever is happening in those 3 lines is able to restore the lost CEC connection. Now we just need the command to directly issue these commands rather than us actually navigating to the control panel each time to re-activate CEC.

    Kszaq...Can you translate what is captured there into an echo "rx 04 8c" | cec-client -s type command?

    You just need to downoad the keymap editor program addon and re-program those buttons. It is available from Add-on:Keymap Editor - Official Kodi Wiki


    Can't wait to try this on my mk808 but heard someone is suck in a boot loop after flashing it so going to wait a little

    It's working great from NAND :)

    Thanks Kszaq! This new build is faster than OE. Everything is working as expected...perfectly...Im using your latest Retroarch build and all cores are loading properly. The kodi interface seems snappier.