[mythtv-users] lirc working fine but then stops after reboot and hangs

Paul Clark paul at aghast.co.uk
Wed Oct 30 14:38:31 UTC 2013


On 29 October 2013 22:27, Lincoln <lincoln at performaplus.co.nz> wrote:

>  On 30/10/2013 7:47 a.m., Paul Clark wrote:
>
> Hello everyone
>
> This is really driving me mad.
>
> I'm doing a fresh install of 12.04LTS with a 'sudo apt-get upgrade'
> everything. At that point I install lirc and get it working fine. I have
> the right hardware.conf and I can see all the key presses working fine
> using irw. I'm using a Hauppauge PVR-150 card and the IR receiver/remote
> that comes with that. Everything is fine. All is good with the world. I can
> issue sudo service lirc restart and it works as expected.
>
> Then randomly after a reboot everything stops. irw simply says connect: No
> such file or directory. If I try to do anything with lirc, either 'sudo
> service lirc stop' or 'sudo apt-get purge lirc' then the session hangs.
> Nothing. Even reboots start to hang. All I get is a message on the screen
> saying 'acpid: exiting Checking for running unattended-upgrades:'.
>
> If I check the dmesg log I see a bunch of messages along the lines of:
>
> Oct 28 22:13:32 borg kernel: [  240.756452] INFO: task lirc:1316 blocked
> for more than 120 seconds.
> Oct 28 22:13:32 borg kernel: [  240.756499] "echo 0 >
> /proc/sys/kernel/hung_task_timeout_secs" disables this message.
> Oct 28 22:13:32 borg kernel: [  240.756547] lirc            D 00000000
> 0  1316      1 0x00000000
>
> I have tried everything I can think of. I've had remotes working fine on
> this machine before. For about 4 years this was my MythTV backend. I
> decided to upgrade a week ago and have been solidly stuck on this issue. I
> would greatly welcome any help anyone has.
>
> Thanks, Paul
>
>
> What driver are you using for lirc?
> Can you post your /etc/lirc/hardware.conf script?
> When you've restarted your system, is lirc running - what does 'ps -ef |
> grep lirc' give?
> Could you put the output of 'dmesg | grep -v IRQ | grep 'lirc\|rc\|IR'
> -C3'
>
>



Thanks for taking an interest in my problem, I really hope you can shed
some light on it for me.  Before upgrading to 12.04 this system was rock
solid and the remote control worked perfectly.  I'm almost tempted to roll
back to version 11.

When I posted this I removed lirc due to the issues I was experienced.  As
you very kindly replied I reinstalled it.   As usual it was working fine in
that I could get irw working and recognising keypresses.  Then as usual
after several reboots it suddenly stops working with the usual symptoms of
hanging whenever I try to do anything with lirc or try and shutdown the
machine.  I've tried as best to answer your questions.  Usually to test
lirc works I type:

sudo /usr/sbin/lircd -H dev/input -d /dev/input/event6 -n
*
*
In one window and the irw in another so the hardware.conf might not be
completely correct.

>>> Driver: not sure.  How do I work that one out? <<<

>>> hardware.conf file <<<

# /etc/lirc/hardware.conf
#
#Chosen Remote Control
REMOTE="Hauppauge Nova-T 500"
REMOTE_MODULES=""
REMOTE_DRIVER="devinput"
REMOTE_DEVICE="/dev/input/event6"
REMOTE_SOCKET=""
REMOTE_LIRCD_CONF="hauppauge/lircd.conf.hauppauge_novat500"
REMOTE_LIRCD_ARGS=""

#Chosen IR Transmitter
TRANSMITTER="None"
TRANSMITTER_MODULES=""
TRANSMITTER_DRIVER=""
TRANSMITTER_DEVICE=""
TRANSMITTER_SOCKET=""
TRANSMITTER_LIRCD_CONF=""
TRANSMITTER_LIRCD_ARGS=""

#Enable lircd
START_LIRCD="true"

#Don't start lircmd even if there seems to be a good config file
#START_LIRCMD="false"

#Try to load appropriate kernel modules
LOAD_MODULES="true"

# Default configuration files for your hardware if any
LIRCMD_CONF=""

#Forcing noninteractive reconfiguration
#If lirc is to be reconfigured by an external application
#that doesn't have a debconf frontend available, the noninteractive
#frontend can be invoked and set to parse REMOTE and TRANSMITTER
#It will then populate all other variables without any user input
#If you would like to configure lirc via standard methods, be sure
#to leave this set to "false"
FORCE_NONINTERACTIVE_RECONFIGURATION="false"
START_LIRCMD=""

>>> Output of ps -ef | grep lirc: <<<

