个人工具

“UbuntuHelp:BluetoothSkype”的版本间的差异

来自Ubuntu中文

跳转至: 导航, 搜索
 
(未显示同一用户的6个中间版本)
第1行: 第1行:
 
{{From|https://help.ubuntu.com/community/BluetoothSkype}}
 
{{From|https://help.ubuntu.com/community/BluetoothSkype}}
 
{{Languages|UbuntuHelp:BluetoothSkype}}
 
{{Languages|UbuntuHelp:BluetoothSkype}}
 +
<<Include(Tag/ContentCleanup)>>
 
== Using Bluetooth to access the files on Mobile Phone, and with Headset for VoIP ==
 
== Using Bluetooth to access the files on Mobile Phone, and with Headset for VoIP ==
 
Though these instructions are centered around Skype, they also apply to free, open and non-proprietary software phones like Wengophone, Ekiga, and others.
 
Though these instructions are centered around Skype, they also apply to free, open and non-proprietary software phones like Wengophone, Ekiga, and others.
 
See http://wiki.ubuntu.com/SkypeEthics for more information.
 
See http://wiki.ubuntu.com/SkypeEthics for more information.
 
=== Copying Files to and from Mobile Phone (K700i) ===
 
=== Copying Files to and from Mobile Phone (K700i) ===
# Install bluez-utils, kdebluetooth (gnome bluetooth is not as far developed as kde I think), libopenobex, qobex, konqueror.
+
<ol><li>Install bluez-utils, kdebluetooth (gnome bluetooth is not as far developed as kde I think), libopenobex, qobex, konqueror.
# Check /etc/bluetooth/hcid.conf:  
+
</li><li>Check /etc/bluetooth/hcid.conf:</li></ol>
#* security should be user.
+
 
#* pairing should be multi.
+
* security should be user.
#* pin_helper should be /usr/bin/bluez-pin.
+
* pairing should be multi.
# restart bluez-utils  
+
* pin_helper should be /usr/bin/bluez-pin.
 +
<ol><li>restart bluez-utils</li></ol>
 +
 
 
<pre><nowiki>
 
<pre><nowiki>
 
/etc/init.d/bluez-utils restart</nowiki></pre>
 
/etc/init.d/bluez-utils restart</nowiki></pre>
第16行: 第19行:
 
xhost +
 
xhost +
 
</nowiki></pre>
 
</nowiki></pre>
# Start kbluetoothd (it sometimes needs to be started twice on my machine until the icon shows up in the System Notifications Tray).
+
<ol><li>Start kbluetoothd (it sometimes needs to be started twice on my machine until the icon shows up in the System Notifications Tray).
# Enable Bluetooth on your Device (Mobile Phone).
+
</li><li>Enable Bluetooth on your Device (Mobile Phone).
# If you click on the kbluetoothd Icon, konqueror will show up with "bluetooth:/" location, listing all BT Devices found.
+
</li><li>If you click on the kbluetoothd Icon, konqueror will show up with "bluetooth:/" location, listing all BT Devices found.
# Click on your Device (sometimes only the MAC-Adress shows up), konqueror will list all supported Services, and start using the Service (for my Mobile, K700i its obex File Transfer, then I can browse my Mobile like a Disk Drive, copying what I want). Previous to that, my phone wants to pair with my PC, asking for a PIN. Just guess one (1234), after that a pop-up on the PC should occur, asking for the same PIN.
+
</li><li>Click on your Device (sometimes only the MAC-Adress shows up), konqueror will list all supported Services, and start using the Service (for my Mobile, K700i its obex File Transfer, then I can browse my Mobile like a Disk Drive, copying what I want). Previous to that, my phone wants to pair with my PC, asking for a PIN. Just guess one (1234), after that a pop-up on the PC should occur, asking for the same PIN.
# You could also send Files from the Phone to your PC, then a pop-up will show up, asking you, if you wish to receive the file.
+
</li><li>You could also send Files from the Phone to your PC, then a pop-up will show up, asking you, if you wish to receive the file.</li></ol>
 +
 
 
=== Using a Bluetooth Headset ===
 
=== Using a Bluetooth Headset ===
 
==== Load Kernel Module for btsco: ====
 
==== Load Kernel Module for btsco: ====
 
* '''Ubuntu 6.06 LTS (Dapper Drake)''' & '''Ubuntu 7.10 (Feisty Fawn)'''
 
* '''Ubuntu 6.06 LTS (Dapper Drake)''' & '''Ubuntu 7.10 (Feisty Fawn)'''
<pre><nowiki>sudo modprobe snd-bt-sco
+
<pre><nowiki>
 +
sudo modprobe snd-bt-sco
 
</nowiki></pre>
 
</nowiki></pre>
 
* '''Ubuntu 5.10 (Breezy Badger)'''
 
* '''Ubuntu 5.10 (Breezy Badger)'''
<pre><nowiki>sudo modprobe btsco
+
<pre><nowiki>
 +
sudo modprobe btsco
 
</nowiki></pre>
 
</nowiki></pre>
 
==== Check and load permanently: ====
 
==== Check and load permanently: ====
 
Check with:
 
Check with:
<pre><nowiki>dmesg
+
<pre><nowiki>
 +
dmesg
 
</nowiki></pre>
 
</nowiki></pre>
 
If it works correctly you can load it permanently by adding the appropriate module name to the end of  /etc/modules
 
If it works correctly you can load it permanently by adding the appropriate module name to the end of  /etc/modules
<pre><nowiki>gksudo gedit /etc/modules
+
<pre><nowiki>
 +
gksudo gedit /etc/modules
 
</nowiki></pre>
 
</nowiki></pre>
 
==== Install btsco ====
 
==== Install btsco ====
第57行: 第65行:
 
</nowiki></pre>
 
</nowiki></pre>
 
==== Pair the headset with PC (as above with the Mobile) ====
 
==== Pair the headset with PC (as above with the Mobile) ====
Headset needs to be in pairing-mode (often this is accomplished by pressing a specific button for a long time, please see your headset manual).<br>
+
Headset needs to be in pairing-mode (often this is accomplished by pressing a specific button for a long time, please see your headset manual).<<BR>>
 
* '''If you are using kbluetoothd'''
 
* '''If you are using kbluetoothd'''
Start kbluetoothd, click on it, in the opened konqueror window click on the headset (sometimes the MAC-Adress shows up).<br>
+
Start kbluetoothd, click on it, in the opened konqueror window click on the headset (sometimes the MAC-Adress shows up).<<BR>>
A popup should request the PIN for the Headset from you (mostly "0000" or "1234"). <br>(For example Plantronics Voyager 510 and Scala 500 use a PIN of 0000, please see your headset manual).
+
A popup should request the PIN for the Headset from you (mostly "0000" or "1234"). <<BR>>(For example Plantronics Voyager 510 and Scala 500 use a PIN of 0000, please see your headset manual).
 
* '''If you are using gnome-bluetooth'''
 
* '''If you are using gnome-bluetooth'''
Right-click on the Bluetooth Applet in your top panel and select Browse Device. Find your headset and click connect.<br>
+
Right-click on the Bluetooth Applet in your top panel and select Browse Device. Find your headset and click connect.<<BR>>
A popup should request the PIN for the Headset from you (mostly "0000" or "1234"). <br>(For example Plantronics Voyager 510 and Scala 500 use a PIN of 0000, please see your headset manual). You may get an obex error, you can ignore it and continue.
+
A popup should request the PIN for the Headset from you (mostly "0000" or "1234"). <<BR>>(For example Plantronics Voyager 510 and Scala 500 use a PIN of 0000, please see your headset manual). You may get an obex error, you can ignore it and continue.
 
==== Start the btsco userspace program ====
 
==== Start the btsco userspace program ====
 
<pre><nowiki>
 
<pre><nowiki>
第79行: 第87行:
 
Refer to [[UbuntuHelp:Skype|Skype]] to install Skype.
 
Refer to [[UbuntuHelp:Skype|Skype]] to install Skype.
 
* '''For Skype 1.4.0 and newer'''
 
* '''For Skype 1.4.0 and newer'''
# Launch Skype, go to Options, select Sound Devices. For Sound In and Sound Out (this is up to you) select the BT Headset entry.
+
<ol><li>Launch Skype, go to Options, select Sound Devices. For Sound In and Sound Out (this is up to you) select the BT Headset entry.
2. Call Skype Test Call to test your headset.
+
</li><li>Call Skype Test Call to test your headset.</li></ol>
 +
 
 
* '''Older versions of Skype'''
 
* '''Older versions of Skype'''
# Launch Skype, go to options Headset and select "/dev/dsp1" as device.
+
<ol><li>Launch Skype, go to options Headset and select "/dev/dsp1" as device.
## For other software phones, just set the audio devices for input and output as /dev/dsp1, and don't experience the Skype bug in step 3.
+
<ol><li>For other software phones, just set the audio devices for input and output as /dev/dsp1, and don't experience the Skype bug in step 3.
2. Try to call "echo123" to check it, when you just hear garbage, turn your headset off and on again, and start  <code><nowiki> btsco -v 00:00:00:00:00 </nowiki></code> again. This happens on my Machine every second time I try to use my Headset - also under WindowsXP!
+
</li></ol></li><li>Try to call "echo123" to check it, when you just hear garbage, turn your headset off and on again, and start  <code><nowiki> btsco -v 00:00:00:00:00 </nowiki></code> again. This happens on my Machine every second time I try to use my Headset - also under WindowsXP!</li></ol>
[[UbuntuHelp:[[category:CategoryDocumentation]]]]
+
 
[[UbuntuHelp:[[category:CategoryBluetooth]]]]
+
----
 +
[[category:CategoryBluetooth]]
  
 
[[category:UbuntuHelp]]
 
[[category:UbuntuHelp]]

2010年5月19日 (三) 21:45的最新版本

<<Include(Tag/ContentCleanup)>>

Using Bluetooth to access the files on Mobile Phone, and with Headset for VoIP

Though these instructions are centered around Skype, they also apply to free, open and non-proprietary software phones like Wengophone, Ekiga, and others. See http://wiki.ubuntu.com/SkypeEthics for more information.

Copying Files to and from Mobile Phone (K700i)

  1. Install bluez-utils, kdebluetooth (gnome bluetooth is not as far developed as kde I think), libopenobex, qobex, konqueror.
  2. Check /etc/bluetooth/hcid.conf:
  • security should be user.
  • pairing should be multi.
  • pin_helper should be /usr/bin/bluez-pin.
  1. restart bluez-utils
/etc/init.d/bluez-utils restart
a.(Some people may need to do this step before running kbluetoothd. I had to in order to successfully pair my phone to the Bluetooth dongle.) From a command line run
xhost +
  1. Start kbluetoothd (it sometimes needs to be started twice on my machine until the icon shows up in the System Notifications Tray).
  2. Enable Bluetooth on your Device (Mobile Phone).
  3. If you click on the kbluetoothd Icon, konqueror will show up with "bluetooth:/" location, listing all BT Devices found.
  4. Click on your Device (sometimes only the MAC-Adress shows up), konqueror will list all supported Services, and start using the Service (for my Mobile, K700i its obex File Transfer, then I can browse my Mobile like a Disk Drive, copying what I want). Previous to that, my phone wants to pair with my PC, asking for a PIN. Just guess one (1234), after that a pop-up on the PC should occur, asking for the same PIN.
  5. You could also send Files from the Phone to your PC, then a pop-up will show up, asking you, if you wish to receive the file.

Using a Bluetooth Headset

Load Kernel Module for btsco:

  • Ubuntu 6.06 LTS (Dapper Drake) & Ubuntu 7.10 (Feisty Fawn)
sudo modprobe snd-bt-sco
  • Ubuntu 5.10 (Breezy Badger)
sudo modprobe btsco

Check and load permanently:

Check with:

dmesg

If it works correctly you can load it permanently by adding the appropriate module name to the end of /etc/modules

gksudo gedit /etc/modules

Install btsco

  • Ubuntu 6.06 LTS (Dapper Drake) & Ubuntu 7.10 (Feisty Fawn)

Install package 'bluez-btsco' from Universe repository.

  • Ubuntu 5.10 (Breezy Badger)

Install the following missing (at least on my system) packages needed by the btsco Userspace driver. Easy, because you have apt-get or synaptic:

  • gcc.
  • altgcc.
  • libasound2-dev.
  • libao-dev.
  • libbluetooth1-dev.

Download latest btsco from http://sourceforge.net/project/showfiles.php?group_id=116589, unzip to Desktop perhaps. Compile and install btsco

tar -xvzf btsco-0.42.tar.gz
cd btsco-0.42
./bootstrap
./configure
make
sudo make install

Pair the headset with PC (as above with the Mobile)

Headset needs to be in pairing-mode (often this is accomplished by pressing a specific button for a long time, please see your headset manual).<
>

  • If you are using kbluetoothd

Start kbluetoothd, click on it, in the opened konqueror window click on the headset (sometimes the MAC-Adress shows up).<
> A popup should request the PIN for the Headset from you (mostly "0000" or "1234"). <
>(For example Plantronics Voyager 510 and Scala 500 use a PIN of 0000, please see your headset manual).

  • If you are using gnome-bluetooth

Right-click on the Bluetooth Applet in your top panel and select Browse Device. Find your headset and click connect.<
> A popup should request the PIN for the Headset from you (mostly "0000" or "1234"). <
>(For example Plantronics Voyager 510 and Scala 500 use a PIN of 0000, please see your headset manual). You may get an obex error, you can ignore it and continue.

Start the btsco userspace program

btsco -v 00:00:00:00:00

replace the zeros with the MAC address of your headset (in KDE for example, right click on kbluetoothd icon, connection details. In GNOME, right click on bluetooth applet and select browse device). Verify its working:

aplay -B 1000000 -D plughw:Headset sound.wav 
(replace sound.wav with a Wave-File of your choice. A good choice would be /usr/share/sounds/login.wav . An MP3 also works, but you will only hear strange noise :).

Use XMMS: Options -> Preferences -> Audio I/O -> Output Plugin. Select ALSA -> configure, and select your Headset as Audiodevice. Restart XMMS and you should hear the music with the Headset. You can use the Volume Manager from gnome to adjust the volume, right click on the speaker in the tray -> Settings -> File -> Change Device. Everyday Use: If you load the kernel module automatically, you just need to execute "btsco -v your_headsets_mac_adress" - really easy for everyday use. You can optional start kbluetoothd to check Signalstreght etc.

Using Skype with Bluetooth Headset

Refer to Skype to install Skype.

  • For Skype 1.4.0 and newer
  1. Launch Skype, go to Options, select Sound Devices. For Sound In and Sound Out (this is up to you) select the BT Headset entry.
  2. Call Skype Test Call to test your headset.
  • Older versions of Skype
  1. Launch Skype, go to options Headset and select "/dev/dsp1" as device.
    1. For other software phones, just set the audio devices for input and output as /dev/dsp1, and don't experience the Skype bug in step 3.
  2. Try to call "echo123" to check it, when you just hear garbage, turn your headset off and on again, and start btsco -v 00:00:00:00:00 again. This happens on my Machine every second time I try to use my Headset - also under WindowsXP!