Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Wed 23 Jul 2014, 00:06
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » System
Bluetooth & D-Bus, January 08
Post new topic   Reply to topic View previous topic :: View next topic
Page 3 of 7 [93 Posts]   Goto page: Previous 1, 2, 3, 4, 5, 6, 7 Next
Author Message
Aitch


Joined: 04 Apr 2007
Posts: 6825
Location: Chatham, Kent, UK

PostPosted: Sun 20 Apr 2008, 11:00    Post subject:  

Beem
Rather than continue under the other thread,
I hope this may shed some further light for you

http://www.murga-linux.com/puppy/viewtopic.php?t=18109

as it seems steevieb, with help from John Doe, has got his phone/bluetooth/gprs working

You have come so far, I didn't mean to be rude or upset you, just trying to help

OK?

Aitch

Edit:

http://www.bluez.org/

Quote:
03.04.2008
Release of bluez-libs-3.30 and bluez-utils-3.30
This release fixes a regression within the D-Bus API and converts all services into plugins now.


http://wiki.bluez.org/
Back to top
View user's profile Send private message 
Béèm


Joined: 21 Nov 2006
Posts: 11782
Location: Brussels IBM Thinkpad R40, 256MB, 20GB, WiFi ipw2100. Frugal Lin'N'Win

PostPosted: Sun 20 Apr 2008, 12:58    Post subject:  

Aitch,
I don't feel treated rude or I am not upset.
Sorry if you got that impression, in fact I appreciate much your willingness to help.

I just downloaded beta 2 and once installed it could be that I take the matter up again.
As I still use Windows ( Embarassed ) and as it works there the priority isn't at the highest point.

But it's still on my to do list. Cool

_________________
Time savers:
Find packages in a snap and install using Puppy Package Manager (Menu).
Consult Wikka
Use peppyy's puppysearch
Back to top
View user's profile Send private message 
Aitch


Joined: 04 Apr 2007
Posts: 6825
Location: Chatham, Kent, UK

PostPosted: Sun 20 Apr 2008, 13:16    Post subject:  

OK, Cool

I had a bad experience with misunderstandings, & maybe felt a bit uncertain

May just be a language thing

Aitch Smile
Back to top
View user's profile Send private message 
Cyberhythm

Joined: 02 May 2008
Posts: 2

PostPosted: Fri 02 May 2008, 17:22    Post subject:  
Subject description: So close
 

Either there's a problem with the openobex .pet or I've got a sick puppy. The other packages install ok but that one comes up with an error message about a corrupted file or not expanding into its own directory.

Using puppy v4 beta 2 (for about a week now and most impressed with it's performance on this old Toshy sat pro 4600 with only 128mb).
Back to top
View user's profile Send private message Visit poster's website 
tempestuous

Joined: 10 Jun 2005
Posts: 5216
Location: Australia

PostPosted: Fri 02 May 2008, 22:08    Post subject:  

OpenOBEX package uploaded again, May 3rd 2008.
Back to top
View user's profile Send private message 
Cyberhythm

Joined: 02 May 2008
Posts: 2

PostPosted: Sat 03 May 2008, 18:13    Post subject:  
Subject description: That's the bit
 

Thanks Tempestuous,

Just gone through the steps again and I now have gpsdrive working using a cheap mikomi usb bluetooth dongle connecting to a navman b10 gps. I am now a happy puppy Smile so thanks to you and everyone else who has contributed on this topic.
Back to top
View user's profile Send private message Visit poster's website 
Caneri

Joined: 04 Sep 2007
Posts: 1580
Location: Canada

PostPosted: Fri 01 Aug 2008, 11:08    Post subject:  

Hi All,

I hope this is the right place to ask a question about Dingo and bluetooth. (yes I know I need to read more)

Do the bluez.pets/bluetooth installer files etc work in Dingo Alpha 5.

I see in lsmod a bluetooth module has loaded by default but so far no joy...and suggestions..thanks.

Best,
Eric

EDIT: I'm trying to get my bluetooth mouse and headset working(when I get a bluetooth headset)

_________________
Be not afraid to grow slowly, only be afraid of standing still.
Chinese Proverb

Back to top
View user's profile Send private message 
eletha

Joined: 06 Aug 2008
Posts: 1

PostPosted: Wed 06 Aug 2008, 07:57    Post subject: Still having problems with BT and DBUS  

This is the stage I am at with my Ubuntu bluetooth config:

Code:
@ubuntu1:/var/run/dbus$ sudo rm -f /var/run/dbus/*
[sudo] password for  :
@ubuntu1:/var/run/dbus$ dbus-uuidgen --ensure
@ubuntu1:/var/run/dbus$ dbus-daemon --system
Failed to start message bus: Failed to bind socket "/var/run/dbus/system_bus_socket": Permission denied
@ubuntu1:/var/run/dbus$ sudo dbus-daemon --system
@ubuntu1:/var/run/dbus$ modprobe bluetooth
@ubuntu1:/var/run/dbus$ modprobe l2cap
@ubuntu1:/var/run/dbus$ modprobe rfcomm
@ubuntu1:/var/run/dbus$ modprobe hci-usb
@ubuntu1:/var/run/dbus$ hcid -n
hcid[7798]: Bluetooth HCI daemon
hcid[7798]: HCI dev 0 registered
hcid[7799]: Can't init device hci0: Permission denied (13)
hcid[7798]: HCI dev 0 already up
hcid[7798]: Device hci0 has been added
hcid[7800]: Can't set link mode on hci0: Permission denied (13)
hcid[7800]: Can't set link policy on hci0: Permission denied (13)
hcid[7798]: Starting security manager 0
hcid[7798]: Can't write inquiry mode for hci0: Operation not permitted (1)
hcid[7798]: Created local server at unix:abstract=/var/run/dbus-BVnoISlG8C,guid=8a5aabd33609a28fc1307d0048998408
hcid[7798]: Can't create server address file
input[7801]: Bluetooth Input daemon
input[7801]: Registered input manager path:/org/bluez/input
input[7801]: Failed to listen on control channel
serial[7802]: Bluetooth Serial Port daemon
serial[7802]: Registered manager path:/org/bluez/serial
network[7803]: Bluetooth Network daemon
network[7803]: Can't create bridge
network[7803]: Bind failed. Permission denied(13)
hcid[7798]: Got NameOwnerChanged signal for :1.3 which has no listeners


Can someone help me make sense of these errors and how I can explore them/ fix them?

When I normally do hcid -n, it tells me the following:

Code:
Jul 28 12:32:11 ubuntu1 hcid[9176]: Bluetooth HCI daemon
Jul 28 12:32:11 ubuntu1 hcid[9176]: Could not become the primary owner of org.bluez
Jul 28 12:32:11 ubuntu1 hcid[9176]: Unable to get on D-Bus


I tried the suggestions listed above and the previous output was shown.

I am also suspecting that the hcid and DBUS session bus are not listening in on the same socket (if that makes sense).
Code:

$ dbus-launch
DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-KPh3xmCqvf,guid=99a32f2da779f2875fca52004899685b
DBUS_SESSION_BUS_PID=7442


But in (from /etc/dbus-1/session.conf), session dbus listens to
Code:
<listen>unix:tmpdir=/tmp</listen>


While Bluetooth (from /var/run/dbus/bluetoothd_address) listens to
Code:
unix:abstract=/var/run/dbus-YTFIvIHHn3,guid=7e076046a505b17fa2548b004899667e


And (from /etc/dbus-1/system.conf) the System DBUS listens in on:
Code:
<listen>unix:path=/var/run/dbus/system_bus_socket</listen>


These are pretty different, but session dbus which is the one i'm probably interacting with is listening to a different directory all together... should i hardcode this to change it to /var/run/dbus?

I've also modified the system.con and session.conf to include system-local.conf that allows user="root" and all active users to own "org.bluez" but to still no avail. I can send the the system.conf and system-local.conf files if you need them, for some reason i can't attach them here...
Back to top
View user's profile Send private message 
steevieb


Joined: 30 Dec 2006
Posts: 286
Location: Poole, Dorset. UK

PostPosted: Sun 10 Aug 2008, 19:02    Post subject:  

@Caneri
This page is for ArchLinux but there may be some clues in there.
http://wiki.archlinux.org/index.php/Bluetooth_Mouse

Quote:
Do the bluez.pets/bluetooth installer files etc work in Dingo Alpha 5.

Yes. Although I still haven't got a file from the phone. Trying Dingo Alpha5 scsi frugal boot (I have added the tcl/tk files for MUT2 if it makes any difference.)
Dotpets here http://tinyurl.com/62f375

_________________
Slacko 5.3 scsi on Proliant server, 2x2.4ghz P4,18gb & 4x36gb scsi drives, 128mb Radeon Pci, 2gb ram, usb 2, dvd
Back to top
View user's profile Send private message 
Caneri

Joined: 04 Sep 2007
Posts: 1580
Location: Canada

PostPosted: Sun 10 Aug 2008, 21:21    Post subject:  

Thanks steevieb,

I'll give 'er a go tomorrow.

Best,
Eric

_________________
Be not afraid to grow slowly, only be afraid of standing still.
Chinese Proverb

Back to top
View user's profile Send private message 
Caneri

Joined: 04 Sep 2007
Posts: 1580
Location: Canada

PostPosted: Mon 11 Aug 2008, 08:19    Post subject:  

@steevieb and All,

Hey..big thanks for the link..it works now.

There was a command to use that finally did the trick....

modprobe bluetooth
modprobe l2cap
modprobe rfcomm
modprobe hci-usb

Then I ran hcitool scan in the console (I had to push the reset button on the mouse while the scan was working as the mouse is not seen without the reset mode flashing).

Then I used hidd --connect (and plugged in the hardware address)..hooray!

Now I just need to make it load automatically at boot and slow down the mouse a tad.

Thanks all for the info..great...I'm wireless..Smile

EDIT: I'm using Dingo Alpha 5 and the .pets from tempestuous from this thread.

Best,
Eric

_________________
Be not afraid to grow slowly, only be afraid of standing still.
Chinese Proverb

Back to top
View user's profile Send private message 
Caneri

Joined: 04 Sep 2007
Posts: 1580
Location: Canada

PostPosted: Mon 11 Aug 2008, 12:57    Post subject:  

Hi All,

I have made a few changes to get the Logitech bluetooth travel mouse to load automatically....it's not elegant but so far it works.

I seem to have to hit the reset button on the mouse for this to work however...I haven't figured that one out yet.

In /etc/rc.d/rc.local I put these lines...

modprobe bluetooth
modprobe hipd
modprobe l2cap
modprobe rfcomm
modprobe hci-usb
hciconfig hci0 up
#hidd --search
#hcitool inq
#hidd --connect "hardware address without the quotes"

This doesn't seem to work properly so I made a script that does work and I put it into /startup....so far so good.

I noticed the mouse dropped the connection after a time of inactivity and hitting the reset seemed to activate it again.

I am attaching the script from my /startup folder so if anyone has a way to activate the mouse without the reset button that would be great. Or any other directions are appreciated.

Thanks all for the howto,
Eric

EDIT: I am using Dingo alpha 5 on a core2 duo lappy and the bluetooth module loads without the modprobe bluetooth in the rc.local..I just had it there from other attempts.
logitech-travel-mouse.tar.gz
Description 
gz

 Download 
Filename  logitech-travel-mouse.tar.gz 
Filesize  209 Bytes 
Downloaded  619 Time(s) 

_________________
Be not afraid to grow slowly, only be afraid of standing still.
Chinese Proverb

Back to top
View user's profile Send private message 
chicks

Joined: 22 Oct 2007
Posts: 65

PostPosted: Mon 08 Sep 2008, 11:21    Post subject:  

So, I followed the instructions at the top of this thread, and got the A2DP profile working from my Puppy laptop to my SoundDock clone via an Insignia bluetooth adapter found on ebay. Great wireless sound!

Built a script and put it in Startup folder, works great. Now, would like to get it working when needed, that is when I plug in the USB Bluetooth dongle. Where would I need to put the scripts to get hotplug working?
Back to top
View user's profile Send private message 
Chewi


Joined: 17 Aug 2008
Posts: 31
Location: Perth, Scotland

PostPosted: Tue 16 Sep 2008, 19:06    Post subject:  

As you can see from my new signature, I now have a working Bluetooth mouse on my very special machine thanks to your efforts. I hope to add networking soon. I'm still getting to grips with Bluetooth in general but this helped me to understand it a bit better.

Even if Puppy doesn't officially embrace Bluetooth anytime soon, I highly recommend that it at least look at DBus. I think DBus is Linux's unsung hero of the moment. It's doing wonders for making the newest distros easier to use and I think its usage is only set to increase.

_________________
Running Puppy 4.00 on a Toshiba Libretto 70CT. That's a Pentium 120MMX, 32MB RAM machine the size of a VHS cassette! It works like a charm. I even have wireless (WPA) and Bluetooth. Very Happy
Back to top
View user's profile Send private message 
Aitch


Joined: 04 Apr 2007
Posts: 6825
Location: Chatham, Kent, UK

PostPosted: Tue 16 Sep 2008, 20:29    Post subject:  

Hi Chewi

Had to post this, as I just read it, then found your post, so...

http://www.puppylinux.org/community/blogs/playdayz/future-puppy-proof-concept

so if playdayz is right about slowdown, dbus may not be the answer, it appears

Aitch
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 3 of 7 [93 Posts]   Goto page: Previous 1, 2, 3, 4, 5, 6, 7 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » System
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1003s ][ Queries: 13 (0.0112s) ][ GZIP on ]