Gentoo and Sony Vaio VGN-FZ180E – part 3: Connectivity with Bluetooth

England Bluetooth is the only thing that is missing in this vaio model, but with a cheap bluetooth usb adapter, it’s possible to access the internet using a cell phone that supports GPRS/EDGE/UMTS/HSDPA (and bluetooth, obviously) from anywhere.

First, as always, a little kernel playing:

Networking ---> <*> Bluetooth subsystem support
--- Bluetooth subsystem support
<*> L2CAP protocol support
<*> SCO links support
<*> RFCOMM protocol support
[*] RFCOMM TTY support
<*> BNEP protocol support
[*] Multicast filter support
[*] Protocol filter support
<*> HIDP protocol support
Bluetooth device drivers --->
<*> HCI USB driver
[*] SCO (voice) support
<*> HCI SDIO driver
<*> HCI UART driver
[*] UART (H4) protocol support
[*] BCSP protocol support
[*] HCILL protocol support

Also enable PPP:

Device Drivers --->
[*] Network device support
<*> PPP (point-to-point protocol) support
[*] PPP filtering
<*> PPP support for async serial ports
<*> PPP support for sync tty ports
<*> PPP Deflate compression
<*> PPP BSD-Compress compression

Compile the kernel, reboot, and when pluging the USB Bluetooth dongle, something like this must appear in the log:

Mar 7 17:59:37 jupter usb 5-2: new full speed USB device using uhci_hcd and address 3
Mar 7 17:59:37 jupter usb 5-2: configuration #1 chosen from 1 choice
Mar 7 17:59:38 jupter hcid[10186]: Bluetooth HCI daemon
Mar 7 17:59:38 jupter hcid[10186]: HCI dev 0 up
Mar 7 17:59:38 jupter hcid[10186]: Starting security manager 0
Mar 7 17:59:38 jupter sdpd[10197]: Bluetooth SDP daemon

Emerge the package “bluez-utils”. Edit file /etc/bluetooth/pin and put a password that will be need to pair with the laptop via bluetooth.

The file /etc/bluetooth/rfcomm.conf must be changed to match the cell phone:

rfcomm0 {
# Automatically bind the device at startup
bind yes;
# Bluetooth address of the device
device 00:1C:9A:2D:36:58;
# RFCOMM channel for the connection
channel 4;
# Description of the connection
comment "My cell phone";

To find the device address, turn on the bluetooth on the cell phone and run the command “hcitool scan” on gentoo to print it.

Now it’s necessary to configure ppp.

For each connection there must be um sym link in /etc/init.d. Thus, to create a called “ppp1″ connection to Vodafone Italy, for example:

cd /etc/init.d
ln -s net.lo net.ppp1

The last thing is to configure the /etc/conf.d/net and declare the properties of the ppp session:

"maxfail 10"
"lcp-echo-interval 5"
"lcp-echo-failure 12"
"holdoff 3"
"noaccomp noccp nobsdcomp nodeflate nopcomp novj novjccomp"
'' ATZ
'OK' 'AT+CGDCONT=1,"IP",""'
OK "ATD*99***1#"

The IP address of the provider must be adapted depending of the country and company. The rest is pretty standard. The ones that I used so far:


Some providers requires username and password. In this case, they must be declared in pppd_ppp1 section with the keys
“username” and “password”.

Finally, to connect, start the service: /etc/init.d/net.ppp1 start

About these ads

2 comments on “Gentoo and Sony Vaio VGN-FZ180E – part 3: Connectivity with Bluetooth

  1. [...] Gentoo and Sony Vaio VGN-FZ180E – part 3: Connectivity with Bluetooth [...]

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s