activating bluetooth via script on GTA02

Kai Römer smirfi at googlemail.com
Wed May 14 09:55:56 CEST 2008


Hi openmoko fans,

So about my openmoko:

Kernel: Linux om-gta02 2.6.24 #1 PREEMPT Tue May 13 01:34:17 UTC 2008
armv4tl unknown
System: OpenMoko-openmoko-devel-image-glibc-ipk-P1-Snapshot-20080131-fic-gta02.rootfs.tar.gz

So whats my problem:

I am trying to start and stop bluetooth via a little script. I already
made a little script for the gps but bluetooth doesn't work:

 #!/bin/sh
 echo "1" > /sys/bus/platform/devices/neo1973-pm-bt.0/power_on
 cat /sys/bus/platform/devices/neo1973-pm-bt.0/power_on
 hciconfig

This should supply the bluetooth subsystem with power. But what happens is:

 # ./bt
 0

So the status of the file hasn't changed.
But when i use the icon in the tray bar it works perfectly. So i guess
i have to add a few more steps. What do i have to add to my skript to
start the bluetooth subsystem?

Thanks in advance
Kai




More information about the community mailing list