For discussion of topics specific to MythTV on Raspberry Pi devices
-
jfabernathy
- Senior
- Posts: 577
- Joined: Wed Feb 18, 2015 2:37 pm
- Location: Raleigh, NC
Post
by jfabernathy »
The Mythtv wiki for Raspberry Pi has a discussion about a bug in QT that causes the keyboard to lockup on exit from mythfrontend when run with:
Code: Select all
QT_QPA_EGLFS_ALWAYS_SET_MODE="1" QT_QPA_PLATFORM=eglfs mythfrontend
It also says that you can fix the lockup with the following commands in your script that runs mythfrontend
Code: Select all
kbd_mode -u
# restore cursor
setterm --cursor on
That works on normal exit, but if the command has an error exit as it sometimes does for me, the keyboard is locked up.
Is there a way to cause an error exit that can run through the same commands? I'm not that knowledgeable about the capabilities of bash.