We need log-in on-screen keyboard.

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read this

We need log-in on-screen keyboard.

Postby My2CentsWorth on Wed Dec 05, 2012 4:15 pm

I am using Linux Mint 14 Cinnamon. I have a blue tooth keyboard (Logitech k810) it works great for multiple devises, switching with just a touch of a button. The problem I have is until I am logged in it does not work. Other Distributions have an on-screen keyboard option at the log-in for just this situation. Windows and Mac the blue-tooth works at log-in, I don't know of a Linux distro that does, but the on-screen keyboard option is a nice way around the issue.
I was going to post this in the About Mint Editions section but there was no NEWTOPIC* button for me. I hope this is OK to post this here as I could not find anything n the subject in the search results.
-Mark
My2CentsWorth
Level 1
Level 1
 
Posts: 5
Joined: Sun Nov 25, 2012 1:33 pm

Linux Mint is funded by ads and donations.
 

Re: We need log-in on-screen keyboard.

Postby jbb on Thu Feb 07, 2013 4:22 am

I have just clean installed Linux Mint 14, as I broke it while trying to get the K810 to work. After the clean install I managed to figure out how to get the keyboard to work in about 5 minutes, and it works just fine from the login screen.
Not sure what your issue would be then.
jbb
Level 1
Level 1
 
Posts: 19
Joined: Wed Apr 15, 2009 10:52 pm

Re: We need log-in on-screen keyboard.

Postby catweazel on Thu Feb 07, 2013 4:55 am

jbb wrote:Not sure what your issue would be then.

The poster would like to know how you got it to work.
Mint Testing Team & Mint Donor #3606
KDE 4.12.0, custom preemptive kernel 3.12.5,
Intel i7 4770K @ 4.7GHz, 16GB 2666MHz XMP,
4 Samsung 840 PRO 512GB SSDs in RAID0,
6TB HW RAID10, dual 24" Acer X243H,
Gigabyte nVidia GTX 680 Super Overclock
User avatar
catweazel
Level 7
Level 7
 
Posts: 1656
Joined: Fri Oct 12, 2012 9:44 pm

Re: We need log-in on-screen keyboard.

Postby jbb on Thu Feb 07, 2013 11:52 am

TehGhodTrole wrote:
jbb wrote:Not sure what your issue would be then.

The poster would like to know how you got it to work.

Oh yer that might be useful.. :oops:

The standard Cinnamon Bluetooth GUI did not work for me (the pairing always failed even though I was typing in the passkey... :?: ). After doing some searches I found this guide http://devasive.blogspot.com.au/2012/11 ... iring.html which unfortunately did not work either. No matter how I did things I kept on getting time out errors, so I had to explore around for another option. After doing a bit of reading about the Linux Bluetooth protocol (from http://www.bluez.org), I had a browse through the bluetooth packages in Synaptic, and discovered two packages that seemed like a good place to start. I installed them both, although I only ended up using one of the packages to find a fix.

bluez-tools
Bluez-tools provides comamnd line tools to functions of Bluetooth.
They are Bluetooth adapter control, Bluetooth agent, sound, input, network
and other.

bluez-hcidump
The hcidump utility allows the monitoring of Bluetooth activity. It
provides a disassembly of the Bluetooth traffic and can display packets
from higher level protocols such as RFCOMM, SDP and BNEP.

Following the guide linked above, once you type in "sudo bluez-simple-agent hci0 XX:XX:XX:XX:XX:XX" the computer just seems to sit there for a while thinking, and then throws a timeout error. Using the 'bluez-hcidump' tool, you can see what it is actually doing; waiting for a the passkey to pair the devices. It also has the bonus of showing you the passkey, enabling you to enter it into the K810 before the connection times out.

SOLUTION (may work for other devices):

  • Turn on PC bluetooth and set to discoverable (maybe not necessary, but I wanted to get rid of as many obstacles as possible)
  • Turn on keyboard, press the connect button followed by F1, F2 or F3
  • In a new terminal type:
    Code: Select all
    hcitool scan
    and copy mac address XX:XX:XX:XX:XX:XX of the keyboard

  • Now in another terminal type (switches are for ascii output, and date stamped):
    Code: Select all
    sudo hcidump -at

  • You should get output similar to what is posted below (followed by a blinking cursor):
    HCI sniffer - Bluetooth packet analyzer ver 2.4
    device: hci0 snap_len: 1028 filter: 0xffffffffffffffff

  • Assuming the keyboard is device 'hci0', switch back to your original terminal and type:
    Code: Select all
    sudo bluez-simple-agent hci0 XX:XX:XX:XX:XX:XX

  • Now in the hcidump terminal you will see a few things scroll past until you get something that looks like:
    2013-02-07 15:35:40.653393 > HCI Event: User Passkey Notification (0x3b) plen 10
    bdaddr XX:XX:XX:XX:XX:XX passkey xxxxxx

  • Type the 'passkey' in to the keyboard of the K810 and press ENTER; as you type the hcidump terminal will update with your key presses
  • In the original terminal, on success you should get "Release" and "New device (/org/bluez/..."
  • Now set device as trusted:
    Code: Select all
    sudo bluez-test-device trusted XX:XX:XX:XX:XX:XX yes

  • You might have a connection now, but still need to:
    Code: Select all
    sudo bluez-test-input connect XX:XX:XX:XX:XX:XX

