Getting BT to work

Simon Josefsson simon at josefsson.org
Tue Aug 7 16:51:03 CEST 2007


"Jørgen P. Tjernø" <jorgen-UDV0GzaorVRuMpJDpNschA at public.gmane.org>
writes:

> Simon Josefsson wrote:
>> Did you
>> 
>> echo "1" > /sys/bus/platform/devices/gta01-pm-bt.0/power_on
>> 
>> to power up the bluetooth unit?
>
> Ah, thanks a lot. That did the trick. I was under the impression that
> all PM was disabled, and had to be manually enabled?

I suspect the external devices are handled individually, the GSM chip
works the same.

Btw, it would be useful if we could patch /etc/init.d/bluetooth to power
up the antenna if some setting in /etc/defaults/bluetooth is set.  How
about the following patch?  Possibly the default should even be 'true'.

/Simon

--- etc/default/bluetooth-      2007-08-07 16:47:39.000000000 +0200
+++ etc/default/bluetooth       2007-08-07 16:48:08.000000000 +0200
@@ -1,5 +1,8 @@
 # Bluetooth configuraton file
 
+# Power up the bluetooth chip on the Neo1973
+BT_POWERUP=false
+
 # Start of hcid (allowed values are "true" and "false")
 HCID_ENABLE=true
 
--- etc/init.d/bluetooth-       2007-08-07 16:48:16.000000000 +0200
+++ etc/init.d/bluetooth        2007-08-07 16:49:40.000000000 +0200
@@ -45,6 +45,9 @@
 case "$1" in
   start)
        echo -n "Starting $DESC:"
+       if $BT_POWERUP ; then
+               echo "1" > /sys/bus/platform/devices/gta01-pm-bt.0/power_on
+       fi
        if $HCID_ENABLE && [ -x "$HCID_EXEC" ] && [ -f "$HCID_CONFIG" ] ; then
                if $SDPD_ENABLE ; then
                        $HCID_EXEC -f $HCID_CONFIG



More information about the device-owners mailing list