Skip to content

starting Kodi using triggers #4

@sgonauer

Description

@sgonauer

Hi,

I'm using a raspberrypi4 to use Kodi.
I'd like to use the cecdaemon to start Kodi at will to avoid having it run 24/7 (and hence saving power)

If I start cecdaemon and Kodi manually Kodi gets input from cecdaemon (and not from the pulseeightdevice)

However once I try to start Kodi using trigger (a press on red key for example) Kodi doesn't receive events anymore.

I tried starting Kodi using the following script :

stgo@raspberrypi:~ $ cat /usr/bin/start-k.sh
#/bin/bash
sleep 1
echo "after sleep"
if pgrep -f kodi; then
echo "kodi present exiting"
exit
fi

su stgo /usr/bin/kodi &
echo "after fork of kodi" | logger

with the config :

[cmd_start_kodi]

Red

key = 114
holdtime = 1
command = bash /usr/bin/start-k.sh

I'm wondering if the issue is the fork from cecdaemon context.

Maybe using a systemd service would help ?

Any ideas ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions