Autor Thema: No remote in Ubuntu 9.04  (Gelesen 18551 mal)

erdah

  • Newbie
  • *
  • Beiträge: 14
    • Profil anzeigen
No remote in Ubuntu 9.04
« am: August 26, 2009, 02:54:58 Nachmittag »
Hi!

I cannot get the remote to work in Ubuntu 9.04 32-bit (clean installation). I have followed the installation instructions for lirc and vdr. The TV-tuner works in vdr but not the remote.

Running /opt/bin/getinput.sh generates "cannot access /event*" error message.

I've also tried configure lirc to use /dev/mediainput0.

Sundtek

  • Administrator
  • Hero Member
  • *****
  • Beiträge: 8604
    • Profil anzeigen
Re:No remote in Ubuntu 9.04
« Antwort #1 am: August 26, 2009, 03:00:22 Nachmittag »
/dev/mediainput0 needs an extra application which we will start to ship soon.

please replug your device 1-2 times till getinput.sh returns the correct path to the input device.

you can also manually load uinput by running:
sudo modprobe uinput

and afterwards replug the device, the driver is supposed to load it automatically although the initialization of uinput might take a little bit too long and the driver might skip to use it because of that.
Failure is a good thing! I'll fix it

erdah

  • Newbie
  • *
  • Beiträge: 14
    • Profil anzeigen
Re:No remote in Ubuntu 9.04
« Antwort #2 am: August 26, 2009, 03:33:11 Nachmittag »
Thanks. Now a device was found (/dev/input/event12). I have modified /etc/lirc/hardware.conf accordingly. The remote still doesn't work in vdr. What is the easiest/best way to test the remote controller?

Sundtek

  • Administrator
  • Hero Member
  • *****
  • Beiträge: 8604
    • Profil anzeigen
Re:No remote in Ubuntu 9.04
« Antwort #3 am: August 26, 2009, 03:39:30 Nachmittag »
please note that the order how you start the applications is important

You first need to start lircd, afterwards you need to restart the vdr service.

you can just run

irw

on the console for testing the remote control.
Failure is a good thing! I'll fix it

erdah

  • Newbie
  • *
  • Beiträge: 14
    • Profil anzeigen
Re:No remote in Ubuntu 9.04
« Antwort #4 am: August 26, 2009, 04:14:00 Nachmittag »
Excellent. Now it works!

How can I avoid to replug the device 1-2 times after each reboot?

Sundtek

  • Administrator
  • Hero Member
  • *****
  • Beiträge: 8604
    • Profil anzeigen
Re:No remote in Ubuntu 9.04
« Antwort #5 am: August 26, 2009, 04:21:17 Nachmittag »
This is still a point on our todolist. It's mainly a configuration issue with udev. The next update at the end of this week should cover a solution for the uinput delay.

In order to get the remote control work automatically:
* VDR needs an update for automatically detecting new remotes
* LIRC needs an update for recognizing newly attached remotes
* uinput needs to load before the driver gets initialized.

The other way will be to run a small X Application which can use the mediainput interface, this is still an open point on our driver roadmap.
Failure is a good thing! I'll fix it

Sundtek

  • Administrator
  • Hero Member
  • *****
  • Beiträge: 8604
    • Profil anzeigen
Re:No remote in Ubuntu 9.04
« Antwort #6 am: August 28, 2009, 12:39:33 Vormittag »
The 27th August Update fixed the lirc issue.

The installer places a udev script which tells lirc to restart when the device gets plugged in or the system boots up. So now only VDR needs to be restarted in order to detect the device after plugging in the device
Failure is a good thing! I'll fix it