- How to pair Apple Magic Keyboard (A1314) on Ubuntu 18.04 and act as Numpad
- Apple wireless keyboard on Linux
- Remapping keys
- Thread: HOWTO: Apple Wireless Keyboard (Bluetooth)
- HOWTO: Apple Wireless Keyboard (Bluetooth)
- How do I get the Apple Wireless Keyboard Working in 10.10?
- Apple Bluetooth Magic Keyboard Ubuntu 20.04 Connection
- GNU/Linux Ubuntu 20.04 Apple Magic Keyboard Setup Guide
- 1. Accessing Settings
- Contents
- The GNU+Linux Foundation
- Telegram Channel
- Follow Us
- The GNU/Linux Free Software Phylosophy
- Spiritual Quote
- Steve Jobs’ Last Words
- We Need No Education But Freedom
- Coronavirus Best Natural Remedies for Protection/Cure
- Thanks to Google
- Credits
- Divine vs Devilish Nature
- Donate to Extreme Poor People
How to pair Apple Magic Keyboard (A1314) on Ubuntu 18.04 and act as Numpad
I was browsing options for Bluetooth keyboards recently and was lucky to hit an Apple Magic Keyboard for as low as 25 Euro. Once I’ve received the packet I was impassioned to start using it. How disappointed I was when I found out that it pairs only as half-Numpad (in my case only 7–8–9–0 keys were active) and disconnects right after Caps Lock pressed. In the end I’ve found the solution which I would like to share here today.
Step 1. Make sure the keyboard is off. The best way to do that is to power cycle by removing batteries and plugging them back.
Step 2. Open terminal. Run the following commands:
Step 3. Power on your Magic Keyboard. Hold the power button and do not release until step 5.
Step 4. In bluetoothctl type:
It will start scanning for available Bluetooth devices. What we are looking for would be indicated like this:
Step 5. Copy MAC address for the keyboard from the previous step. Add keyboard as trusted device:
Once it trusted start pairing:
Step 5. Release the‘ Power on’ button on the keyboard and type PIN code on the keyboard. It won’t indicate anything in the terminal, but that’s fine. Commit PIN by hitting ‘Enter’. If pairing is successful output will be similar to that:
Step 6. Now your keyboard is paired, but most likely it will be acting as a Numpad. To resolve this issue run following in terminal:
Congratulations — now you have fully working Apple Keyboard!
Источник
Apple wireless keyboard on Linux
The new Apple wireless keyboards are a really nice looking and robust design, but unfortunately, Many people are having trouble using them under Linux.
The main problem is that it times out and people assume that the problem is something to do with the Linux Bluetooth layer. But actually the problem is very easily solved — the keyboard requires a pin number to be established before it will allow the device to connect and bond.
Also, I find that there can be problems connecting to some devices using the GNOME applet by in the system try, so these instructions create the initial connection from a root terminal instead.
First, find the MAC address of your device, as follows:
This will yield something like the following output:
Next, turn on the keyboard, and establish a connection as follows:
This is where it would normally time out if left to its own devices, but actually all is well and the keyboard is waiting for you to enter a four digit PIN number such as 0000 into the Apple keyboard followed by the enter key. When you hit enter, a dialog box will come up allowing you to enter the matching PIN (using your currently working keyboard) which will then complete the connection and bonding process.
After this procedure, the keyboard should be listed in the connected and bonded devices list and will automatically be present after rebooting or whenever the keyboard is powered up.
Remapping keys
The Apple wireless keyboard is very compact, but to achieve its small foot print, some often used keys are missing, such as the page up/down, home/end and delete keys. These are emulated by using the fn pseudo-modifier key at the bottom left in combination with the cursor keys (and fn + backspace emulates the delete key). This solution is ok, but I’d like to make a couple of changes for more transparent use with Linux, one change can be done easily, the other can’t be done at all.
The one we can’t do is to swap the positions of fn and ctrl. Most windows and linux users are used to the control key being at the very bottom right and a function key being next inward not the other way round. But unfortunately the fn key is usually a pseudo-modifier key and has no key code because it doesn’t exist as far as the software is concerned — its operation is determined by the keyboard hardware.
Actually I think this is wrong I think it’s done in the kernel not the hardware, cos showkeys gives a result when pressing the fn key.
The change which we can make is to make the eject key into delete since Linux users have no use for eject.You can use xev to find keycodes by pressing keys, and use xmodmap -pke to list current key assignments. The keycode for the eject key on the Apple keyboards is 204, so we can map it to eject as follows:
Another one I added was to make the f12 key to the left of eject into an insert key as follows:
Источник
Thread: HOWTO: Apple Wireless Keyboard (Bluetooth)
Thread Tools
Display
HOWTO: Apple Wireless Keyboard (Bluetooth)
This guide was previously written for Ubuntu 6.06. However, these instructions have been updated to work on Ubuntu 7.04 (Feisty Fawn).
Changes made:
Replaced «hidd —search» by «hidd —connect BD_ADDR»
Replaced «/etc/init.d/bluez-utils» by «/etc/init.d/bluetooth»
Added «HIDD_ENABLED=1»
Added package «bluetooth» and «bluez-gnome»
I lately had some trouble using my Apple Wireless Keyboard with Ubuntu 7.04 so I’d like to share my experiences with you. So this is a small guide on pairing your Apple Wireless Keyboard with your Bluetooth Dongle of choice. Okay, so let’s get started.
First of all, install the package bluez-gnome:
Restart your desktop session by logging out and logging in again. This will automatically start the bluetooth applet which will help you enter the PIN during the bluetooth pairing process.
Now we need to find out the Bluetooth Hardware Device Address (BD_ADDR) of our Apple Keyboard. Unfortunately, this is not written anywhere on the keyboard itself. So we need to turn on the keyboard (or restart it) using the switch on the bottom and run the following command:
Okay, there we got the BD_ADDR and the name of our device.
This seems to be the crucial piece of the bluetooth puzzle!
Now copy that BD_ADDR to your clipboard and edit the file /etc/bluetooth/hcid.conf to enable authentication and encryption for this very BD_ADDR.
Enter the following stanza at the end of the file, replacing BD_ADDR with your BD_ADDR from the clipboard:
When you’re finished, save the file and close gedit.
We’re now going to enable HID-support by default:
Change «HIDD_ENABLED=1» to «HIDD_ENABLED=0». Take care that using this how-to you do not need any «—connect BD_ADDR» parameters to hidd. So you can remove them from HIDD_OPTIONS. «HIDD_OPTIONS=’—master —server'» is just fine.
Save the file, close gedit and restart the Bluetooth subsystem using the following command:
Notice that this will terminate any active bluetooth connections. However, reconnecting should not be a problem
Finally, we’re ready to do the actual pairing. Restart the keyboard again using the switch on the bottom to make it discoverable. Do not hit any keys on your Apple Keyboard unless this tutorial says so. It might cause all sorts of strange trouble during the pairing procedure. Okay, so, right after restarting the keyboard, run the following command (replacing BD_ADDR by the actual address, of course ):
Ubuntu will now try to connect to the keyboard without showing any progress bar or other output. It will just sit there and wait. Okay, enter a PIN consisting of 4 digits and hit the enter key (both on your Apple Keyboard). Right after hitting enter, a notification window should pop up on your desktop asking you for the PIN you just entered. Enter it. «hidd» should finish without further outputs. You should now be set up.
I hope that this will be useful to some people out there. Feel free to correct me or ask questions
Last edited by naag; April 2nd, 2007 at 07:05 PM . Reason: Update for 7.04 Feisty Fawn
Источник
How do I get the Apple Wireless Keyboard Working in 10.10?
So I’ve gone and bought a Magic Mouse and Apple Wireless Non-Numeric Keyboard. The magic mouse worked out-of-the-box almost perfectly, except for the forward/back gesture which still isn’t functioning, whereas the keyboard didn’t.
It has constant trouble with the bluetooth connection. Only the 7, 8 and 9 buttons and volume media keys correspond correctly with the output. Pressing every single key on keyboard has this output: 789/=456*123-0.+
When I use Blueman the keyboard can be setup and shows up in «Devices» but I get a warning when I click «Setup»; «Device added successfully, but failed to connect» (although removing the keyboard and setting it up as a new device doesn’t incur this error).
Using gnome-bluetooth I have encountered no error messages but it connects properly less often than Blueman and I can still only type the aforementioned output.
What am I not doing? Where is this going wrong?
EDIT: I have read this http://ubuntuforums.org/showthread.php?t=224673 inside out several times to no avail. It seems these commands don’t work for me with the apple peripherals sudo hidd —search hcitool scan
Fortunately I have the luxury of a 1TB hard drive, near limitless patience and no job.
I have installed a fresh Ubuntu 10.10 64bit (albeit smaller than mine) and after updating and restarting for the first time, I set up my devices in exactly the same way as I have learnt on my original install I succeeded once again with the mouse and, to my joy, with the keyboard also. Though I could not seem to find Alt+F2 and had to reconfigure that and several other keyboard shortcuts, the keyboard is working and in a spectacular fashion.
Still, this leaves me with the issue of my original install. I returned to it with some new found knowledge but failed again.
Perhaps I have a missing dependancy? I did uninstall bluetooth after the initial set up and reinstalled it recently for the pupose of these peripherals.
Maybe it’s because I’m running 64bit?
This is still not solved, but easily avoided by not changing too much from the original install. Just hide stuff or turn it off, don’t uninstall too much.
Источник
Apple Bluetooth Magic Keyboard Ubuntu 20.04 Connection
GNU/Linux Ubuntu 20.04 Apple Magic Keyboard Setup Guide
You are Welcome! The Tutorial Shows You Step-by-Step How to Connect Apple Bluetooth Magic Keyboard in Ubuntu 20.04 Focal LTS GNU/Linux.
And to Successfully Pairing Apple Wireless Keyboard on Ubuntu 20.04 it’s quite Easy so just follow the included Visual Instructions.
1. Accessing Settings
First, to Access Ubuntu Settings
Simply Right-Click on Desktop and Choose “Settings”:
Contents
The GNU+Linux Foundation
Telegram Channel
Follow Us
The GNU/Linux Free Software Phylosophy
Spiritual Quote
“Great achievement appears to be inadequate, yet its use is never exhausted.
Great fullness appears to be void, yet its use is boundless.
Great honesty may seem to be accused of wrong doing.
Great mastery appears to be clumsy.
Great eloquence may seem to be inarticulate.”
Steve Jobs’ Last Words
We Need No Education But Freedom
Coronavirus Best Natural Remedies for Protection/Cure
Thanks to Google
Dear Linux User, should be nice if you can Realize how without Google Ads most of these Contents likely would Never be Written!
So Thanks to Google and the Google Ads Advertisers for their Support.
Moreover, I can find out easily the needed insight to make my Guides again using the Best Search Engine: Google.
Credits
Divine vs Devilish Nature
Donate to Extreme Poor People
Supported by Google.org
© Copyright 2021 — tutorialforlinux.com
tutorialforlinux.com Sorry, but this WebSite is Not Rendering Properly with most adblockers. Please Disable it and Refresh.     Refresh ↻
We are using cookies to give you the best experience on our website.
You can find out more about which cookies we are using or switch them off in settings .
QuickChic Theme • Powered by WordPress
Strictly Necessary Cookies
This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.
Strictly Necessary Cookie should be enabled at all times so that we can save your preferences for cookie settings.
If you disable this cookie, we will not be able to save your preferences. This means that every time you visit this website you will need to enable or disable cookies again.
Источник