You are not logged in.

#1 2018-06-16 22:51:55

ozooha
Member
Registered: 2009-09-29
Posts: 174

SOLVED: mceusb kodi green button

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

#2 2018-06-16 22:58:57

loqs
Member
Registered: 2014-03-06
Posts: 17,374

Re: SOLVED: mceusb kodi green button

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

#3 2018-06-16 23:03:01

ozooha
Member
Registered: 2009-09-29
Posts: 174

Re: SOLVED: mceusb kodi green button

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

#4 2018-06-16 23:11:09

loqs
Member
Registered: 2014-03-06
Posts: 17,374

Re: SOLVED: mceusb kodi green button

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

#5 2018-06-17 01:04:55

ozooha
Member
Registered: 2009-09-29
Posts: 174

Re: SOLVED: mceusb kodi green button

loqs wrote:

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

#6 2018-06-17 07:01:42

cspack
Member
Registered: 2016-09-01
Posts: 29

Re: SOLVED: mceusb kodi green button

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

#7 2018-06-17 07:44:36

loqs
Member
Registered: 2014-03-06
Posts: 17,374

Re: SOLVED: mceusb kodi green button

ozooha wrote:
loqs wrote:

What is supposed to start irexec in your configuration?
Edit:
lirc should be irexec

irexec 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?

ozooha wrote:

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

#8 2018-06-17 16:54:32

ozooha
Member
Registered: 2009-09-29
Posts: 174

Re: SOLVED: mceusb kodi green button

cspack wrote:

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

#9 2018-06-17 18:37:58

cspack
Member
Registered: 2016-09-01
Posts: 29

Re: SOLVED: mceusb kodi green button

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?

Offline

#10 2018-06-17 19:40:52

ozooha
Member
Registered: 2009-09-29
Posts: 174

Re: SOLVED: mceusb kodi green button

cspack wrote:
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

#11 2018-06-17 20:51:37

cspack
Member
Registered: 2016-09-01
Posts: 29

Re: SOLVED: mceusb kodi green button

Try it with

Exec=irexec

Offline

#12 2018-06-17 22:23:05

ozooha
Member
Registered: 2009-09-29
Posts: 174

Re: SOLVED: mceusb kodi green button

cspack wrote:

Try it with

Exec=irexec

Sweet!!!That was it burh
Much obliged.
OZooHA

Offline

Board footer

Powered by FluxBB