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.

0 REPLIES 0