Mailing List Archive

keyboard dead in mythfrontend and mythtv-setup
I know I'm doing something weird, but maybe someone knows a fix.

I have a Raspberry Pi 4 4GB running Ubuntu 20.04 Server 64 bit (arm64) with
a minimal xserver-xorg and xfce4 with xinit. I built mythtv v31 from source
per the wiki using ansible for dependencies, and ./configure --prefix=/usr
--disable-vaapi --disable-vdpau --enable-opengl.

I used MikeB's pi-utils for setting up the rest of the backend components
including mariadb. I used pi-utils/run_mythsetup.sh to run from the console
mythtv-setup and on the main screen I can't select anything or move the
highlight choice. It's like the keyboard is dead. Same thing on
mythfrontend.

However, if I startx and open a terminal in xfce4, I can run mythtv-setup
and mythfrontend just fine. Everything works fine. I'm using opengl with
4 cpus and the video quality is comparable to raspbian 32 bit OS at the
command line.

I keep thinking that running from console like I do on normal v31 install
of mythtv-light would be the best picture, but can't test it until I fix
the lost keyboard function.

Any ideas?

Jim A
Re: keyboard dead in mythfrontend and mythtv-setup [ In reply to ]
On 27/08/2020 02:46, James Abernathy wrote:
> I know I'm doing something weird, but maybe someone knows a fix.
>
> I have a Raspberry Pi 4 4GB running Ubuntu 20.04 Server 64 bit (arm64)
> with a minimal xserver-xorg and xfce4 with xinit. I built mythtv v31
> from source per the wiki using ansible for dependencies, and ./configure
> --prefix=/usr --disable-vaapi --disable-vdpau --enable-opengl.
>
> I used MikeB's pi-utils for setting up the rest of the backend
> components including mariadb. I used pi-utils/run_mythsetup.sh to run
> from the console mythtv-setup and on the main screen I can't select
> anything or move the highlight choice.  It's like the keyboard is dead. 
> Same thing on mythfrontend.
>
> However, if I startx and open a terminal in xfce4, I can run
> mythtv-setup and mythfrontend just fine.  Everything works fine.  I'm
> using opengl with 4 cpus  and the video quality is comparable to
> raspbian 32 bit OS at the command line.
>
> I keep thinking that running from console like I do on normal v31
> install of mythtv-light would be the best picture, but can't test it
> until I fix the lost keyboard function.
>
> Any ideas?
>

IIRC markk said it was something deep down in the guts of Qt that
causes this.

Mark can you explain?


Regards
Stuart
_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: keyboard dead in mythfrontend and mythtv-setup [ In reply to ]
On 27/08/2020 11:15, Stuart Auchterlonie wrote:
> On 27/08/2020 02:46, James Abernathy wrote:
>> I know I'm doing something weird, but maybe someone knows a fix.
>>
>> I have a Raspberry Pi 4 4GB running Ubuntu 20.04 Server 64 bit (arm64)
>> with a minimal xserver-xorg and xfce4 with xinit. I built mythtv v31
>> from source per the wiki using ansible for dependencies, and ./configure
>> --prefix=/usr --disable-vaapi --disable-vdpau --enable-opengl.
>>
>> I used MikeB's pi-utils for setting up the rest of the backend
>> components including mariadb. I used pi-utils/run_mythsetup.sh to run
>> from the console mythtv-setup and on the main screen I can't select
>> anything or move the highlight choice.  It's like the keyboard is dead. 
>> Same thing on mythfrontend.
>>
>> However, if I startx and open a terminal in xfce4, I can run
>> mythtv-setup and mythfrontend just fine.  Everything works fine.  I'm
>> using opengl with 4 cpus  and the video quality is comparable to
>> raspbian 32 bit OS at the command line.
>>
>> I keep thinking that running from console like I do on normal v31
>> install of mythtv-light would be the best picture, but can't test it
>> until I fix the lost keyboard function.
>>
>> Any ideas?
>>
>
> IIRC markk said it was something deep down in the guts of Qt that
> causes this.
>
> Mark can you explain?
>

Mark replied to me, so i've copied it here....

-----

This is presumably a permissions issue.

To confirm, get some logging from Qt QPA

QT_LOGGING_RULES=qt.qpa.*=true mythfrontend

More than likely need to add the current user to the 'input' group -
or whatever group owns /dev/input.

Hopefully that makes sense.

