Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No Signal on Raspberry Pi (using vcgencmd) doesn't work on Kodi 18 on RPi #7

Open
begasslmaier opened this issue Jun 16, 2019 · 3 comments
Labels
enhancement New feature or request
Milestone

Comments

@begasslmaier
Copy link

"Error 2 File not found" is reported. Changing screensaver.py to contain the full path "/opt/vc/bin/vcgencmd" makes it work, so this path might not be included in the command search path.

@dagwieers dagwieers added the wontfix This will not be worked on label Jun 16, 2019
@dagwieers
Copy link
Collaborator

dagwieers commented Jun 16, 2019

I guess it depends on the platform, as I use it like this on LibreELEC:

LibreELEC (official): 9.0.2 (RPi2.arm)
kodi01:~ # which vcgencmd
/usr/bin/vcgencmd

And this is why we don't put an absolute path in the command.

@dagwieers dagwieers added this to the v0.10.2 milestone Oct 30, 2019
@dagwieers dagwieers reopened this Oct 30, 2019
@dagwieers dagwieers modified the milestones: v0.10.2, v0.11.0 Nov 21, 2019
@dagwieers dagwieers added enhancement New feature or request and removed wontfix This will not be worked on labels Jan 2, 2020
@u-quark
Copy link

u-quark commented Aug 6, 2022

Not adding the full path to the vcgencmd command is the right call. The problem is that the environment variable PATH seems to not have the correct value when the plugin runs. Not sure why or where is the right place to change that. On OSMC Released 2022-03-14 with a Pi 4 when I ssh the $PATH includes: /usr/osmc/bin:/opt/vc/bin while PATH from inside the plugin python code does not include those.
Given OSMC is quite popular on RPi, consider altering PATH to include those paths in the plugin code, something like:

import os
os.environ["PATH"] += ':/usr/osmc/bin:/opt/vc/bin'

A bit of a hack but I think it is worth it.

@th3gr33n
Copy link

th3gr33n commented Feb 16, 2023

vcgencmd doesnt work anymore with newer Kernels see
raspberrypi/firmware#1740
https://forums.raspberrypi.com/viewtopic.php?t=331817

could u implement a replacement ? because right now there is now way in Kodi to turn HDMi off it seems

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants