1

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?

Mateo
  • 8,104
AVIA
  • 23
  • 3

1 Answers1

3

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)?

CDROM

Use

eject -i on

to lock the optical drive :)

gertvdijk
  • 67,947
  • 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
  • mateo_salta, thank you, but this is not my case. :) I use laptop and need to use keyboard between baby activities... – AVIA Jan 16 '13 at 21:27
  • 1
    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
  • Disagree. Baby want to see grandmother on laptop screen (skype video call). There are many prorgams on windows for that purposes, why i cannot find analogue for ubuntu? :( – AVIA Jan 16 '13 at 21:44
  • @AVIA Please mention some of these software products for Windows that provide this functionality, in your question. – gertvdijk Jan 16 '13 at 21:55
  • gertvdijk, i used winkeylock and lockcd from sourceforge, and know that my friends use others. OK, i accept solution for CDROM, i agree that i not need to lock cdrom very often and quickly. I will use your solution for cdrom, possible with shortcut, thank you. But what can i do for power button and keyboard? – AVIA Jan 16 '13 at 22:00
  • 1
    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
  • No, i asked not about holding power button! :) Baby cannot do this. Baby's presses are frequent and short, fast all babies do press keys in that manner. :) Can ubuntu disable power button like this is done in windows control panel (power settings)? – AVIA Jan 16 '13 at 22:05
  • @AVIA Just added that use case :) – gertvdijk Jan 16 '13 at 22:06
  • OK, thank you all. But universal all-in-one solution still welcome. – AVIA Jan 16 '13 at 22:11
  • Guys!This is not a discussion forum. @AVIA Please include requested details in your question rather than posting comments. If you would prefer a single piece of software taking care of this, add the software-recommendation tag to your question as well. The downvote is because it's not a very good question in the current form, probably. – gertvdijk Jan 16 '13 at 22:14