Regards
Mark
_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: keyboard dead in mythfrontend and mythtv-setup [ In reply to ]
On 8/27/20 8:43 AM, Stuart Auchterlonie wrote:
> On 27/08/2020 11:15, Stuart Auchterlonie wrote:
>> On 27/08/2020 02:46, James Abernathy wrote:
>>> I know I'm doing something weird, but maybe someone knows a fix.
>>>
>>> I have a Raspberry Pi 4 4GB running Ubuntu 20.04 Server 64 bit (arm64)
>>> with a minimal xserver-xorg and xfce4 with xinit. I built mythtv v31
>>> from source per the wiki using ansible for dependencies, and ./configure
>>> --prefix=/usr --disable-vaapi --disable-vdpau --enable-opengl.
>>>
>>> I used MikeB's pi-utils for setting up the rest of the backend
>>> components including mariadb. I used pi-utils/run_mythsetup.sh to run
>>> from the console mythtv-setup and on the main screen I can't select
>>> anything or move the highlight choice.  It's like the keyboard is dead.
>>> Same thing on mythfrontend.
>>>
>>> However, if I startx and open a terminal in xfce4, I can run
>>> mythtv-setup and mythfrontend just fine.  Everything works fine.  I'm
>>> using opengl with 4 cpus  and the video quality is comparable to
>>> raspbian 32 bit OS at the command line.
>>>
>>> I keep thinking that running from console like I do on normal v31
>>> install of mythtv-light would be the best picture, but can't test it
>>> until I fix the lost keyboard function.
>>>
>>> Any ideas?
>>>
>> IIRC markk said it was something deep down in the guts of Qt that
>> causes this.
>>
>> Mark can you explain?
>>
> Mark replied to me, so i've copied it here....
>
> -----
>
> This is presumably a permissions issue.
>
> To confirm, get some logging from Qt QPA
>
> QT_LOGGING_RULES=qt.qpa.*=true mythfrontend
>
> More than likely need to add the current user to the 'input' group -
> or whatever group owns /dev/input.
>
> Hopefully that makes sense.
>
> Regards
> Mark

I'm starting the mythfrontend using a modifies pi-utils
run_mythfrontend.sh so the command as modified is:

QT_QPA_EGLFS_ALWAYS_SET_MODE="1" QT_LOGGING_RULES=qt.qpa.*=true
QT_QPA_PLATFORM=eglfs
QT_QPA_EGLFS_KMS_CONFIG=/home/ubuntu/pi_mythfrontend.json mythfrontend
$ARGUMENTS

Adding the QT_LOGGING_RULES didn't let the mythfrontend run at all but
after it exited the keyboard was dead.  I already added user ubuntu to
group input.

The console log is:

