[Q] No input from bluetooth keyboard/case CM9

fredmc2020

Member
Oct 28, 2009
44
2
0
I have a cheap/generic bluetooth keyboard-case that works perfectly in WebOS, but I can't get it to work with CM9! Is there a bluetooth patch or something that I need?

When in the bluetooth menu on CM9 (alpha 2) it says "connected". Also, it is checked off as an "input device" but still nothing when I try to type.
 

MindSplit

Senior Member
Jan 20, 2011
429
322
0
Another Planet
I have a cheap/generic bluetooth keyboard-case that works perfectly in WebOS, but I can't get it to work with CM9! Is there a bluetooth patch or something that I need?

When in the bluetooth menu on CM9 (alpha 2) it says "connected". Also, it is checked off as an "input device" but still nothing when I try to type.
Check the CM9 thread and see if it mentions any Bluetooth incompatibility.

I'll see if I can get your any info on that.

Sent from my MIUI Evo 3D
 

lewmur

Senior Member
Apr 30, 2011
1,632
329
103
There is a difference in the way you connect using Android than the way you do with webOS. webOS shows you a "key" and you type the key on the BT keyboard. But in Android, you first generate a key using the TP's onscreen keyboard and then repeat the key using the BT keyboard. You can use any key combination on the TP for a key. "1234" or "8888" are just two examples.
 

fredmc2020

Member
Oct 28, 2009
44
2
0
There is a difference in the way you connect using Android than the way you do with webOS. webOS shows you a "key" and you type the key on the BT keyboard. But in Android, you first generate a key using the TP's onscreen keyboard and then repeat the key using the BT keyboard. You can use any key combination on the TP for a key. "1234" or "8888" are just two examples.

My keyboard does connect to the touchpad on CM9 (it says "connected" after I put in the key on the keyboard), however it does not register any button presses. In other words, I am connected but cannot type.

I have even uninstalled CM9 and re-installed from scratch. Still nothing.
 

mountaindewmi

Senior Member
May 17, 2010
131
29
0
Miami, FL
I have been sitting here trying to figure this one out too... no luck. I am however trying to use the slim keyboard from my iMac (and magic mouse). Both connect as input devices (they show up as a keyboard and a mouse) but neither of them DO anything in any app or home.
 

cryomike

Member
May 31, 2006
5
1
0
I have a cheap/generic bluetooth keyboard-case that works perfectly in WebOS, but I can't get it to work with CM9! Is there a bluetooth patch or something that I need?

When in the bluetooth menu on CM9 (alpha 2) it says "connected". Also, it is checked off as an "input device" but still nothing when I try to type.
Up....i have the same problem....
 
Last edited:

Tired_

Senior Member
Nov 30, 2011
71
14
0
I have this case and I have no troubles connecting with CM9, running the 07/20 nightly. I have found that if I pair it in WebOS, it won't connect properly when I reboot to CM9, but if I tell CM9 to forget it, then turn the keyboard off and back on, I can press the connect button on the keyboard and re-pair it, and it will work properly.

The case fits nice and snug, too, once I slit the bottom of it slightly for a bit more give...it's designed for an iPad, so the Touchpad needs just a hair more space.
 

haxin

Senior Member
Nov 25, 2011
258
49
0
las vegas
www.702wifi.com
you can manually add the hciconfig, hcitool, and hidd binaries to your system/xbin/ directory.
move all three of these binaries to the directory
chmod them to 4755
then you should be able to run the tools from the terminal
pair the keyboard to the touchpad with whatever pin, probably 0000 or 1234 or whatever.
it will probably say paired but not connected
then run hciconfig and it should show you the mac addy of your bluetooth adapter and list the device as hci0
then run hcitool scan
that will show you the mac addy of the keyboard
once you have that then you can connect to it with hidd --connect [macaddyofkeyboard]
verify youre connected properly then by hidd con
that will show you your bluetooth connection to the keyboard and ebverything should work like normal.
you can make a script to connect faster in the future also.

