User Name
Password
AppleNova Forums » Programmer's Nook »

Way to temp. disable keyboard?


Register Members List Calendar Search FAQ Posting Guidelines
Way to temp. disable keyboard?
Thread Tools
Fooboy
Senior Member
 
Join Date: Feb 2005
 
Old 2006-05-18, 12:27

Hey guys,

Is there a command / way to temporarily a keyboard on a mac laptop for a specific amount of time?

Thanks,

Foo
Fooboy is offline   quote
turtle
Lord of the Rant.
Formerly turtle2472
 
Join Date: Mar 2005
Location: Tidewater Virginia
Send a message via AIM to turtle Send a message via Yahoo to turtle  
Old 2006-05-18, 13:19

Sounds like a virus in the making.

I have no idea.
turtle is offline   quote
Brad
Selfish Heathen
Administrator
 
Join Date: May 2004
Location: Zone of Pain
 
Old 2006-05-18, 13:22

Pull the plug!
Brad is offline   quote
Luca
ಠ_ರೃ
 
Join Date: May 2004
Location: Minnesota
 
Old 2006-05-18, 13:24

I'm not sure you could actually disable it entirely, but you could confuse the everliving SHIT out of someone by creating a new user account without a standard keyboard setup available. You could set it to Dvorak or something and disable the ability to switch to QWERTY. That would at least slow them down.
Luca is offline   quote
Fooboy
Senior Member
 
Join Date: Feb 2005
 
Old 2006-05-18, 13:33

