b1432918
Posts: 2
Joined: Sat Jan 24, 2015 4:45 am

OS Selection at Boot using IR remote or Gamepad

Sat Jan 24, 2015 4:54 am

I have OpenElec and Retropie running on the same SD card. At boot on the NOOBS screen I would like to be able to select between operating systems using either my MCE IR remote or XBOX360 usb game pad. This way I could eliminate the need for a keyboard or mouse. Is there a way to do this?

ghans
Posts: 7878
Joined: Mon Dec 12, 2011 8:30 pm
Location: Germany

Re: OS Selection at Boot using IR remote or Gamepad

Sat Jan 24, 2015 8:12 am

This is not easy to do , you propably need to recompile
NOOBS from scratch after changing the buildroot configuration.

ghans
• Don't like the board ? Missing features ? Change to the prosilver theme ! You can find it in your settings.
• Don't like to search the forum BEFORE posting 'cos it's useless ? Try googling : yoursearchtermshere site:raspberrypi.org

User avatar
B.Goode
Posts: 8987
Joined: Mon Sep 01, 2014 4:03 pm
Location: UK

Re: OS Selection at Boot using IR remote or Gamepad

Sat Jan 24, 2015 8:26 am

b1432918 wrote:I have OpenElec and Retropie running on the same SD card. At boot on the NOOBS screen I would like to be able to select between operating systems using either my MCE IR remote or XBOX360 usb game pad. This way I could eliminate the need for a keyboard or mouse. Is there a way to do this?
"Is there a way to do this?" Maybe.

"Can I - that is @b1432918 - do this?" Perhaps not, because if you knew how you probably wouldn't be asking...

NOOBS is an installer, not a full Operating System. But it is based on a stripped-down version of linux. All the source-code for NOOBS, together with instructions for re-building it, are published in its github repository - https://github.com/raspberrypi/noobs So with enough background knowledge you could build your own version of NOOBS with support for your own input devices.

Alternatively, have you tried the game pad? If it gets detected as some sort of input device it might 'just work' - all NOOBS needs at this stage is UP, DOWN and FIRE.

A different approach might be to pre-set the OS you want next before you close down and reboot the system using the documentation here - https://github.com/raspberrypi/noobs#ho ... -partition

b1432918
Posts: 2
Joined: Sat Jan 24, 2015 4:45 am

Re: OS Selection at Boot using IR remote or Gamepad

Tue Jan 27, 2015 4:37 pm

I tried the gamepad. It doesn't work :(
A different approach might be to pre-set the OS you want next before you close down and reboot the system using the documentation here - https://github.com/raspberrypi/noobs#ho ... -partition
With this solution how would I be able to swap between the OS without editing the autoboot.txt file? It seems like this would only allow me to use one partition.

User avatar
procount
Posts: 1850
Joined: Thu Jun 27, 2013 12:32 pm
Location: UK

Re: OS Selection at Boot using IR remote or Gamepad

Wed Jan 28, 2015 10:01 am

You will have to rebuild NOOBS and include a driver for the gamepad.
This userspace driver looks like it can convert gamepad events into keypresses that can be used with all linux software, so it might work with the NOOBS recovery program.
http://pingus.seul.org/~grumbel/xboxdrv/xboxdrv.html
https://github.com/Grumbel/xboxdrv
https://help.ubuntu.com/community/Xbox3 ... lessIssues
Looks like you will also need to add libusb and udev to make it work.
PINN - NOOBS with the extras... https://www.raspberrypi.org/forums/viewtopic.php?f=63&t=142574

User avatar
B.Goode
Posts: 8987
Joined: Mon Sep 01, 2014 4:03 pm
Location: UK

Re: OS Selection at Boot using IR remote or Gamepad

Wed Jan 28, 2015 10:41 am

b1432918 wrote:I tried the gamepad. It doesn't work :(
A different approach might be to pre-set the OS you want next before you close down and reboot the system using the documentation here - https://github.com/raspberrypi/noobs#ho ... -partition
With this solution how would I be able to swap between the OS without editing the autoboot.txt file? It seems like this would only allow me to use one partition.
I imagined that perhaps you would write a small utility to preset the autoboot.txt configuration with a graphical interface that could be manipulated by a device with limited controls like the remote or the gamepad. That utility could run under the control of a running operating system, so you would not need any changes to NOOBS.

As an example, you could look at the script for the raspi-config utility which is available in /usr/bin/raspi-config under Raspbian. The text-mode gui is created by using a utility called whiptail.

(I admit I have no idea how to implement such a utility under OpenElec or RetroPie - just throwing out ideas that might inspire you to find a solution.)

Return to “Beginners”