gta02 - bluetooth & usb

Andy Green andy at
Mon Apr 21 11:28:54 CEST 2008

Hash: SHA1

Somebody in the thread at some point said:
| quick one guys - where do i very quickly and reliably find out:
| 1. if bluetooth is up and active (what /proc or /sys magic file do i need)

One way is to parse /proc/bus/usb/devices... BT module has power and a
reset thing, but looking at those states doesn't tell you if it is ready
for duty.  Or, if the BT device makes a network interface, test for
presence of that.

| 2. usb - when someone connects via usb (yes i can piggyback on the
power system
| saying its connected to power and charging but really i want to detect
ANY usb
| connectivity - be it being plugged into a host, or a gadget being
plugged in).
| got any quick and dirties for me?

Same guy will help if we are being a host, I'll meddle around and see
about being a gadget.

- -Andy

Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Fedora -


More information about the openmoko-kernel mailing list