LIRC not loading correctly on boot

Asked by Mac Tzu

Hey Guys,

Firstly like to thank you in advance for your work.

But I have issue where I have recently installed a new HTPC with 15.04
Everything installed fine and I hvae installed lirc and lirc-x

My issue is with LIRC. I can see under systemctl that both lirc.service and inputlirc.service are running. I have configure my remote in lirc and x apps such as kodi. I have receive signal in bash with irw. But nothing in in X.
As I have been trying to fix this I have re-run "$dpkg reconfigure lirc" each time after I run it remote works perfectly in X, no problem.
But next time I boot in it stops working, I run systemctl start and Stop the lirc service and the input service no luck. If i rund dpkg again it works perfectly again.

So dpkg is doing something, I just don't understand what that it and how I can replicate that without runngin dpkg.

So I am clearly not have any hardward or drivers issue and it does work on my system. It would be nice it the lirc package working out of the box with minimal config. While I not a coder I am happy to do whatever it takes to assist that goal.

If you need any other system information please email <email address hidden>

Question information

Language:
English Edit question
Status:
Expired
For:
Ubuntu lirc Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

After you run:

dpkg reconfigure lirc

Which will need sudo adding to it, do you need to press anything else or do you get the prompt back and all is well?

Revision history for this message
Mac Tzu (mac-tzu) said :
#2

Hi Andrew,

Thank you for a prompted reply.

Yes sorry I executed the dpkg reconfigure command while under "sudo -i", In fact I use sudo -i for all apt-get related comands in ubuntu becuase I hate retype sudo for every command.
So the command works no problems.

I have since re tested this,
if I do nothing else, just run dpkg reconfig, then I select the remote in the 1st screen of menu and second screenI don't select any receiver options and command completed and bash prompt is return. Then I load kodi and it work prefectly.

I think that it is like dpkg runs the program or ancillary programs when it complete the configuration.

Is there any option system info I can provide to assist. ?

NB: the menu to that is display by dpkg is like to old skool debian installer menu blue background, grey menu and red selection bar. Might some kind of ncurses menu.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#3

It's 4 characters and a space, hardly taxing.

If you add the command in /etc/rc.local above the "exit 0" line it will run at boot as root and should make lirc run OK from boot up.

Revision history for this message
Mac Tzu (mac-tzu) said :
#4

Hi Andrew,

not that's is ok I am happy edit configure but I have read some very convoluted solution for LIRC

but I have checked rc.local and lirc scripts in rc*.d they all end with exit 0. but that's sounds like a upstart solution.

I was understanding that all init is handled by systemctrl and init scripts (for want of a better description) in /etc/systemd/service

I just do understand what dpkg is doing after I reconfigure becuase everything works flawlessly. it just doesn't make sense to manually run it after each boot

Andrew are you working with 15.04 ?

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#5

I'm sitting on 12.04 til 16.04 then will be buying a new pair of disks and a clean install of 16.04

Going to feel like a new tshirt

Revision history for this message
Mac Tzu (mac-tzu) said :
#6

clean install nice,

But I really need support for Systemd here, I feeling it is a configuration bug , but as there on direct error I am not what to report ?

Revision history for this message
Launchpad Janitor (janitor) said :
#7

This question was expired because it remained in the 'Open' state without activity for the last 15 days.