root      1003     1  0 14:26 ?        00:00:00 /usr/sbin/lircd
--output=/var/run/lirc/lircd --driver=devinput --device=/dev/input/event6
paul      3307  3117  0 14:34 pts/1    00:00:00 grep --color=auto lirc

>>> Output of dmesg | grep -v IRQ | grep 'lirc\|rc\|IR' -C3' <<<

 aul at borg:~$ dmesg | grep -v IRQ | grep 'lirc\|rc\|IR' -C3
[    0.000000] DMI: System manufacturer System Product Name/M2NPV-VM, BIOS
ASUS M2NPV-VM ACPI BIOS Revision 1001 06/21/2007
[    0.000000] e820: update [mem 0x00000000-0x0000ffff] usable ==> reserved
[    0.000000] e820: remove [mem 0x000a0000-0x000fffff] usable
[    0.000000] e820: last_pfn = 0x3fee0 max_arch_pfn = 0x1000000
[    0.000000] MTRR default type: uncachable
[    0.000000] MTRR fixed ranges enabled:
[    0.000000]   00000-9FFFF write-back
--
[    0.000000] PM: Registered nosave memory: 00000000000f0000 -
0000000000100000
[    0.000000] e820: [mem 0x3ff00000-0xdfffffff] available for PCI devices
[    0.000000] Booting paravirtualized kernel on bare hardware
[    0.000000] setup_percpu: NR_CPUS:8 nr_cpumask_bits:8 nr_cpu_ids:2
nr_node_ids:1
[    0.000000] PERCPU: Embedded 14 pages/cpu @f73da000 s34880 r0 d22464
u57344
[    0.000000] pcpu-alloc: s34880 r0 d22464 u57344 alloc=14*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1
--
[    0.000000]       .text : 0xc1000000 - 0xc16365ad   (6361 kB)
[    0.000000] Checking if this processor honours the WP bit even in
supervisor mode...Ok.
[    0.000000] SLUB: Genslabs=15, HWalign=64, Order=0-3, MinObjects=0,
CPUs=2, Nodes=1
[    0.000000] Hierarchical RCU implementation.
[    0.000000] RCU dyntick-idle grace-period acceleration is enabled.
[    0.000000] RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=2.
[    0.000000] CPU 0 irqstacks, hard=f5c08000 soft=f5c0a000
--
[    0.181799] pci_root PNP0A08:00: host bridge window [mem
0x000a0000-0x000bffff] (ignored)
[    0.181802] pci_root PNP0A08:00: host bridge window [mem
0x40000000-0xdfffffff] (ignored)
[    0.181805] pci_root PNP0A08:00: host bridge window [mem
0xf0000000-0xfe02ffff] (ignored)
[    0.181808] PCI: root bus 00: hardware-probed resources
[    0.181848] PCI host bridge to bus 0000:00
[    0.181852] pci_bus 0000:00: root bus resource [bus 00-02]
[    0.181855] pci_bus 0000:00: root bus resource [io  0x0000-0xffff]
[    0.181858] pci_bus 0000:00: root bus resource [mem
0x000a0000-0x000bffff]
[    0.181861] pci_bus 0000:00: root bus resource [mem
0x40000000-0xefffffff]
[    0.181864] pci_bus 0000:00: root bus resource [mem
0xf0000000-0xfcffffffff]
[    0.181878] pci 0000:00:00.0: [10de:02f0] type 00 class 0x050000
[    0.181928] pci 0000:00:00.1: [10de:02fa] type 00 class 0x050000
[    0.181959] pci 0000:00:00.2: [10de:02fe] type 00 class 0x050000
--
[    0.202203] NetLabel:  unlabeled traffic allowed by default
[    0.202221] HPET: 3 timers in total, 0 timers will be used for per-cpu
timer
[    0.202221] hpet0: 3 comparators, 32-bit 25.000000 MHz counter
[    0.204045] Switching to clocksource hpet
[    0.212684] AppArmor: AppArmor Filesystem Enabled
[    0.212734] pnp: PnP ACPI init
[    0.212754] ACPI: bus type pnp registered
--
[    0.253641] pci 0000:00:10.0:   bridge window [mem 0xf6000000-0xfcffffff]
[    0.253646] pci 0000:00:10.0:   bridge window [mem 0xfde00000-0xfdefffff
pref]
[    0.253659] pci 0000:00:10.0: setting latency timer to 64
[    0.253664] pci_bus 0000:00: resource 4 [io  0x0000-0xffff]
[    0.253667] pci_bus 0000:00: resource 5 [mem 0x000a0000-0x000bffff]
[    0.253670] pci_bus 0000:00: resource 6 [mem 0x40000000-0xefffffff]
[    0.253673] pci_bus 0000:00: resource 7 [mem 0xf0000000-0xfcffffffff]
[    0.253676] pci_bus 0000:01: resource 0 [io  0xa000-0xafff]
[    0.253679] pci_bus 0000:01: resource 1 [mem 0xf2000000-0xf5ffffff]
[    0.253682] pci_bus 0000:01: resource 2 [mem 0xd0000000-0xdfffffff 64bit
pref]
[    0.253686] pci_bus 0000:02: resource 0 [io  0xb000-0xbfff]
[    0.253689] pci_bus 0000:02: resource 1 [mem 0xf6000000-0xfcffffff]
[    0.253692] pci_bus 0000:02: resource 2 [mem 0xfde00000-0xfdefffff pref]
[    0.253695] pci_bus 0000:02: resource 4 [io  0x0000-0xffff]
[    0.253698] pci_bus 0000:02: resource 5 [mem 0x000a0000-0x000bffff]
[    0.253701] pci_bus 0000:02: resource 6 [mem 0x40000000-0xefffffff]
[    0.253704] pci_bus 0000:02: resource 7 [mem 0xf0000000-0xfcffffffff]
[    0.253753] NET: Registered protocol family 2
[    0.253916] TCP established hash table entries: 8192 (order: 4, 65536
bytes)
[    0.253962] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
--
[    0.887381] device-mapper: uevent: version 1.0.3
[    0.887449] device-mapper: ioctl: 4.23.1-ioctl (2012-12-18) initialised:
dm-devel at redhat.com
[    0.887471] EISA: Probing bus 0 at eisa.0
[    0.887474] EISA: Cannot allocate resource for mainboard
[    0.887477] Cannot allocate resource for EISA slot 1
[    0.887479] Cannot allocate resource for EISA slot 2
[    0.887481] Cannot allocate resource for EISA slot 3
[    0.887483] Cannot allocate resource for EISA slot 4
[    0.887485] Cannot allocate resource for EISA slot 5
[    0.887487] Cannot allocate resource for EISA slot 6
[    0.887490] Cannot allocate resource for EISA slot 7
[    0.887492] Cannot allocate resource for EISA slot 8
[    0.887493] EISA: Detected 0 cards.
[    0.887507] cpufreq-nforce2: No nForce2 chipset.
[    0.887511] cpuidle: using governor ladder
[    0.887512] cpuidle: using governor menu
[    0.887516] ledtrig-cpu: registered to indicate activity on CPUs
--
[    1.362721] scsi5 : pata_amd
[    1.362997] ata5: PATA max UDMA/133 cmd 0x1f0 ctl 0x3f6 bmdma 0xf400 irq
14
[    1.363001] ata6: PATA max UDMA/133 cmd 0x170 ctl 0x376 bmdma 0xf408 irq
15
[    1.363167] forcedeth: Reverse Engineered nForce ethernet driver.
Version 0.64.
[    1.363354] forcedeth 0000:00:14.0: setting latency timer to 64
[    1.371965] FDC 0 is a post-1991 82077
[    1.420045] usb 2-5: new low-speed USB device number 2 using ohci_hcd
[    1.436098] firewire_ohci 0000:02:05.0: added OHCI v1.10 device as card
0, 4 IR + 8 IT contexts, quirks 0x2
[    1.524361] ata5.00: ATAPI: PIONEER DVD-RW  DVR-112, 1.21, max UDMA/66
[    1.524371] ata5: nv_mode_filter: 0x1f39f&0x739f->0x739f, BIOS=0x7000
(0xc0000000) ACPI=0x701f (60:600:0x13)
[    1.540294] ata5.00: configured for UDMA/33
--
[    1.848300] ata3.00: ATA-8: SAMSUNG HD501LJ, CR100-10, max UDMA7
[    1.848303] ata3.00: 976773168 sectors, multi 1: LBA48 NCQ (depth 31/32)
[    1.856295] ata3.00: configured for UDMA/133
[    1.884575] forcedeth 0000:00:14.0: ifname eth0, PHY OUI 0x5043 @ 1,
addr 00:1b:fc:d4:9e:62
[    1.884580] forcedeth 0000:00:14.0: highdma pwrctl gbit lnktim desc-v3
[    1.936155] firewire_core 0000:02:05.0: created device fw0: GUID
0011d80001604ba0, S400
[    2.280035] ata2: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[    2.288316] ata2.00: ATA-7: SAMSUNG HD103UJ, 1AA01113, max UDMA7
--
[    3.310159] udevd[457]: starting version 175
[    3.426274] lp: driver loaded but no devices found
[    3.478532] EXT4-fs (sdc1): mounted filesystem with ordered data mode.
Opts: (null)
[    3.585795] i2c i2c-0: nForce2 SMBus adapter at 0x4c00
[    3.585869] i2c i2c-1: nForce2 SMBus adapter at 0x4c40
[    3.594273] nv_tco: NV TCO WatchDog Timer Driver v0.01
[    3.594494] nv_tco: Watchdog reboot not detected
[    3.594813] nv_tco: initialized (0x4440). heartbeat=30 sec (nowayout=0)
--
[    4.139515] tveeprom 2-0050: TV standards ATSC/DVB Digital (eeprom 0x80)
[    4.139518] tveeprom 2-0050: audio processor is None (idx 0)
[    4.139520] tveeprom 2-0050: decoder processor is CX882 (idx 25)
[    4.139523] tveeprom 2-0050: has no radio, has IR receiver, has no IR
transmitter
[    4.139525] cx88[0]: hauppauge eeprom: model=90003
[    4.141297] microcode: AMD CPU family 0xf not supported
[    4.168720] microcode: AMD CPU family 0xf not supported
[    4.262828] Registered IR keymap rc-hauppauge
[    4.263154] input: cx88 IR (Hauppauge Nova-T DVB-T as
/devices/pci0000:00/0000:00:10.0/0000:02:08.2/rc/rc0/input4
[    4.299436] rc0: cx88 IR (Hauppauge Nova-T DVB-T as
/devices/pci0000:00/0000:00:10.0/0000:02:08.2/rc/rc0
[    4.313114] cx88[0]/2: cx2388x 8802 Driver Manager
[    4.314380] cx88[0]/2: found at 0000:02:08.2, rev: 5, irq: 16, latency:
32, mmio: 0xfa000000
[    4.314501] cx88[0]/0: found at 0000:02:08.0, rev: 5, irq: 16, latency:
32, mmio: 0xfb000000
[    4.314794] cx88[0]/0: registered device video0 [v4l2]
[    4.314895] cx88[0]/0: registered device vbi0
[    4.316118] IR NEC protocol handler initialized
[    4.318308] cx88[1]: subsystem: 0070:9002, board: Hauppauge Nova-T DVB-T
[card=18,autodetected], frontend(s): 1
[    4.318314] cx88[1]: TV tuner type 4, Radio tuner type -1
[    4.329102] IR RC5(x) protocol handler initialized
[    4.332095] kvm: Nested Virtualization enabled
[    4.339903] IR RC6 protocol handler initialized
[    4.351110] IR JVC protocol handler initialized
[    4.364862] IR Sony protocol handler initialized
[    4.383817] IR SANYO protocol handler initialized
[    4.395318] input: MCE IR Keyboard/Mouse (cx88xx) as
/devices/virtual/input/input5
[    4.395439] IR MCE Keyboard/mouse protocol handler initialized
[    4.406007] lirc_dev: IR Remote Control driver registered, major 249
[    4.409131] rc rc0: lirc_dev: driver ir-lirc-codec (cx88xx) registered
at minor = 0
[    4.409138] IR LIRC bridge handler initialized
[    4.431155] vgaarb: device changed decodes:
PCI:0000:01:00.0,olddecodes=io+mem,decodes=none:owns=io+mem
[    4.434313] NVRM: loading NVIDIA UNIX x86 Kernel Module  304.88  Wed Mar
27 14:31:12 PDT 2013
[    4.475199] tveeprom 3-0050: Hauppauge model 90003, rev C2B0, serial#
2428357
--
[    4.475209] tveeprom 3-0050: TV standards ATSC/DVB Digital (eeprom 0x80)
[    4.475212] tveeprom 3-0050: audio processor is None (idx 0)
[    4.475215] tveeprom 3-0050: decoder processor is CX882 (idx 25)
[    4.475217] tveeprom 3-0050: has no radio, has IR receiver, has no IR
transmitter
[    4.475220] cx88[1]: hauppauge eeprom: model=90003
[    4.479055] Registered IR keymap rc-hauppauge
[    4.479224] input: cx88 IR (Hauppauge Nova-T DVB-T as
/devices/pci0000:00/0000:00:10.0/0000:02:09.0/rc/rc1/input6
[    4.481053] rc1: cx88 IR (Hauppauge Nova-T DVB-T as
/devices/pci0000:00/0000:00:10.0/0000:02:09.0/rc/rc1
[    4.482582] input: MCE IR Keyboard/Mouse (cx88xx) as
/devices/virtual/input/input7
[    4.483305] rc rc1: lirc_dev: driver ir-lirc-codec (cx88xx) registered
at minor = 1
[    4.483316] cx88[1]/0: found at 0000:02:09.0, rev: 5, irq: 17, latency:
32, mmio: 0xf8000000
[    4.483551] cx88[1]/0: registered device video1 [v4l2]
[    4.483836] cx88[1]/0: registered device vbi1
paul at borg:~$
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.mythtv.org/pipermail/mythtv-users/attachments/20131030/94dbed4c/attachment-0001.html>


More information about the mythtv-users mailing list