<div dir="ltr">On 29 October 2013 22:27, Lincoln <span dir="ltr"><<a href="mailto:lincoln@performaplus.co.nz" target="_blank">lincoln@performaplus.co.nz</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
<div>On 30/10/2013 7:47 a.m., Paul Clark
wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr"><span><font>Hello everyone<br>
<br>
This is really driving me mad. <br>
<br>
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. <br>
<br>
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:'. <br>
<br>
If I check the dmesg log I see a bunch of messages along the
lines of:<br>
<br>
</font></span><span style="font-size:13px;font-family:Arial">Oct
28 22:13:32 borg kernel: [ 240.756452] INFO: task lirc:1316
blocked for more than 120 seconds.</span><br style="font-family:Verdana,Arial,Tahoma,Calibri,Geneva,sans-serif;font-size:13px">
<span style="font-size:13px;font-family:Arial">Oct 28 22:13:32
borg kernel: [ 240.756499] "echo 0 >
/proc/sys/kernel/hung_task_timeout_secs" disables this
message.</span><br style="font-family:Verdana,Arial,Tahoma,Calibri,Geneva,sans-serif;font-size:13px">
<span style="font-size:13px;font-family:Arial">Oct 28 22:13:32
borg kernel: [ 240.756547] lirc D 00000000 0
1316 1 0x00000000 </span><span style="font-size:13px;font-family:Arial"><br>
<br>
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. <br>
<br>
Thanks, Paul</span><br>
</div>
<br>
<fieldset></fieldset>
</blockquote>
<br>
What driver are you using for lirc? <br>
Can you post your /etc/lirc/hardware.conf script?<br>
When you've restarted your system, is lirc running - what does 'ps
-ef | grep lirc' give?<br>
Could you put the output of 'dmesg | grep -v IRQ | grep
'lirc\|rc\|IR' -C3'
</div>
<br></blockquote><div><br></div><div><br></div><div><br></div><div><br></div><div>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.</div>
<div><br></div><div>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:</div>
<div><br></div><div>sudo /usr/sbin/lircd -H dev/input -d /dev/input/event6 -n<br></div><div><b><br></b></div><div>In one window and the irw in another so the hardware.conf might not be completely correct.</div><div><br></div>
<div>>>> Driver: not sure. How do I work that one out? <<<</div><div><br></div><div>>>> hardware.conf file <<<</div><div><br></div><div><div># /etc/lirc/hardware.conf</div><div>#</div>
<div>#Chosen Remote Control</div><div>REMOTE="Hauppauge Nova-T 500"</div><div>REMOTE_MODULES=""</div><div>REMOTE_DRIVER="devinput"</div><div>REMOTE_DEVICE="/dev/input/event6"</div><div>
REMOTE_SOCKET=""</div><div>REMOTE_LIRCD_CONF="hauppauge/lircd.conf.hauppauge_novat500"</div><div>REMOTE_LIRCD_ARGS=""</div><div><br></div><div>#Chosen IR Transmitter</div><div>TRANSMITTER="None"</div>
<div>TRANSMITTER_MODULES=""</div><div>TRANSMITTER_DRIVER=""</div><div>TRANSMITTER_DEVICE=""</div><div>TRANSMITTER_SOCKET=""</div><div>TRANSMITTER_LIRCD_CONF=""</div><div>TRANSMITTER_LIRCD_ARGS=""</div>
<div><br></div><div>#Enable lircd</div><div>START_LIRCD="true"</div><div><br></div><div>#Don't start lircmd even if there seems to be a good config file</div><div>#START_LIRCMD="false"</div><div><br>
</div><div>#Try to load appropriate kernel modules</div><div>LOAD_MODULES="true"</div><div><br></div><div># Default configuration files for your hardware if any</div><div>LIRCMD_CONF=""</div><div><br></div>
<div>#Forcing noninteractive reconfiguration</div><div>#If lirc is to be reconfigured by an external application</div><div>#that doesn't have a debconf frontend available, the noninteractive</div><div>#frontend can be invoked and set to parse REMOTE and TRANSMITTER</div>
<div>#It will then populate all other variables without any user input</div><div>#If you would like to configure lirc via standard methods, be sure</div><div>#to leave this set to "false"</div><div>FORCE_NONINTERACTIVE_RECONFIGURATION="false"</div>
<div>START_LIRCMD=""</div></div><div><br></div><div><div>>>> Output of ps -ef | grep lirc: <<<</div><div><br></div><div>root 1003 1 0 14:26 ? 00:00:00 /usr/sbin/lircd --output=/var/run/lirc/lircd --driver=devinput --device=/dev/input/event6</div>
<div>paul 3307 3117 0 14:34 pts/1 00:00:00 grep --color=auto lirc</div></div><div><br></div><div>>>> Output of dmesg | grep -v IRQ | grep 'lirc\|rc\|IR' -C3' <<<</div><div><br></div>
<div> aul@borg:~$ dmesg | grep -v IRQ | grep 'lirc\|rc\|IR' -C3</div><div>[ 0.000000] DMI: System manufacturer System Product Name/M2NPV-VM, BIOS ASUS M2NPV-VM ACPI BIOS Revision 1001 06/21/2007</div><div>[ 0.000000] e820: update [mem 0x00000000-0x0000ffff] usable ==> reserved</div>
<div>[ 0.000000] e820: remove [mem 0x000a0000-0x000fffff] usable</div><div>[ 0.000000] e820: last_pfn = 0x3fee0 max_arch_pfn = 0x1000000</div><div>[ 0.000000] MTRR default type: uncachable</div><div>[ 0.000000] MTRR fixed ranges enabled:</div>
<div>[ 0.000000] 00000-9FFFF write-back</div><div>--</div><div>[ 0.000000] PM: Registered nosave memory: 00000000000f0000 - 0000000000100000</div><div>[ 0.000000] e820: [mem 0x3ff00000-0xdfffffff] available for PCI devices</div>
<div>[ 0.000000] Booting paravirtualized kernel on bare hardware</div><div>[ 0.000000] setup_percpu: NR_CPUS:8 nr_cpumask_bits:8 nr_cpu_ids:2 nr_node_ids:1</div><div>[ 0.000000] PERCPU: Embedded 14 pages/cpu @f73da000 s34880 r0 d22464 u57344</div>
<div>[ 0.000000] pcpu-alloc: s34880 r0 d22464 u57344 alloc=14*4096</div><div>[ 0.000000] pcpu-alloc: [0] 0 [0] 1</div><div>--</div><div>[ 0.000000] .text : 0xc1000000 - 0xc16365ad (6361 kB)</div><div>[ 0.000000] Checking if this processor honours the WP bit even in supervisor mode...Ok.</div>
<div>[ 0.000000] SLUB: Genslabs=15, HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1</div><div>[ 0.000000] Hierarchical RCU implementation.</div><div>[ 0.000000] <span class="" style="white-space:pre">        </span>RCU dyntick-idle grace-period acceleration is enabled.</div>
<div>[ 0.000000] <span class="" style="white-space:pre">        </span>RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=2.</div><div>[ 0.000000] CPU 0 irqstacks, hard=f5c08000 soft=f5c0a000</div><div>--</div><div>[ 0.181799] pci_root PNP0A08:00: host bridge window [mem 0x000a0000-0x000bffff] (ignored)</div>
<div>[ 0.181802] pci_root PNP0A08:00: host bridge window [mem 0x40000000-0xdfffffff] (ignored)</div><div>[ 0.181805] pci_root PNP0A08:00: host bridge window [mem 0xf0000000-0xfe02ffff] (ignored)</div><div>[ 0.181808] PCI: root bus 00: hardware-probed resources</div>
<div>[ 0.181848] PCI host bridge to bus 0000:00</div><div>[ 0.181852] pci_bus 0000:00: root bus resource [bus 00-02]</div><div>[ 0.181855] pci_bus 0000:00: root bus resource [io 0x0000-0xffff]</div><div>[ 0.181858] pci_bus 0000:00: root bus resource [mem 0x000a0000-0x000bffff]</div>
<div>[ 0.181861] pci_bus 0000:00: root bus resource [mem 0x40000000-0xefffffff]</div><div>[ 0.181864] pci_bus 0000:00: root bus resource [mem 0xf0000000-0xfcffffffff]</div><div>[ 0.181878] pci 0000:00:00.0: [10de:02f0] type 00 class 0x050000</div>
<div>[ 0.181928] pci 0000:00:00.1: [10de:02fa] type 00 class 0x050000</div><div>[ 0.181959] pci 0000:00:00.2: [10de:02fe] type 00 class 0x050000</div><div>--</div><div>[ 0.202203] NetLabel: unlabeled traffic allowed by default</div>
<div>[ 0.202221] HPET: 3 timers in total, 0 timers will be used for per-cpu timer</div><div>[ 0.202221] hpet0: 3 comparators, 32-bit 25.000000 MHz counter</div><div>[ 0.204045] Switching to clocksource hpet</div>
<div>[ 0.212684] AppArmor: AppArmor Filesystem Enabled</div><div>[ 0.212734] pnp: PnP ACPI init</div><div>[ 0.212754] ACPI: bus type pnp registered</div><div>--</div><div>[ 0.253641] pci 0000:00:10.0: bridge window [mem 0xf6000000-0xfcffffff]</div>
<div>[ 0.253646] pci 0000:00:10.0: bridge window [mem 0xfde00000-0xfdefffff pref]</div><div>[ 0.253659] pci 0000:00:10.0: setting latency timer to 64</div><div>[ 0.253664] pci_bus 0000:00: resource 4 [io 0x0000-0xffff]</div>
<div>[ 0.253667] pci_bus 0000:00: resource 5 [mem 0x000a0000-0x000bffff]</div><div>[ 0.253670] pci_bus 0000:00: resource 6 [mem 0x40000000-0xefffffff]</div><div>[ 0.253673] pci_bus 0000:00: resource 7 [mem 0xf0000000-0xfcffffffff]</div>
<div>[ 0.253676] pci_bus 0000:01: resource 0 [io 0xa000-0xafff]</div><div>[ 0.253679] pci_bus 0000:01: resource 1 [mem 0xf2000000-0xf5ffffff]</div><div>[ 0.253682] pci_bus 0000:01: resource 2 [mem 0xd0000000-0xdfffffff 64bit pref]</div>
<div>[ 0.253686] pci_bus 0000:02: resource 0 [io 0xb000-0xbfff]</div><div>[ 0.253689] pci_bus 0000:02: resource 1 [mem 0xf6000000-0xfcffffff]</div><div>[ 0.253692] pci_bus 0000:02: resource 2 [mem 0xfde00000-0xfdefffff pref]</div>
<div>[ 0.253695] pci_bus 0000:02: resource 4 [io 0x0000-0xffff]</div><div>[ 0.253698] pci_bus 0000:02: resource 5 [mem 0x000a0000-0x000bffff]</div><div>[ 0.253701] pci_bus 0000:02: resource 6 [mem 0x40000000-0xefffffff]</div>
<div>[ 0.253704] pci_bus 0000:02: resource 7 [mem 0xf0000000-0xfcffffffff]</div><div>[ 0.253753] NET: Registered protocol family 2</div><div>[ 0.253916] TCP established hash table entries: 8192 (order: 4, 65536 bytes)</div>
<div>[ 0.253962] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)</div><div>--</div><div>[ 0.887381] device-mapper: uevent: version 1.0.3</div><div>[ 0.887449] device-mapper: ioctl: 4.23.1-ioctl (2012-12-18) initialised: <a href="mailto:dm-devel@redhat.com">dm-devel@redhat.com</a></div>
<div>[ 0.887471] EISA: Probing bus 0 at eisa.0</div><div>[ 0.887474] EISA: Cannot allocate resource for mainboard</div><div>[ 0.887477] Cannot allocate resource for EISA slot 1</div><div>[ 0.887479] Cannot allocate resource for EISA slot 2</div>
<div>[ 0.887481] Cannot allocate resource for EISA slot 3</div><div>[ 0.887483] Cannot allocate resource for EISA slot 4</div><div>[ 0.887485] Cannot allocate resource for EISA slot 5</div><div>[ 0.887487] Cannot allocate resource for EISA slot 6</div>
<div>[ 0.887490] Cannot allocate resource for EISA slot 7</div><div>[ 0.887492] Cannot allocate resource for EISA slot 8</div><div>[ 0.887493] EISA: Detected 0 cards.</div><div>[ 0.887507] cpufreq-nforce2: No nForce2 chipset.</div>
<div>[ 0.887511] cpuidle: using governor ladder</div><div>[ 0.887512] cpuidle: using governor menu</div><div>[ 0.887516] ledtrig-cpu: registered to indicate activity on CPUs</div><div>--</div><div>[ 1.362721] scsi5 : pata_amd</div>
<div>[ 1.362997] ata5: PATA max UDMA/133 cmd 0x1f0 ctl 0x3f6 bmdma 0xf400 irq 14</div><div>[ 1.363001] ata6: PATA max UDMA/133 cmd 0x170 ctl 0x376 bmdma 0xf408 irq 15</div><div>[ 1.363167] forcedeth: Reverse Engineered nForce ethernet driver. Version 0.64.</div>
<div>[ 1.363354] forcedeth 0000:00:14.0: setting latency timer to 64</div><div>[ 1.371965] FDC 0 is a post-1991 82077</div><div>[ 1.420045] usb 2-5: new low-speed USB device number 2 using ohci_hcd</div><div>[ 1.436098] firewire_ohci 0000:02:05.0: added OHCI v1.10 device as card 0, 4 IR + 8 IT contexts, quirks 0x2</div>
<div>[ 1.524361] ata5.00: ATAPI: PIONEER DVD-RW DVR-112, 1.21, max UDMA/66</div><div>[ 1.524371] ata5: nv_mode_filter: 0x1f39f&0x739f->0x739f, BIOS=0x7000 (0xc0000000) ACPI=0x701f (60:600:0x13)</div><div>[ 1.540294] ata5.00: configured for UDMA/33</div>
<div>--</div><div>[ 1.848300] ata3.00: ATA-8: SAMSUNG HD501LJ, CR100-10, max UDMA7</div><div>[ 1.848303] ata3.00: 976773168 sectors, multi 1: LBA48 NCQ (depth 31/32)</div><div>[ 1.856295] ata3.00: configured for UDMA/133</div>
<div>[ 1.884575] forcedeth 0000:00:14.0: ifname eth0, PHY OUI 0x5043 @ 1, addr 00:1b:fc:d4:9e:62</div><div>[ 1.884580] forcedeth 0000:00:14.0: highdma pwrctl gbit lnktim desc-v3</div><div>[ 1.936155] firewire_core 0000:02:05.0: created device fw0: GUID 0011d80001604ba0, S400</div>
<div>[ 2.280035] ata2: SATA link up 3.0 Gbps (SStatus 123 SControl 300)</div><div>[ 2.288316] ata2.00: ATA-7: SAMSUNG HD103UJ, 1AA01113, max UDMA7</div><div>--</div><div>[ 3.310159] udevd[457]: starting version 175</div>
<div>[ 3.426274] lp: driver loaded but no devices found</div><div>[ 3.478532] EXT4-fs (sdc1): mounted filesystem with ordered data mode. Opts: (null)</div><div>[ 3.585795] i2c i2c-0: nForce2 SMBus adapter at 0x4c00</div>
<div>[ 3.585869] i2c i2c-1: nForce2 SMBus adapter at 0x4c40</div><div>[ 3.594273] nv_tco: NV TCO WatchDog Timer Driver v0.01</div><div>[ 3.594494] nv_tco: Watchdog reboot not detected</div><div>[ 3.594813] nv_tco: initialized (0x4440). heartbeat=30 sec (nowayout=0)</div>
<div>--</div><div>[ 4.139515] tveeprom 2-0050: TV standards ATSC/DVB Digital (eeprom 0x80)</div><div>[ 4.139518] tveeprom 2-0050: audio processor is None (idx 0)</div><div>[ 4.139520] tveeprom 2-0050: decoder processor is CX882 (idx 25)</div>
<div>[ 4.139523] tveeprom 2-0050: has no radio, has IR receiver, has no IR transmitter</div><div>[ 4.139525] cx88[0]: hauppauge eeprom: model=90003</div><div>[ 4.141297] microcode: AMD CPU family 0xf not supported</div>
<div>[ 4.168720] microcode: AMD CPU family 0xf not supported</div><div>[ 4.262828] Registered IR keymap rc-hauppauge</div><div>[ 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</div>
<div>[ 4.299436] rc0: cx88 IR (Hauppauge Nova-T DVB-T as /devices/pci0000:00/0000:00:10.0/0000:02:08.2/rc/rc0</div><div>[ 4.313114] cx88[0]/2: cx2388x 8802 Driver Manager</div><div>[ 4.314380] cx88[0]/2: found at 0000:02:08.2, rev: 5, irq: 16, latency: 32, mmio: 0xfa000000</div>
<div>[ 4.314501] cx88[0]/0: found at 0000:02:08.0, rev: 5, irq: 16, latency: 32, mmio: 0xfb000000</div><div>[ 4.314794] cx88[0]/0: registered device video0 [v4l2]</div><div>[ 4.314895] cx88[0]/0: registered device vbi0</div>
<div>[ 4.316118] IR NEC protocol handler initialized</div><div>[ 4.318308] cx88[1]: subsystem: 0070:9002, board: Hauppauge Nova-T DVB-T [card=18,autodetected], frontend(s): 1</div><div>[ 4.318314] cx88[1]: TV tuner type 4, Radio tuner type -1</div>
<div>[ 4.329102] IR RC5(x) protocol handler initialized</div><div>[ 4.332095] kvm: Nested Virtualization enabled</div><div>[ 4.339903] IR RC6 protocol handler initialized</div><div>[ 4.351110] IR JVC protocol handler initialized</div>
<div>[ 4.364862] IR Sony protocol handler initialized</div><div>[ 4.383817] IR SANYO protocol handler initialized</div><div>[ 4.395318] input: MCE IR Keyboard/Mouse (cx88xx) as /devices/virtual/input/input5</div>
<div>[ 4.395439] IR MCE Keyboard/mouse protocol handler initialized</div><div>[ 4.406007] lirc_dev: IR Remote Control driver registered, major 249</div><div>[ 4.409131] rc rc0: lirc_dev: driver ir-lirc-codec (cx88xx) registered at minor = 0</div>
<div>[ 4.409138] IR LIRC bridge handler initialized</div><div>[ 4.431155] vgaarb: device changed decodes: PCI:0000:01:00.0,olddecodes=io+mem,decodes=none:owns=io+mem</div><div>[ 4.434313] NVRM: loading NVIDIA UNIX x86 Kernel Module 304.88 Wed Mar 27 14:31:12 PDT 2013</div>
<div>[ 4.475199] tveeprom 3-0050: Hauppauge model 90003, rev C2B0, serial# 2428357</div><div>--</div><div>[ 4.475209] tveeprom 3-0050: TV standards ATSC/DVB Digital (eeprom 0x80)</div><div>[ 4.475212] tveeprom 3-0050: audio processor is None (idx 0)</div>
<div>[ 4.475215] tveeprom 3-0050: decoder processor is CX882 (idx 25)</div><div>[ 4.475217] tveeprom 3-0050: has no radio, has IR receiver, has no IR transmitter</div><div>[ 4.475220] cx88[1]: hauppauge eeprom: model=90003</div>
<div>[ 4.479055] Registered IR keymap rc-hauppauge</div><div>[ 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</div><div>[ 4.481053] rc1: cx88 IR (Hauppauge Nova-T DVB-T as /devices/pci0000:00/0000:00:10.0/0000:02:09.0/rc/rc1</div>
<div>[ 4.482582] input: MCE IR Keyboard/Mouse (cx88xx) as /devices/virtual/input/input7</div><div>[ 4.483305] rc rc1: lirc_dev: driver ir-lirc-codec (cx88xx) registered at minor = 1</div><div>[ 4.483316] cx88[1]/0: found at 0000:02:09.0, rev: 5, irq: 17, latency: 32, mmio: 0xf8000000</div>
<div>[ 4.483551] cx88[1]/0: registered device video1 [v4l2]</div><div>[ 4.483836] cx88[1]/0: registered device vbi1</div><div>paul@borg:~$</div></div></div></div>