Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Wed 28 Jun 2017, 03:25
All times are UTC - 4
 Forum index » Advanced Topics » Hardware
kEYBoard lOCkout? [SOLVED]
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [4 Posts]  
Author Message
Marv


Joined: 04 May 2005
Posts: 816
Location: SW Wisconsin

PostPosted: Wed 28 Dec 2016, 16:03    Post subject:  kEYBoard lOCkout? [SOLVED]  

Is there any way to lock out the keyboard completely and unlock it again? If the touchpad and buttons were still live I could invoke it from the desktop. Odd question I know but I have a new kitten Confused
_________________
Pups currently in kennel Very Happy X-slacko 4.2 and X-tahr 2.0 for my users; LxPupSc and LxPupXenial for me. All good pups indeed, and all running browsers, office etc. solely from SFS.

Last edited by Marv on Wed 28 Dec 2016, 20:14; edited 1 time in total
Back to top
View user's profile Send private message 
don570


Joined: 10 Mar 2010
Posts: 4599
Location: Ontario

PostPosted: Wed 28 Dec 2016, 16:23    Post subject:  

Try slock

The keyboard will still allow a password to be entered once it is invoked.

http://www.murga-linux.com/puppy/viewtopic.php?t=80622
Back to top
View user's profile Send private message 
drunkjedi


Joined: 24 May 2015
Posts: 684

PostPosted: Wed 28 Dec 2016, 16:57    Post subject:  

Run following in a terminal
Code:
xinput -list
It should output like....
Code:
 xinput -list
⎡ Virtual core pointer                       id=2   [master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer                 id=4   [slave  pointer  (2)]
⎜   ↳ ImPS/2 Generic Wheel Mouse                 id=10   [slave  pointer  (2)]
⎣ Virtual core keyboard                      id=3   [master keyboard (2)]
    ↳ Virtual core XTEST keyboard                id=5   [slave  keyboard (3)]
    ↳ Power Button                               id=6   [slave  keyboard (3)]
    ↳ Video Bus                                  id=7   [slave  keyboard (3)]
    ↳ Power Button                               id=8   [slave  keyboard (3)]
    ↳ AT Translated Set 2 keyboard               id=9   [slave  keyboard (3)]
The last line shows my keyboard and it's id=9. Note down that id number for your keyboard.

Now make two scripts.

1) disable_kb
Code:
xinput set-prop 9 'Device Enabled' 0
And

2) enable_kb
Code:
xinput set-prop 9 'Device Enabled' 1


Change the number 9 in both scripts to whatever id you have for keyboard.

Make shortcut on desktop for them, for easy clicking...

I don't know for touchpad as I do not have a laptop to test, But works with a mouse.

Done. Click away...
Back to top
View user's profile Send private message 
Marv


Joined: 04 May 2005
Posts: 816
Location: SW Wisconsin

PostPosted: Wed 28 Dec 2016, 19:16    Post subject:  

@drunkjedi
THANKS! Works perfectly. In LxPupSc I needed to install xinput but it was right there in the PPM repo. My keyboard ID is 8. Made a couple of .desktops instead of the scripts so I could easily put it in the lower lxde panel with icons and I have instant keyboardless browsing when needed. Touchpad and buttons are unaffected so switching it back on is fine.

Now of course the kitten will ignore me Smile Nope, just cat tested and it's catproof indeed.

Edited: To reflect cat testing and then putting it all in .desktops.

_________________
Pups currently in kennel Very Happy X-slacko 4.2 and X-tahr 2.0 for my users; LxPupSc and LxPupXenial for me. All good pups indeed, and all running browsers, office etc. solely from SFS.
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [4 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Hardware
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0650s ][ Queries: 14 (0.0134s) ][ GZIP on ]