You are not logged in.

#1 2015-06-18 12:11:45

beanaroo
Member
Registered: 2013-03-05
Posts: 39

LIRC not working on Arch Linux?

I spent the entire evening trying to get LIRC working.

Following the wiki, irrecord seems to work, picking up remote keypresses and creating a config file but a different file each time using the same device.
mode2 shows no output whatsoever and neither does irw. I tried two different IR receivers and 3 different remotes on 2 different protocols.
There are no complaints in the journal nor via dmesg.

I decided to try an Ubuntu live CD and within 5 minutes I had LIRC (0.9.0) working using the same steps from the Arch wiki. Irrecord creates a consistent config file. Mode2 and irw respond.
log outputs are identical to that of Arch.

Where do I report this? Arch Linux packager? LIRC developers?

I'm really sad that I have to redo my media center using a different distro, I've been a happy Arch user for a while now.

Offline

#2 2015-06-18 12:53:49

alezost
Member
Registered: 2013-10-17
Posts: 61

Re: LIRC not working on Arch Linux?

It will probably not make you happy, but I don't have any problems with
lirc on Arch.  I didn't generate a config file, because a general
"devinput.conf" worked for me.  This is how my lirc daemon is started
(a command used inside a systemd service):

/usr/bin/lircd --nodaemon --driver devinput --device "name=i2c*"

What is the exact problem you have?  How do you start the lirc daemon?
What is its output?  What are your configs?, etc.

Offline

#3 2015-06-18 13:30:24

beanaroo
Member
Registered: 2013-03-05
Posts: 39

Re: LIRC not working on Arch Linux?

Thanks for responding, alezost.

I'm starting the provided lircd service. I have tried the devinput config as well as generating one with irrecord:

begin remote

  name  AudioSonic_DVB-T.conf
  driver devinput
  bits           64
  eps            30
  aeps          100

  one             0     0
  zero            0     0
  gap          11954
  toggle_bit_mask 0x0

      begin codes
          KEY_NUMERIC_0            0x0672000001000258 0x0226000001000226
          KEY_NUMERIC_1            0x0672000001000258 0x0226000001000226
          KEY_NUMERIC_2            0x0672000001000226 0x0226000001000258
          KEY_NUMERIC_3            0x0672000001000258 0x0226000001000258
          KEY_NUMERIC_4            0x0672000001000258 0x0226000001000226
          KEY_NUMERIC_5            0x0672000001000226 0x0226000001000258
          KEY_NUMERIC_6            0x06A4000001000226 0x0226000001000258
          KEY_NUMERIC_7            0x06A4000001000226 0x0226000001000258
          KEY_NUMERIC_8            0x0672000001000258 0x01F4000001000258
          KEY_NUMERIC_9            0x0672000001000258 0x01F4000001000258
          KEY_OK                   0x0672000001000258 0x01F4000001000258
          KEY_LEFT                 0x0672000001000258 0x01F4000001000258
          KEY_RIGHT                0x0672000001000258 0x01F4000001000258
          KEY_UP                   0x0672000001000258 0x01F4000001000258
          KEY_DOWN                 0x0672000001000258 0x0226000001000258
          KEY_EXIT                 0x0672000001000258 0x0226000001000226
          KEY_INFO                 0x0672000001000258 0x01F4000001000258
          KEY_MENU                 0x0672000001000226 0x0258000001000226
          KEY_EPG                  0x0672000001000258 0x0258000001000226
          KEY_VOLUMEUP             0x0672000001000226 0x0226000001000258
          KEY_VOLUMEDOWN           0x0672000001000226 0x0226000001000258
          KEY_CHANNELUP            0x0672000001000226 0x0226000001000258
          KEY_CHANNELDOWN          0x0672000001000258 0x0226000001000258
          KEY_BACK                 0x0672000001000258 0x0226000001000258
          KEY_MUTE                 0x0672000001000258 0x01F4000001000258
          KEY_SUBTITLE             0x0672000001000258 0x0226000001000258
          KEY_REWIND               0x06A4000001000226 0x0226000001000258
          KEY_PLAY                 0x0672000001000258 0x0226000001000226
          KEY_FASTFORWARD          0x0672000001000258 0x01F4000001000258
          KEY_PREVIOUS             0x0672000001000258 0x0226000001000258
          KEY_PAUSE                0x0672000001000258 0x0226000001000226
          KEY_NEXT                 0x0672000001000258 0x0226000001000226
          KEY_RECORD               0x0672000001000226 0x0258000001000226
          KEY_STOP                 0x06A4000001000226 0x0226000001000258
          KEY_FILE                 0x0672000001000258 0x01F4000001000258
          KEY_MEDIA                0x0672000001000226 0x0226000001000258
          KEY_PROG3                0x0672000001000258 0x0226000001000226
          KEY_PROG4                0x0672000001000258 0x01F4000001000258
          KEY_BOOKMARKS            0x0672000001000258 0x0226000001000226
          KEY_ZOOM                 0x0672000001000258 0x0226000001000258
          KEY_RED                  0x0672000001000258 0x01F4000001000258
          KEY_GREEN                0x06A4000001000226 0x0226000001000258
          KEY_YELLOW               0x0672000001000258 0x0226000001000258
          KEY_BLUE                 0x06A4000001000226 0x0226000001000258
          KEY_TEXT                 0x0672000001000258 0x0226000001000226
          KEY_POWER                0x06A4000001000226 0x0226000001000258
      end codes

end remote

This config is different everytime I run irrecord, as opposed to when I use it on Ubuntu, which generates a consistent file each time.
I tried copying it across as recommended by this post.
My problem is mode2 and irw won't give any output. ir-keytable -t does.

Last edited by beanaroo (2015-06-18 13:31:06)

Offline

#4 2015-06-18 16:03:33

alezost
Member
Registered: 2013-10-17
Posts: 61

Re: LIRC not working on Arch Linux?

As I have never generated a config file, I'm afraid I can't help you with that.  However I believe that you don't need to do it.  I think you just need to find your driver and device.  See http://www.lirc.org/html/configuration- … and-device (I recommend to study this configuration guide as it might answer your questions).

By the way, the current version (used in Arch) has some meaning changes comparing to 0.9.0 version that works for you in Ubuntu.  One of the main things is that the configuration files for various RCs are not shipped with LIRC anymore (http://lirc-remotes.sourceforge.net/), so you have to download the one need.

Also could you provide the output of:

 lircd --nodaemon 

Offline

#5 2015-06-18 20:56:54

rlees85
Member
From: Daventry, UK
Registered: 2015-04-29
Posts: 98
Website

Re: LIRC not working on Arch Linux?

Which media centre are you using, and the remote / IR receiver type?

If you do: ls /sys/class/rc does it list anything?

I probably won't be able to help much as I've only ever configured MCE remotes on Kodi... but we'll see smile

Offline

Board footer

Powered by FluxBB