Submitted by mk on 31 March, 2009 - 12:56
Got this tip from some posts in Ubuntuforums.
Linux bluez stack has no way to turn off Bluetooth device via GUI. Normally we (at least, me) use Bluetooth for file transfer few times a day for very short period. Keeping Bluetooth enable wastes the extremely-precious laptop battery.
The solution is to create this shell script on your desktop. You can choose any name, meaningful or not. My script is called "bttoggle".
#!/bin/bash
if ps -A | grep -c bluetoothd
then
gksudo /etc/init.d/bluetooth stop
else
gksudo /etc/init.d/bluetooth start
fi
Give it executable permission and proper icon. Bluetooth icon in normal Ubuntu desktop should be available at:
/usr/share/icons/hicolor/48x48/apps/bluetooth.png

When you need Bluetooth, double click on bttoggle, choose Run and give your password.
Submitted by mk on 26 November, 2006 - 14:50
ต้องการนำไฟล์จากโทรศัพท์ K750i มาลงคอม ครั้นจะถอด Memory Stick มาเสียบ USB Card Reader ดูจะเป็นวิธีที่ primitive ไป การส่งผ่าน Bluetooth ค่อนข้างยุ่งยากนิดนึง แต่มีวิธีทำดังนี้
- apt-get install bluez-utils (ใน Edgy จะลงมาอยู่แล้ว)
- apt-get install obexftp
- apt-get install gnome-bluetooth
- ตอนนี้ใน Applications > Accessories จะเห็น Bluetooth File Sharing เปิดมันขึ้นมา จะเห็นไอคอนใน Tray
- ที่มือถือ เลือกส่งเป็น bluetooth สั่งค้นหา Device จะเห็นชื่อเครื่องของเรา (อย่างของผมจะเป็น persephone-0)
- ไฟล์ที่ได้จะอยู่บน Desktop
การส่งไฟล์จากคอมไปยังมือถือ เห็นเค้าว่า Edgy มีบั๊กเยอะ ใช้วิธีคลิกขวาที่ไฟล์แล้วสั่ง Send to... เพื่อส่งไฟล์ไม่สำเร็จ ต้องใช้วิธี primitive (อีกแล้ว)