RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login
    Please do not post a support request without first reading and following the advice in https://retropie.org.uk/forum/topic/3/read-this-first

    Control Emulation Station with CEC

    Scheduled Pinned Locked Moved Help and Support
    cecemulationstatio
    2 Posts 2 Posters 1.6k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      Maynard
      last edited by

      Hi,

      i use my RetroPie for Gaming and watching media files with kodi. i would be good if i could control emulation station using the tv remote just for starting kodi. This can be done with https://github.com/dillbyrne/es-cec-input - but it doesn't work for me. I've installed 'cec-utils' and 'python-uinput'. the last package has created the udev rule. the i've cloned the git to my home directory, made the script executable and rebooted the pi. then i started the script with './es-cec-input.py' and nothing happened. there is no error in the terminal (connected with ssh). the cursor jumps to the next line and waits. is this normal behavior?

      when i press a button on the tv remote nothing happens. no output in the terminal window and no reaction of emulation station.

      the dev is writing: "You must set up your keyboard in Emulation Station first or the script will not work". my keyboard works with emulation station, i can use cursor for navigating and i've mapped the a,b,x and y button to the keys a,b,x and y on the keyboard. enter is start and space is select.

      what is wrong here? do i need to set up the keyboard something different?

      1 Reply Last reply Reply Quote 0
      • chipsnblipC
        chipsnblip
        last edited by

        any luck with this?

        having never used or tested the script, i can only give some random thoughts for your troubleshooting consideration:

        • did you try adding the script to crontab so it runs at boot time?

        crontab -e
        @reboot nohup ./home/pi/RetroPie/scripts/es-cec-input.py

        (note there is a typo in the script comment "hohup")

        • double-check your locale & keyboard layout is correct:
          Raspi-Config > Localisation Options > Localisation Options
          Raspi-Config > Localisation Options > Change Keyboard Layout

        i had some strange effect from my keyboard until i set these correctly
        (en_US.UTF-8 / Generic Logitech Keyboard)

        • what is the remote make/model, and how is it connected?

        • should the vendor id/model match up with what is stored in?:
          /etc/udev/rules.d/40-uinput.rules

        • make sure there are no unsupported keys mapped in /opt/retropie/configs/all/retroarch.cfg
          https://github.com/dillbyrne/es-cec-input#supported-keyboard-keys

        sorry if this wasn't very helpful, i'm just a measly end-user with not much experience

        1 Reply Last reply Reply Quote 0
        • First post
          Last post

        Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.

        Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.