[SOLVED] Bluetooth blues

Booting, installing, newbie
Post Reply
Message
Author
User avatar
linuph
Posts: 128
Joined: Mon 04 Jun 2012, 02:29
Location: Philippines

[SOLVED] Bluetooth blues

#1 Post by linuph »

I run lupu528-005 on a torn down laptop with a dying HD but it runs fine on a 4Gb USB flash. I'm trying to get Bluetooth working with a USB Bluetooth dongle. My main objective is GPS with a Bluetooth GPS receiver. I've been searching and trying pets and other software for a few days now, without success. For instance:

http://www.murga-linux.com/puppy/viewtopic.php?p=396249
Is this still usable? The last post is more than a year old.

In topic http://www.murga-linux.com/puppy/viewto ... faa14c6a38
talk is about Blueman and a Phyton library of 20Mb. That I can't handle with my mere 512Mb and 4Gb USB flash, even if it works.
However on page 4 member stu90 comes up with bluetooth-0.4 and autoblue-0.2.
Works right after install with my mobile phone. There's a Bluetooth icon in the system tray that can be clicked for options. I can connect to my Bluetooth GPS and headset.
However, after a reboot it doesn't work anymore. The icon is gone. If selected from Menu-Network-bluetooth it tells me that there is no bluetooth device connected. Autoblue finds nothing too. However, if I inquire with hcitool-scan, I find them back. So stu90's pets seem to work but only initially. Uninstalling/re-installing does not help.

I used Bluez 4.98 pet but lost it and can't find it back (btw, latest version is 4.101 targ), Could Bluez be a solution? Do I still need any of the other packages?

Sometime this week I got TangoGPS running. It changed form "no GPS found" to "0.000 00.00.00.00" etc at some point, indicating that it was connected to the Bluetooth GPS but no data. At that point my HD really started playing up and I had to turn to a new setup with USB flash.

I'm running in circles. It's a slight "comfort" that I don't seem to be alone.

Did I miss something? What is the latest buzz?
Last edited by linuph on Sat 30 Jun 2012, 01:02, edited 1 time in total.

User avatar
Karl Godt
Posts: 4199
Joined: Sun 20 Jun 2010, 13:52
Location: Kiel,Germany

#2 Post by Karl Godt »

I have never had any bluetooth but bluetooth driver have to load .

I am guessing that bluetooth programs load bluetooth drivers, but do not adjust

/etc/rc.d/MODULESCONFIG ' ADDLIST ' variable to autoload the drivers at next boot .

Many drivers dont have MODALIASES as in ' modinfo $DRIVER| grep alias ' or the alias does not get filterd correctly by /sbin/pup_event_backend_modprobe .

User avatar
linuph
Posts: 128
Joined: Mon 04 Jun 2012, 02:29
Location: Philippines

#3 Post by linuph »

I got it working and it keeps working after reboot. I have installed Bluetooth-0.4 only. It seems that /etc/rc.d/MODULESCONFIG ' ADDLIST ' is not the issue. It remains unchanged.
I changed to lupu528-004-alt for other reasons than Bluetooth. I can't explain why it works now. But I'm not ready with Bluetooth yet: next step is to get GPS working.

Thanks to stu90.

User avatar
WB7ODYFred
Posts: 169
Joined: Sun 14 Dec 2008, 02:15
Location: Oregon & Washington

[SOLVED] Updated package of AutoBlue-0.3 from Stu90

#4 Post by WB7ODYFred »

I had problems that the ALIAS command not working in the /root/.bashrc file.
This meant that the Commands "SGH-T639-up" and "SGH-T639-down" did not work. From reading the bash shell script file, /usr/bin/autoblue , I found that the start and end separator character for the "echo" command need to be changed from a double quote " to a single quote '. Now that "alias" command added to the /root/.bashrc file with a single quote ' just works.

I am using Lucid Puppy 5.2.8 original and this is the change I needed to make.

Yes, Stu90, I am very happy to be able to transfer large videos I made from my phone to my Puppy Linux computer with your tools of Bluetooth-0.4.pet and this script tool AutoBlue.

cat /root/.bashrc "don't forget the leading period that makes this a hidden file from normal "ls" command use "ls -la" to see your dot configuration files.
#~/.bashrc re-run your user $HOME/.bashrc file to set the alias commands created by "autoblue"

