Kodi Community Forum

Full Version: Success: Cheap Wireless-Remote via Lirc
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Using XBMC in the version that was installed with Ubuntu 10.10...

Yesterday my wireless remote arrived ...

http://www.pollin.de/shop/dt/MzIyODcyOTk...r_X10.html

This remote is sold in germany by Pollin-Elektronik. It uses a 433MHz-system for transmission. It is a medion-product, propably sold with ALDI-computers, now available for about 8 euros.

I have found many things in google, and after some hours i got the first results.

The first problem was that XBMC did not recognize any lirc, something had changed in lirc, so the startup-command for xbmc had to be changed to:

xbmc --lircdev /var/run/lirc/lircd

I changed this for the icon and the autostart-command i had inserted, then my remote was recognized by xbmc.

The second problem was that i could not get the "back"-key to work. The command bound to that key was written with two upper case characters. After hours of searching i tried to change all characters to lower case, and yes, that was the solution...

Now all functions work nearly as expected. The only thing is that when i use my normal keyboard, the "Backspace"-key works in every circumstance, the back-button of the remote does not. I can exit the fullscreen-video with the backspace-key, the video keeps on running as a mini-creen, i can scroll the filelist then. I will try to search the keyboard-xml-file for the solution of that thing.

I am writing this on my windows-computer, but will upload my lirc-configs and my xml-files when i start my mediacenter today or tomorow, so be patient Smile

I will add a list of links to some websites i have used, too ...
My config-files:

hardware.conf in /etc/lirc/
Code:
# /etc/lirc/hardware.conf
#
#Chosen Remote Control
REMOTE="pollinx10"
REMOTE_MODULES=""
REMOTE_DRIVER="atilibusb"
REMOTE_DEVICE=""
REMOTE_SOCKET=""
REMOTE_LIRCD_CONF="atiusb/lircd.conf.atilibusb"
REMOTE_LIRCD_ARGS=""

#Chosen IR Transmitter
TRANSMITTER="None"
TRANSMITTER_MODULES=""
TRANSMITTER_DRIVER=""
TRANSMITTER_DEVICE=""
TRANSMITTER_SOCKET=""
TRANSMITTER_LIRCD_CONF=""
TRANSMITTER_LIRCD_ARGS=""

#Enable lircd
START_LIRCD="true"

#Don't start lircmd even if there seems to be a good config file
#START_LIRCMD="false"

#Try to load appropriate kernel modules
LOAD_MODULES="true"

# Default configuration files for your hardware if any
LIRCMD_CONF=""

#Forcing noninteractive reconfiguration
#If lirc is to be reconfigured by an external application
#that doesn't have a debconf frontend available, the noninteractive
#frontend can be invoked and set to parse REMOTE and TRANSMITTER
#It will then populate all other variables without any user input
#If you would like to configure lirc via standard methods, be sure
#to leave this set to "false"
FORCE_NONINTERACTIVE_RECONFIGURATION="false"
START_LIRCMD=""

lircd.conf in /etc/lirc
Code:
# Please make this file available to others
# by sending it to <[email protected]>
#
# this config file was automatically generated
# using lirc-0.8.7-pre3(atilibusb) on Mon Jan 10 14:28:32 2011
#
# contributed by Hartmut Wagener
#
# brand: Pollin/Medion   /root/lircd.conf
# model no. of remote control: 40009936
# devices being controlled by this remote: Computer
#

begin remote

  name  pollinx10
  bits           16
  eps            30
  aeps          100

  one             0     0
  zero            0     0
  pre_data_bits   8
  pre_data       0x14
  post_data_bits  16
  post_data      0x0
  gap          40006
  min_repeat      8
  suppress_repeat 3
#  uncomment to suppress unwanted repeats
  toggle_bit_mask 0x80800000

      begin codes
          KEY_0                    0x6C97
          KEY_1                    0xE20D
          KEY_2                    0x638E
          KEY_3                    0xE40F
          KEY_4                    0x6590
          KEY_5                    0xE611
          KEY_6                    0x6792
          KEY_7                    0xE813
          KEY_8                    0x6994
          KEY_9                    0xEA15
          KEY_POWER                0xD702
          KEY_TV                   0x012C
          KEY_VIDEO                0x82AD
          KEY_CD                   0xD904
          KEY_AUDIO                0x5B86
          KEY_RADIO                0x032E
          KEY_TAPE                 0x5A85
          KEY_INFO                 0x042F
          KEY_DOCUMENTS            0x86B1
          KEY_TEXT                 0xEB16
          KEY_MENU                 0x6E99
          KEY_BACK                 0xF520
          KEY_UP                   0xCDF8
          KEY_DOWN                 0xC5F0
          KEY_SELECT               0xF01B
          KEY_ENTER                0x739E
          KEY_VOLUMEUP             0xDE09
          KEY_VOLUMEDOWN           0x5D88
          KEY_CHANNELUP            0xE00B
          KEY_CHANNELDOWN          0x618C
          KEY_MUTE                 0xD500
          KEY_REFRESH              0x719C
          KEY_RED                  0x0732
          KEY_GREEN                0x88B3
          KEY_YELLOW               0x0934
          KEY_BLUE                 0x8AB5
          KEY_STOP                 0xFD28
          KEY_PAUSE                0x7EA9
          KEY_PLAY                 0xFA25
          KEY_PREVIOUS             0x76A1
          KEY_NEXT                 0xF823
          KEY_EJECTCD              0x6D98
          KEY_REWIND               0xF924
          KEY_FASTFORWARD          0x7BA6
          KEY_RECORD               0xFC27
          KEY_LEFT                 0x729D
          KEY_RIGHT                0xF41F
      end codes

end remote
Lircmap.xml in home/.xbmc/userdata
Code:
<lircmap>
<remote device="pollinx10">
<play>KEY_PLAY</play>
<pause>KEY_PAUSE</pause>
<stop>KEY_STOP</stop>
<forward>KEY_FASTFORWARD</forward>
<reverse>KEY_REWIND</reverse>
<left>KEY_LEFT</left>
<right>KEY_RIGHT</right>
<up>KEY_UP</up>
<down>KEY_DOWN</down>
<select>KEY_SELECT</select>
<select>KEY_ENTER</select>
<pageplus>KEY_CHANNELUP</pageplus>
<pageminus>KEY_CHANNELDOWN</pageminus>
<back>KEY_BACK</back>
<menu>KEY_MENU</menu>
<title>KEY_TV</title>
<info>KEY_INFO</info>
<skipplus>KEY_NEXT</skipplus>
<skipminus>KEY_PREVIOUS</skipminus>
<display>KEY_MUTE</display>
<record>KEY_RECORD</record>
<volumeplus>KEY_VOLUMEUP</volumeplus>
<volumeminus>KEY_VOLUMEDOWN</volumeminus>
<mute>KEY_MUTE</mute>
<power>KEY_POWER</power>
<one>KEY_1</one>
<two>KEY_2</two>
<three>KEY_3</three>
<four>KEY_4</four>
<five>KEY_5</five>
<six>KEY_6</six>
<seven>KEY_7</seven>
<eight>KEY_8</eight>
<nine>KEY_9</nine>
<zero>KEY_0</zero>
<mymusic>KEY_AUDIO</mymusic>
<mypictures>KEY_TAPE</mypictures>
<myvideo>KEY_VIDEO</myvideo>
<playlist>KEY_TEXT</playlist>
<guide>KEY_DOCUMENTS</guide>
</remote>
</lircmap>
remote.xml in home/.xbmc/userdate/keymaps
Code:
...
      <back>parentdir</back>
...