Motion - Bug Report 2013x 03x 31x 063416
You are here: Foswiki>Motion Web>BugReports>BugReport2013x03x31x063416 (31 Mar 2013, YusufGungor)Edit Attach

BUG: Motion can't start X Display Applications ("on_event_start") in Daemon mode

I want to use on_event_start future of Motion. But it can't run X applications when run in daemon mode!!!
I want to use my monitor to show the webcam stream when event starts. My motion.cfg has a line like this: 

on_event_start vlc 127.0.0.1:8081

When event starts, Motion can take photos, can build mpeg of event BUT can not run my command.

If i use to run Motion in non daemon mode from command line with "-n" option, it works!

I tried to adding "export DISPLAY=localhost:0.0" before the command, like this:

on_event_start export DISPLAY=localhost:0.0 | vlc 127.0.0.1:8081

and give permission my X to accepting connection requests from localhost. (using "xhost localhost" command)

And it didn't work!

I tried to edit /etc/init.d/motion script to adding display there, then i edited the line like this:

DAEMON=export DISPLAY=localhost:0.0 && /usr/bin/motion


But it didn't work too!

I am waiting your helps, thanks.

Environment

Motion version: 3.2.12
ffmpeg version:  
Shared libraries: ffmpeg, mysql, postgresql
Server OS: Ubuntu 12.10, kernel 3.2.0-29 x86_x64 GNU/Linux
-- YusufGungor - 31 Mar 2013

Follow up

Fix record

BugReportForm edit

TopicTitle Motion can't start X Display Applications ("on_event_start") in Daemon mode
BugStatus New
AssignedBugTo
SubmittedBy Main.Yusuf
Topic revision: r1 - 31 Mar 2013, YusufGungor
Copyright © 1999-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Please do not email Kenneth for support questions (read why). Use the Support Requests page or join the Mailing List.
This website only use harmless session cookies. See Cookie Policy for details. By using this website you accept the use of these cookies.