You are not logged in.

#1 2013-11-10 15:08:13

Labello
Member
From: Germany
Registered: 2010-01-21
Posts: 317
Website

[SOLVED] XBMC-standalone and LIRC

Hello everyone,

I have been fiddling around with a minimal Arch setup to just run XBMC. So I installed it and enabled the systemd service. Everything works just fine. So I installed lird and a self-compiled kernel module for the XboxDVDDongle which works just fine with lird, when I test it with 'irw'. But how can I tell XBMC to use my xbox dongle as input? Since I don't really know how to manually confgure XBMC because in standalone mode one does not have a '~/.xbmc' folder anywhere. I am a bitepuzzled here. Can anyone shed some light on this matter? Thanks in advance!

Last edited by Labello (2013-11-19 19:11:55)


"They say just hold onto your hope but you know if you swallow your pride you will choke"
Alexisonfire - Midnight Regulations

Offline

#2 2013-11-10 17:15:52

IncredibleLaser
Member
From: Germany, NRW
Registered: 2008-07-16
Posts: 158

Re: [SOLVED] XBMC-standalone and LIRC

Labello wrote:

in standalone mode one does not have a '~/.xbmc' folder anywhere.

It does, check /var/lib/xbmc. It is $HOME of the xbmc user under which XBMC runs.

Offline

#3 2013-11-12 11:43:19

Labello
Member
From: Germany
Registered: 2010-01-21
Posts: 317
Website

Re: [SOLVED] XBMC-standalone and LIRC

Thanks you for that! I did not know that, but it should have been easy to find this out -.-'

But still my problem persists after adding a remote.xml and a keymap.xml to the appropriate subfolders of /var/lib/xbmc as described in the archwiki. Still XBMC doesn't give a damn about my keystrokes on the remote. What am I missing? Is there any group the xbmc-user has to be added to, so that he can read from lirc - or something like this? Maybe I need to start lirc before XBMC?

Any help would be appreciated!


"They say just hold onto your hope but you know if you swallow your pride you will choke"
Alexisonfire - Midnight Regulations

Offline

#4 2013-11-12 15:20:16

IncredibleLaser
Member
From: Germany, NRW
Registered: 2008-07-16
Posts: 158

Re: [SOLVED] XBMC-standalone and LIRC

I haven't been lucky with XBMC and using custom options for input devices as well. I use a remote that appears as a keyboard, but the volume keys don't repeat in XBMC. It's kinda picky there. On this notebook, my volume keys repeat, but not when running XBMC, which contradicts a statement by a dev that XBMC uses the system's settings for that. Tried various stuff but it didn't work.

tl;dr I had troubles with input devices in XBMC as well and gave up.

Offline

#5 2013-11-12 22:04:08

Labello
Member
From: Germany
Registered: 2010-01-21
Posts: 317
Website

Re: [SOLVED] XBMC-standalone and LIRC

I should mention maybe that this lirc + xbox dongle + xbmc worked like a charm on Ubuntu right after compiling the custom kernel module for the xbox dongle. So I think that maybe I am just missing some stupid detail. I am not in the mood of giving up just yet. So any hints on this matter are still very welcome. smile


"They say just hold onto your hope but you know if you swallow your pride you will choke"
Alexisonfire - Midnight Regulations

Offline

#6 2013-11-18 14:36:33

Labello
Member
From: Germany
Registered: 2010-01-21
Posts: 317
Website

Re: [SOLVED] XBMC-standalone and LIRC

Bumping - nanyone?


"They say just hold onto your hope but you know if you swallow your pride you will choke"
Alexisonfire - Midnight Regulations

Offline

#7 2013-11-19 10:35:10

aqtrans
Member
Registered: 2008-07-25
Posts: 30

Re: [SOLVED] XBMC-standalone and LIRC

I recently fussed with getting this working myself, and in my case apparently the issue lies in XBMC itself; it expects a /dev/lircd when there isn't one in newer LIRC versions such as Arch use.
Try copying the stock lirc.service to /etc/systemd/system/ and modifying it as follows:

[Unit]
Description=Linux Infrared Remote Control
After=network.target

[Service]
Type=forking
ExecStartPre=/usr/bin/mkdir -p /run/lirc
ExecStartPre=/usr/bin/ln -sf /run/lirc/lircd /dev/lircd
PIDFile=/run/lirc/lircd.pid
ExecStart=/usr/sbin/lircd --driver=default --device=/dev/lirc0 

[Install]
WantedBy=multi-user.target

Then try rebooting and/or restarting XBMC and the LIRC service.

Relevant bit is only this one.

ExecStartPre=/usr/bin/ln -sf /run/lirc/lircd /dev/lircd

I added the other ExecStartPre due to some odd issues with /run/lirc not being created like 1 out of every 10 boots, not entirely relevant to this specific issue.

Thanks go to this thread for the original solution!

Last edited by aqtrans (2013-11-19 10:39:37)

Offline

Board footer

Powered by FluxBB