use keyboard for ES nav, or start Kodi on startup
-
I am running an X86 system running on an Ubuntu Server build. The system is just as much for watching movies as playing games. Currently if I want to watch netflix, I have to boot up and plug in a game controller to start kodi, which then starts Google Chrome, at which point I need the keyboard/mouse (I use a k400) to use netflix.
I'd like to do either;
a. Have Kodi start on boot rather than ES, exiting Kodi will bring up ES as it does now
b. Allow my keyboard to navigate the ES menus, so I can launch Kodi with the keyboardI have been unable to make the keyboard work in ES.
-
@nobodyfamous said in use keyboard for ES nav, or start Kodi on startup:
a. Have Kodi start on boot rather than ES, exiting Kodi will bring up ES as it does now
https://retropie.org.uk/docs/FAQ/#how-do-i-boot-to-the-desktop-or-kodi
b. Allow my keyboard to navigate the ES menus, so I can launch Kodi with the keyboard
Just configure the keyboard as you'd configure a controller in EmulationStation - press one key to start configure it, as explained in https://retropie.org.uk/docs/Controller-Configuration/.
-
@mitu said in use keyboard for ES nav, or start Kodi on startup:
Just configure the keyboard as you'd configure a controller in EmulationStation - press one key to start configure it, as explained in https://retropie.org.uk/docs/Controller-Configuration/.
I tried that, but holding any key, or even the mouse buttons down, ES never triggers to configure the keyboard. Controllers no problem.
Thanks for the link on starting Kodi at boot. I will just do that as 80% of the time it's where we go anyway. I thought I had seen that config but couldn't find it the other day.
-
@mitu So I lloked in the config ->> autostart and it only lists autostart ES, nothing else. I can only disable autostart ES?!?!?
I tried to edit autostart.sh, but the file does not exist. I am now lloking for an example of this file to edit.
-
so, because it is an X11 setup, I don't get the Kodi autostart option :(
I see the logic here https://github.com/RetroPie/RetroPie-Setup/blob/master/scriptmodules/supplementary/autostart.sh#L103
-
@nobodyfamous said in use keyboard for ES nav, or start Kodi on startup:
I tried that, but holding any key, or even the mouse buttons down, ES never triggers to configure the keyboard. Controllers no problem.
That's weird, this should work.
so, because it is an X11 setup, I don't get the Kodi autostart option :(
Use the DE to autostart
kodi
when the desktop starts - https://kodi.wiki/view/HOW-TO:HOW-TO:Autostart_Kodi_for_Linux#Configure_Kodi_to_autostart. -
@mitu That link to the Kodi DE stuff didn't help. I can boot into Kodi no problem, but it is not the same result as having launched Kodi from EM. When I exit Kodi, I get the blank desktop, it does not load back into ES.
Anyhow, I tried programing the keyboard again, this time with the laptop keyboard, not my wireless k400, and it worked.
This is good enough for me, it means I don't need to have the TV remote, Keyboard, and a game controller to watch netflix. Just the TV remote and keyboard will do.
-
@nobodyfamous said in use keyboard for ES nav, or start Kodi on startup:
When I exit Kodi, I get the blank desktop, it does not load back into ES.
Then create a script that runs Kodi and then EmulationStation in a loop and run it from the
autostart
folder.#!/usr/bin/env bash while true; do kodi-standalone sleep 2 emulationstation done
-
Interesting. I am not a bash wizard. Does the script wait on
kodi-standalone
until Kodi exits to runsleep
, thenemulationstation
or is that running/looping in the background?Second thought, what if you took it out of the loop? Once ES has started, it will launch & quit Kodi with the default behaviour. I feel like an error might occure when you
- boot up into kodi
- exit kodi, emulation station launches
- launch kodi from emulationstation
at #3, would ES quit to luanch kodi, and then the script and ES would both start kodi?
I guess it's an easy test. Maybe later.
as per this thread, my
~/.config/openbox/autostart
isgnome-terminal --full-screen --hide-menubar -- emulationstation
I could swap out
emulationstation
to run your bash script I think. just save the script in my home folder. -
Hey it WORKED!
~/.config/openbox/autostart
gnome-terminal --full-screen --hide-menubar -- bash /home/pi/autostart.sh
and
~/autostart.sh
(chmod +x)#!/usr/bin/env bash kodi-standalone sleep 2 emulationstation
So on boot, Kodi launches. On first Kodi exit, the script will launch ES. From then on, ES does what it does when launching Kodi and returning to itself on exit.
Thanks for your help @mitu!
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.