Lirc not working after updating to Fedora 28
FedoraForum.org - Fedora Support Forums and Community
Page 1 of 2 1 2 LastLast
Results 1 to 15 of 21
  1. #1
    Join Date
    Apr 2018
    Location
    Czech republic
    Posts
    10

    Lirc not working after updating to Fedora 28

    Hi,

    after updating to Fedora 28 my remote controller stopped working.

    According to the ir-keytable it found the driver, although this driver is different than in F27 (where generic was used).
    Code:
    $~> ir-keytable 
    Found /sys/class/rc/rc0/ (/dev/input/event4) with:
            Name: Nuvoton w836x7hg Infrared Remote Transceiver
            Driver: nuvoton-cir, table: rc-rc6-mce
            lirc device: /dev/lirc0
            Supported protocols: lirc rc-5 rc-5-sz jvc sony nec sanyo mce_kbd rc-6 sharp xmp 
            Enabled protocols: lirc rc-6 
            Extra capabilities: <access denied>
    But if I try
    Code:
    mode2 --driver default --device /dev/lirc0
    I didn't receive any input.

    Could somebody help me with this?

  2. #2
    Join Date
    Jan 2006
    Posts
    160
    Linux (Android 7.0) Chrome 68.0.3440.91

    Re: Lirc not working after updating to Fedora 28

    Have the same problem with F28 and lirc 10.0. Did you solve it?

  3. #3
    Join Date
    Apr 2018
    Location
    Czech republic
    Posts
    10
    Linux (Fedora) Firefox 61.0

    Re: Lirc not working after updating to Fedora 28

    Unfortunately I didn't. I bought wireless keyboard that I'm now using instead of remote control.

  4. #4
    Join Date
    Jan 2006
    Posts
    160
    Linux (Android 7.0) Chrome 68.0.3440.91

    Re: Lirc not working after updating to Fedora 28

    Too bad! Read somewhere that from version 10 the devinput driver has to be enabled, but no clue how. Anybody else knows?

  5. #5
    Join Date
    Aug 2007
    Posts
    265
    Linux Firefox 52.0

    Re: Lirc not working after updating to Fedora 28

    I have a Streamzap remote control and use its specific driver with lirc.

    $ sudo ir-keytable
    Found /sys/class/rc/rc0/ (/dev/input/event5) with:
    Driver streamzap, table rc-streamzap
    Supported protocols: NEC RC-5 RC-6 JVC SONY SANYO LIRC RC-5-SZ other
    Enabled protocols: LIRC
    Name: Streamzap PC Remote Infrared Rec
    bus: 3, vendor/product: 0e9c:0000, version: 0x0100
    Repeat delay = 500 ms, repeat period = 125 ms
    $ irw
    00000000000028d2 00 KEY_OK Streamzap_PC_Remote
    00000000000028d3 00 KEY_RIGHT Streamzap_PC_Remote
    00000000000028d1 00 KEY_LEFT Streamzap_PC_Remote
    00000000000028d4 01 KEY_DOWN Streamzap_PC_Remote
    00000000000028d0 00 KEY_UP Streamzap_PC_Remote
    00000000000028d7 00 KEY_PLAY Streamzap_PC_Remote
    00000000000028d8 00 KEY_PAUSE Streamzap_PC_Remote
    00000000000028d9 00 KEY_STOP Streamzap_PC_Remote
    00000000000028d6 00 KEY_EXIT Streamzap_PC_Remote
    00000000000028d5 00 KEY_MENU Streamzap_PC_Remote
    I have never used mode2 and it doesn't work with my driver. Yet my remote works with Kodi/XBMC on Fedora 28 KDE. You may not need mode2. Try irw instead.

    You will need to find a configuration file for your remote and place it in /etc/lirc.
    Last edited by amiga; 1st September 2018 at 07:51 AM.

  6. #6
    Join Date
    Jan 2006
    Posts
    160
    Linux (Fedora) Chrome 68.0.3440.106

    Re: Lirc not working after updating to Fedora 28

    Thank you amiga. Believe my problem is that ir-keytable tells me "Driver: cx88xx, table: rc-hauppauge" but there is no such driver in /usr/lib64/lirc/plugin - If the kernel does not support this driver - how come ir-keytable can find it?

  7. #7
    Join Date
    Aug 2007
    Posts
    265
    Linux Firefox 52.0

    Re: Lirc not working after updating to Fedora 28

    Thank you amiga. Believe my problem is that ir-keytable tells me "Driver: cx88xx, table: rc-hauppauge" but there is no such driver in /usr/lib64/lirc/plugin - If the kernel does not support this driver - how come ir-keytable can find it?
    You seem to be confused as to what the term driver means. Kernel driver modules are part of the kernel you are running and would be located in /usr/lib/modules/$(uname -r)/kernel/drivers/media. They would have a .ko extension and are now compressed with xz.

    I found the driver you are using in my kernel package.

    $ locate cx88xx
    /usr/lib/modules/3.10.0-862.2.3.el7.x86_64/kernel/drivers/media/pci/cx88/cx88xx.ko.xz
    The driver will also show up in lsmod for you.
    $ lsmod | grep streamzap
    rc_streamzap 12508 0
    streamzap 13267 0
    rc_core 27718 12 streamzap,ir_lirc_codec,ir_rc5_sz_decoder,ir_rc5_d ecoder,ir_nec_decoder,ir_sony_decoder,rc_streamzap ,ir_mce_kbd_decoder,ir_jvc_decoder,ir_rc6_decoder, ir_sanyo_decoder

    $ locate streamzap | grep .ko.xz
    /usr/lib/modules/3.10.0-862.2.3.el7.x86_64/kernel/drivers/media/rc/streamzap.ko.xz
    /usr/lib/modules/3.10.0-862.2.3.el7.x86_64/kernel/drivers/media/rc/keymaps/rc-streamzap.ko.xz
    Enter the following:
    $ lsmod | grep cx88xx

    I assume you have a Hauppauge PCIe card as the driver is in the pci sub-directory. My streamzap driver is in the rc subdirectory.

  8. #8
    Join Date
    Jan 2006
    Posts
    160
    Linux (Fedora) Chrome 68.0.3440.106

    Re: Lirc not working after updating to Fedora 28

    Thanks again! Yes, I find the cx88xx.ko.xz exactly where you say it should be. So, how to activate it? Starting with change to "driver = cx88xx" in /etc/lirc/lirc_options does not seem to be enough. I used to activate lirc with this script:
    #! /bin/sh
    sudo rm -f /var/run/lirc/lircd.pid
    sudo /usr/sbin/lircd -H dev/input -d /dev/input/irremote -n
    where irremote is for the forever changing eventX. Cannot user "-H dev/input" (yes, it was not /dev/input) anymore so tried " --driver cx88xx" instead, but get this error message:
    Driver `cx88xx' not found or not loadable (wrong or missing -U/--plugindir?).

    Available drivers:
    No available drivers! Clearly I am missing something - activate with modprobe??
    Last edited by Krister Hallerg; 29th August 2018 at 03:30 PM.

  9. #9
    Join Date
    Aug 2007
    Posts
    265
    Linux (Fedora) Firefox 61.0

    Re: Lirc not working after updating to Fedora 28

    Thanks again! Yes, I find the cx88xx.ko.xz exactly where you say it should be. So, how to activate it?
    Have you checked if is already loaded like I mentioned ? You appear to have a Hauppauge PCIe card which should be detected at boot time.

    $ locate cx88xx
    /usr/lib/modules/4.17.9-200.fc28.x86_64/kernel/drivers/media/pci/cx88/cx88xx.ko.xz
    The cx88xx.ko driver is for the Conexant chip on this card and is in the /media/pci sub-directory. It should be loaded at boot time. Enter the following:

    Code:
    $ lspci -nnk -s $(lspci | awk '/Hauppauge/ {print $1;}')
    $ lsmod | grep cx88xx
    I used to activate lirc with this script:
    You don't need any script to activate lirc. lirc is a systemd service that can be started up at every boot.

    Code:
    $ rpm -q --whatprovides /usr/lib/systemd/system/lircd.service
    lirc-core-0.10.0-8.fc28.x86_64
    $ systemctl status lircd.service
    ● lircd.service - Flexible IR remote input/output application support
       Loaded: loaded (/usr/lib/systemd/system/lircd.service; enabled; vendor preset: disabled)
       Active: active (running) since Wed 2018-08-29 16:19:08 EDT; 8h ago
         Docs: man:lircd(8)
               http://lirc.org/html/configure.html
     Main PID: 1247 (lircd)
        Tasks: 2 (limit: 4915)
       Memory: 2.0M
       CGroup: /system.slice/lircd.service
               └─1247 /usr/sbin/lircd --nodaemon
    
    Aug 29 16:19:08 server47.localdomain lircd-0.10.0[1247]: Notice: Options: repeat_max: 600
    Aug 29 16:19:08 server47.localdomain lircd-0.10.0[1247]: Notice: Options: configfile: /etc/lirc/lircd.conf
    Aug 29 16:19:08 server47.localdomain lircd-0.10.0[1247]: Notice: Options: dynamic_codes: (null)
    Aug 29 16:19:08 server47.localdomain lircd-0.10.0[1247]: Notice: Current driver: default
    Aug 29 16:19:08 server47.localdomain lircd-0.10.0[1247]: Notice: Driver API version: 3
    Aug 29 16:19:08 server47.localdomain lircd-0.10.0[1247]: Notice: Driver  version: 0.10.0
    Aug 29 16:19:08 server47.localdomain lircd-0.10.0[1247]: Notice: Driver  info: See file:///usr/share/doc/lirc/plugindocs/default.html
    Aug 29 16:19:08 server47.localdomain lircd-0.10.0[1247]: Info: lircd:  Opening log, level: Info
    Aug 29 16:19:08 server47.localdomain lircd-0.10.0[1247]: Info: Using remote: Streamzap_PC_Remote.
    Aug 29 16:19:08 server47.localdomain lircd-0.10.0[1247]: Notice: lircd(default) ready, using /var/run/lirc/lircd
    To start the lirc service and enable it at boot enter:

    Code:
    $ sudo systemctl start lircd.service
    $ sudo systemctl enable lircd.service
    Last edited by amiga; 30th August 2018 at 08:32 AM.

  10. #10
    Join Date
    Jan 2006
    Posts
    160
    Linux (Fedora) Firefox 61.0

    Re: Lirc not working after updating to Fedora 28

    Have you checked if is already loaded like I mentioned ?
    Not sure how to check this, the TV-card is shown as an Event in /dev/input - maybe this?
    Code:
    $ lsmod | grep cx88xx
    cx88xx                 94208  3 cx8802,cx8800,cx88_dvb
    tveeprom               24576  1 cx88xx
    videobuf2_common       53248  7 cx8802,cx88xx,cx8800,videobuf2_v4l2,cx88_dvb,uvcvideo,videobuf2_dvb
    rc_core                53248  4 cx88xx,ir_rc5_decoder,rc_hauppauge
    v4l2_common            16384  2 cx88xx,cx8800
    videodev              208896  6 cx88xx,cx8800,v4l2_common,videobuf2_v4l2,uvcvideo,videobuf2_common
    i2c_algo_bit           16384  3 cx88xx,cx88_vp3054_i2c,nouveau
    Could not execute this command, something wrong
    Code:
    lspci -nnk -s $(lspci | awk '/Hauppauge/ {print $1;}')
    lirc.socket seems ok, but lirc.service does not
    Code:
    # systemctl status lircd.socket
    Failed to dump process list, ignoring: No such file or directory
    ● lircd.socket
       Loaded: loaded (/usr/lib/systemd/system/lircd.socket; enabled; vendor preset: enabled)
       Active: active (listening) since Thu 2018-08-30 14:51:27 BST; 5min ago
       Listen: /run/lirc/lircd (Stream)
       CGroup: /system.slice/lircd.socket
    
    Aug 30 14:51:27 Desktop systemd[1]: Listening on lircd.socket.
    
    # systemctl status lircd.service
    ● lircd.service - Flexible IR remote input/output application support
       Loaded: loaded (/usr/lib/systemd/system/lircd.service; enabled; vendor preset: disabled)
       Active: failed (Result: exit-code) since Thu 2018-08-30 14:51:36 BST; 5min ago
         Docs: man:lircd(8)
               http://lirc.org/html/configure.html
      Process: 795 ExecStart=/usr/sbin/lircd --nodaemon (code=exited, status=1/FAILURE)
     Main PID: 795 (code=exited, status=1/FAILURE)
    
    Aug 30 14:51:34 Desktop systemd[1]: Started Flexible IR remote input/output application support.
    Aug 30 14:51:35 Desktop lircd-0.10.0[795]: Info: lircd:  Opening log, level: Info
    Aug 30 14:51:35 Desktop lircd-0.10.0[795]: Notice: Version: lircd 0.10.0
    Aug 30 14:51:36 Desktop lircd-0.10.0[795]: Notice: System info: Linux Desktop 4.17.18-200.fc28.x86_64 #1 SMP Wed Aug 22 19:08:07 UTC 2018 x86_64 x86_64 x86>
    Aug 30 14:51:36 Desktop lircd[795]: Driver `cx88xx' not found or not loadable (wrong or missing -U/--plugindir?).
    Aug 30 14:51:36 Desktop lircd[795]: Available drivers:
    Aug 30 14:51:36 Desktop systemd[1]: lircd.service: Main process exited, code=exited, status=1/FAILURE
    Aug 30 14:51:36 Desktop syst
    I am grateful for your assistance, amiga!

  11. #11
    Join Date
    Aug 2007
    Posts
    265
    Linux Firefox 52.0

    Re: Lirc not working after updating to Fedora 28

    Could not execute this command, something wrong

    lspci -nnk -s $(lspci | awk '/Hauppauge/ {print $1;}')
    What brand of TV card do you have ? When I wrote this command I assumed your TV card was Hauppauge and that the string "Hauppauge" would appear with lspci. If it is another brand or is labeled as something such as 'WinTV' you need to change the match string. You need to do a regular lspci to list all of your PCI devices. Then change this command and replace the "Hauppauge" with a string from the lspci output that describes your TV card and will match that line of the lspci output.

  12. #12
    Join Date
    Jan 2006
    Posts
    160
    Linux (Fedora) Chrome 68.0.3440.106

    Re: Lirc not working after updating to Fedora 28

    Win-TV-Nova-T pci card, relevant output from "lspci"
    Code:
    05:07.0 Multimedia video controller: Conexant Systems, Inc. CX23880/1/2/3 PCI Video and Audio Decoder (rev 05)
    05:07.2 Multimedia controller: Conexant Systems, Inc. CX23880/1/2/3 PCI Video and Audio Decoder [MPEG Port] (rev 05)
    05:07.4 Multimedia controller: Conexant Systems, Inc. CX23880/1/2/3 PCI Video and Audio Decoder [IR Port] (rev 05)
    Replacing Hauppauge with Conexant - lspci -nnk -s $(lspci | awk '/Conexant/ {print $1;}') - still does not give any print output - just help info.
    Code:
    # cat /proc/bus/input/devices
    .......
    I: Bus=0001 Vendor=0070 Product=9002 Version=0001
    N: Name="cx88 IR (Hauppauge Nova-T DVB-T"
    P: Phys=pci-0000:05:07.2/ir0
    S: Sysfs=/devices/pci0000:00/0000:00:14.4/0000:05:07.2/rc/rc0/input4
    U: Uniq=
    H: Handlers=kbd event9 
    B: PROP=0
    B: EV=100013
    B: KEY=10afc312 214201700000000 0 118000 41a800004801 9e16c000000000 10000ffc
    B: MSC=10
    .....

  13. #13
    Join Date
    Aug 2007
    Posts
    265
    Linux Firefox 52.0

    Re: Lirc not working after updating to Fedora 28

    Replacing Hauppauge with Conexant - lspci -nnk -s $(lspci | awk '/Conexant/ {print $1;}') - still does not give any print output - just help info.
    You can simplify this to: lspci -nnk | grep Conexant -A5

    or give the slot addresses manually:

    lspci -nnk -s 05:07.0
    lspci -nnk -s 05:07.2
    lspci -nnk -s 05:07.4

    The inner command lspci | awk '/Conexant/ {print $1;}' is designed to filter out the slot address. Since you have three lines with 'Conexant' in them you are probably getting multiple outputs which confuses the main command. Try running lspci | awk '/Conexant/ {print $1;}' by itself in a shell. If you get multiple matches lspci -nnk -s $(lspci | awk '/Conexant/ {print $1; exit;}') would find the first match and exit.
    Last edited by amiga; 30th August 2018 at 10:14 PM.

  14. #14
    Join Date
    Jan 2006
    Posts
    160
    Linux (Fedora) Chrome 68.0.3440.106

    Re: Lirc not working after updating to Fedora 28

    The simplified command:
    # lspci -nnk | grep Conexant -A5
    05:07.0 Multimedia video controller [0400]: Conexant Systems, Inc. CX23880/1/2/3 PCI Video and Audio Decoder [14f1:8800] (rev 05)
    Subsystem: Hauppauge computer works Inc. Device [0070:9002]
    Kernel driver in use: cx8800
    Kernel modules: cx8800
    05:07.2 Multimedia controller [0480]: Conexant Systems, Inc. CX23880/1/2/3 PCI Video and Audio Decoder [MPEG Port] [14f1:8802] (rev 05)
    Subsystem: Hauppauge computer works Inc. Nova-T DVB-T Model 909 [0070:9002]
    Kernel driver in use: cx88-mpeg driver manager
    Kernel modules: cx8802
    05:07.4 Multimedia controller [0480]: Conexant Systems, Inc. CX23880/1/2/3 PCI Video and Audio Decoder [IR Port] [14f1:8804] (rev 05)
    Subsystem: Hauppauge computer works Inc. Nova-T DVB-T Model 909 [0070:9002]

  15. #15
    Join Date
    Aug 2007
    Posts
    265
    Linux (Fedora) Firefox 61.0

    Re: Lirc not working after updating to Fedora 28

    The last device is cut off as grep doesn't seem to be too smart. The kernel driver and modules for 05:07.4 Multimedia controller are missing.

    Please run lspci -nnk -s 05:07.*

    The wildcard at the end will work for all of the devices (3 in 1).

    Starting with change to "driver = cx88xx" in /etc/lirc/lirc_options does not seem to be enough.
    Please ignore what I said earlier in this thread. Change this to "driver = default" in /etc/lirc/lirc_options. I just checked my lirc_options and I am using default as the driver.

Page 1 of 2 1 2 LastLast

Similar Threads

  1. lirc not working on F16
    By broadstairs in forum Installation, Upgrades and Live Media
    Replies: 2
    Last Post: 24th January 2012, 09:25 AM
  2. LIRC not working with F14
    By Krister Hallerg in forum Using Fedora
    Replies: 6
    Last Post: 16th June 2011, 02:00 PM
  3. Lirc not working
    By terry_gardener in forum F15 Development
    Replies: 1
    Last Post: 12th April 2011, 12:17 AM
  4. lirc stopped working since 3-6-09
    By martypants in forum Using Fedora
    Replies: 0
    Last Post: 8th March 2010, 02:40 PM
  5. Get Lirc working in Fedora 5
    By Wordan in forum Using Fedora
    Replies: 1
    Last Post: 4th May 2006, 03:30 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •