Hi, on raspbian I am usign tvservice to check if a montiro or tv is on or off trough hdmi,
ogra
July 17, 2019, 9:57am
2
take a look at the vc-libs part in
name: omxplayer-pi
version: '0.2'
summary: OpenMax player for the raspberry pi
description: |
OMXPlayer is a commandline OMX player for the Raspberry PI.
It was developed as a testbed for the XBMC Raspberry PI implementation
and is quite handy to use standalone.
OMXPlayer should be used with the fake KMS driver on Ubuntu Core, make
sure to have "dtoverlay=vc4-fkms-v3d,cma-256" in /boot/uboot/config.txt
(the default).
After installation please connect the hardware observe interface
sudo snap connect omxplayer-pi:hardware-observe
If you want to play content from the home dir on ubuntu core, also connect
the home interface
sudo snap connect omxplayer-pi:home
To play back content from a USB key or other external media, connect the
This file has been truncated. show original
you should be able to create a snap that also includes the tools (by adding an extra part along with vc-libs) so you can have a snap including the tvservice …
alternatively there is probably some way via sysfs or /proc