Forum

Full Version: X10 Remote
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4
Hey,

I have a X10 remote and currently it does not work with XBian. I've tested it successfully on my debian pc with the standard lirc package and it is working fine. I tried copying the configuration files to my RPi but the xbian-lirc crashes as soon as I start irw. The remote uses the atilibusb driver. I cannot test the mode2 command from the wiki (mode2 -H atilibusb), because mode2 says it doesn't support that hardware yet.

I also managed to install the original lirc package on the RPi via apt-get. irw did recognize my button presses on the remote, but as you might know, lirc conflicts with xbian-lirc and therefore xbian-update. Removing xbian-update breaks xbmc, so this is no alternative...

My XBian version is the currently recommended one.

Is it possible to get this remote working? What additional information do you need? What can I try next? Thanks in advance.
Can you share the files that you used in the working config?
lircd.conf
Code:
# Please make this file available to others
# by sending it to <lirc@bartelmus.de>
#
# this config file was automatically generated
# using lirc-0.8.4a(atilibusb) on Mon Apr  6 08:53:57 2009
#
# contributed by
#
# brand: PC-Funkfernbedienung X10
# model no. of remote control:
# devices being controlled by this remote:
#

begin remote

  name  x10
  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          139990
  min_repeat      2
#  toggle_bit_mask 0x80800000

      begin codes
          livetv                   0xF11C
          rectv                    0x6D98
          photo                    0xDA05
          music                    0x5B86
          dvdmenu                  0xD904
          video                    0x82AD
          audio                    0x0732
          angle                    0x89B4
          title                    0x0A35
          subtitle                 0x88B3
          up                       0x4D78
          down                     0xC5F0
          left                     0xF21D
          right                    0x749F
          ok                       0xF31E
          1                        0x628D
          2                        0xE30E
          3                        0x648F
          4                        0xE510
          5                        0x6691
          6                        0xE712
          7                        0x6893
          8                        0xE914
          9                        0x6A95
          0                        0xEC17
          asterisk                 0x8CB7
          hash                     0x0D38
          world                    0x709B
          rewind                   0xF924
          play                     0x7AA5
          forward                  0xFB26
          pause                    0x7EA9
          previous                 0xF621
          next                     0x78A3
          stop                     0xFD28
          record                   0x7CA7
          off                      0xD702
          guide                    0x86B1
          text                     0xEB16
          volume+                  0x5E89
          volume-                  0xDD08
          mute                     0x5580
          program+                 0xE00B
          program-                 0x618C
          back                     0xF520
          info                     0x84AF

      end codes

end remote

I don't have access to the hardware.conf right now, but essentially all I changed was the driver section from default to atilibusb.
Please post that one as well, when you have time.
Also share a lsusb, dmesg, and cat /proc/bus/input/devices output with us.
I'm using a X10 too, but its not working properly

hardware.conf is the standard file, is just updated the default.conf (not the custom.conf):
Terminal
# /etc/lirc/hardware/default.conf
#
# Arguments which will be used when launching lircd
#LIRCD_ARGS=""

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

#Don't start irexec, even if a good config file seems to exist.
#START_IREXEC=false

#Try to load appropriate kernel modules
#LOAD_MODULES=false

# Run "lircd --driver=help" for a list of supported drivers.
DRIVER="atilibusb"
# usually /dev/lirc0 is the correct setting for systems using udev
#DEVICE=""
#MODULES=""

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

lircd.conf
Terminal
include "/etc/lirc/remotes/devinput.conf"
include "/etc/lirc/remotes/xbox.conf"
include "/etc/lirc/remotes/smt1000t.conf"
include "/etc/lirc/remotes/srm7500.conf"
include "/etc/lirc/remotes/x10.conf"

the x10.conf is the same as posted above

