Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

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

This question already has an answer here:

Have siblings who like to "play" with my laptop by waking it from suspension and then typing random keys on the keyboard into the password field. Afterwards, they always deny it. I plan to install motion and only have it run while the computer is locked. After the computer is unlocked, the process should be killed. How would I go about launching motion when CTRL + ALT + L is pressed and kill motion when the correct password is entered?

share|improve this question

marked as duplicate by souravc, Eric Carvalho, Warren Hill, BuZZ-dEE, Seth Mar 18 '14 at 23:39

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

I like your idea :)
But it seems like a duplicate: Run script on screen lock/unlock (U&L Stack)
If you install motion correctly as a service, you should run service motion start at the lock-event and service motion stop at the unlock-event

share|improve this answer
I suggest you add an answer to this question with that information :D – Seth Mar 18 '14 at 23:39
@Seth I'm not seeing the overlap. It's not about motion, its already looking at the same solution... – ExploWare Mar 18 '14 at 23:52
Ah, you're right. My bad at not noticing that :) – Seth Mar 18 '14 at 23:54

Not the answer you're looking for? Browse other questions tagged or ask your own question.