No ... I want to make a widget (I think I'll call it "Washboard") that you can click to disable keyboard inputs for 15-20 seconds so you can clean your keyboard.

Whenever I take a damp cloth or vacuum attachment to my keyboard, obviously the computer goes crazy. Talking on aim, you get a message like "asf8j392fjfea d ddddddddddddddddddddddddsorry I was cleaning my keyboard". Of course you can turn off your mac or sleep it, unplug your keyboard in some cases (not on a portable) ... but I think its a pretty useful idea.
Fooboy is offline   quote
turtle
Lord of the Rant.
Formerly turtle2472
 
Join Date: Mar 2005
Location: Tidewater Virginia
Send a message via AIM to turtle Send a message via Yahoo to turtle  
Old 2006-05-18, 13:36

Sounds like a good idea to me...run with it. Then if the "washboard" doesn't work out maybe it can be worked into a "hoax" code for some sucker in the computer lab.

Louis L'Amour, “To make democracy work, we must be a notion of participants, not simply observers. One who does not vote has no right to complain.”
MineCraft? mc.applenova.com | Visit us! | Maybe someday I'll proof read, until then deal with it.
turtle is offline   quote
Luca
ಠ_ರೃ
 
Join Date: May 2004
Location: Minnesota
 
Old 2006-05-18, 13:37

Just switch to a different application.
Luca is offline   quote
ghoti
owner for sale by house
 
Join Date: Apr 2005
Location: Charlotte, NC
 
Old 2006-05-18, 13:38

I think I now have to write a widget called "SmashBoard" that switches to a random application and then simulates random keystrokes (or pre-specified sequences like "asf8j392fjfea d dddddddddddddddddddddddd", depending on your preferences).

ghoti is offline   quote
Windowsrookie
Veteran Member
 
Join Date: Oct 2005
Location: Minnesota
Send a message via AIM to Windowsrookie Send a message via MSN to Windowsrookie Send a message via Yahoo to Windowsrookie  
Old 2006-05-18, 14:50

You could always just shut it off when cleaning it.
Windowsrookie is offline   quote
ast3r3x
25 chars of wasted space.
 
Join Date: May 2004
Send a message via AIM to ast3r3x  
Old 2006-05-18, 15:40

Turn it off

Delete the sequence

…your next widget will indicate what widgets are running?
ast3r3x is offline   quote
Bryson
Rocket Surgeon
 
Join Date: Feb 2005
Location: Vancouvershire
Send a message via AIM to Bryson Send a message via MSN to Bryson Send a message via Skype™ to Bryson 
Old 2006-05-18, 15:56

This isn't really a problem on macs, as all the keyboards are USB. Just unplug it! On a PC with PS/2, on the other hand....
Bryson is offline   quote
kieran
Tweeting @kierankelly
 
Join Date: Jan 2005
Location: Delco
 
Old 2006-05-18, 16:02

Quote:
Originally Posted by Fooboy
....... keyboard on a mac laptop ....
yea, dont think it's that easy to unplug a keyboard on a laptop.
kieran is offline   quote
chucker
 
Join Date: May 2004
Location: near Bremen, Germany
Send a message via ICQ to chucker Send a message via AIM to chucker Send a message via MSN to chucker Send a message via Yahoo to chucker Send a message via Skype™ to chucker 
Old 2006-05-18, 16:15

Unload the kext.

(I strongly recommend you don't if you don't have some expertise on handling kexts, though.)
chucker is offline   quote
Fooboy
Senior Member
 
Join Date: Feb 2005
 
Old 2006-05-18, 16:56

To Feild some comments - yes I know you can sleep your computer or turn it off, and in SOME cases (laptops are the exception) unplug your keyboard. I think a 15 second disable is the most convienent of any of the options, though not by much.

I think the idea is kinda novel - perfect for a widget.
Fooboy is offline   quote
Brad
Selfish Heathen
Administrator
 
Join Date: May 2004
Location: Zone of Pain
 
Old 2006-05-18, 17:06

Quote:
Originally Posted by chucker
Unload the kext.
Oh, man. I'm imagining someone typing a command at the command line to unload the relevant kext... and then...
Brad is offline   quote
Windowsrookie
Veteran Member
 
Join Date: Oct 2005
Location: Minnesota
Send a message via AIM to Windowsrookie Send a message via MSN to Windowsrookie Send a message via Yahoo to Windowsrookie  
Old 2006-05-18, 17:21

Brad that was your 9,909 post! W00t!
Windowsrookie is offline   quote
Meltedbutter421
Member
 
Join Date: Jun 2005
Location: New York
Send a message via AIM to Meltedbutter421  
Old 2006-05-18, 20:39

Fooboy I like your idea... but it is true, you could just shut it down or change windows... but it is a good idea
EDIT: oh, and i thought the title of the widget was pretty creative
Meltedbutter421 is offline   quote
Mr Beardsley
Member
 
Join Date: Jul 2004
Location: Colorado Springs
Send a message via AIM to Mr Beardsley  
Old 2006-05-19, 10:27

Chucker is correct that you could just unload the kext, and then reload it after a set period of time. However, doing this will require that you authenticate as an admin.

I'm not at my Mac to test, but here is my guess on the commands to get you started. Also realize that if you disable it, you won't be able to type in the command to re-enable it. You should probably try this in a script.

/* To Disable */
sudo kextunload /System/Library/Extensions/IOUSBFamily.kext/Contents/PlugIns/AppleUSBKeyboard.kext

/* To Re-enable */
sudo kextload /System/Library/Extensions/IOUSBFamily.kext/Contents/PlugIns/AppleUSBKeyboard.kext

DISCLAIMER:
I haven't tested this, so use at your own risk.

"Slow vehicle speeds with frequent stops would signal traffic congestion, for instance."

uh... it could also signal that my Mom is at the wheel...

Last edited by Mr Beardsley : 2006-05-19 at 10:48.
Mr Beardsley is offline   quote
Posting Rules Navigation
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Reply

Forum Jump
Thread Tools
Similar Threads
Thread Thread Starter Forum Replies Last Post
Microsoft Bluetooth Keyboard and Mouse james_p Purchasing Advice 4 2005-12-06 17:54
Backlit Keyboard gone !? squeed Genius Bar 2 2005-11-06 09:46
Split Bluetooth Keyboard gjas15 Purchasing Advice 3 2005-08-11 03:59
Spilled Milk in iBook G3 600 Mhz Keyboard ~6 Months ago.. Help? ShiggyMiyamoto Apple Products 12 2005-07-27 23:06
keyboard problem after changing to EN_int glurps Genius Bar 0 2005-03-19 07:41


« Previous Thread | Next Thread »

All times are GMT -5. The time now is 23:25.


Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Copyright ©2004 - 2012, AppleNova
AppleNova Slim