SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 2014-08-15 16:54:12

edomatic
Member
Registered: 2014-08-13
Posts: 12

autoload bluetooth on startup? [SOLVED]

Hi,

After 1 full day of searching the net i finally can use my bluetooth keyboard in my crunchbang now.
I learned a lot doing this but i am still puzzled as to how to get the bluetooth keyboard working so that i can login with it (!)

When i get the prompt to enter username it does not work, it only works after the login.

Appreciate your input on this!

Last edited by edomatic (2014-08-17 11:20:11)

Offline

Help fund CrunchBang, donate to the project!

#2 2014-08-15 18:05:49

Head_on_a_Stick
#! Cat
From: A world of pure imagination
Registered: 2014-01-21
Posts: 1,991

Re: autoload bluetooth on startup? [SOLVED]

This one looks promising:
http://unix.stackexchange.com/questions … ore-log-in
EDIT: 1k big_smile

Last edited by Head_on_a_Stick (2014-08-15 18:06:21)


If you want a good answer ask a good question
Do you have an XY Problem
The Help Vampire
Ubuntu PPA's & Debian Testing/Unstable sources break CrunchBang

Offline

#3 2014-08-16 08:59:43

edomatic
Member
Registered: 2014-08-13
Posts: 12

Re: autoload bluetooth on startup? [SOLVED]

Hi Cat!,

I will give it a try altough, as i am a newbie to #!  and linux in general, i will have to figure out how to load this bash script at logon, but hey that's the linux way right!?

Thanks so much for your quick reply i will give it a try right away! ;-)

Offline

#4 2014-08-16 09:47:24

Head_on_a_Stick
#! Cat
From: A world of pure imagination
Registered: 2014-01-21
Posts: 1,991

Re: autoload bluetooth on startup? [SOLVED]


If you want a good answer ask a good question
Do you have an XY Problem
The Help Vampire
Ubuntu PPA's & Debian Testing/Unstable sources break CrunchBang

Offline

#5 2014-08-16 11:08:44

edomatic
Member
Registered: 2014-08-13
Posts: 12

Re: autoload bluetooth on startup? [SOLVED]

thanks again Cat !
Appreciate your help :-)

have a great day

Offline

#6 2014-08-16 14:14:57

Alad
Software Satan
Registered: 2014-02-20
Posts: 1,224

Re: autoload bluetooth on startup? [SOLVED]

edomatic wrote:

Hi Cat!,

SCNR. devil

(please mark your  thread as [SOLVED])

Last edited by Alad (2014-08-16 14:15:30)

Offline

#7 2014-08-17 11:16:20

edomatic
Member
Registered: 2014-08-13
Posts: 12

Re: autoload bluetooth on startup? [SOLVED]

hi guys,

first a big thanks to Head_on_a_Stick for his quick reply, you pointed me in the good direction

I finally got everything to work, here is what i did:

first check if the bluetooth service is up:
/etc/init.d/bluetooth status
(should be running)

install bluez and bluez-utils:
sudo apt-get install bluez && sudo apt-get install bluez-utils

then create this file as root:
sudo nano /etc/udev/rules.d/99-local-bluetooth.rules
add the line:
SUBSYSTEM=="usb", ATTRS{idVendor}=="050d", ATTRS{idProduct}=="065a", RUN+="/bin/sh -c 'modprobe btusb; echo 050d 065a > /sys/bus/usb/drivers/btusb/new_id'"

(ctrl x, Y , enter to validate)

the info might/will vary for you! i used 050d and 065a as this is the device info from MY belkin bluetooth V4.0 usb mini adapter

here's how i found mine:

lsusb
ed@Crunchy:~$ lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 006 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 002: ID 8087:8008 Intel Corp.
Bus 002 Device 002: ID 8087:8000 Intel Corp.
Bus 003 Device 002: ID 046d:c516 Logitech, Inc.
Bus 003 Device 003: ID 050d:065a Belkin Components ------------this is the bluetooth usb adapter i am using


then i needed the device specific info, i fot this as follows:

ed@Crunchy:~$ lsusb -v
this command gives a lot of output so prepare to scroll!

Bus 003 Device 003: ID 050d:065a Belkin Components   ----here's where the info ( 050d:065a) was

ok at this point, after saving the file 99-local-bluetooth.rules,  i rebooted my crunchbang

then find your K810 mac address with the command:

hcitool scan

(other usefull tool is hciconfig )

once you have it you can ping it with:

sudo l2ping xx:xx:xx:xx:xx:xx (replace with your keyboards mac address)

then the thing that is very important:

hciconfig hci0 sspmode 0

this disables simple pairning mode, there seems to be a bug with this

now i finally started the bluetooth wizard:

sudo bluetooth-wizard

this starts the wizard, then detect you device and enter the key code on your keyboard.

This procedure survives the reboot/shutdown of Crunchbang and even enables the keyboard at the logon-screen too :-)

I hope this is helpfull to anyone trying to get his bluetooth keyboard up with #! cool

Edwin

Offline

#8 2014-08-17 11:23:33

Head_on_a_Stick
#! Cat
From: A world of pure imagination
Registered: 2014-01-21
Posts: 1,991

Re: autoload bluetooth on startup? [SOLVED]

Good work Edwin, glad you got it sorted!
Thank you for posting your full solution --- I'm sure quite a few people will find that very useful indeed... smile


If you want a good answer ask a good question
Do you have an XY Problem
The Help Vampire
Ubuntu PPA's & Debian Testing/Unstable sources break CrunchBang

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.

Debian Logo