[LINUX] HOW-TO get X10 OR22V RF (Radio Frequency) Remote Control to work with LIRC
#61
The problem seems to be lirc-0.9.0. I still haven't found a solution. Downgrading the kernel and the lirc version does the trick....
Reply
#62
Hey.

Thats weird becouse ive used my solution on xbmcfreak 10.1 based on 10.04 and my remote works fine except for the dubble click thing, solved it by adding remotedelay in advancesettings file
Regards
/Rico_s
Reply
#63
nebu Wrote:The problem seems to be lirc-0.9.0. I still haven't found a solution. Downgrading the kernel and the lirc version does the trick....
Downgrading is not neccesary - just:

1. rename your lirc.conf to lircd.conf.atilibusb

2. copy lircd.conf.atilibusb to /usr/share/lirc/remotes/atiusb/ overwriting the existing file.

3. eventually adding remotedelay in advancesettings file

4. Reboot....


Voila :-) (at least for me...)
Reply
#64
I can't get it work.

Here are the files:

/etc/lircd/lircd.conf
Code:
# Please make this file available to others
# by sending it to <[email protected]>
#
# this config file was automatically generated
# using lirc-0.8.4a(atilibusb) on Tue Sep  8 23:54:34 2009
#
# contributed by funnybox2006
#
# brand:  X10
# model no. of remote control: OR22V with RF USB Dongle
# devices being controlled by this remote:
# note: use atilibusb driver for this remote and set device in hardware.conf to /dev/lirc0

begin remote

  name        OR22V
  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          139982
  min_repeat      2
  toggle_bit_mask 0x80800000

      begin codes
       KEY_POWER       0xD702
       KEY_RED         0x87B2
       KEY_YELLOW      0x0934
       KEY_GREEN       0x88B3
       KEY_TEXT        0x6B96
       KEY_BLUE        0x0A35
       KEY_BACK        0xF520
       KEY_INFO        0x84AF
       KEY_UP          0xEF1A                                                                                                                                
       KEY_LEFT        0x729D                                                                                                                                
       KEY_OK          0xF31E                                                                                                                                
       KEY_RIGHT       0xF41F                                                                                                                                
       KEY_DOWN        0x77A2                                                                                                                                
       KEY_TIMESHIFTING 0x6D98                                                                                                                              
       KEY_EPG         0x0631                                                                                                                                
       KEY_DVDMENU     0xD904                                                                                                                                
       KEY_LIVETV      0x719C                                                                                                                                
       KEY_VOLUMEUP    0xDE09                                                                                                                                
       KEY_WINDOWS     0x709B                                                                                                                                
       KEY_CHANNELUP   0xE00B                                                                                                                                
       KEY_VOLUMEDOWN  0x5D88                                                                                                                                
       KEY_CHANNELDOWN 0x618C                                                                                                                                
       KEY_MUTE        0xD500                                                                                                                                
       KEY_PREVIOUS    0x76A1                                                                                                                                
       KEY_NEXT        0xF823                                                                                                                                
       KEY_REWIND      0x79A4                                                                                                                                
       KEY_PLAY        0xFA25                                                                                                                                
       KEY_FASTFORWARD 0x7BA6
       KEY_RECORD      0xFC27
       KEY_STOP        0x7DA8
       KEY_PAUSE       0xFE29
       KEY_1           0x628D
       KEY_2           0xE30E
       KEY_3           0x648F
       KEY_4           0xE510
       KEY_5           0x6691
       KEY_6           0xE712
       KEY_7           0x6893
       KEY_8           0xE914
       KEY_9           0x6A95
       KEY_*           0x8CB7
       KEY_0           0xEC17
       KEY_#           0x0D38
       KEY_CLEAR       0x85B0
       KEY_ENTER       0x0B36
      end codes

end remote


Code:
# /etc/lirc/hardware.conf
#
#Chosen Remote Control
REMOTE="OR22V"
REMOTE_MODULES=""
REMOTE_DRIVER="atilibusb"
REMOTE_DEVICE="/dev/lirc0"
REMOTE_LIRCD_CONF="/etc/lirc/lircd.conf"
REMOTE_LIRCD_ARGS=""

#Chosen IR Transmitter
TRANSMITTER="None"
TRANSMITTER_MODULES=""
TRANSMITTER_DRIVER=""
TRANSMITTER_DEVICE=""
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=""