Starting MythTV Frontend -- this may take a few seconds -- Please wait
performance
Setting screen to 1360x768
qt.qpa.egldeviceintegration: EGL device integration plugin keys:
("eglfs_emu", "eglfs_kms_egldevice", "eglfs_kms", "eglfs_x11")
qt.qpa.egldeviceintegration: EGL device integration plugin keys
(sorted): ("eglfs_kms", "eglfs_emu", "eglfs_kms_egldevice", "eglfs_x11")
qt.qpa.egldeviceintegration: Trying to load device EGL integration
"eglfs_kms"
qt.qpa.eglfs.kms: Loading KMS setup from "/home/ubuntu/pi_mythfrontend.json"
qt.qpa.eglfs.kms: Requested configuration (some settings may be ignored):
     headless: false
     hwcursor: true
     pbuffers: false
     separateScreens: false
     virtualDesktopLayout: 0
     outputs: QMap(("HDMI1", QMap(("mode", QVariant(QString,
"1360x768"))("name", QVariant(QString, "HDMI1")))))
qt.qpa.eglfs.kms: New DRM/KMS via GBM integration created
qt.qpa.egldeviceintegration: Using EGL device integration "eglfs_kms"
qt.qpa.eglfs.kms: platformInit: Opening DRM device
qt.qpa.eglfs.kms: GBM: Using DRM device "/dev/dri/card1" specified in
config file
qt.qpa.eglfs.kms: Using backend-provided DRM device /dev/dri/card1
qt.qpa.eglfs.kms: Creating GBM device for file descriptor 4 obtained
from "/dev/dri/card1"
qt.qpa.eglfs.kms: Initalizing event reader for device 0xaaaad3823040 fd 4
qt.qpa.eglfs.kms: Querying EGLDisplay
qt.qpa.eglfs.kms: Event reader thread: entering event loop
drmModeGetResources failed (Operation not supported)
qt.qpa.input: libinput: event0  - Wireless Keyboard/Mouse: is tagged by
udev as: Keyboard
qt.qpa.input: libinput: event0  - Wireless Keyboard/Mouse: device is a
keyboard
qt.qpa.input: libinput: event1  - Wireless Keyboard/Mouse: is tagged by
udev as: Mouse
qt.qpa.input: libinput: event1  - Wireless Keyboard/Mouse: device is a
pointer
qt.qpa.input: libinput: event2  - Wireless Keyboard/Mouse Consumer
Control: is tagged by udev as: Keyboard
qt.qpa.input: libinput: event2  - Wireless Keyboard/Mouse Consumer
Control: device is a keyboard
qt.qpa.input: Using xkbcommon for key mapping
no screens available, assuming 24-bit color
2020-08-27 09:27:52.731131 I  Setup Interrupt handler
2020-08-27 09:27:52.731186 I  Setup Terminated handler
2020-08-27 09:27:52.731205 I  Setup Segmentation fault handler
2020-08-27 09:27:52.731223 I  Setup Aborted handler
2020-08-27 09:27:52.731238 I  Setup Bus error handler
2020-08-27 09:27:52.731252 I  Setup Floating point exception handler
2020-08-27 09:27:52.731266 I  Setup Illegal instruction handler
2020-08-27 09:27:52.731305 I  Setup Real-time signal 0 handler
2020-08-27 09:27:52.731325 I  Setup User defined signal 1 handler
2020-08-27 09:27:52.731345 I  Setup User defined signal 2 handler
2020-08-27 09:27:52.731359 I  Setup Hangup handler
2020-08-27 09:27:52.731608 C  mythfrontend version: fixes/31
[v31.0-86-g623192215a] www.mythtv.org
2020-08-27 09:27:52.731625 C  Qt version: compile: 5.12.8, runtime: 5.12.8
2020-08-27 09:27:52.731773 I  Ubuntu 20.04.1 LTS (arm64)
2020-08-27 09:27:52.731782 N  Enabled verbose msgs:  general
2020-08-27 09:27:52.732034 N  Setting Log Level to LOG_INFO
2020-08-27 09:27:52.743003 N  Using runtime prefix = /usr
2020-08-27 09:27:52.743030 N  Using configuration directory =
/home/ubuntu/.mythtv
2020-08-27 09:27:52.743008 I  Added logging to the console
2020-08-27 09:27:52.743108 I  Assumed character encoding: en_US.UTF-8
2020-08-27 09:27:52.743216 N  Setting 'libCECEnabled' being forced to '0'
2020-08-27 09:27:52.743735 I  Added logging to
/tmp/mythfrontend.20200827132752.2491.log
2020-08-27 09:27:52.751435 I  Loading en_us translation for module
mythfrontend
2020-08-27 09:27:52.754229 I  Empty LocalHostName. This is typical.
2020-08-27 09:27:52.754262 I  Using a profile name of: 'ubuntu' (Usually
the same as this host's name.)
2020-08-27 09:27:52.754894 I  Start up testing connections. DB
localhost, BE , attempt 0, status dbAwake, Delay: 2000
2020-08-27 09:27:54.294532 N  Setting QT default locale to en_US
2020-08-27 09:27:54.294561 I  Current locale en_US
2020-08-27 09:27:54.294767 N  Reading locale defaults from
/usr/share/mythtv//locales/en_us.xml
2020-08-27 09:27:54.321037 I  : Failed to open
2020-08-27 09:27:54.321065 I  : Closed
Handling Segmentation fault
./run_mythfrontend.sh: line 103:  2491 Segmentation fault (core dumped)
QT_QPA_EGLFS_ALWAYS_SET_MODE="1" QT_LOGGING_RULES=qt.qpa.*=true
QT_QPA_PLATFORM=eglfs
QT_QPA_EGLFS_KMS_CONFIG=/home/ubuntu/pi_mythfrontend.json mythfrontend
$ARGUMENTS
The keyboard is in some unknown mode
Changing to the requested mode may make your keyboard unusable, please
use -f to force the change.

_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: keyboard dead in mythfrontend and mythtv-setup [ In reply to ]
On 8/27/20 8:43 AM, Stuart Auchterlonie wrote:
> On 27/08/2020 11:15, Stuart Auchterlonie wrote:
>> On 27/08/2020 02:46, James Abernathy wrote:
>>> I know I'm doing something weird, but maybe someone knows a fix.
>>>
>>> I have a Raspberry Pi 4 4GB running Ubuntu 20.04 Server 64 bit (arm64)
>>> with a minimal xserver-xorg and xfce4 with xinit. I built mythtv v31
>>> from source per the wiki using ansible for dependencies, and ./configure
>>> --prefix=/usr --disable-vaapi --disable-vdpau --enable-opengl.
>>>
>>> I used MikeB's pi-utils for setting up the rest of the backend
>>> components including mariadb. I used pi-utils/run_mythsetup.sh to run
>>> from the console mythtv-setup and on the main screen I can't select
>>> anything or move the highlight choice.  It's like the keyboard is dead.
>>> Same thing on mythfrontend.
>>>
>>> However, if I startx and open a terminal in xfce4, I can run
>>> mythtv-setup and mythfrontend just fine.  Everything works fine.  I'm
>>> using opengl with 4 cpus  and the video quality is comparable to
>>> raspbian 32 bit OS at the command line.
>>>
>>> I keep thinking that running from console like I do on normal v31
>>> install of mythtv-light would be the best picture, but can't test it
>>> until I fix the lost keyboard function.
>>>
>>> Any ideas?
>>>
>> IIRC markk said it was something deep down in the guts of Qt that
>> causes this.
>>
>> Mark can you explain?
>>
> Mark replied to me, so i've copied it here....
>
> -----
>
> This is presumably a permissions issue.
>
> To confirm, get some logging from Qt QPA
>
> QT_LOGGING_RULES=qt.qpa.*=true mythfrontend
>
> More than likely need to add the current user to the 'input' group -
> or whatever group owns /dev/input.
>
> Hopefully that makes sense.
>
> Regards

NEVER MIND. forget the post with the logging.  I when back and just
adding my user 'ubuntu' to the 'input' group and ran the
run_mythfrontend (modified) and it works fine.

Thanks,

Jim A


_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org