Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

XnavxeMiyyep

macrumors 65816
Original poster
Mar 27, 2003
1,131
4
Washington
For ergonomic reasons, I have begun to use two keyboards at once. However, even with Sticky Keys enabled, modifier keys, such as shift and command, pressed on one keyboard, do not affect the other.

Before I delve into Apple's IOKit library in an attempt to write my own driver, I was wondering if anyone was aware of an existing Preference or Utility which fixes this problem.
 

quantum003

macrumors 6502a
Apr 27, 2009
542
0
Superposition
Have you every looked into Teleport? You could control both Macs with one keyboard and mouse and avoid the dual keyboards altogether.
 

XnavxeMiyyep

macrumors 65816
Original poster
Mar 27, 2003
1,131
4
Washington
I'm actually using two keyboards for one Mac. One keyboard is on each arm rest, so I can optimally relax my arms. It's like the concept of a split keyboard, except it's wide enough for my chair and I don't have to type properly.
 

XnavxeMiyyep

macrumors 65816
Original poster
Mar 27, 2003
1,131
4
Washington
Wow, you must have some mad skills.

You could just get one of these...

http://www.kinesis-ergo.com/freestyle.htm

I'd considered that one, but like its comrades, it is a condensed keyboard and the wire is not long enough to easily reach across my chair. I am a huge fan of the black Apple Pro Keyboard.:eek:

I suppose since no one else has really cared to deal with this specific issue, I will work on some software solution and then post a link to it when I finish.
 

Pixiedelion

macrumors newbie
Sep 14, 2009
1
0
2 keyboards

I was just playing with a shoulder brace and noticed how my arms spread out to a distance of about two mac narrow keyboards, did you find a solution to the modifier keys issue, and/or did you find it a show stopper not to have the keys?
 

XnavxeMiyyep

macrumors 65816
Original poster
Mar 27, 2003
1,131
4
Washington
I was just playing with a shoulder brace and noticed how my arms spread out to a distance of about two mac narrow keyboards, did you find a solution to the modifier keys issue, and/or did you find it a show stopper not to have the keys?

It's slightly annoying to use the modifier keys on the same keyboard (which I currently do). I'm actually working on writing a driver for the solution, although I've never played with Kernel Extensions or device drivers before this weekend.

A friend suggested buying a microcontroller and programming that to act as a single usb keyboard after reading the inputs from two keyboards, because that would work on any system, but I have no experience with ECE-related things, so that's a last resort.

I will let you know if/when I make any progress.
 

XnavxeMiyyep

macrumors 65816
Original poster
Mar 27, 2003
1,131
4
Washington
Dual Keyboards Solution

http://dotdotcomorg.net/Mac/DualKeyboards.zip

I wrote this executable which will make modifier keys from multiple keyboards affect each other on the same machine.

Only tested in 10.5.5, but I don't see why it wouldn't work on other systems.

Now I have to get out of the habit I grew of using the same hand for modifiers. :D

Special thanks to: OS X Book.com and The Mac OS X Reference Library

EDIT: You must have assistive devices enabled in the Universal Access preference.
 
  • Like
Reactions: Audentia

pcit

macrumors newbie
Dec 11, 2009
1
0
Thank you very much for putting up the executable! It's very useful~
I registered in this forum five minutes ago just to reply to this thread to show my sincere appreciation.

The combination key problem before this executable existed is the main reason holding me to go for dual keyboards solution. With this little program, I'm going to hunt for a pair of new keyboards for my winter coding project:)

Thanks again!

By the way, I tested the executable on my Macbook 10.5.8, and it works perfectly.


http://dotdotcomorg.net/Mac/DualKeyboards.zip

I wrote this executable which will make modifier keys from multiple keyboards affect each other on the same machine.

Only tested in 10.5.5, but I don't see why it wouldn't work on other systems.

Now I have to get out of the habit I grew of using the same hand for modifiers. :D

Special thanks to: OS X Book.com and The Mac OS X Reference Library
 

XnavxeMiyyep

macrumors 65816
Original poster
Mar 27, 2003
1,131
4
Washington
Thank you very much for putting up the executable! It's very useful~
I registered in this forum five minutes ago just to reply to this thread to show my sincere appreciation.

The combination key problem before this executable existed is the main reason holding me to go for dual keyboards solution. With this little program, I'm going to hunt for a pair of new keyboards for my winter coding project:)

Thanks again!

By the way, I tested the executable on my Macbook 10.5.8, and it works perfectly.

No problem. Thanks for testing it on a machine that's not mine!

Good luck finding a pair of keyboards you like!

can you post the pic of your setup?:D

two keyboards at once would be funky...:)

Picture attached. The desk is a work in progress!
 

Attachments

  • 7527_1169069987131_1239390099_30591384_7978250_n.jpg
    7527_1169069987131_1239390099_30591384_7978250_n.jpg
    39.2 KB · Views: 1,133

XnavxeMiyyep

macrumors 65816
Original poster
Mar 27, 2003
1,131
4
Washington
Thats pretty cool! how do you use mouse?!
I've always been a trackball user. Right now it's just hanging off the edge of that part of the table (used to be on the arm of my chair). I'm going to move it somewhere closer, but I haven't decided how yet.

FYI - they can be had with either an 8" cable or a 20" cable separating the two halves. 20" might be sufficient for the OP, no?

Yes, but I dislike the "condensed" style keyboard.

I've been looking into this for well over a year actually. All of the split keyboards have the condensed style keyboard.

