L
L
lavezzi12015-07-19 15:03:03
linux
lavezzi1, 2015-07-19 15:03:03

One bluetooth keyboard for two OCs?

Hello. There are two operating systems Ubuntu & Windows 8. And there is a Logitech k760 keyboard. The problem is, if you connect, for example, in Win8, then when you boot ubuntu, you have to reconfigure the keyboard, and vice versa. You have to switch from one OS to another quite often, and each time you are tired of connecting the keyboard with a new one. Are there any solutions?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Maxim Moseychuk, 2015-07-19
@fshp

lavezzi1 I still won.
1) We put standard drivers from small software on bluetooth in Windows (drivers from other manufacturers store data in places unknown to me)
2) We connect a keyboard (mouse or any other device) in Windows, provided that it has already been connected in Linux (otherwise, first we connect in Linux and start from point 1). Then we turn off the device and turn it on again (so that it picks up again).
3) Reboot to Linux. Install the chntpw utility in Linux (there are ubunts in the repositories).
4) Copy the Windows/System32/config/SYSTEM file from the Windows partition somewhere to your home directory. This is a registry file, we copy it so as not to spoil the original.
5) chntpw -e SYSTEM
6) ls
7) A list of registry branches will be displayed. We are interested in ControlSet001 (you may have ControlSet002, ControlSet003 or something similar)
8) cd ControlSet001\Services\BTHPORT\Parameters\Keys
9) ls
10) A list of MAC devices in Windows will be displayed in the format 2016d8c74f99. I have one device. You can remove all other bluetooth devices before all these actions in Windows, so as not to get confused.
11) cd 2016d8c74f99 (you will have a different id)
12) ls will display a list of keys (I have 001f20e1b3a6 - MAC mice)
13) hex 001f20e1b3a6 Will output
something like
: 00000 20 67 46 4D 9E 34 CD 34 12 85 1D FC 3 02 48 gFM.4.4..J.3..H
We are interested in 20 67 46 4D 9E 34 CD 34 12 85 4A FC 33 1D 02 48
Delete spaces 2067464D9E34CD3412854AFC331D0248
14) We go as root - sudo su. It is under the root, because. directories in which we will get further only for a rue on reading are available.
15) cd /var/lib/bluetooth/23\:16\:8D\:F7\:4F\:29 at the end is the MAC of my adapter, you have a different one
16) ls look at the list of files and directories, they have MAC address names devices.
17) cd 01\:2A\:20\:E4\:B3\:6A
18) Open the info file (nano -w info)
19) The file will contain the name of the device, so if you entered the wrong directory, you will understand .
20) We are interested in the LinkKey section, there is the Key parameter. We change it to what we pulled out of the Windows registry without spaces. We save the file.
21) Reboot (important, because a simple restart of the bluetooth daemon did not help).
22) We check the work in Linux, then in Windows (in any order).
23) Rejoice!
If you re-authorize the device on some OS, then everything will have to be done all over again. And it is desirable to start with Linux, then in Windows. Then back to Linux to tear out the key from Windows. Need help - write.

I
Ilya, 2015-07-20
@mirspo

software kvm synergy-project.org

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question