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

I use laptop and need to use keyboard between baby activities...

Is there any software for ubuntu that does all these things by pressing just one key (or predefined combination/password)? I tried program lk4b but it does not locks CD and mouse, this is unsufficient for my baby...

Also how can i disable power button?

share|improve this question
possible duplicate of Keyboard "kid lock" software – Eliah Kagan Jan 17 '13 at 0:14
up vote 3 down vote accepted

how can i disable power button?

You'll need hardware support for that. Or nice "there, I fixed it!" tape. A longer press on this button will inevitably power down the PC very roughly, no matter what OS you run on it or what program you try to have that prevent it.

For just ignoring the simple "hits" on it, go to your power settings and let it do nothing on pressing it:

enter image description here

Above screenshot is in KDE, but similar settings should be available in your Desktop Environment too (e.g. Unity, GNOME, ...) See this answer for Unity.

Locking keyboard, mouse

Have you tried setting a password to your screensaver? Or set up a custom shortcut to activate the screen locker (default Ctrl+Alt+L)?



eject -i on

to lock the optical drive :)

share|improve this answer
Thank you, gertvdijk, but i cannot use screensaver and screenlocker with clr+alt+l, since i usually need baby lock while spoking via skype with baby's grandmother.... Sorry for initially uncorrect question... – AVIA Jan 16 '13 at 21:13
Yeah, that's why I suggested setting up a custom keyboard shortcut, e.g. one of your unused media keys on your keyboard. – gertvdijk Jan 16 '13 at 21:17
Mmmm... Again my incorrect behavior. Sorry. :) We using skype with video. Do you have a solution? – AVIA Jan 16 '13 at 21:22
imagine what kind of explosion can do baby by touching so badly charged laptop! :) So i really need to lock it quickly with just few keypresses! :) – AVIA Jan 16 '13 at 21:34
As I said in my answer. keyboard: lockscreen. Power button: hardware. But this can't be solved in any OS. Holding power button for several seconds will turn off the PC no matter what you run on it. This is hard coded in the BIOS/system board. – gertvdijk Jan 16 '13 at 22:02

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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