You are not logged in.

#1 2014-08-13 15:26:23

yet_another_martin
Member
Registered: 2014-08-13
Posts: 10

LIRC: up2date tutorial ?

Hi folks,

I tried to configure my lirc according to the Arch wiki at https://wiki.archlinux.org/index.php/LIRC, but this wiki seems to be out of date (Reason: rc.d references. Needs update to Systemd). Where can I get an up2date howto ?

I've got the following problem:
System:

 Linux 3.16.0-2-ARCH #1 SMP PREEMPT Mon Aug 4 19:04:45 CEST 2014 x86_64 GNU/Linux

My IR-Device is being recognized by the system, I can get response when pressing buttons on my remote, but lirc doesn't seem to get the remote (driver: devinput).

But let's go step by step: smile


ls -l /dev/input/by-id

returns my IR-Device as:

usb-TechnoTrend_AG_TT-USB_Infrared_Device-event-ir -> ../event19

If I do a

cat /dev/input/event19

and press some buttons on my remote, I get an answer like this:

zSzS

Sorry, the special chars are not shown here, but I think you get my point. smile
So the device is being recognized and working.

I could create a config file via

 irrecord --driver=devinput --device=/dev/input/event19 BlackFlatOne

My /etc/lirc/lircd.conf looks like this (key mappings identical to "BlackFlatOne"):

# Populated config files can be found in the lirc-remotes sub-package
# or at http://lirc.sourceforge.net/remotes/".


begin remote

  name  BlackFlatOne
  bits           56
  eps            30
  aeps          100

  one             0     0
  zero            0     0
  pre_data_bits   8
  pre_data       0x0
  gap          103999
  toggle_bit_mask 0x0

      begin codes
          KEY_POWER                0x0400040000000C 0x00000000000000
          KEY_MUTE                 0x0400040000000A 0x00000000000000
          KEY_SELECT               0x04000400000038 0x00000000000000
          KEY_Z                    0x0400040000000F 0x00000000000000
          KEY_1                    0x04000400000001 0x00000000000000
          KEY_2                    0x04000400000002 0x00000000000000
          KEY_3                    0x04000400000003 0x00000000000000
          KEY_4                    0x04000400000004 0x00000000000000
          KEY_5                    0x04000400000005 0x00000000000000
          KEY_6                    0x04000400000006 0x00000000000000
          KEY_7                    0x04000400000007 0x00000000000000
          KEY_8                    0x04000400000008 0x00000000000000
          KEY_9                    0x04000400000009 0x00000000000000
          KEY_0                    0x04000400000000 0x00000000000000
          KEY_TV                   0x0400040000001E 0x00000000000000
          KEY_LEFT                 0x04000400000011 0x00000000000000
          KEY_RIGHT                0x04000400000010 0x00000000000000
          KEY_UP                   0x04000400000020 0x00000000000000
          KEY_DOWN                 0x04000400000021 0x00000000000000
          KEY_ENTER                0x0400040000000D 0x00000000000000
          KEY_CHANNELUP            0x04000400000012 0x00000000000000
          KEY_CHANNELDOWN          0x04000400000013 0x00000000000000
          KEY_VOLUMEUP             0x0400040000002B 0x00000000000000
          KEY_VOLUMEDOWN           0x0400040000002C 0x00000000000000
          KEY_STOP                 0x0400040000000B 0x00000000000000
          KEY_RECORD               0x0400040000001F 0x00000000000000
          KEY_CAMERA               0x0400040000000E 0x00000000000000
          KEY_ESC                  0x04000400000029 0x00000000000000
      end codes

end remote

The /etc/lirc/hardware.conf looks like this:

# /etc/lirc/hardware.conf
#
#Chosen Remote Control
LOAD_MODULES=true
REMOTE="BlackFlatOne"
REMOTE_MODULES="devinput evdev"
REMOTE_DRIVER="ttusbir"
REMOTE_DEVICE="/dev/input/event19"
REMOTE_LIRCD_CONF="lircd.conf"

When I start lirc and irw, I get no output when pressing buttons on my "BlackFlatOne", so something seems to be wrong, but I don't know what I'm missing. The key mappings in the BlackFlatOne and lircd.conf are the same.

I poked around a little bit, and some posts said something about creating a udev-rule, but the official wiki doesn't, I'm afraid. Do I really need that rule? The device is responsive, so this shouldn't be a problem.



Any help is highly appreciated. smile

Last edited by yet_another_martin (2014-08-13 16:24:17)

Offline

#2 2014-08-13 17:03:58

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: LIRC: up2date tutorial ?

Have a look at https://wiki.archlinux.org/index.php/LI … e_Examples
I'm not sure if the whole article needs updating, maybe only a part: https://wiki.archlinux.org/index.php/LI … r_Accuracy

Offline

Board footer

Powered by FluxBB