Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I installed motion in Fedora 17, and I want it to start when I lock the screen with control + alt + l, and stop when I unlock it.

I found this to run/stop a script on screen lock: http://unix.stackexchange.com/questions/28181/run-script-on-screen-lock-unlock/28183#28183

The problem is that motion requires that I use sudo, eg: $ sudo service motion start

How can I get around this?

share|improve this question

You can run it with the option -n. motion -n runs it in non-deamon-mode, so u don't need to start a service.

If its still not working try adding your user to the video group. Maybe you dont have permission to use the videodevice.

Hope I could help you.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .