Can't get Bluez work

Non release banter
Post Reply
User avatar
Tziga
White ninja
White ninja
Posts: 6
Joined: 18 Mar 2014, 21:56
Distribution: Lubuntu 14.04 - Porteus 3.0 DE
Location: Italy

Can't get Bluez work

Post#1 by Tziga » 11 Jul 2014, 15:22

I'm a proud Porteus 3.0 desktop Edition user, and i was trying to use my bluetooth dongle. i installed Bluez, but "hcitool dev" command always returns "Devices:" and nothing else.
My dongle is actually working with Lubuntu installed in 2 different PC (even the one where i boot Porteus), when connected in Porteus it start flashes normally, and it's seen by "lsusb".
So i tried to give "/etc/init.d/bluetooth status" but in init.d there isn't any "bluetooth" file.

by now to start bluetooth i installed modules (converted in .xzm from Ubuntu .deb files), but no luck:
dpkg_1.16.1.2
libc6_2.15.0
upstart_1.5.0
libnih1_1.0.3.4
libnih-dbus1_1.0.3.4
gir1.2-gst-plugins-base-1.0_1.2.0
gstreamer1.0-x_1.2.0
libvisual-0.4.0
intscripts_2.8
libreadline6_6.2-9
libdev1_204-0
lsb-base_4.1
module-int-tools_9-3
bluez-hcidump-2.4
bluez-firmware-1.2
libxml2_2.9.1+dfsg1-3
libgstreamer0.10-0_0.10.36
libgstreamer-plugins-base.10-0_0.10.36
bluez-gstreamer_4.101-0
bluez_4.101-0
libusb-0.1-4_0.1.12.23.2
libdbus-1-3_1.6.12-0
python3-dbus_1.2.0-2
udev_204-0

Can you tell me what moduleshave i to install to get my dongle find?

User avatar
fanthom
Site Admin
Site Admin
Posts: 4548
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland, currently - Cork, IE
Contact:

Re: Can't get Bluez work

Post#2 by fanthom » 11 Jul 2014, 16:05

Porteus is based on Slackware so using so many debian packages may destroy the system.

please boot into 'Always Fresh' mode -> install bluez and bluez firmware (choose slackware-14.1 and you arch) from here: http://packages.slackware.com/ -> start bluez with 'sh /etc/rc.d/rc.bluetooth start' comamnd -> check if 'hciconfig' command returns something.

if it doesnt then please generate 'psinfo' report, upload it to pastebin.com and link here.

thanks
Please add [Solved] to your thread title if the solution was found.

User avatar
Tziga
White ninja
White ninja
Posts: 6
Joined: 18 Mar 2014, 21:56
Distribution: Lubuntu 14.04 - Porteus 3.0 DE
Location: Italy

Re: Can't get Bluez work

Post#3 by Tziga » 12 Jul 2014, 23:39

Thank you very much for your answer!
i followed all your steps but i still can't see my dongle.
i installed two packages you said for my arch, and the command 'sh /etc/rc.d/rc.bluetooth start' is executed without any error.
When i try tu run 'hciconfig' it tells me that the command is unknown.
'hcitools dev' still doesn't find any device.

here is my psinfo:

http://pastebin.com/qhzySTwV

tkanks again.

User avatar
fanthom
Site Admin
Site Admin
Posts: 4548
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland, currently - Cork, IE
Contact:

Re: Can't get Bluez work

Post#4 by fanthom » 13 Jul 2014, 09:31

first of all - you are running in 'Alwasy Fresh' mode so i hope that you are aware that your changes wont persist the reboot.
now - please run /usr/sbin/hciconfig as root and show me the output (paste all lines from the console).

your hardware seems to be initialized:

Code: Select all

/:  Bus 03.Port 1: Dev 1, Class=root_hub, Driver=uhci_hcd/2p, 12M
    |__ Port 1: Dev 2, If 0, Class=Wireless, Driver=btusb, 12M
    |__ Port 1: Dev 2, If 1, Class=Wireless, Driver=btusb, 12M
