I have an iPad 2 and would like that my Ubuntu system appear as a bluetooth keyboard for it, so that what I type on my computer appears on my iPad.
Is there a specific way to do that?
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It only takes a minute to sign up.Sign up to join this community
You can make your computer act as a Bluetooth keyboard for other devices, provided that:
The hidclient program makes a Bluetooth® technology equipped computer appear as a Bluetooth® keyboard and mouse device to other machines. Input events (like keystrokes and mouse movements) of the locally attached input devices will be forwarded to another machine via the Bluetooth® link.
For the counterpart (which might be a Linux PC, a Win PC, a PDA...) there is no technical difference to "real" Bluetooth® input devices.
That totally rocks: you don't have to do anything special to your iPad (or any other mobile device that works with Bluetooth keyboards) to get this to work. You don't have to jailbreak it. You don't have to install any special apps. Just install and run hidclient, then tell your mobile device (the iPad) you want to use your Bluetooth keyboard!
Everything you need to get the software and learn how to use it is right here.
After reading the whole page (so you understand how it works), make sure to use the instructions at the end (for Ubuntu).
makeand press Enter to compile the source.
sudo cp /etc/bluetooth/main.conf /etc/bluetooth/main.conf.old
sudo -H gedit /etc/bluetooth/main.conf
#DisablePlugins = network,inputadd the line
DisablePlugins = input(no
#to the beginning of
Class = 0x000100; under it, write
hidclientlike a normal command:
sudo cp hidclient /usr/local/bin.
/usr/local/binis in your path with
hidclientby making sure you're in the directory where you compiled it, and running
hidclient --help (or see the bottom of the web page) to see how to use it.
Except when run with the
hidclient must be run as root. So use
sudo hidclient (followed by whatever options you're specifying, as explained in the help).
Basically, there's two steps:
sudo hidclient -lfor a numbered list of devices.
sudo hidclient -eN -x, replacing
Nwith the number of the device you want to "forward" over Bluetooth. In your case, this will be the keyboard.
You're all set. Tell your mobile device (iPad) to use a Bluetooth keyboard.
The last thing you need to be able to do is to stop using the keyboard for Bluetooth input. See, when
hidclient is running, the device you select is no longer giving input to your Ubuntu system. If it were anything but the keyboard (say, the mouse), you could quit
hidclient by pressing Ctrl+C in the Terminal.
But you cannot do that, because keyboard input won't go to the Terminal or any other Ubuntu program. The keyboard is acting as a Bluetooth device!
So, when "forwarding" the keyboard, quit
hidclient by closing the Terminal window (or tab) in which it's running, with the mouse (or trackpad).