That should be it :D
jbb
Level 1
Level 1
 
Posts: 19
Joined: Wed Apr 15, 2009 10:52 pm

Re: We need log-in on-screen keyboard.

Postby alt0r on Mon Dec 30, 2013 10:49 am

Hello together,
recently got myself the same keyboard, k810.
Im running Lmint Olivia 15 Mate 64bit.

Im having the exact same problem as described above,
but the workaround wont work for me.
found device at hci0, found deviceadress,typed sudo bluez-simple-agent hci0 XX:XX:XX:XX:XX:XX;
this will give me a
Code: Select all
Creating device failed: org.bluez.Error.ConnectionAttemptFailed: Connection Timeout

whereas the hcidump window shows the following:
Code: Select all
sudo hcidump -at
HCI sniffer - Bluetooth packet analyzer ver 1.42
device: hci0 snap_len: 1028 filter: 0xffffffffffffffff
1388414806.412218 < HCI Command: Create Connection (0x01|0x0005) plen 13
  . . M   . . . . . . . . .
1388414806.449177 > HCI Event: Command Status (0x0f) plen 4
  . . . .
1388414807.217134 > HCI Event: Connect Complete (0x03) plen 11
  . * . . . M   . . . .
1388414807.217321 < HCI Command: Read Remote Supported Features (0x01|0x001b) plen 2
  * .
1388414807.222107 > HCI Event: Command Status (0x0f) plen 4
  . . . .
1388414807.228091 > HCI Event: Read Remote Supported Features (0x0b) plen 11
  . * . . . . x . . Y .
1388414807.228127 < HCI Command: Read Remote Extended Features (0x01|0x001c) plen 3
  * . .
1388414807.231151 > HCI Event: Command Status (0x0f) plen 4
  . . . .
1388414807.237108 > HCI Event: Read Remote Extended Features (0x23) plen 13
  . * . . . . . . . . . . .
1388414807.237148 < HCI Command: Remote Name Request (0x01|0x0019) plen 10
  . . M   . . . . . .
1388414807.240167 > HCI Event: Command Status (0x0f) plen 4
  . . . .
1388414807.265163 > HCI Event: Remote Name Req Complete (0x07) plen 255
  . . . M   . . L o g i t e c h   K 8 1 0
  . . . . . . . . . . . . . . . . . . . .
  . . . . . . . . . . . . . . . . . . . .
  . . . . . . . . . . . . . . . . . . . .
  . . . . . . . . . . . . . . . . . . . .
  . . . . . . . . . . . . . . . . . . . .
  . . . . . . . . . . . . . . . . . . . .
  . . . . . . . . . . . . . . . . . . . .
  . . . . . . . . . . . . . . . . . . . .
  . . . . . . . . . . . . . . . . . . . .
  . . . . . . . . . . . . . . . . . . . .
  . . . . . . . . . . . . . . . . . . . .
  . . . . . . . . . . . . . . .
1388414807.265219 < HCI Command: Authentication Requested (0x01|0x0011) plen 2
  * .
1388414807.267106 > HCI Event: Command Status (0x0f) plen 4
  . . . .
1388414807.268110 > HCI Event: Link Key Request (0x17) plen 6
  . . M   . .
1388414807.268147 < HCI Command: Link Key Request Negative Reply (0x01|0x000c) plen 6
  . . M   . .
1388414807.271107 > HCI Event: Command Complete (0x0e) plen 10
  . . . . . . M   . .
1388414807.272145 > HCI Event: IO Capability Request (0x31) plen 6
  . . M   . .
1388414807.272183 < HCI Command: IO Capability Request Reply (0x01|0x002b) plen 9
  . . M   . . . . .
1388414807.275106 > HCI Event: Command Complete (0x0e) plen 10
  . + . . . . M   . .
1388414807.282140 > HCI Event: IO Capability Response (0x32) plen 9
  . . M   . . . . .
1388414807.547174 > HCI Event: User Passkey Notification (0x3b) plen 10
  . . M   . . . . . .
1388414807.548145 > HCI Event: Keypress Notification (0x3c) plen 7
  . . M   . . .
1388414837.546194 > HCI Event: Simple Pairing Complete (0x36) plen 7
  . . . M   . .
1388414837.547189 > HCI Event: Auth Complete (0x06) plen 3
  " * .
1388414839.547944 < HCI Command: Disconnect (0x01|0x0006) plen 3
  * . .
1388414839.551218 > HCI Event: Command Status (0x0f) plen 4
  . . . .
1388414839.630225 > HCI Event: Disconn Complete (0x05) plen 4
  . * . .


so, there is no passkey displayed, so i cannot connect.
Anyone got an idea whats wrong and what to do about it?

Thanks in advance
alt0r
Level 1
Level 1
 
Posts: 1
Joined: Mon Dec 30, 2013 10:37 am


Return to Newbie Questions

Who is online

Users browsing this forum: Google Feedfetcher, nealchen, nomko and 32 guests