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 Sun 15 Sep 2019, 20:36
All times are UTC - 4
 Forum index » House Training » Beginners Help ( Start Here)
Stream Music from PC to Audio System via Bluetooth
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 3 of 4 [49 Posts]   Goto page: Previous 1, 2, 3, 4 Next
Author Message
tempestuous

Joined: 10 Jun 2005
Posts: 5472
Location: Australia

PostPosted: Wed 21 Jan 2015, 06:53    Post subject:  

847563 wrote:
... This executed normally with the same result as yours above

Good. That, plus the fact that the "hcitool scan" command appears to run without error certainly indicates that your laptop's bluetooth adapter is properly functioning.

847563 wrote:
When I run HCISCAN my bluetooth is not found on the sound system, so no MAC address is available.

Well I just ran another test now with bluetooth activated on my smartphone, and "discoverable" mode also enabled on the phone. Puppy detected it and presented me with the phone's bluetooth MAC address.
So I suspect you need to activate "discoverable" mode on your sound system. Can you tell me exactly what brand/model of sound system you have?
Back to top
View user's profile Send private message 
tempestuous

Joined: 10 Jun 2005
Posts: 5472
Location: Australia

PostPosted: Wed 21 Jan 2015, 06:58    Post subject:  

Ah, just had another thought; your receiver's bluetooth MAC address might be printed on the back or underside of the unit. Or there might be some form of printed sticker on/in the user manual.
Back to top
View user's profile Send private message 
rcrsn51


Joined: 05 Sep 2006
Posts: 12627
Location: Stratford, Ontario

PostPosted: Wed 21 Jan 2015, 14:41    Post subject:  

I ran out and bought a little bluetooth speaker and did the setup in Tahrpup. The installation was going fine until I got to the "bluez-simple-agent" command. It gave a "no module named gi.repository" error which I think is coming from Python.

Suggestions?

Last edited by rcrsn51 on Wed 21 Jan 2015, 15:45; edited 1 time in total
Back to top
View user's profile Send private message 
666philb


Joined: 07 Feb 2010
Posts: 3474
Location: wales

PostPosted: Wed 21 Jan 2015, 15:27    Post subject:  

maybe python-gi from the PPM
_________________
Bionicpup64 built with bionic beaver packages http://murga-linux.com/puppy/viewtopic.php?t=114311
Xenialpup64, built with xenial xerus packages http://murga-linux.com/puppy/viewtopic.php?t=107331
Back to top
View user's profile Send private message 
rcrsn51


Joined: 05 Sep 2006
Posts: 12627
Location: Stratford, Ontario

PostPosted: Wed 21 Jan 2015, 15:47    Post subject:  

666philb wrote:
maybe python-gi from the PPM

That led to python-dbus, which threw more errors.

So I gave up. We need to know what environment tempestuous is using.

[Edit] the error is
Quote:
dbus.exceptions.DBusException: org.bluez.Error.NoSuchAdapter: No such adapter

I googled this and found other reports with no solutions.
Back to top
View user's profile Send private message 
kattman

Joined: 11 Jul 2008
Posts: 88

PostPosted: Wed 21 Jan 2015, 16:44    Post subject:  

It worked for a little bit than all heard was loud static using "VLC"!
Back to top
View user's profile Send private message 
Semme


Joined: 07 Aug 2011
Posts: 8021
Location: World_Hub

PostPosted: Wed 21 Jan 2015, 16:53    Post subject:  

And you're running *which* pup?
Quote:
It worked for a little bit than all heard was loud static using VLC!

_________________
>>> Living with the immediacy of death helps you sort out your priorities. It helps you live a life less trivial <<<
Back to top
View user's profile Send private message 
rcrsn51


Joined: 05 Sep 2006
Posts: 12627
Location: Stratford, Ontario

PostPosted: Wed 21 Jan 2015, 17:52    Post subject:  

Success (I think)

I needed to install:
gir1.2-glib-2.0_1.40.0-1_i386.deb
libgirepository-1.0-1_1.40.0-1_i386.deb
python-dbus_1.2.0-2build2_i386.deb
python-gi_3.12.0-1_i386.deb

Then:
Code:
bluetoothd
hcitool scan
bluez-simple-agent hci0 MAC_ADDRESS  (I needed the hci0)
PIN code: 0000
/etc/asound.conf >> MAC_ADDRESS
aplay -L
VLC > set audio device

