Remote Configuration

Discussion in 'ZIDOO X9' started by DragonFly, Mar 1, 2015.

  1. DragonFly

    DragonFly Member

    I primarily use the X9 as a KODI media-player. The remote however, is "out of the box" not suited for my wishes. I needed no change that.
    • First I needed to figure out the scan-codes for the remote. They can be found in \system\usr\keylayout\Vendor_3697_Product_0001.kl.
    • Secondly I needed to find out how Kodi interprets them. I used the Keymap Editor add-on.
    • I also tested the remote on a Newsmy NU-3001 Car DVD player which, to my surprise, read ALL the IR-codes, including the ones the Zidoo don't map. The NU-3001 has a nifty little program called "KeyEditor" which gave me the results:
      KeyEdit.jpg

    This is the comparison table:
    Code:
    Name    Scancode   Keycode       KODI-IR  NU3001-IR
    1            2        1           61489    196609
    2            3        2           61490    196610
    3            4        3           61491    196611
    4            5        4           61492    196612
    5            6        5           61493    196613
    6            7        6           61494    196614
    7            8        7           61495    196615
    8            9        8           61496    196616
    9           10        9           61497    196617
    0           11        0           61488    196608
    OK          28      ENTER         61453    196621
    Home       102      HOME          N/A      196634
    Up         103      DPAD_UP       61568    196619
    PageUp     104      PAGE_UP       61572    196638
    Left       105      DPAD_LEFT     61570    196624
    Right      106      DPAD_RIGHT    61571    196625
    Down       108      DPAD_DOWN     61569    196622
    PageDown   109      PAGE_DOWN     61573    196639
    Mute       113      VOLUME_MUTE   N/A      196675
    VolDown    114      VOLUME_DOWN   61485    196636
    VolUp      115      VOLUME_UP     61483    196629
    Power(red) 116      POWER         N/A      196685
    Menu       139      MENU          61656    196677
    Return     158      BACK          61448    196674
    16:9       372      ASPECT_RATIO  N/A      196699
    TV         377      TV            N/A      196627
    Display    431      DISPLAY_MODE  N/A      196676
    Mouse      N/A      N/A           N/A      196691
    


    Unfortunately not all buttons can be used by Kodi, but with the creation of a remote.xml which must be placed in \sdcard\Android\data\org.xbmc.kodi\files\.kodi\userdata\keymaps\remote.xml , you can assign some numeric (or other) buttons to do a task. This suits my needs. Feel free to make your own.

    remote.xml:
    Code:
    <?xml version="1.0" encoding="utf-8"?>
    <keymap>
       <!--  -->
       <global>
         <keyboard>
           <key id="61488">ActivateWindow(Home)</key> <!-- 0 -->
           <key id="61572">pageup</key> <!-- PAGEUP -->
           <key id="61573">pagedown</key> <!-- PAGEDOWN -->
           <key id="61489">playpause</key> <!-- 1 -->
           <key id="61490">stop</key> <!-- 2 -->
           <key id="61491">Info</key> <!-- 3 -->
         </keyboard>
       </global>
       <fullscreenvideo>
         <keyboard>
           <key id="61656">ActivateWindow(subtitlesearch)</key> <!-- MENU -->
           <key id="61572">ZoomIn</key> <!-- PAGEUP -->
           <key id="61573">ZoomOut</key> <!-- PAGEDOWN -->
           <key id="61448">FullScreen</key> <!-- BACK -->
         </keyboard>
       </fullscreenvideo>
    </keymap>


    Anyway, knowing the remote seems to be working on other Android devices and Apps and IR-codes can be fully used (NU-3001), I'm waiting for remote configuration tools/enhancements from the Zidoo developers:
    • For instance, it is possible to haven the "HOME" button work in android AND in Kodi. See the Extra Tip on http://www.minixforum.com/threads/remap-keys-for-xbmc.2868/. Unfortunately I can't change the Generic.kcm atm
    • Another possibility is to add support for other remote protocols like the RC6 (MCE remotes). According to dmesg several IR-protocols are initialized.
      Code:
      0.850188] lirc_dev: IR Remote Control driver registered, major 253
      0.854634] IR NEC protocol handler initialized
      0.857762] IR RC5(x) protocol handler initialized
      0.861069] IR RC6 protocol handler initialized
      0.864196] IR JVC protocol handler initialized
      0.867317] IR Sony protocol handler initialized
      0.870503] IR RC5 (streamzap) protocol handler initialized
      0.874347] IR MCE Keyboard/mouse protocol handler initialized
      0.878371] IR LIRC bridge handler initialized
      It probably needs the appropriate layout in \system\usr\keylayout\
     
    Last edited: Mar 5, 2015
    mirror and Tech OD like this.
  2. freeroc

    freeroc Active Member

    attached the file
     

    Attached Files:

  3. DragonFly

    DragonFly Member

    Corrected
     
  4. Geon

    Geon New Member

    In case anyone else needs to make /system writable

    This makes it writable
    mount -o rw,remount -t ext4 /dev/block/platform/mstar_mci.0/by-name/system /system

    This puts it back to RO
    mount -o ro,remount -t ext4 /dev/block/platform/mstar_mci.0/by-name/system /system
     
    bovoro likes this.

Share This Page