You are not logged in.
Pages: 1
I have this HP mceusb remote control which I use for kodi.
https://ae01.alicdn.com/kf/HTB1hg.lHVXX … 40x640.jpg
How do i enable the green button to start kodi?
I use the following from the wiki to write the .lircrc file with the following modification.
I have also used this link to write the code below as well https://ubuntuforums.org/showthread.php?t=1395296
begin
prog = irexec
remote = mceusb
button = KEY_HOME
config = /usr/bin/kodi-standalone -l /run/lirc/lircd
repeat = 0
end
This does not work so what am i doing wrong?
Just to inform you the remote works fine when kodi is on but I want to use the green button to start kodi.
Suggestions and help is required so please help and for that I will be greatful.
Thank you.
OZooHA
Last edited by ozooha (2019-06-12 20:45:08)
Offline
The steps you took only partially match the wiki article. The .lircrc file config line is different and you make no mention of editing the kodi.service.
Please also you code tags for command and file contents not quote tags.
Offline
Sorry I wasn't trying to run the kodi-standalone (service) but wanted to run within my Gnome DE environment while logged into it.
I mentioned the wiki article to use that as a a basis to create that .lircrc file. Am I wrong?
Offline
What is supposed to start irexec in your configuration?
Edit:
lirc should be irexec
Last edited by loqs (2018-06-16 23:13:33)
Offline
What is supposed to start irexec in your configuration?
Edit:
lirc should be irexec
irexec is suppose to start /usr/bin/kodi
I don't understand what you meant in
lirc should be irexec
Please elaborate.
Offline
I have a different remote but this is how I have mine set up:
ted@desktop:~$ cat ~/.config/lircrc
begin
remote = devinput-32
button = KEY_RED
prog = irexec
config = [[ ! $(pidof kodi-x11) ]] && /usr/bin/kodi &
end
I'm running kodi 18, if you're running kodi 17 replace kodi-x11 with kodi.bin (the test just checks that kodi is not already running before launching it)
You should also setup /usr/bin/irexec as an autostart app.
Last edited by cspack (2018-06-17 07:22:04)
Offline
loqs wrote:What is supposed to start irexec in your configuration?
Edit:
lirc should be irexecirexec is suppose to start /usr/bin/kodi
What on your system starts irexec so that it is running so it can respond to the remote signal and start kodi?
I don't understand what you meant in
loqs wrote:lirc should be irexec
Please elaborate.
That is an explanatory note on the edit I made to that post changing lirc to irexec.
I originally wrote "What is supposed to start lirc in your configuration?" which I corrected to "What is supposed to start irexec in your configuration?"
I used edit notes to document changes made in edits to a post.
Last edited by loqs (2018-06-17 07:45:28)
Offline
I have a different remote but this is how I have mine set up:
ted@desktop:~$ cat ~/.config/lircrc begin remote = devinput-32 button = KEY_RED prog = irexec config = [[ ! $(pidof kodi-x11) ]] && /usr/bin/kodi & end
I'm running kodi 18, if you're running kodi 17 replace kodi-x11 with kodi.bin (the test just checks that kodi is not already running before launching it)
You should also setup /usr/bin/irexec as an autostart app.
I followed your exact instructions and configuration:
begin
remote = mceusb
button = KEY_HOME
prog = irexec
config = [[ ! $(pidof kodi.bin) ]] && /usr/bin/kodi &
end
it works fine when i start manually /usr/bin/irexec but
unsuccessful when I autostart using either of the provided (Section A7)files
irexec.service through the provided systemctl or
irexec.desktop in the .config/autostart
How did you autostart the service?
Any help is appreciated.
OZooHA
Offline
How did you autostart the service?
I'm running i3 and I just start irexec from a shell script called by my i3 config file. What does your .config/autostart/irexec.desktop file look like?
Offline
ozooha wrote:How did you autostart the service?
I'm running i3 and I just start irexec from a shell script called by my i3 config file. What does your .config/autostart/irexec.desktop file look like?
This comes from the contrib folder provided by the package - /usr/share/lirc/contrib/
; Drop in ~/.config/autostart to create a session irexec service
[Desktop Entry]
Version=1.0
Name=Irexec daemon
Comment=Handle IR command server
Name[se]=Hantera IR-kommandon
Exec=run-irexec
Icon=applications-system
Terminal=false
Type=Application
Categories=AudioVideo;Application;X-Fedora-Extra
Offline
Try it with
Exec=irexec
Offline
Try it with
Exec=irexec
Sweet!!!That was it burh
Much obliged.
OZooHA
Offline
Pages: 1