so everything should be ok (unless some firmware is missing but i can't see anything in dmesg)

thanks
Please add [Solved] to your thread title if the solution was found.

User avatar
wread
Module Guard
Module Guard
Posts: 1062
Joined: 09 Jan 2011, 18:48
Distribution: Porteus v3.2.5-kde5-64 bits
Location: Santo Domingo
Contact:

Re: Can't get Bluez work

Post#5 by wread » 14 Jul 2014, 11:14

@Tziga
What is your Porteus DE?
Mine is Kde4 and I have installed bluedevil-1.2.2 and bluez-4.99 only, and my Bluetooth dongle works....

When I steck the dongle, in 2 seconds the machine answers with "Bluetooth is On" when I hover the mouse over the Bluetooth sign Image

Elemental, Watson 8)

Regards!
Porteus is proud of the FASTEST KDE ever made.....(take akonadi, nepomuk and soprano out and you will have a decent OS).
The Porteus Community never sleeps!

User avatar
Tziga
White ninja
White ninja
Posts: 6
Joined: 18 Mar 2014, 21:56
Distribution: Lubuntu 14.04 - Porteus 3.0 DE
Location: Italy

Re: Can't get Bluez work

Post#6 by Tziga » 14 Jul 2014, 13:48

@fanthom
thanks again for your time, here is hciconfig output:

Code: Select all


hci0:	Type: BR/EDR  Bus: USB
	BD Address: 00:11:67:5E:6C:49  ACL MTU: 678:8  SCO MTU: 48:10
	DOWN 
	RX bytes:466 acl:0 sco:0 events:18 errors:0
	TX bytes:74 acl:0 sco:0 commands:18 errors:0

@wread
i'm in the LXDE zone of Porteus forum, so you've got your answer :wink:

User avatar
fanthom
Site Admin
Site Admin
Posts: 4548
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland, currently - Cork, IE
Contact:

Re: Can't get Bluez work

Post#7 by fanthom » 14 Jul 2014, 13:54

so everything is ok. now do

Code: Select all

hciconfig hci0 up
and you are good to go.

more info:
https://wiki.archlinux.org/index.php/bluetooth
Please add [Solved] to your thread title if the solution was found.

User avatar
Tziga
White ninja
White ninja
Posts: 6
Joined: 18 Mar 2014, 21:56
Distribution: Lubuntu 14.04 - Porteus 3.0 DE
Location: Italy

Re: Can't get Bluez work

Post#8 by Tziga » 16 Jul 2014, 11:21

thank you so much fanthom !!! you saved me :D
my dongle bluetooth4.0 now is working flawless, only when i use my older dongle (i think 2.1) when i give "hciconfig hci0 up" it tells me:

Code: Select all


Can't init device hci0: Connection timed out (110)

can you explain me why?
thanks anyway!!! :beer:

User avatar
fanthom
Site Admin
Site Admin
Posts: 4548
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland, currently - Cork, IE
Contact:

Re: Can't get Bluez work

Post#9 by fanthom » 16 Jul 2014, 13:21

Can't init device hci0: Connection timed out (110)
maybe driver/firmware is missing?
please generate psinfo report once again when this dongle is plugged in.

thanks
Please add [Solved] to your thread title if the solution was found.

User avatar
Tziga
White ninja
White ninja
Posts: 6
Joined: 18 Mar 2014, 21:56
Distribution: Lubuntu 14.04 - Porteus 3.0 DE
Location: Italy

Re: Can't get Bluez work

Post#10 by Tziga » 16 Jul 2014, 16:23

all the code i posted in my previous posts was made with that dongle plugged in.
this one:

http://www.chinawholesalegift.com/pic/ ... 78788.jpg

but when i try your last command to switch the hci0 on, i get that timeout error, so i tried with the other dongle (and it worked :) )

User avatar
fanthom
Site Admin
Site Admin
Posts: 4548
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland, currently - Cork, IE
Contact:

Re: Can't get Bluez work

Post#11 by fanthom » 17 Jul 2014, 07:40

unfortunately googling 'Can't init device hci0: Connection timed out (110)' return too many hits (ranging from kernel bug to incorrect shutting down of the system) so i cant give you precise answer.
you have to try all resolutions yourself till you find the correct one for your hardware.
Please add [Solved] to your thread title if the solution was found.

User avatar
Tziga
White ninja
White ninja
Posts: 6
Joined: 18 Mar 2014, 21:56
Distribution: Lubuntu 14.04 - Porteus 3.0 DE
Location: Italy

Re: Can't get Bluez work

Post#12 by Tziga » 20 Jul 2014, 14:39

thanks anyway!!! :beer:

Post Reply