Initially this got me I/O errors in both VLC and mplayer. But I mucked around with the speaker (maybe pressed the right button) and it started to play.

On the next reboot, the bluetooth service did not start automatically, so I had to run
Code:
/etc/init.d/bluetooth start

The following asound.conf lets you switch between speakers in Deadbeef:
Code:
#/etc/asound.conf

pcm.!default {
   type hw
   card 0
}

ctl.!default {
   type hw           
   card 0
}

pcm.btheadset {
   type plug
   slave {
       pcm {
           type bluetooth
           device FC:58:FA:98:7E:07
           profile "auto"
       }
   }
   hint {
       show on
       description "BT Headset"
   }
}
ctl.btheadset {
  type bluetooth
}

Last edited by rcrsn51 on Wed 21 Jan 2015, 20:03; edited 3 times in total
Back to top
View user's profile Send private message 
kattman

Joined: 11 Jul 2008
Posts: 88

PostPosted: Wed 21 Jan 2015, 19:05    Post subject:  

kattman wrote:
It worked for a little bit than all heard was loud static using "VLC"!

Thar 6.0 ce
Back to top
View user's profile Send private message 
rcrsn51


Joined: 05 Sep 2006
Posts: 12627
Location: Stratford, Ontario

PostPosted: Wed 21 Jan 2015, 19:26    Post subject:  

kattman wrote:
It worked for a little bit than all heard was loud static using "VLC"!

Deadbeef was working better for me than VLC.
Back to top
View user's profile Send private message 
tempestuous

Joined: 10 Jun 2005
Posts: 5472
Location: Australia

PostPosted: Wed 21 Jan 2015, 22:24    Post subject:  

Great news. Based on rcrsn51's results, I have created a "hotfix" dotpet from the following Trusty Tahr packages:
gir1.2-glib-2.0_1.40.0-1ubuntu0.2_i386
libgirepository-1.0-1_1.40.0-1ubuntu0.2_i386
python-dbus_1.2.0-2build2_i386
python-gi_3.12.0-1ubuntu1_i386

Download here -
http://www.smokey01.com/tempestuous/streaming-hotfix-01.pet
For now you need to install this in addition to the original "bluez_4.101-for-streaming.pet"
Eventually I will repackage everything together.

My instructions appear to be correct. Refer earlier post -
http://www.murga-linux.com/puppy/viewtopic.php?p=822646#822646
Back to top
View user's profile Send private message 
Semme


Joined: 07 Aug 2011
Posts: 8021
Location: World_Hub

PostPosted: Wed 21 Jan 2015, 22:31    Post subject:  

Kattman, you may need this pkg to bring 6.0 up to speed..
_________________
>>> Living with the immediacy of death helps you sort out your priorities. It helps you live a life less trivial <<<
Back to top
View user's profile Send private message 
rcrsn51


Joined: 05 Sep 2006
Posts: 12627
Location: Stratford, Ontario

PostPosted: Wed 21 Jan 2015, 22:49    Post subject:  

tempestuous wrote:
My instructions appear to be correct.

See my comment about possibly needing the hci0 argument with bluez-simple-agent. That was crucial with my speaker.
Back to top
View user's profile Send private message 
tempestuous

Joined: 10 Jun 2005
Posts: 5472
Location: Australia

PostPosted: Thu 22 Jan 2015, 00:35    Post subject:  

OK, I have updated the instructions. Eventually I will create a new post in the "HOWTO" section.

A question, please; if you reboot, then start the bluetooth daemon,
will your Puppy computer then automatically pair with your bluetooth receiver?
Or do you have to run the "bluez-simple-agent ..." command again?
Back to top
View user's profile Send private message 
rcrsn51


Joined: 05 Sep 2006
Posts: 12627
Location: Stratford, Ontario

PostPosted: Thu 22 Jan 2015, 06:49    Post subject:  

tempestuous wrote:
if you reboot, then start the bluetooth daemon,will your Puppy computer then automatically pair with your bluetooth receiver?
Yes.
Quote:
Or do you have to run the "bluez-simple-agent ..." command again?
No.
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 3 of 4 [49 Posts]   Goto page: Previous 1, 2, 3, 4 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Beginners Help ( Start Here)
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.0598s ][ Queries: 12 (0.0123s) ][ GZIP on ]