My plan for awhile was to get an Apple Pro Keyboard and cut it in half, then solder on some extra wires, but I'm not particularly good at electrical engineering.

Eventually I decided to go with two keyboards. This method provides me with the ability to type "improperly" and go over the center with either hand; to have an extra numpad in the center; and to have the familiarity of the Apple Pro Keyboard.
 

eecharlie

macrumors newbie
Mar 11, 2010
1
0
Still working in 10.6.2!

After non-extensive testing. Capslock is separate on each keyboard, probably as intended.

XnavxeMiyyep, thanks so much for doing this! I am posting a reference to this thread over on an Apple Support Forums thread pleading for this exact solution.

I also created an account here just to chime in on this. Do you think you could post the source code and/or make this a proper project on sourceforge or somewhere similar?

Also, to add to the ergonomics discussion: I'm aiming to have a keyboard on each side of my chair, tilted to be vertical and upside down so I can type with my arms at my sides. Still working on the mouse but one good idea is a foot-operated mouse.
 

XnavxeMiyyep

macrumors 65816
Original poster
Mar 27, 2003
1,131
4
Washington
After non-extensive testing. Capslock is separate on each keyboard, probably as intended.

XnavxeMiyyep, thanks so much for doing this! I am posting a reference to this thread over on an Apple Support Forums thread pleading for this exact solution.

I also created an account here just to chime in on this. Do you think you could post the source code and/or make this a proper project on sourceforge or somewhere similar?

Also, to add to the ergonomics discussion: I'm aiming to have a keyboard on each side of my chair, tilted to be vertical and upside down so I can type with my arms at my sides. Still working on the mouse but one good idea is a foot-operated mouse.
Actually, caps lock had completely slipped my mind, as I have it remapped to control for some extra keyboard shortcuts. I'll fix support for that later.

The reason for my slow response is that I just got back to the US, only to have two broken computers. My laptop has been fixed, but my source code is on my desktop, which I have not yet fixed. So, once I get that back up, I'll be able to put the source code on sourceforge. You may be able to derive something yourself if you look at my links earlier in the thread; if not, I should have it up in a week or so.

I like the foot-mouse idea. I was thinking of making pedals for modifier keys (control, command, etc.) so they would be easier to press.
 

daerid

macrumors newbie
Apr 15, 2010
1
0
Love this idea! I'm way happier that this exists, as I was planning on taking a dremel and soldering iron to my beloved apple aluminum keyboard. Now I can just buy a second slim one! Thanks :)
 

stcorbett

macrumors newbie
Jul 10, 2010
2
0
With Gaming Mouse

Greetings, I'm running into a similar problem with dual keyboards, except my 2nd keyboard is actually a gaming mouse with number keys on it called the "Razer Naga".

Unfortunately the program you supplied is not working with my combination of MacBook Pro, recently upgraded os X 10.6.4 and the Razer Naga. If you have a chance the post the source code of the program I might be able to help with the update.
 

XnavxeMiyyep

macrumors 65816
Original poster
Mar 27, 2003
1,131
4
Washington
Love this idea! I'm way happier that this exists, as I was planning on taking a dremel and soldering iron to my beloved apple aluminum keyboard. Now I can just buy a second slim one! Thanks :)

No problem.

Greetings, I'm running into a similar problem with dual keyboards, except my 2nd keyboard is actually a gaming mouse with number keys on it called the "Razer Naga".

Unfortunately the program you supplied is not working with my combination of MacBook Pro, recently upgraded os X 10.6.4 and the Razer Naga. If you have a chance the post the source code of the program I might be able to help with the update.

http://dotdotcomorg.net/Mac/Source.txt

Much of this is from OS X Book. I just changed it a bit to work for my dual keyboard purposes. Feel free to do what you like with it.
 

stcorbett

macrumors newbie
Jul 10, 2010
2
0
SuperUser or Universal Access

I figured out why my gaming mouse/keyboard was not working with this program: OS X 10.5 and beyond does not send normal key-presses from the keyboard (a-z, 1-0) to the program by default. Probably as a defense against keylogging programs, Os X system utilities restrict which programs can see key-presses. If you "Enable access for assistive devices" via the Universal Access pane on system preferences, or run the program as the super user it works as designed.
 

XnavxeMiyyep

macrumors 65816
Original poster
Mar 27, 2003
1,131
4
Washington
I figured out why my gaming mouse/keyboard was not working with this program: OS X 10.5 and beyond does not send normal key-presses from the keyboard (a-z, 1-0) to the program by default. Probably as a defense against keylogging programs, Os X system utilities restrict which programs can see key-presses. If you "Enable access for assistive devices" via the Universal Access pane on system preferences, or run the program as the super user it works as designed.

OK, I always have assistive devices enabled. I'll edit my original post to make note of it.
 

gabemartin

macrumors newbie
Aug 15, 2010
1
0
Great script

Is there any way to have this run on startup? Also, I've noticed that it stops working every now again when I'm running it in terminal.
 

XnavxeMiyyep

macrumors 65816
Original poster
Mar 27, 2003
1,131
4
Washington
Is there any way to have this run on startup? Also, I've noticed that it stops working every now again when I'm running it in terminal.

If you set it as a Login Item in your System Preferences, it should start automatically. Could you give me some details on what happens when it stops working?
 

CaptainShar

macrumors newbie
Sep 23, 2010
1
0
I'm running Snow Leopard 10.6.3 and this works great - I have a USB keyboard plugged into a Macbook Pro, both of them tilted at an angle. Thanks a lot, XnavxeMiyyep.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.