-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Start script after closing Kodi again #2
Comments
Hi @Kivikaki Its not a stupid question, The script should always be running in the background but will ignore button presses when kodi or retroarch are running. Do you have kodi shutting down your tv when you exit ? . Are you running emulation station or some other frontend? Are you running it on a raspberry pi or some other linux distro ? can you give me the output of If you have access to a terminal can you run you should get output like
EDIT: just so understand correctly You start your pi and it boots to emulation station and the script initially works and you select kodi in the ports section with your tv remote and when you quit kodi it appears to stop working . Is that correct ? |
Hey @dillbyrne, Crontab output:
ps aux:
Just ran this after exiting Kodi - CEC not working. |
That means the script is running at least. Is the script working initially when you start . Are you selecting kodi in the ports section with your tv remote ? |
It is possible your tv may stop sending power to the hdmi port when you exit kodi. It may be a powersaving setting on your TV to disable unused sources. You could try exit to kodi then unplug your tv for a few seconds and plug it back in, (not the pi, just the tv and see will control return to emulation station ). Also after booting try select one of the retroarch emulators with your remote and then exit with a pad or keyboard back to the Emulation Station menu and see if you can still control it with the remote ? This will tell us if it is isolated to kodi |
Well, i found the solution thanks to your help! :) It is a really nice quality of life script btw thank you SO much for providing this 💯 |
@Kivikaki No problem. Glad you got it working. |
My kodi settings for anyone else referred here Settings for your CEC devices can be found in: System -> Settings -> System -> Input Devices -> Peripherals -> CEC adapter
|
Hey, just to help others out: "Send inactive source command on shutdown" Change this setting to "No" - that should solve your problem. |
@Kivikaki it works for me with either setting. So it must be a TV specific thing or else related to other attached cec devices. As far as I am aware only one cec device can be the active source at a time. |
@dillbyrne |
Hi @dillbyrne, I stumbled upon this thread during my search for CEC capabilities in RetroPie. I have the same
with the I also get this when I run
Thanks in advance! |
The grep output is listing the grep process itself which is normal but there should be another listing showing the script itself. The answer in this case is provided by the script when you run it. The In order for the script to work you need to select a keyboard key to correspond to each controller key. The script expects all the keys to be selected. You can simply connect your keyboard to the pi and go into the controller configuration and re select a key for each option. |
Thanks for the response! When I go into Retroarch I'm not seeing anywhere where I can remap the keyboard? Am I missing something? |
@roachman5000 You configure your keyboard in emulation station. and select a keyboard key for each prompted option |
Ah, that. I went through and remapped every option to the keyboard. I then ran the ./es-cec-input.py again and have the same string of null errors. Surely I'm missing a step here...... |
@roachman5000 That should be all that is required. Can you post your /opt/retropie/configs/all/retroarch.cfg here ? and also tell me what version of retropie you are using ? as older versions 3.X did not quote the values in the config file. |
|
And I'm running RetroPie 4.2 |
@roachman5000 Your config has 16 player sections will |
Classic......It's probably because I've reconfigured my keyboard and 8bitdo controller multiple times, but I don't know why it keeps count like that. Weird...is it best to just go in and delete out the other 15 or so player sections I'm currently not using? |
@roachman5000 That could be it. I have not used the 8bitdo controllers myself so it could be something to do with that. Perhaps enquire with other 8bitdo retropie users and compare the configuration files. Before you do anything be sure to back up any configurations and or make a backup image . I can't really help in relation to the script until your file is populated as expected. |
Hey there,
first of all thanks fpr the nice script!
Got it working on boot - but after I start Kodi through the Retropie Ports section and close it again, Retropie doesn't recognize CEC Inputs anymore until I start Kodi again (with an USB Keyboard) or reboot the Pi.
Is there a way to let the script run upon closing Kodi?
I'm a Linux noob myself - Sorry if this is a stupid question.
The text was updated successfully, but these errors were encountered: