Readme 8-3-17

Important:  4 things you must do
  1. Program in device code 0865 into "aux" button (any other button)
  2. Put the remote.conf file in /storage/.config of MXQ Pro 4k box
  3. Reboot the MXQ
  4. Understand you are on your own from this point forward
     - There is plenty of help in the LibreElec.tv forum
       - https://forum.libreelec.tv/thread/3581-create-remote-conf-from-scratch/?pageNo=1
	   - (key codes) https://github.com/torvalds/linux/blob/master/include/uapi/linux/input-event-codes.h
	   - https://forum.libreelec.tv/ (search for info)
  
This remote.conf file is for a GE Universal Remote Control
  - Model 12404
  - Available at Walmart for $4.97
  
Remote works with at least a Henscoqi MXQ Pro 4k (and probably most MXQ Pro 4k clones)
  - S905x/Penta-Core Mali-450/1G/8G
  - running LibreELEC-S905.arm-8.2-devel-20170728215214-r26002-g9ddfaa1.img

  
Notes on Universal Remote
  - Program in code 0865 into "aux" button
    - This is the first code to turn the box on and off with the Power button
	- Other codes can be used but do not turn the box on
  - Not all the number (0-9) keys are assigned
  - More keys are available by using the Setup key (see instructions in remote package)

How this remote.conf is set up: 

	Power button turns power on and off
	
	Guide button returns to Home Page
	Ch Up button moves cursor Up
	Setup - not used in this remote (can be used to generate additional keys - see instructions in remote package)
	
	Vol dn button moves cursor left
	OK button selects what is highlighted
	Vol up button moves cursor right
	
	Menu (?) button put up the context menu (same as typing C)
	Ch down button moves cursor down
	Exit button is a back button
	
	A, B, C and D do not work on this configuration (Code 0865 does not use them)
	
	Rew = rewind
	Play = play and pause - toggles between play and pause each time you push it
	ff = fast forward
	
	rec is another back button
	stop = media stop
	Pause = pause and play - toggles between pause and play each time you push it
	
	Key #1 - Volume down (may be strange, but works for me)
	Key #2 - unused
	Key #3 - Volume up (may be strange, but works for me)
	
	Key #4 - unused
	Key #5 - Info button
	Key #6 - unused
	
	Key #7 - unused
	Key #8 - unused
	Key #9 - Shortcut to System/Settings
	
	Period key - backspace
	Key #0 - unused
    Enter key - unused
	
You can customize these keys to be any LibreElec command you want - just edit the remote.conf file

If you want to edit the file and don't know where to start, research:
   - ssh commands 
     - cd (change directory)
	 - nano remote.conf (open the file in the Nano editor)
	 - remotecfg remote.conf (initialize changes made to the remote.conf file)
  - key codes and structure of remote.conf at the Help section above in this file


Good luck.
