[mythtv-users] Raspberry 4 mythfrontend on 4K TV

James Abernathy jfabernathy at gmail.com
Thu Nov 18 16:14:13 UTC 2021


I'm getting intermittent failures to launch correctly.  I've been using a
modified version of the pi-utils/run_mythfrontend.sh script from
github.com/MikeB2013/pi-utils.

If the command the script uses is a simple:
QT_QPA_EGLFS_ALWAYS_SET_MODE="1" QT_QPA_PLATFORM=eglfs  mythfrontend
$ARGUMENTS
then it works but the screen is in 4K resolution and that is not ideal for
performance.

The standard run_mythfontend.sh forces the screen to 1920x1080 at 60 mode and
when that works the performance is excellent.
QT_QPA_EGLFS_ALWAYS_SET_MODE="1" QT_QPA_PLATFORM=eglfs
QT_QPA_EGLFS_KMS_CONFIG=/home/pi/pi_mythfrontend.json mythfrontend
$ARGUMENTS

The CONFIG file contains:
{
    "device": "/dev/dri/card1",
    "outputs": [
        { "name": "HDMI1", "mode": "1920x1080 at 60" }
    ]
}

When this command fails I get the following on the console which indicates
that no screens are available. I've never understood this use of the CONFIG
file as it's calling out HDMI1 which I think should be HDMI0, but I get
errors with that as well:

pi at rpi4-mythtv:~ $ ./jfa-mythfront.sh
Starting MythTV Frontend -- this may take a few seconds -- Please wait
performance
Setting screen to 1920x1080 at 60
drmModeGetResources failed (Operation not supported)
no screens available, assuming 24-bit color
2021-11-18 10:59:38.705449 I  Setup Interrupt handler
2021-11-18 10:59:38.705472 I  Setup Terminated handler
2021-11-18 10:59:38.705480 I  Setup Segmentation fault handler
2021-11-18 10:59:38.705487 I  Setup Aborted handler
2021-11-18 10:59:38.705494 I  Setup Bus error handler
2021-11-18 10:59:38.705501 I  Setup Floating point exception handler
2021-11-18 10:59:38.705509 I  Setup Illegal instruction handler
2021-11-18 10:59:38.705523 I  Setup Real-time signal 0 handler
2021-11-18 10:59:38.705533 I  Setup User defined signal 1 handler
2021-11-18 10:59:38.705540 I  Setup User defined signal 2 handler
2021-11-18 10:59:38.705547 I  Setup Hangup handler
2021-11-18 10:59:38.706632 C  mythfrontend version: devel/ffmpeg-resync
[v32-Pre-2989-g1147ad9a91] www.mythtv.org
2021-11-18 10:59:38.706642 C  Qt version: compile: 5.15.2, runtime: 5.15.2
2021-11-18 10:59:38.706743 I  Debian GNU/Linux 11 (bullseye) (arm64)
2021-11-18 10:59:38.706747 N  Enabled verbose msgs:  general
2021-11-18 10:59:38.706926 N  Setting Log Level to LOG_INFO
2021-11-18 10:59:38.717407 I  Added logging to the console
2021-11-18 10:59:38.717438 N  Using runtime prefix = /usr
2021-11-18 10:59:38.717443 N  Using configuration directory =
/home/pi/.mythtv
2021-11-18 10:59:38.717504 I  Assumed character encoding: en_US.UTF-8
2021-11-18 10:59:38.717551 N  Setting 'PowerOffTVOnExit' being forced to '0'
2021-11-18 10:59:38.718120 I  Added logging to
/tmp/mythfrontend.20211118155938.1372.log
2021-11-18 10:59:38.719578 I  Loading en_us translation for module
mythfrontend
2021-11-18 10:59:38.720651 I  Empty LocalHostName. This is typical.
2021-11-18 10:59:38.720725 I  Using a profile name of: 'rpi4-mythtv'
(Usually the same as this host's name.)
2021-11-18 10:59:38.720879 I  Start up testing connections. DB localhost,
BE , attempt 0, status dbAwake, Delay: 2000
2021-11-18 10:59:40.244497 N  Setting QT default locale to en_US
2021-11-18 10:59:40.244509 I  Current locale en_US
2021-11-18 10:59:40.244610 N  Reading locale defaults from
/usr/share/mythtv//locales/en_us.xml
2021-11-18 10:59:40.287875 E  PowerDBus: No UPower interface. Unable to
monitor battery state
2021-11-18 10:59:40.304268 I  PowerDBus: Failed to delay sleep,shutdown:
Permission denied
2021-11-18 10:59:40.346068 I  Power: On AC power
2021-11-18 10:59:40.346087 I  Power: Supported actions: None
2021-11-18 10:59:40.346118 N  Setting 'PowerOffTVOnExit' being forced to '0'
2021-11-18 10:59:40.353546 I  Listening on TCP 0.0.0.0:6547
2021-11-18 10:59:40.354975 I  Listening on TCP [::]:6547
2021-11-18 10:59:43.124488 I  Loading en_us translation for module
mythfrontend
2021-11-18 10:59:43.146749 I  VRR: No variable refresh rate support detected
2021-11-18 10:59:43.146759 E  Display: Qt has no screens!
2021-11-18 10:59:43.146800 N  Display: Desktop video mode: 1920x1080
60.000Hz
2021-11-18 10:59:43.161383 I  InputHandler: Starting
2021-11-18 10:59:43.162291 E  LIRC: Failed to connect to Unix socket
'/var/run/lirc/lircd'
eno: No such file or directory (2)
2021-11-18 10:59:43.162371 I  No joystick configuration found, not enabling
joystick control
2021-11-18 10:59:43.162752 I  UDPListener: Enabling
2021-11-18 10:59:43.164743 I  Binding to UDP 0.0.0.0:6948
2021-11-18 10:59:43.164884 I  Binding to UDP [::]:6948
2021-11-18 10:59:43.200555 I  Using Frameless Window
2021-11-18 10:59:43.200560 I  Using Full Screen Window
2021-11-18 10:59:43.200625 I  Qt: Cannot create window: no screens available

Any ideas would be appreciated.

JIm A
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mythtv.org/pipermail/mythtv-users/attachments/20211118/e212dca3/attachment.htm>


More information about the mythtv-users mailing list