cancel
Showing results for 
Search instead for 
Did you mean: 

QtMultimedia with pyside6

Rajsingh_
Associate

Hi Team,

I am using the following method to enable password protection for both SSH and serial login.

I added the below configuration in local.conf:

INHERIT += "extrausers"
EXTRA_USERS_PARAMS += "\
    usermod -U root; \
    usermod -p '\$6\$ao/KaHyZbsgvo2RD\$QUzqRGclDHxnOv8BiGImYO10QX0YwmLh6XVjvqcEVg6976kyhNarzpX4rjCimbGSuM2d.2GOehoCFzHCx6jcd0' root; \
"

I also made the following changes:

Serial login (serial-getty@.service):

ExecStart=-/sbin/agetty -8 -L --keep-baud %I @BAUDRATE@ $TERM

SSH configuration (sshd_config):

PermitRootLogin yes

After enabling password protection, scripts placed under /etc/profile.d no longer run automatically. These scripts only execute after I manually log in to the shell. Previously, they were used to start some required functionality automatically.

Those scripts launch Python code using Qt (PySide6) and play video using Qt Multimedia. I attempted to move this logic into a systemd service, but when running from a service, I encounter hardware decoder issues while playing video.

My questions are:

  1. Is it possible to keep password-protected SSH and serial login enabled while still ensuring that /etc/profile.d scripts run automatically at boot?

  2. Is there a recommended way to run Qt / PySide6 applications with Qt Multimedia and hardware acceleration without requiring an interactive login?

  3. Has anyone faced similar issues with hardware video decoding when launching Qt applications from a systemd service, and how was it resolved?

Any guidance or best practices to resolve this would be greatly appreciated. I shared Screenshot of Error i got while i try to run my scripts via systemd service.

1 REPLY 1
PPAGE.13
ST Employee

Hi,

if you move your Qt script to a systemd service, some other necessary services might not have started yet. There are probably some dependencies to checked and only start you application after that.

BR,

Philippe.

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.