This script file needs yad, obexfs, hcitools, fusermount

Here is the addition to my /root/.bashrc file. Notice the single quotes ' in the alias command. I manually edited the .bashrc file and added the
export commands. export SGH-T639-up export SGH-T639-down
Let me know if they need to be added to the file /usr/bin/autoblue

Code: Select all

#bluetooth mount
alias SGH-T639-up='obexfs -b 00:24:91:5B:49:6C -B6.000000 /root/bluetooth-SGH-T639 && rox /root/bluetooth-SGH-T639'
export SGH-T639-up
#bluetooth unmount
alias SGH-T639-down='fusermount -u /root/bluetooth-SGH-T639'
export SGH-T639-down
Howto: AutoBlue shell script file creates a filesystem mount point where you can see the files on your phone in several directories in an open ROX-Filer window. You need to manually copy or move the files to a directory on your hard disk so the files will exist after you unmount the phones filesystem from the mount point (ie directory entry) on your computer.
Open a second ROX-Filer window and then select files from the phone file system (1st Rox window above) and drag them to the second ROX-Filer window on your hard drive. This BlueTooth file connection is very fast!
This is a great easy to use Tool. Thanks Stu90 :D

New users. Comment below on what works for you. I installed blue-4.61.pet and don't really know what is the minimum files you have to
install. Start with Bluetooth-0.4.pet above and this AutoBlue-0.3.pet and let us know what works and what does not.

Stu90 original forum post for AutoBlue-0.2
http://www.murga-linux.com/puppy/viewto ... 3&start=59


Install bluetooth.pet > reboot. From www.smokey01.com website
http://www.smokey01.com/stu90/dpup.sque ... th-0.4.pet

OBEXFTP Front-end another choice to try out
http://www.murga-linux.com/puppy/viewtopic.php?p=327531

Master_wrong forum discussion on getting Blueman to run with obexfs pet package.
http://murga-linux.com/puppy/viewtopic. ... 3&start=18
lucid-fuse-obexfs.pet download link, necessary to install if obexfs is not in Bluetooth-0.4.pet file.
http://murga-linux.com/puppy/viewtopic. ... h&id=40441

BlueZ website with BlueZ-4.101 files
http://www.bluez.org/download/


obexd-0.38.pet from Jakfish http://www.murga-linux.com/puppy/viewto ... 3&start=32

YAd is from Stu90 version 8
http://www.murga-linux.com/puppy/viewtopic.php?t=58306


From Master_wrong http://www.murga-linux.com/puppy/viewtopic.php?t=67113
to run blueman, if bluez is not running...
These commands below might install the right modules and create the /dev/rfcomm0 device. I blindly copied and pasted into a terminal window.
So if you experience failure above this might be the secret commands to run just once.

Code: Select all

#!/bin/sh 
dbus-uuidgen --ensure & 
dbus-daemon --system 
modprobe bluetooth 
modprobe l2cap 
modprobe rfcomm 
modprobe btusb 
/usr/local/sbin/hciconfig hci0 up 
/usr/local/sbin/hciconfig hci0 class 0x3e0100 
mknod -m 666 /dev/rfcomm0 c 216 0 
bluetoothd 
mkdir /root/a 
hcitool scan 
blueman-applet 
to browse phone:

1. install the lucid-fuse-obexfs (528 already installed)
2. after run bllueman-applet, right-click on applet ---> select local service
3. select transfer, click on advanced
4. set advanced ----> obexfs -b %d /root/a
5. create /root/a
6. click browse
7. open rox /root/a
Attachments
obexd-0.38.pet
obexd-0.38.pet some obexd dameon in a pet format. From
http://www.murga-linux.com/puppy/viewtopic.php?t=52973&start=32
(134.68 KiB) Downloaded 215 times
patch_autoblue_to_0.3.tar.gz
This is the patch file I created from the original AutoBlue-0.2.pet to create the autoblue-0.3.pet. So Author Stu90 can see what I changed. I added a puninstall.sh file to the root directory
(446 Bytes) Downloaded 213 times
autoblue-0.3.pet
Updated file /usr/bin/autoblue changing a double quote to a single quote in the echo command that modifies the .bashrc file.
(2.04 KiB) Downloaded 251 times

Post Reply