Then i did instructions from post above.
Then:

Code:
#modprobe mceusb
#/etc/rc.d/lircd start

Diver loaded, daemon is running. Files in place. Why the hell it is NOT working? I still get the same configuration, volume buttons swapped, and many other keys miss-configured.

Same behavior in KDE. Mute button on remote types 'a' key...
Reply
#65
I also can't get any irw output..

Code:
bagheera@tux:~$ irw
aaa^[[C^[[C^[[C^[[D^[[D^[[B^[[B^[[B^[[A^[[A

pressing buttons on remote just gives me binded keyboard chars, just as i were pressing 'a' or arrows on the keyboard. That to do with that?
Reply
#66
Thumbs Up 
It seems mod blacklist does not work properly. I need to unload it manually:

Code:
rmmod ati_remote && /etc/rc.d/lircd restart

Now remote works as binded in lircd.conf and irw gives correct output.

It's good idea to put above command to /etc/rc.local

More information on wiki page:

https://wiki.archlinux.org/index.php/X10
Reply
#67
Distribution: Debian Squeeze
Linux Kernel: 3.2.0-0.bpo.3-amd64
Lirc 0.9.0 (compiled from source)
XBMC Eden


Sorry for bringing up an old thread but I really need to get the hang of this now.

I can get irw response so lirc seems to be working with the following configuration:

lircd.conf
Code:
# Please make this file available to others
# by sending it to <[email protected]>
#
# this config file was automatically generated
# using lirc-0.8.4a(atilibusb) on Tue Sep  8 23:54:34 2009
#
# contributed by funnybox2006, modified by nebu
#
# brand:  X10
# model no. of remote control: OR22V with RF USB Dongle
# devices being controlled by this remote:
# note: use atilibusb driver for this remote and set device in hardware.conf to /dev$

begin remote

  name        mceusb
  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          139982
  min_repeat      2
  toggle_bit_mask 0x80800000

     begin codes
       Power                    0xD702
       Red                      0x87B2
       Yellow                0x0934
       Green                0x88B3
       Teletext             0x6B96
       Blue                    0x0A35
       Back                 0xF520
       More              0x84AF
       Up                   0xEF1A
       Left                     0x729D
       OK                   0xF31E
       Right                0xF41F
       Down                 0x77A2
       KEY_TIMESHIFTING     0x6D98
       Guide                0x0631
       DVD                  0xD904
       LiveTV               0x719C
       VolUp                0xDE09
       Home                 0x709B
       ChanUp               0xE00B
       VolDown              0x5D88
       ChanUp               0x618C
       Mute                 0xD500
       Replay               0x76A1
       Skip                 0xF823
       Rewind               0x79A4
       Play                 0xFA25
       Forward              0x7BA6
       Record               0xFC27
       Stop                 0x7DA8
       Pause                0xFE29
       One                  0x628D
       Two                  0xE30E
       Three                0x648F
       Four                 0xE510
       Five                 0x6691
       Six                  0xE712
       Seven                    0x6893
       Eight                0xE914
       Nine                 0x6A95
       Star                 0x8CB7
       Zero                 0xEC17
       Hash                 0x0D38
       Clear                0x85B0
       Enter                0x0B36
      end codes


end remote

Code:
# /etc/lirc/hardware.conf
#
#Chosen Remote Control
REMOTE="Linux input layer (/dev/input/eventX)"
REMOTE_MODULES=""
REMOTE_DRIVER="atilibusb"
REMOTE_DEVICE="/dev/lirc0"
REMOTE_SOCKET=""
REMOTE_LIRCD_CONF="/etc/lirc/lircd.conf"
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=""


However there is no response at all within XBMC with the following Lircmap.xml and Keyboard.xml (located in userdata and userdata/keymaps in my ~/.xbmc folder)

Code:
<!-- This file contains the mapping of LIRC keys to XBMC keys used in Keymap.xml  -->
<!--                                                                              -->
<!-- How to add remotes                                                           -->
<!-- <remote device="name_Lirc_calls_the_remote">                                 -->
<!--                                                                              -->
<!-- For the commands the layout following layout is used                         -->
<!-- <XBMC_COMMAND>LircButtonName</XBMC_COMMAND>                                  -->
<!--                                                                              -->
<!-- For a list of XBMC_COMMAND's check out the <remote> sections of keymap.xml   -->
<!--                                                                              -->
<!--                              Logitech Harmony                                -->
<!--                          loggn.de - Nico Hartung                             -->
<!--                        http://www.loggn.de/?p=7127                           -->
<!--                                                                              -->
<lircmap>
    <remote device="mceusb">
        <!-- no Display -->
        <power>Power</power>
        <teletext>Teletext</teletext>
        <menu>DVD</menu>
        <back>Back</back>
        <info>More</info>
        <guide>Guide</guide>
        <red>Red</red>
        <green>Green</green>
        <yellow>Yellow</yellow>
        <blue>Blue</blue>
        <left>Left</left>
        <right>Right</right>
        <up>Up</up>
        <down>Down</down>
        <select>OK</select>
        <volumeplus>VolUp</volumeplus>
        <volumeminus>VolDown</volumeminus>
        <pageplus>ChanUp</pageplus>
        <pageminus>ChanDown</pageminus>
        <mute>Mute</mute>
        <play>Play</play>
        <pause>Pause</pause>
        <stop>Stop</stop>
        <forward>Forward</forward>
        <reverse>Rewind</reverse>
        <skipplus>Skip</skipplus>
        <skipminus>Replay</skipminus>
        <record>Record</record>
        <one>One</one>
        <two>Two</two>
        <three>Three</three>
        <four>Four</four>
        <five>Five</five>
        <six>Six</six>
        <seven>Seven</seven>
        <eight>Eight</eight>
        <nine>Nine</nine>
        <zero>Zero</zero>
        <clear>Clear</clear>
        <enter>Enter</enter>
        <!-- with Display -->
        <display>Aspect</display>
        <start>Home</start>
        <myvideo>Videos</myvideo>
        <mymusic>Music</mymusic>
        <mypictures>Pictures</mypictures>
        <mytv>TV</mytv>
        <!-- old versions of harmony -->
        <star>Star</star>
        <hash>Hash</hash>
    </remote>
</lircmap>

Keyboard.xml

Another strange thing is that if I re-enable ati_remote through modprobe, irw stops working but NOW the remote works partially in XBMC. Up/Down/Left/Right and backspace seems to work (It wants to remove movies from library for example).

So what's going on here. What am I missing?

oh... here's the output from irw when ati_remote is disabled:

Code:
0000001477a20000 00 Down mceusb
0000001477a20000 00 Down mceusb
0000001477a20000 01 Down mceusb
0000001477a20000 02 Down mceusb
0000001477a20000 03 Down mceusb
0000001477a20000 00 Down mceusb
0000001477a20000 01 Down mceusb
0000001477a20000 02 Down mceusb
00000014729d0000 00 Left mceusb
00000014729d0000 01 Left mceusb
00000014f41f0000 00 Right mceusb
00000014f41f0000 01 Right mceusb
00000014f41f0000 02 Right mceusb
00000014ef1a0000 00 Up mceusb
00000014ef1a0000 01 Up mceusb
00000014ef1a0000 02 Up mceusb
00000014ef1a0000 03 Up mceusb
00000014ef1a0000 04 Up mceusb
00000014ef1a0000 05 Up mceusb
00000014ef1a0000 06 Up mceusb
Reply
#68
Hi guys.Sorry for hi-jacking this thread but I wasn't sure where to post and I think you all got one of these OR22V remotes and might be able to help me.

I bought this remote and I have configured it the way I want and it works great. But I have one small issue: If you tap and hold a key on the remote the little red light in the upper right corner of the remote constantly shines until you release your finger from the button. This is the case for all but two buttons on my remote, the middle (windows button, mine says "Go!") and the up arrow button. If I hold any of these buttons for more than 2 secs or so the little red light in the upper right corner changes from constant shine to two fast blinks and then the remote hangs for a few seconds and no other button pushes works.

This is irritating if I want to scroll up in XBMC in a large list, because then it hangs and I have to wait a few seconds and start to tap and hold again and so on. This is not the case when tap and holding the down, left, right arrow button (or any other button, except the middle button) , then I can scroll for as long as I want without any hanging.

Do any of you have this issue and perhaps a workaround?

/ Thanks in advance, Johan
Reply

Logout Mark Read Team Forum Stats Members Help
[LINUX] HOW-TO get X10 OR22V RF (Radio Frequency) Remote Control to work with LIRC0