lsusb
Terminal
Bus 001 Device 002: ID 0424:9512 Standard Microsystems Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp.
Bus 001 Device 004: ID 0bc7:0006 X10 Wireless Technology, Inc. Wireless Transceiver (ACPI-compliant)

cat /proc/bus/input/devices
Terminal
I: Bus=0003 Vendor=0bc7 Product=0006 Version=0100
N: Name="X10 WTI RF receiver"
P: Phys=usb-bcm2708_usb-1.3/input0
S: Sysfs=/devices/platform/bcm2708_usb/usb1/1-1/1-1.3/1-1.3:1.0/rc/rc0/input0
U: Uniq=
H: Handlers=kbd event0
B: PROP=0
B: EV=100013
B: KEY=c00 0 0 0 108fc030 2006049 0 0 0 4 8000 180 c0000001 9e1680 0 0 10000ffc
B: MSC=10

I: Bus=0003 Vendor=0bc7 Product=0006 Version=0100
N: Name="X10 WTI RF receiver mouse"
P: Phys=usb-bcm2708_usb-1.3/input1
S: Sysfs=/devices/platform/bcm2708_usb/usb1/1-1/1-1.3/1-1.3:1.0/input/input1
U: Uniq=
H: Handlers=mouse0 event1
B: PROP=0
B: EV=7
B: KEY=1b0000 0 0 0 0 0 0 0 0
B: REL=3

dmesg is attached


I can use the left-right and up-down button and the power button, but all other keys are without function.
got any ideas?
If you follow my guide on our wiki you can definitely create a working lircmap.xml
would be a good idea....but:
Terminal
mode2: could not get file information for /dev/lirc0
mode2: default_init(): No such file or directory
So the hardware.conf isn't working? I though you said it did?
I can use the up/down/left/right keys on my remote, but nothing more.... so I guess its working?!?
If mode2 isn't working than Lirc isn't working. Then you try this: http://forum.xbian.org/thread-414-post-4192.html#pid4192
ok, its acting like a "keyboard", but "OK" doenst send any command.
other keys does:
Terminal
18:18:26 T:3042840576 DEBUG: Keyboard: scancode: 69, sym: 0114, unicode: 0000, modifier: 0
18:18:26 T:3042840576 DEBUG: OnKey: left (f082) pressed, action is Left
18:18:27 T:3042840576 DEBUG: Keyboard: scancode: 6a, sym: 0113, unicode: 0000, modifier: 0
18:18:27 T:3042840576 DEBUG: OnKey: right (f083) pressed, action is Right
18:18:27 T:3042840576 DEBUG: Keyboard: scancode: 67, sym: 0111, unicode: 0000, modifier: 0
18:18:27 T:3042840576 DEBUG: OnKey: up (f080) pressed, action is Up
18:18:28 T:3042840576 DEBUG: Keyboard: scancode: 6c, sym: 0112, unicode: 0000, modifier: 0
18:18:28 T:3042840576 DEBUG: OnKey: down (f081) pressed, action is Down
18:18:30 T:3042840576 DEBUG: Keyboard: scancode: 72, sym: 0127, unicode: 0000, modifier: 0
18:18:30 T:3042840576 DEBUG: OnKey: f14 (f09d) pressed, action is
18:18:31 T:3042840576 DEBUG: Keyboard: scancode: 73, sym: 00af, unicode: 0000, modifier: 0
18:18:31 T:3042840576 DEBUG: OnKey: volume_up (f0b9) pressed, action is VolumeUp

any ideas? btw. I know that the x10 can work with lirc, I installed it on my laptop some time ago...
In this topic i explained a bit how you can make a custom lircmap.xml http://forum.xbian.org/thread-414-post-4247.html#pid4247
yes, I did that (good thread btw), but still most keys on my remote aren't "working" at all....if I press them ("ok" for example) in the xbmc-debug-log nothing happens...
so I cant really generate a fully working remote.xml.
Did using the atilibusb module work for you?
Pages: 1 2 3 4
Reference URL's