Author |
Message |
greengeek

Joined: 20 Jul 2010 Posts: 5624 Location: Republic of Novo Zelande
|
Posted: Tue 03 Jul 2018, 15:10 Post subject:
Bluez-Alsa |
|
I am in the middle of efforts to connect bluetooth devices to my Slacko 5.6 derivative and trying to understand the required information, which includes the following:
- what protocol does the bluetooth device use?
- what functions does the device have?
- what bluetooth driver module is in use in the puppy?
- how is alsa configured?
- how do individual programmes interface with the alsa setup in order to correctly interface the bluetooth device?
etc
etc
However - Alsa never had the functionality required to handle features available in some modern bluetooth devices - it appears necessary to use pulseaudio to access all of the recent functionality.
I won't be using pulseaudio - i need to stick with Alsa - but i still want to make my bluetooth devices as useable as possible.
I stumbled across a Github project which is intended to update Alsa to include the latest features. I don't have the knowledge to use this yet but others may be interested in the github progress:
https://github.com/Arkq/bluez-alsa
** I have placed this in "cutting edge" because the github effort seems to be an attempt to develop new functionality rather than something that already offers a puppy useable pet or similar. Hope that's a reasonable place for it.
|
Back to top
|
|
 |
rcrsn51

Joined: 05 Sep 2006 Posts: 12800 Location: Stratford, Ontario
|
Posted: Tue 03 Jul 2018, 15:24 Post subject:
|
|
The Stretch-live Starter Kit has an bluetooth app that uses bluez-alsa.
Trying to incorporate it into an older Puppy is a significant problem because you also need all the other bluetooth infrastructure.
|
Back to top
|
|
 |
greengeek

Joined: 20 Jul 2010 Posts: 5624 Location: Republic of Novo Zelande
|
Posted: Wed 04 Jul 2018, 03:54 Post subject:
|
|
rcrsn51 wrote: | The Stretch-live Starter Kit has an bluetooth app that uses bluez-alsa. | Thanks - just gave that a try now. Very different to puppy. I could not find any method to connect audio output to my bluetooth device (Marley chant sport BT speaker).
Would I need to download extra software to get this going?
cheers!
|
Back to top
|
|
 |
rcrsn51

Joined: 05 Sep 2006 Posts: 12800 Location: Stratford, Ontario
|
Posted: Wed 04 Jul 2018, 04:51 Post subject:
|
|
Code: | apt-get update
apt-get install bt4stretch |
Instructions are here. You also need to install an mplayer package like peasymp3.
Quote: | Very different to puppy. |
Actually, it's exactly like Puppy. It's a light-weight Linux with a layered filesystem, frugal install, save folder, add-on sfs modules and access to a mainstream repo.
|
Back to top
|
|
 |
rcrsn51

Joined: 05 Sep 2006 Posts: 12800 Location: Stratford, Ontario
|
Posted: Sat 07 Jul 2018, 08:43 Post subject:
|
|
No reply?
|
Back to top
|
|
 |
greengeek

Joined: 20 Jul 2010 Posts: 5624 Location: Republic of Novo Zelande
|
Posted: Sat 07 Jul 2018, 18:17 Post subject:
|
|
Out of town at the moment. Blackberry and Android only.
|
Back to top
|
|
 |
greengeek

Joined: 20 Jul 2010 Posts: 5624 Location: Republic of Novo Zelande
|
Posted: Mon 09 Jul 2018, 04:23 Post subject:
|
|
rcrsn51 wrote: | Code: | apt-get update
apt-get install bt4stretch |
Instructions are here. You also need to install an mplayer package like peasymp3.. | No joy so far. I tried to connect to the internet via peasywifi but without success. Read the help file which said use the I/F button to scan for wifi interfaces but it just came back with a box saying "Your possible wifi interfaces" and an OK button.
I tried to use prtscrn key to capture the message and desktop contents but got a message saying "Failed to execute child process "scrot".
I am assuming apt-get can't work without first establishing an internet connection via peasy wifi?
EDIT : I am using a Toshiba M700 with a "Network controller: Intel Corporation PRO/Wireless 4965 AG or AGN [Kedron] Network Connection (rev 61)" internal wifi interface.
|
Back to top
|
|
 |
rcrsn51

Joined: 05 Sep 2006 Posts: 12800 Location: Stratford, Ontario
|
Posted: Mon 09 Jul 2018, 05:30 Post subject:
|
|
This is a firmware issue - the Starter Kit only contains a selection of the Intel firmware.
1. Run: dmesg | grep -i firmware.
2. This should identify the missing file, probably iwlwifi-4965-2.ucode.
3. Connect to Ethernet and download the package firmware-iwlwifi via apt-get.
4. Or get the single file from a Puppy and drop it into Stretch.
|
Back to top
|
|
 |
greengeek

Joined: 20 Jul 2010 Posts: 5624 Location: Republic of Novo Zelande
|
Posted: Mon 09 Jul 2018, 15:14 Post subject:
|
|
Thanks, I'm hoping to try this over the next couple of nights. I will try to get to the point of bluetooth attachment then post back.
|
Back to top
|
|
 |
greengeek

Joined: 20 Jul 2010 Posts: 5624 Location: Republic of Novo Zelande
|
Posted: Wed 11 Jul 2018, 05:38 Post subject:
|
|
rcrsn51 wrote: | This is a firmware issue - the Starter Kit only contains a selection of the Intel firmware.
1. Run: dmesg | grep -i firmware.
2. This should identify the missing file, probably iwlwifi-4965-2.ucode.
3. Connect to Ethernet and download the package firmware-iwlwifi via apt-get.
4. Or get the single file from a Puppy and drop it into Stretch. | Thanks - that was exactly the missing file. As it turns out using the ethernet cable was the most sensible way to go (haven't used it for years so it never came to mind!)
Instead of downloading that file and getting wifi going I used apt-get via ethernet to do an update then download bt4stretch.
I had mixed success - I was able to use bt4stretch to connect to my BT headphones (the headphones have a voice prompt that says "bluetooth successfully connected") but could not get a player running.
I tried:
apt-get gmplayer but the response was:
invalid operation gmplayer.
Similar response if I tried to download mplayer or peasymp3.
Any tips?
cheers!
ps: here's the terminal output of my use of bt4stretch to pair with the headphones:
Code: | [NEW] Controller 00:03:7A:B7:4C:9C live [NEW] Controller 00:03:7A:B7:4C:9C live [default]
[bluetooth]# scan on
Discovery started
[CHG] Controller 00:03:7A:B7:4C:9C Discovering: yes
[NEW] Device F2:FA:91:DD:FA:C6 F2-FA-91-DD-FA-C6
[CHG] Device F2:FA:91:DD:FA:C6 LegacyPairing: no
[CHG] Device F2:FA:91:DD:FA:C6 Name: 488126
[CHG] Device F2:FA:91:DD:FA:C6 Alias: 488126
[CHG] Device F2:FA:91:DD:FA:C6 LegacyPairing: yes
[CHG] Device F2:FA:91:DD:FA:C6 RSSI: -42
[bluetooth]# pair F2:FA:91:DD:FA:C6
Attempting to pair with F2:FA:91:DD:FA:C6
[CHG] Device F2:FA:91:DD:FA:C6 Connected: yes
[CHG] Device F2:FA:91:DD:FA:C6 UUIDs: 0000110b-0000-1000-8000-00805f9b34fb
[CHG] Device F2:FA:91:DD:FA:C6 UUIDs: 0000110e-0000-1000-8000-00805f9b34fb
[CHG] Device F2:FA:91:DD:FA:C6 UUIDs: 0000111e-0000-1000-8000-00805f9b34fb
[CHG] Device F2:FA:91:DD:FA:C6 ServicesResolved: yes
[CHG] Device F2:FA:91:DD:FA:C6 Paired: yes
Pairing successful
[CHG] Device F2:FA:91:DD:FA:C6 ServicesResolved: no
[CHG] Device F2:FA:91:DD:FA:C6 Connected: no
[bluetooth]# connect F2:FA:91:DD:FA:C6
Attempting to connect to F2:FA:91:DD:FA:C6
[CHG] Device F2:FA:91:DD:FA:C6 Connected: yes
Connection successful
[CHG] Device F2:FA:91:DD:FA:C6 ServicesResolved: yes
[488126]#
|
|
Back to top
|
|
 |
rcrsn51

Joined: 05 Sep 2006 Posts: 12800 Location: Stratford, Ontario
|
Posted: Wed 11 Jul 2018, 08:23 Post subject:
|
|
It's
Quote: | apt-get install gmplayer |
But get peasymp3 instead. Its .asouncdrc file already has the lines for bluetooth setup. Mplayer is an automatic dependency of peasymp3.
Your post above shows a successful BT connection to the speaker. That's the hard part. Now you just need to insert its MAC address into the .asouncdrc file. Use a copy/paste.
Then you can run the built-in player.
|
Back to top
|
|
 |
bigpup

Joined: 11 Oct 2009 Posts: 12967 Location: S.C. USA
|
Posted: Wed 11 Jul 2018, 18:55 Post subject:
|
|
Maybe this will work.
pBluetooth bluetooth manager
http://www.murga-linux.com/puppy/viewtopic.php?p=946012
_________________ The things they do not tell you, are usually the clue to solving the problem.
When I was a kid I wanted to be older.... This is not what I expected
YaPI(any iso installer)
|
Back to top
|
|
 |
Pro
Joined: 12 Feb 2010 Posts: 112
|
Posted: Wed 11 Jul 2018, 19:03 Post subject:
|
|
join this work
http://murga-linux.com/puppy/viewtopic.php?t=111331
|
Back to top
|
|
 |
greengeek

Joined: 20 Jul 2010 Posts: 5624 Location: Republic of Novo Zelande
|
Posted: Thu 12 Jul 2018, 16:11 Post subject:
|
|
Pro wrote: | join this work
http://murga-linux.com/puppy/viewtopic.php?t=111331 | Thanks for pointing out that thread, I will join in at some point but need to finish my tests with Stretch Live Starter and also with Slacko 5.6 first.
cheers
|
Back to top
|
|
 |
Pro
Joined: 12 Feb 2010 Posts: 112
|
Posted: Fri 13 Jul 2018, 01:06 Post subject:
|
|
rcrsn51, good work on bt4stretch
Some info for you:
bluetoothctl (above 5.50) now have working non-interactive mode, ex. bluetoothctl --timeout 10 scan on
(scan device 10s and exit)
For hidd device may be not need hidd
#bluetoothctl connect device_mac_addr
and udev rules for autoconnect device, may be good choice (i not have bt mouse for test this)
|
Back to top
|
|
 |
|