if you want to see more options for these tools you can always hciconfig --help hcitool --help hidd --help
 

Attachments

Last edited:

haxin

Senior Member
Nov 25, 2011
258
49
0
las vegas
www.702wifi.com
how exactly do i run these?
you can run them from any terminal emulator, if you create a script you can easily just execute the script each time instead of runnin the tools from the terminal.
 

Attachments

Last edited:

haxin

Senior Member
Nov 25, 2011
258
49
0
las vegas
www.702wifi.com
Does chmod need a directory or something like that after? I'm going to attempt to write a script for it
ok so maybe i didnt explain it like i should have, im sorry.
dont worry about the script unitl after yove gotten everything working.
so first off make sure bluetooth is on in android settings and pair the keyboard to it
copy the all three bluetooth tools into the touchpads /system/xbin/ folder you can use a file manager that has root permissions like esfile explorer or root filebrowser.
once the files are there then you need to change the permissions of those files. so open a terminal on the touchpad and
$ su
# chmod 4755 /system/xbin/hciconfig
# chmod 4755 /system/xbin/hcitool
# chmod 4755 /system/xbin/hidd
you only need to do that once you dont have to make a script to do that everytime
the rest happens in the terminal or in the script that you make.you will type
# hciconfig
# hcitool dev
# hcitool scan
(when you typw hcitool scan it should show you the keyboard device and mac address)
# hidd --connect (keyboardmacaddress)
# hcitool con (should show the keyboard connected)
that should do the trick aand you should be able to start using he keyboard after that

if youre still haveing trouble give me your keyboards bluetooth mac address and ill write up the script for you.
 

michael.seltzer

Senior Member
Mar 21, 2010
120
3
0
Colorado
For me the issue is not that the keyboard is not connecting, but rather that it is not being used as an input device. I tried your instructions and succesfully connected my keyboard, but there was still no input. If I use an app such as bluekeyboard JP that works. Anyone have any ideas?

Sent from my cm_tenderloin using xda premium
 

Tired_

Senior Member
Nov 30, 2011
71
14
0
How come you guys have to do all that complicated-looking stuff, but I don't? Not complaining (or bragging), just genuinely curious.
 

Vnge

Member
Jan 12, 2012
15
0
0
ok so maybe i didnt explain it like i should have, im sorry.
dont worry about the script unitl after yove gotten everything working.
so first off make sure bluetooth is on in android settings and pair the keyboard to it
copy the all three bluetooth tools into the touchpads /system/xbin/ folder you can use a file manager that has root permissions like esfile explorer or root filebrowser.
once the files are there then you need to change the permissions of those files. so open a terminal on the touchpad and
$ su
# chmod 4755 /system/xbin/hciconfig
# chmod 4755 /system/xbin/hcitool
# chmod 4755 /system/xbin/hidd
you only need to do that once you dont have to make a script to do that everytime
the rest happens in the terminal or in the script that you make.you will type
# hciconfig
# hcitool dev
# hcitool scan
(when you typw hcitool scan it should show you the keyboard device and mac address)
# hidd --connect (keyboardmacaddress)
# hcitool con (should show the keyboard connected)
that should do the trick aand you should be able to start using he keyboard after that

if youre still haveing trouble give me your keyboards bluetooth mac address and ill write up the script for you.
I will definitely try that when I get a chance. but also I am having the issue of the bt keyboard not being used as an input device, out of curiosity, how does this make the keyboard usable for an input device? instead of a connected paperweight?
 

haxin

Senior Member
Nov 25, 2011
258
49
0
las vegas
www.702wifi.com
I will definitely try that when I get a chance. but also I am having the issue of the bt keyboard not being used as an input device, out of curiosity, how does this make the keyboard usable for an input device? instead of a connected paperweight?
thats what the hid is human input device, so when you type hidd --server and hidd --connect youre connecting the device as an input device. you can see more options by typing hidd --help from the terminal