Linux Lirc problems Zotac ID80
#16
adding this
Code:
Section "InputClass"
  Identifier "PHILIPS MCE USB IR Receiver- Spinel plus"
  MatchProduct "PHILIPS MCE USB IR Receiver- Spinel plus"
  MatchIsKeyboard "true"
  Option "Ignore" "true"
EndSection

back to "/usr/share/X11/xorg.conf.d/10-evdev.conf" cause irw to no longer function saying
Code:
connect: No such file or directory

so i dunno, i feel like i'm about to complete a circle here no? I have lircmap.xml in .xbmc/userdata (the xml from the guide). It seems like the lircmap doesnt actually correspond to anything....there's nothing in keymaps. *removes hair*

Reply
#17
Adding the code to /usr/share/X11/xorg.conf.d/10-evdev.conf asks Xorg not to load the IR external device as a keyboard (and this code should be put in top of the file)
Only do this if you try to install the zotac lirc driver.
If you want the basic config, let Xorg consider the IR as a keyboard.

IMPORTANT:
"lircmap.xml" comes with an "L" in high case, the name of your file has to be "~/.xbmc/userdata/Lircmap.xml"
Please ensure this is the case in your config, Unix systems differences cases.

I'm not sure to understand what is your situation, are you trying to install fermenta's HID driver ? Or have you reverted to basic installation ?

Lirc is totally independent from Xorg, you can test remote controls signal with irw whitout having an xsession started.
So you have to get an ouput with irw and pushing keys even when no xsession has been started.
Please support my Blog, XBMC and Linux related :-)
http://youresuchageek.blogspot.com
Reply
#18
(2012-09-01, 22:07)Mike8913 Wrote:
Code:
0000000000070051 00 KEY_DOWN zotac.conf

Thats the new output of irw after deleting var/run and creating /var/run/lirc/. I then purged lirc and executed
Code:
/usr/local/sbin/lircd --driver=zotac --device=/dev/remote

the
Code:
irw

so i seem to be getting the propper output now right? should i delete /var/run/lirc/ now or leave it?

and now how do i proceed to configure? in irw all my buttons are giving output now, but clearly not mapped to a function (which makes sense). Do i need a keymap.xml or edit an existing one. I'm still a bit confused about what i actually accomplished in the previous steps.

This looks good. The upstart script from the tutorial has a little problem:

Code:
description "lirc"
emits "lirc-ready"
expect fork
start on (remote-filesystems
          and local-filesystems
      and started rsyslog
      and ir-ready)
stop on runlevel [!2345]

pre-start script
  while [ ! -e /dev/remote ]
  do
    sleep 1
  done
  mkdir /var/run/lirc
end script

exec /usr/local/sbin/lircd --driver=zotac --device=/dev/remote

post-start script
  ln -s /var/run/lirc/lircd /dev/lircd
end script

post-stop script
  rm /dev/lircd
  rm -rf /var/run/lirc
end script

It assumes that /var/run/lirc does NOT exist on startup. If this folder exists, the script will fail. It should test for the directory. Precondition is that /var/run/lirc and dev/lirc do not exist. You can test the upstart script be executing:

sudo stop lirc
sudo start lirc
Reply
#19
replace:
Code:
mkdir /var/run/lirc

with:
Code:
[[ -d /var/run/lirc ]] || mkdir /var/run/lirc

----
replace:
Code:
rm /dev/lircd
  rm -rf /var/run/lirc

with:
Code:
[[ -f rm /dev/lircd ]] && rm /dev/lircd
  [[ -d /var/run/lirc ]] && rm -rf /var/run/lirc
Reply

Logout Mark Read Team Forum Stats Members Help
Lirc problems Zotac ID800