WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: bt  (Read 3301 times)

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14819
bt
« on: February 14, 2009, 08:53:34 AM »
The bt extensions have been updated to bluez-4.30 - apparently the sound is much better, but it's difficult to judge through a bt headset - and libusb has been removed in favour of a dependency on the usb-utils extensions.

Code: [Select]
Title:          bt.tcel
Description:    bluez for tinycore
Version:        4.30
Author:         see list of sites below
Original-site:  see list of sites below
Copying-policy: see list of sites below
Size: 356KB
Extension by:   juanito
Comments:       bluez for tinycore
                Requires bluetooth-2.6.26.tcem, usb-utils.tcel, dbus_glib.tcel
                and glib2.tcel
                Optionally can use alsa.tcel, obex.tcel and fuse.tcel
                ----------
                This extension contains:
                bluez-4.30 - GPLv2 - http://www.kernel.org/pub/linux/bluetooth/bluez-4.30.tar.gz
                ----------
                Howto:
                load the appropriate bt modules for your hardware, then
                $ sudo mkdir -p /var/lib/dbus
                $ sudo dbus-uuidgen --ensure
                $ sudo mkdir /var/run/dbus
                $ sudo dbus-daemon --system
                $ sudo mkdir /etc/dbus-1/session.d
                $ sudo bluetoothd
                ----------
Change-log:     2008/09/30
                Updated to 4.17, re-compiled against alsa-1.0.17 to enable bt audio
                2008/11/05
                Updated to 4.30, removed libusb from the extension
Current:        2009/02/14

Offline Roberto A. Foglietta

  • Full Member
  • ***
  • Posts: 212
    • personal home page
Re: bt
« Reply #1 on: April 17, 2009, 06:48:30 AM »
Please insert this to bt.tc* as /etc/init.d/bluez:

Code: [Select]
#!/bin/sh

start() {
if [ ! -e /var/lib/dbus/machine-id ]; then
mkdir -p /var/lib/dbus
dbus-uuidgen --ensure
fi
if ! pidof dbus-daemon >/dev/null; then
mkdir -p /var/run/dbus
dbus-daemon --system
fi
if ! pidof bluetoothd >/dev/null; then
mkdir -p /etc/dbus-1/session.d
bluetoothd
fi
}

stop() {
killall bluetoothd 2>/dev/null
}

status() {
if pidof bluetoothd >/dev/null; then
echo -e "\nbluetoothd is running.\n"
else
echo -e "\nbluetoothd is not running.\n"
fi
}

case $1 in
start) start
;;
stop) stop
;;
status) status
;;
restart) stop; start
;;
*) echo -e "\n$0 [start|stop|restart|status]\n"
;;
esac


Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14819
bt
« Reply #2 on: April 18, 2009, 08:32:22 AM »
/etc/init.d/bluez script added - thanks robang - updated to 4.36 and added menu items/icon to run script:
Code: [Select]
Title:          bt.tcel
Description:    bluez for tinycore
Version:        4.36
Author:         see list of sites below
Original-site:  see list of sites below
Copying-policy: see list of sites below
Size: 373KB
Extension by:   juanito
Comments:       bluez for tinycore
                Requires bluetooth-2.6.26.tcem, usb-utils.tcel, dbus_glib.tcel
                and glib2.tcel
                Optionally can use alsa.tcel, obex.tcel and fuse.tcel
                ----------
                This extension contains:
                bluez-4.30 - GPLv2 - http://www.kernel.org/pub/linux/bluetooth/bluez-4.36.tar.gz
                ----------
                Howto:
                load the appropriate bt modules for your hardware, then
                $ sudo mkdir -p /var/lib/dbus
                $ sudo dbus-uuidgen --ensure
                $ sudo mkdir /var/run/dbus
                $ sudo dbus-daemon --system
                $ sudo mkdir /etc/dbus-1/session.d
                $ sudo bluetoothd
                ----------
                ..or $ sudo /etc/init.d/bluez start|restart|stop|status
                ----------
                To enable sound:
                $ cat ~/.asoundrc
                pcm.bluetooth {
                type bluetooth
                device "00:12:EE:A6:1D:F4"
                profile "auto"
                }

                ctl.bluetooth {
                type bluetooth
                }
                ..to test bt headphones
                $ aplay -Dbluetooth -v /usr/local/share/sounds/alsa/Noise.wav
                ..to test bt headset "testing, testing, 1, 2, 3.."
                $ arecord -D bluetooth -f S16_LE | aplay -D bluetooth -f S16_LE
                ----------
Change-log:     2008/09/30
                Updated to 4.17, re-compiled against alsa-1.0.17 to enable bt audio
                2008/11/05
                Updated to 4.30, removed libusb from the extension
                2008/11/05
                Updated to 4.36, added /etc/init.d/bluez script - thanks to robang
Current:        2009/04/18