Probleme mit Andoer MX3 Funkfernbedienung

  • Ich bin ziemlich sicher, dass ich die gleiche Fernbedienung wie in Funk Fernbedienung / USB - mit Keyboard und Remote Plugin (oder auch ohne...) beschrieben habe, wenn auch unter anderem Namen: https://www.amazon.de/Andoer%C…ung-Type-2/dp/B00WDSCTR4/


    Ich habe versucht, die Instruktionen, die ich dort gefunden habe, zu folgen, verstehend, dass manche Keys nicht funktionieren werden, aber hoffentlich mehr als mit dem Standard-Setup.

    Code
    $ cat /etc/udev/rules.d/95-wireless_remote.rules
    # Telink Wireless Receiver
    ACTION=="add|remove", SUBSYSTEM=="input", \
    ENV{ID_VENDOR_ID}=="248a", ENV{ID_MODEL_ID}=="8367", \
    ENV{eventlircd_enable}="true", \
    ENV{eventlircd_evmap}="03_$env{ID_VENDOR_ID}_$env{ID_MODEL_ID}.evmap", \
    ENV{ID_INPUT.tags}="eventlircd"
    $ touch /etc/eventlircd.d/03_248a_8367.evmap
    $ reboot

    Danach schlägt das Starten von eventlircd fehl, von der Kommandozeile reproduzierbar:


    Code
    $ sudo /usr/sbin/eventlircd -f --socket=/var/run/lirc/lircd -vvv
    eventlircd[2353]: eventlircd_socket_path: /var/run/lirc/lircd
    eventlircd[2353]: input device /dev/input/event3: events of unsupported event type EV_MSC will be discarded
    eventlircd[2353]: input device /dev/input/event3: event code 0x04 of unsupported event type EV_MSC will be discarded
    eventlircd[2353]: input device /dev/input/event3: grabbed
    eventlircd[2353]: input device /dev/input/event3: created output event device
    eventlircd[2353]: input device /dev/input/mouse0: device grab failed: Inappropriate ioctl for device
    eventlircd[2353]: input device /dev/input/event3: output event device destroyed
    eventlircd[2353]: intput device /dev/input/event3: released



    Ich vermute, dass ich die mouse0 aus der udev-Regel ausschliessen müsste, aber ich weiss nicht wie, und ob es wirklich das Problem ist.

    Gehäuse: Antec Fusion Remote
    Netzteil: Seasonic S12II-430GB
    Mainboard: ASUS P8H67-M EVO R.3.0
    CPU: Intel® Core™ i5-2405S
    CPU-Kühler: Scythe Samurai ZZ
    RAM: Corsair DIMM 4 GB DDR3-1600 Kit
    HD-Adapter: Scythe Twin Mounter 2.5 Rev.C
    HD root: Corsair Force F60 2,5" SSD 60 GB
    HD data: Western Digital WD5000BUCT 500 GB
    Laufwerk: Sony Optiarc AD-7283S-0S
    DVB-Karte: Digital Devices Cine CT V6, Dual DVB-C/DVB-T PCIe

    Fernbedienung: Andoer® Universal Fernbedienung, MX3 (Ersatz)

    Distro: YaVDR 0.7 on Ubuntu 20.04.3 LTS

  • OK, I added `KERNEL=="event*"` to the conditions of the udev rules and now eventlircd runs, but it actually works worse than before, even though the relevant devices seem to be grabbed correctly:

    e.g. the keys for program changes which used to work, don't work anymore, and the air mouse doesn't work either.

    Gehäuse: Antec Fusion Remote
    Netzteil: Seasonic S12II-430GB
    Mainboard: ASUS P8H67-M EVO R.3.0
    CPU: Intel® Core™ i5-2405S
    CPU-Kühler: Scythe Samurai ZZ
    RAM: Corsair DIMM 4 GB DDR3-1600 Kit
    HD-Adapter: Scythe Twin Mounter 2.5 Rev.C
    HD root: Corsair Force F60 2,5" SSD 60 GB
    HD data: Western Digital WD5000BUCT 500 GB
    Laufwerk: Sony Optiarc AD-7283S-0S
    DVB-Karte: Digital Devices Cine CT V6, Dual DVB-C/DVB-T PCIe

    Fernbedienung: Andoer® Universal Fernbedienung, MX3 (Ersatz)

    Distro: YaVDR 0.7 on Ubuntu 20.04.3 LTS

  • Sorry, my fault, I didn't expect so many keys to require a mapping to work:

    I'm still wondering what to do with the KEY_PLAYPAUSE, it's either in the YaVDR play or pause, but not the combination. Would it be possible to add it?

    Gehäuse: Antec Fusion Remote
    Netzteil: Seasonic S12II-430GB
    Mainboard: ASUS P8H67-M EVO R.3.0
    CPU: Intel® Core™ i5-2405S
    CPU-Kühler: Scythe Samurai ZZ
    RAM: Corsair DIMM 4 GB DDR3-1600 Kit
    HD-Adapter: Scythe Twin Mounter 2.5 Rev.C
    HD root: Corsair Force F60 2,5" SSD 60 GB
    HD data: Western Digital WD5000BUCT 500 GB
    Laufwerk: Sony Optiarc AD-7283S-0S
    DVB-Karte: Digital Devices Cine CT V6, Dual DVB-C/DVB-T PCIe

    Fernbedienung: Andoer® Universal Fernbedienung, MX3 (Ersatz)

    Distro: YaVDR 0.7 on Ubuntu 20.04.3 LTS

  • Um meine eigene Frage zu beantworten: KEY_PLAYPAUSE tut richtig in VDR und KODI, auch wenn der Code nicht in der Tabelle gelistet ist.

    Gehäuse: Antec Fusion Remote
    Netzteil: Seasonic S12II-430GB
    Mainboard: ASUS P8H67-M EVO R.3.0
    CPU: Intel® Core™ i5-2405S
    CPU-Kühler: Scythe Samurai ZZ
    RAM: Corsair DIMM 4 GB DDR3-1600 Kit
    HD-Adapter: Scythe Twin Mounter 2.5 Rev.C
    HD root: Corsair Force F60 2,5" SSD 60 GB
    HD data: Western Digital WD5000BUCT 500 GB
    Laufwerk: Sony Optiarc AD-7283S-0S
    DVB-Karte: Digital Devices Cine CT V6, Dual DVB-C/DVB-T PCIe

    Fernbedienung: Andoer® Universal Fernbedienung, MX3 (Ersatz)

    Distro: YaVDR 0.7 on Ubuntu 20.04.3 LTS

  • auch wenn der Code nicht in der Tabelle gelistet ist

    Ich habe die Taste mal in der Dokumentation ergänzt (https://www.yavdr.org/document…ocumentation.html#remotes). Das Playbook nutzt die für VDR (https://github.com/yavdr/yavdr…vdr/files/remote.conf#L25) und KODI (https://github.com/yavdr/yavdr…/userdata/Lircmap.xml#L29).

    yaVDR-Dokumentation (Ceterum censeo enchiridia esse lectitanda.)

  • Danke. Ich habe noch ein Problem festgestellt: auf der anderen Seite der Fernbedienung ist eine Tastatur, die Tasten reagieren auch normal auf evtest, mit KEY_A, KEY_B, bzw. KEY_ESC oder KEY_UP, usw... `/dev/input/event6` wird auch von eventlircd "ge-grabbed", und manche wenige Tasten wie KEY_ESC und KEY_UP funktionieren, aber die normalen Buchstaben tun nicht, z.B. um den Namen einer Aufnahme anzugeben. Es tut weder in VDR noch in KODI, oder auch nicht in z.B. Firefox.


    Ich kann mich nicht erinnern, dass ich jemals die Buchstaben mappen musste, aber kann es sein, dass eventlircd dazwischenfunkt, und daher die Buchstaben für VDR/KODI/Xorg "geschluckt" werden? Ich könnte vielleicht event6 von eventlircd ausschließen aber manche Tasten auf der Fernbedienungsseite hängen auch dran, daher bin ich unschlüssig, was meine beste Wahl sein soll.

    Gehäuse: Antec Fusion Remote
    Netzteil: Seasonic S12II-430GB
    Mainboard: ASUS P8H67-M EVO R.3.0
    CPU: Intel® Core™ i5-2405S
    CPU-Kühler: Scythe Samurai ZZ
    RAM: Corsair DIMM 4 GB DDR3-1600 Kit
    HD-Adapter: Scythe Twin Mounter 2.5 Rev.C
    HD root: Corsair Force F60 2,5" SSD 60 GB
    HD data: Western Digital WD5000BUCT 500 GB
    Laufwerk: Sony Optiarc AD-7283S-0S
    DVB-Karte: Digital Devices Cine CT V6, Dual DVB-C/DVB-T PCIe

    Fernbedienung: Andoer® Universal Fernbedienung, MX3 (Ersatz)

    Distro: YaVDR 0.7 on Ubuntu 20.04.3 LTS

  • Removing event6 with "event[345]" from the udev rule doesn't make it work better, the keyboard still doesn't work. I'm now even more unsure what my options are....

    Gehäuse: Antec Fusion Remote
    Netzteil: Seasonic S12II-430GB
    Mainboard: ASUS P8H67-M EVO R.3.0
    CPU: Intel® Core™ i5-2405S
    CPU-Kühler: Scythe Samurai ZZ
    RAM: Corsair DIMM 4 GB DDR3-1600 Kit
    HD-Adapter: Scythe Twin Mounter 2.5 Rev.C
    HD root: Corsair Force F60 2,5" SSD 60 GB
    HD data: Western Digital WD5000BUCT 500 GB
    Laufwerk: Sony Optiarc AD-7283S-0S
    DVB-Karte: Digital Devices Cine CT V6, Dual DVB-C/DVB-T PCIe

    Fernbedienung: Andoer® Universal Fernbedienung, MX3 (Ersatz)

    Distro: YaVDR 0.7 on Ubuntu 20.04.3 LTS

  • Wenn sich eventlircd ein Input-Gerät greift, dann leitet es alle KEY-Events auf seinem Lirc-Sockel weiter, nur Mouse-Events werden durchgelassen.


    Kannst du mal mit evtest schauen, welche Tastencodes von welchem Gerät gesendet werden können (normalerweise bekommt man eine Liste, wenn man es auf ein Gerät loslässt)?

    yaVDR-Dokumentation (Ceterum censeo enchiridia esse lectitanda.)

  • Here it is, attached because else too long... I didn't stop eventlircd hence the "grabbed by another process" warnings.


    It is to be noted that the device declares more keys than actually exist physically, but the letters do all exist :P

    Dateien

    Gehäuse: Antec Fusion Remote
    Netzteil: Seasonic S12II-430GB
    Mainboard: ASUS P8H67-M EVO R.3.0
    CPU: Intel® Core™ i5-2405S
    CPU-Kühler: Scythe Samurai ZZ
    RAM: Corsair DIMM 4 GB DDR3-1600 Kit
    HD-Adapter: Scythe Twin Mounter 2.5 Rev.C
    HD root: Corsair Force F60 2,5" SSD 60 GB
    HD data: Western Digital WD5000BUCT 500 GB
    Laufwerk: Sony Optiarc AD-7283S-0S
    DVB-Karte: Digital Devices Cine CT V6, Dual DVB-C/DVB-T PCIe

    Fernbedienung: Andoer® Universal Fernbedienung, MX3 (Ersatz)

    Distro: YaVDR 0.7 on Ubuntu 20.04.3 LTS

  • Ok, so the current /dev/input/event5 implements the keyboard part and some of the keys are used to control the vdr and the others could act as keyboard input for letters (if the output plugin would support it - currently the code that should handle those inputs is commented out: https://github.com/ua0lnj/vdr-…vid/softhddevice.cpp#L330, because it does not work as intended: yaVDR ansible & Tastaur/Keyboard).


    eventlircd isn't able to grab only a subset of keys, so you need to work around this limitation by

    • not using eventlircd and adapt the remote.conf so it uses the key events from the X-Server
    • write a program that creates two uinput devices that distributes the key events (although this might not be practical if you want to use Keys in other programs that don't read key presses from eventlircd's socket)

    yaVDR-Dokumentation (Ceterum censeo enchiridia esse lectitanda.)

  • OK, thanks for the insight but that sounds way above my head (a few Ansible playbooks is nothing compared to this), or the price too high. Perhaps I'll try with the first option though.

    Gehäuse: Antec Fusion Remote
    Netzteil: Seasonic S12II-430GB
    Mainboard: ASUS P8H67-M EVO R.3.0
    CPU: Intel® Core™ i5-2405S
    CPU-Kühler: Scythe Samurai ZZ
    RAM: Corsair DIMM 4 GB DDR3-1600 Kit
    HD-Adapter: Scythe Twin Mounter 2.5 Rev.C
    HD root: Corsair Force F60 2,5" SSD 60 GB
    HD data: Western Digital WD5000BUCT 500 GB
    Laufwerk: Sony Optiarc AD-7283S-0S
    DVB-Karte: Digital Devices Cine CT V6, Dual DVB-C/DVB-T PCIe

    Fernbedienung: Andoer® Universal Fernbedienung, MX3 (Ersatz)

    Distro: YaVDR 0.7 on Ubuntu 20.04.3 LTS

  • So, I've found the time to work further on this. I've excluded the keyboard part of the remote from eventlircd with:

    Code
    $ cat /etc/udev/rules.d/95-wireless_remote.rules
    # Telink Wireless Receiver
    ACTION=="add|remove", SUBSYSTEM=="input", KERNEL=="event*", \
    ENV{ID_VENDOR_ID}=="248a", ENV{ID_MODEL_ID}=="8367", \
    ENV{ID_INPUT_KEYBOARD}!="1", \
    ENV{eventlircd_enable}="true", \
    ENV{eventlircd_evmap}="03_$env{ID_VENDOR_ID}_$env{ID_MODEL_ID}.evmap", \
    ENV{ID_INPUT.tags}="eventlircd"

    After a reboot, the input device isn't managed by eventlircd anymore (I can evtest it without complaint).


    I was able to remap "KEY_F2" (as shown by evtest) to Yellow by adding the line XKeySym.Yellow F2 to /etc/vdr/remote.conf respectively "KEY_COMPOSE" to Menu by adding "XKeySym.Menu Menu" (don't ask me why but xev showed Menu), but the letters (KEY_A etc) still can't be used in text fields (but in Firefox). I tried to put something iike the following but it didn't help:

    Code
    XKeySym.A          A
    XKeySym.a          a
    XKeySym.A          KP_A
    XKeySym.a          KP_a

    Am I missing something obvious?

    Gehäuse: Antec Fusion Remote
    Netzteil: Seasonic S12II-430GB
    Mainboard: ASUS P8H67-M EVO R.3.0
    CPU: Intel® Core™ i5-2405S
    CPU-Kühler: Scythe Samurai ZZ
    RAM: Corsair DIMM 4 GB DDR3-1600 Kit
    HD-Adapter: Scythe Twin Mounter 2.5 Rev.C
    HD root: Corsair Force F60 2,5" SSD 60 GB
    HD data: Western Digital WD5000BUCT 500 GB
    Laufwerk: Sony Optiarc AD-7283S-0S
    DVB-Karte: Digital Devices Cine CT V6, Dual DVB-C/DVB-T PCIe

    Fernbedienung: Andoer® Universal Fernbedienung, MX3 (Ersatz)

    Distro: YaVDR 0.7 on Ubuntu 20.04.3 LTS

  • Am I missing something obvious?

    The keyboard input feature currently does not work with softhddevice and jojo61's softhd{drm,cuvid,vaapi}: yaVDR ansible & Tastaur/Keyboard and https://github.com/jojo61/vdr-…6382/softhdcuvid.cpp#L318

    yaVDR-Dokumentation (Ceterum censeo enchiridia esse lectitanda.)

  • Ah, sorry, you wrote it already but I understood that it was impacting "only" eventlircd. Happy new year, thanks for all your help in 2021!

    Gehäuse: Antec Fusion Remote
    Netzteil: Seasonic S12II-430GB
    Mainboard: ASUS P8H67-M EVO R.3.0
    CPU: Intel® Core™ i5-2405S
    CPU-Kühler: Scythe Samurai ZZ
    RAM: Corsair DIMM 4 GB DDR3-1600 Kit
    HD-Adapter: Scythe Twin Mounter 2.5 Rev.C
    HD root: Corsair Force F60 2,5" SSD 60 GB
    HD data: Western Digital WD5000BUCT 500 GB
    Laufwerk: Sony Optiarc AD-7283S-0S
    DVB-Karte: Digital Devices Cine CT V6, Dual DVB-C/DVB-T PCIe

    Fernbedienung: Andoer® Universal Fernbedienung, MX3 (Ersatz)

    Distro: YaVDR 0.7 on Ubuntu 20.04.3 LTS

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!