LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 06-03-2024, 02:38 PM   #1
Pigi_102
Member
 
Registered: Aug 2008
Posts: 188

Rep: Reputation: 22
BT Keyboard paired, connected but not typing.


Hello all,
I'm trying to use a ( cheap ) BT keyboard on my slackware 15+ but I'm not going anywhere.
I'm able to pair, connect and trust the keyboard but when I go typing key they don't appears.
Also, in btmon I can only get recognized a pair of functions key but nothing more.
Mouse and headphone are fine, only this keyboard.
I've checked keyboard on a linux mint ( on a PC ) and an android tablet and is working fine.


Attached a couple of screenshot from blueman.
Any idea on where to look ?
Attached Thumbnails
Click image for larger version

Name:	Screenshot_20240603_213321.png
Views:	18
Size:	42.5 KB
ID:	42992   Click image for larger version

Name:	Screenshot_20240603_213356.png
Views:	18
Size:	39.4 KB
ID:	42993  
 
Old 06-04-2024, 01:30 AM   #2
Pigi_102
Member
 
Registered: Aug 2008
Posts: 188

Original Poster
Rep: Reputation: 22
I went a little bit ahead in my research,
In the syslog I've found:
Code:
Jun  4 08:15:14 darkstar bluetoothd[1533]: src/service.c:service_accept() input-hog profile accept failed for F7:C7:93:97:CE:DA
Jun  4 08:15:14 darkstar kernel: Bluetooth: hci0: security requested but not available
and searching around it seems that anyone with this messages was able to make the device working by doing a reset of hci0 and a restart of bluetooth service:
Code:
sudo hciconfig hci0 reset
sudo /etc/rc.d/rc.bluetooth restart
which I did and now the keyboard is working.
I need to find the root cause now and make it works without those commands, being that i Need a BT keyboard because my laptop keyboard does not works on some keys

Any idea ?
 
Old 06-04-2024, 06:48 AM   #3
rizitis
Member
 
Registered: Mar 2009
Location: Greece,Crete
Distribution: Slackware64-current, Slint
Posts: 722
Blog Entries: 2

Rep: Reputation: 533Reputation: 533Reputation: 533Reputation: 533Reputation: 533Reputation: 533
Code:
lsmod | grep -i bluetooth
to be sure that all needed modules are on.
If something missing:
modprobe btusb
modprobe bluetooth
modprobe hidp

2. edit /etc/bluetooth/main.conf
add
Code:
AutoEnable=true 
JustWorksRepairing = always
3. add these to rc.local
Code:
/usr/sbin/hciconfig hci0 reset
/etc/rc.d/rc.bluetooth restart
also in the same file (/etc/bluetooth/main.conf) check this if hellping to true
Code:
# LE scanning parameters used for passive scanning supporting auto connect
# scenarios
#ScanIntervalAutoConnect=
#ScanWindowAutoConnect=
4. Use bluetoothctl to manually manage and debug your Bluetooth devices
sudo bluetoothctl
and when login type: help

maybe something like this:
Code:
power on
agent on
default-agent
scan on
pair <MAC Address>
trust <MAC Address>
connect <MAC Address>
 
Old 06-04-2024, 07:50 AM   #4
theodore.s
Member
 
Registered: Jul 2018
Location: Athens, Greece
Distribution: Slackware
Posts: 68

Rep: Reputation: 34
Same thing here...

This morning I was reading this thread with my hybrid HHKB connected with usb. A few minutes ago, I switched to BT and guess what, I had exactly the same problem!

This setup was working without problems for more than a year now. My syslog has these errors:

Code:
Jun  4 15:19:31 Bonsai bluetoothd[1840]: profiles/input/hog-lib.c:uhid_create() Failed to connection details: getpeername: Transport endpoint is not connected (107)
Jun  4 15:19:31 Bonsai kernel: hid-generic 0005:04FE:0021.0006: item fetching failed at offset 87/88
Jun  4 15:19:31 Bonsai kernel: hid-generic: probe of 0005:04FE:0021.0006 failed with error -22
Jun  4 15:23:41 Bonsai kernel: hid-generic 0005:04FE:0021.0007: item fetching failed at offset 87/88
Jun  4 15:23:41 Bonsai kernel: hid-generic: probe of 0005:04FE:0021.0007 failed with error -22
Jun  4 15:24:30 Bonsai kernel: hid-generic 0005:04FE:0021.0008: item fetching failed at offset 87/88
Jun  4 15:24:30 Bonsai kernel: hid-generic: probe of 0005:04FE:0021.0008 failed with error -22
Jun  4 15:24:30 Bonsai bluetoothd[1840]: profiles/deviceinfo/deviceinfo.c:read_pnpid_cb() Error reading PNP_ID value: Request attribute has encountered an unlikely error
Jun  4 15:24:30 Bonsai bluetoothd[1840]: profiles/input/hog-lib.c:proto_mode_read_cb() Protocol Mode characteristic read failed: Request attribute has encountered an unlikely error
Jun  4 15:24:30 Bonsai bluetoothd[1840]: profiles/input/hog-lib.c:report_reference_cb() Read Report Reference descriptor failed: Request attribute has encountered an unlikely error
Jun  4 15:24:30 Bonsai last message buffered 5 times
Jun  4 15:24:30 Bonsai bluetoothd[1840]: profiles/input/hog-lib.c:info_read_cb() HID Information read failed: Request attribute has encountered an unlikely error
Jun  4 15:24:30 Bonsai kernel: usbhid 1-10:1.2: can't add hid device: -71
Jun  4 15:24:30 Bonsai kernel: usbhid: probe of 1-10:1.2 failed with error -71
Jun  4 15:24:30 Bonsai acpid: input device has been disconnected, fd 15
Jun  4 15:24:30 Bonsai acpid: input device has been disconnected, fd 17
Jun  4 15:24:30 Bonsai acpid: input device has been disconnected, fd 18
Jun  4 15:25:06 Bonsai kernel: hid-generic 0005:04FE:0021.000E: item fetching failed at offset 87/88
Jun  4 15:25:06 Bonsai kernel: hid-generic: probe of 0005:04FE:0021.000E failed with error -22
Jun  4 15:26:37 Bonsai kernel: hid-generic 0005:04FE:0021.000F: item fetching failed at offset 87/88
Jun  4 15:26:37 Bonsai kernel: hid-generic: probe of 0005:04FE:0021.000F failed with error -22
Resetting hci0 and restarting bluetoothd as above fixed it.

Usually I'm using this KB during the day either with USB or BT, I don't change much from USB to BT. When using BT from boot, I never had any problems. Maybe something goes wrong with the power states of the BT adaptor (my system is a desktop with a USB BT adaptor, running Slackware 15.0), as this syslog message at the boot time hints:

Code:
Jun  4 10:51:59 Bonsai bluetoothd[1840]: src/device.c:device_set_wake_support() Unable to set wake_support without RPA resolution
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Another Bluetooth problem: speaker paired but not in output devices Umbrageofsnow Linux Mint 0 09-17-2017 11:50 PM
paired but not connected landorone1 Linux - Mobile 1 03-01-2012 12:55 PM
typing Faster Typing Tutor Maurice Arthur Ubuntu 3 12-14-2011 01:52 PM
Paired bluetooth phone as a modem, wvdial not working. lifeforce4 Red Hat 0 06-12-2009 06:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 05:37 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration