Tiny Core Extensions > TCE 1.x
bt
(1/1)
Juanito:
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: ---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
--- End code ---
Roberto A. Foglietta:
Please insert this to bt.tc* as /etc/init.d/bluez:
--- Code: ---#!/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
--- End code ---
Juanito:
/etc/init.d/bluez script added - thanks robang - updated to 4.36 and added menu items/icon to run script:
--- Code: ---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
--- End code ---
Navigation
[0] Message Index
Go to full version