Score:0

How to display video output from systemd service

cn flag

I have a service that is running on Ubuntu 18.04 LTS that is used to collect and process camera data. The system will be running in vehicles, and I am adding a small monitor to the system so the driver may see live progress as the service works. The person operating the machine will have no keyboard, mouse, or touch input to the system.

Currently, the system boots and automatically logs in on the monitor with LXDE as an underprivileged user that has a black desktop background and nothing else. The service sets the display environment variable os.environ.setdefault('DISPLAY', ':0') as it begins. I am able to see video output on the screen from OpenCV by manually executing my application in SSH. When I let the application run with Systemd (on startup or by manually using systemctl start), it does not detect any display connected to my system.

Is there another variable I need to set? Any help at all is appreciated!

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.