个人工具

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

来自Ubuntu中文

跳转至: 导航, 搜索
第1行: 第1行:
 
{{From|https://help.ubuntu.com/community/BluetoothRemoteControl}}
 
{{From|https://help.ubuntu.com/community/BluetoothRemoteControl}}
 
{{Languages|UbuntuHelp:BluetoothRemoteControl}}
 
{{Languages|UbuntuHelp:BluetoothRemoteControl}}
 
 
 
 
=== Introduction ===
 
=== Introduction ===
 
 
This page is created to provide configuration files for Sony Ericsson (and any other) phones that support remote control over bluetooth using HID. Other mobile phones can try the [http://bemused.sourceforge.net/ bemused] project .
 
This page is created to provide configuration files for Sony Ericsson (and any other) phones that support remote control over bluetooth using HID. Other mobile phones can try the [http://bemused.sourceforge.net/ bemused] project .
 
 
=== Devices ===
 
=== Devices ===
 
 
Following Sony Ericsson provide this functionality. <br>
 
Following Sony Ericsson provide this functionality. <br>
 
D750, K320, K510, K530, K550, K600, K610, K700, K750, K790, K800, K810, K850, S500, S700,  T650, V800, W300, W550, W580, W600, W610, W660, W700, W710, W800, W810, W830, W850, W880, W900, W910, Z520, Z525, Z530, Z550, Z558, Z610, Z710, Z750, Z800 <br>
 
D750, K320, K510, K530, K550, K600, K610, K700, K750, K790, K800, K810, K850, S500, S700,  T650, V800, W300, W550, W580, W600, W610, W660, W700, W710, W800, W810, W830, W850, W880, W900, W910, Z520, Z525, Z530, Z550, Z558, Z610, Z710, Z750, Z800 <br>
 
 
{i} Please refer to your handset's manual for usage instructions.
 
{i} Please refer to your handset's manual for usage instructions.
 
 
=== Solutions ===
 
=== Solutions ===
 
 
There several possibilities to get remote controller functionality under Linux. First of all there is the the Linux port of the [http://bemused.sourceforge.net/ bemused server] and its clients, secondly there is the [http://bemused.sourceforge.net/ remoteJ] project, and of course there is the possibility to use the better documented remote controller of your own phone. This page is primarily about this third alternative.
 
There several possibilities to get remote controller functionality under Linux. First of all there is the the Linux port of the [http://bemused.sourceforge.net/ bemused server] and its clients, secondly there is the [http://bemused.sourceforge.net/ remoteJ] project, and of course there is the possibility to use the better documented remote controller of your own phone. This page is primarily about this third alternative.
 
 
=== Installation and Configuration ===
 
=== Installation and Configuration ===
 
 
* '''Ubuntu 6.06 LTS (Dapper Drake)'''
 
* '''Ubuntu 6.06 LTS (Dapper Drake)'''
 
 
Install package 'bluez-utils' using your favourite package manager.
 
Install package 'bluez-utils' using your favourite package manager.
 
 
Edit file /etc/default/bluez-utils.
 
Edit file /etc/default/bluez-utils.
 
<pre><nowiki>
 
<pre><nowiki>
第30行: 第17行:
 
sudo nano /etc/default/bluez-utils
 
sudo nano /etc/default/bluez-utils
 
</nowiki></pre>
 
</nowiki></pre>
 
 
Look for the following line:
 
Look for the following line:
 
 
<pre><nowiki>
 
<pre><nowiki>
 
HIDD_ENABLED=0
 
HIDD_ENABLED=0
 
</nowiki></pre>
 
</nowiki></pre>
 
 
Change it to:
 
Change it to:
 
 
<pre><nowiki>
 
<pre><nowiki>
 
HIDD_ENABLED=1
 
HIDD_ENABLED=1
 
</nowiki></pre>
 
</nowiki></pre>
 
 
Certain phones require the following options line:
 
Certain phones require the following options line:
 
 
<pre><nowiki>
 
<pre><nowiki>
 
# -D (nosdp) special hack for 700i and similar phones
 
# -D (nosdp) special hack for 700i and similar phones
第50行: 第31行:
 
HIDD_OPTIONS="--master --server -D -Z"
 
HIDD_OPTIONS="--master --server -D -Z"
 
</nowiki></pre>
 
</nowiki></pre>
 
 
Restart bluetooth services:
 
Restart bluetooth services:
 
 
<pre><nowiki>
 
<pre><nowiki>
 
sudo /etc/init.d/bluez-utils restart
 
sudo /etc/init.d/bluez-utils restart
 
</nowiki></pre>
 
</nowiki></pre>
 
 
 
One this is done your PC is set to use HID services. Now you need to transfer remote control (.hid) files to your phone.
 
One this is done your PC is set to use HID services. Now you need to transfer remote control (.hid) files to your phone.
 
 
Install package 'gnome-bluetooth' using your favourite package manager.
 
Install package 'gnome-bluetooth' using your favourite package manager.
 
 
Send .hid file to your phone (replace btaddr with appropriate value for your phone):
 
Send .hid file to your phone (replace btaddr with appropriate value for your phone):
 
 
<pre><nowiki>
 
<pre><nowiki>
 
gnome-obex-send -d btaddr /path/to/<filename>.hid
 
gnome-obex-send -d btaddr /path/to/<filename>.hid
 
</nowiki></pre>
 
</nowiki></pre>
 
 
The phone firmware detects this file as remote control file and automatically sets it up. Depending on the phone the profile is now accessible along with default profiles.
 
The phone firmware detects this file as remote control file and automatically sets it up. Depending on the phone the profile is now accessible along with default profiles.
 
 
* '''Ubuntu 7.04 (Feisty)  7.10(Gutsy)'''
 
* '''Ubuntu 7.04 (Feisty)  7.10(Gutsy)'''
 
Right, this is deadly simple. It allows your mobile to take control of the mouse and provide some keyboard functionality as well.  
 
Right, this is deadly simple. It allows your mobile to take control of the mouse and provide some keyboard functionality as well.  
 
 
first install bluez-utils, there may be some dependancies
 
first install bluez-utils, there may be some dependancies
 
<pre><nowiki>
 
<pre><nowiki>
第90行: 第61行:
 
</nowiki></pre>
 
</nowiki></pre>
 
but with your phone's MAC address, this should bring a mesage up on your phone "allow *** to access remote control?", click yes and select 'Desktop'. woohoo you can control the mouse (as well as tab and windows key and a few other things depending on you model of sony ericsson)
 
but with your phone's MAC address, this should bring a mesage up on your phone "allow *** to access remote control?", click yes and select 'Desktop'. woohoo you can control the mouse (as well as tab and windows key and a few other things depending on you model of sony ericsson)
 
 
it sucks a bit if you have to do this everytime you want to use ur mobile, and so....back to the terminal
 
it sucks a bit if you have to do this everytime you want to use ur mobile, and so....back to the terminal
 
<pre><nowiki>
 
<pre><nowiki>
第96行: 第66行:
 
</nowiki></pre>
 
</nowiki></pre>
 
and now you can connect your phone from your phones remote control menu option ( usually entertainment>>remote control )
 
and now you can connect your phone from your phones remote control menu option ( usually entertainment>>remote control )
 
 
Note: If hidd --server does not work for you, you can try adding your phones's MAC address in /etc/default/bluetooth or  /etc/default/bluez-utils file in HIDD_OPTIONS like HIDD_OPTIONS="--connect 00:11:22:AA:BB:CC --master --server"
 
Note: If hidd --server does not work for you, you can try adding your phones's MAC address in /etc/default/bluetooth or  /etc/default/bluez-utils file in HIDD_OPTIONS like HIDD_OPTIONS="--connect 00:11:22:AA:BB:CC --master --server"
 
 
 
 
See [http://ubuntuforums.org/showpost.php?p=1774584&postcount=10 this forum post] for more information on Bluetooth HID remote control in Ubuntu Feisty.
 
See [http://ubuntuforums.org/showpost.php?p=1774584&postcount=10 this forum post] for more information on Bluetooth HID remote control in Ubuntu Feisty.
 
 
=== Configuration files ===
 
=== Configuration files ===
 
 
The bluetooth remote control configuration file for Sony Ericsson is a tar archive with extension as .hid <br>
 
The bluetooth remote control configuration file for Sony Ericsson is a tar archive with extension as .hid <br>
 
The tar file contains two files <br>
 
The tar file contains two files <br>
第111行: 第75行:
 
The format of XML descriptor is defined at [http://developer.sonyericsson.com/getDocument.do?docId=66147 Sony Ericsson developer site] <br>
 
The format of XML descriptor is defined at [http://developer.sonyericsson.com/getDocument.do?docId=66147 Sony Ericsson developer site] <br>
 
The key codes for HID are defined at [http://www.usb.org/developers/devclass_docs/Hut1_11.pdf USB website]
 
The key codes for HID are defined at [http://www.usb.org/developers/devclass_docs/Hut1_11.pdf USB website]
 
 
=== Example configurations ===
 
=== Example configurations ===
 
 
By default there are some configurations provided with the phones. Some work with Linux while others do not. <br>
 
By default there are some configurations provided with the phones. Some work with Linux while others do not. <br>
 
Following table lists the remote control configuration files specifically made for Linux applications.
 
Following table lists the remote control configuration files specifically made for Linux applications.
 
 
{|border="1" cellspacing="0"
 
{|border="1" cellspacing="0"
 
|||||||||'''Bluetooth Remote Configuration Files'''
 
|||||||||'''Bluetooth Remote Configuration Files'''
第134行: 第95行:
 
|Banshee||SE K700i, K750i (Not tested with other phones)||https://help.ubuntu.com/community/BluetoothRemoteControl?action=AttachFile&do=get&target=Banshee.hid%7C%7Cadam (dot) lofts (at) gmail (dot) com||Volume control does not work since Banshee lacks the keybindings
 
|Banshee||SE K700i, K750i (Not tested with other phones)||https://help.ubuntu.com/community/BluetoothRemoteControl?action=AttachFile&do=get&target=Banshee.hid%7C%7Cadam (dot) lofts (at) gmail (dot) com||Volume control does not work since Banshee lacks the keybindings
 
|}
 
|}
 
 
=== Misc ===
 
=== Misc ===
 
 
A keymap image template can be found [http://briefcase.rediff.com/bn/br/onkarshinde///public/Keymap_template.jpg?d=0 here] so that it is easy to create visual representation for key mappings. <br>
 
A keymap image template can be found [http://briefcase.rediff.com/bn/br/onkarshinde///public/Keymap_template.jpg?d=0 here] so that it is easy to create visual representation for key mappings. <br>
 
Please note that this template was made according to SE K700i screen resolution and may not fit for other phones.
 
Please note that this template was made according to SE K700i screen resolution and may not fit for other phones.

2007年11月30日 (五) 16:19的版本

Introduction

This page is created to provide configuration files for Sony Ericsson (and any other) phones that support remote control over bluetooth using HID. Other mobile phones can try the bemused project .

Devices

Following Sony Ericsson provide this functionality.
D750, K320, K510, K530, K550, K600, K610, K700, K750, K790, K800, K810, K850, S500, S700, T650, V800, W300, W550, W580, W600, W610, W660, W700, W710, W800, W810, W830, W850, W880, W900, W910, Z520, Z525, Z530, Z550, Z558, Z610, Z710, Z750, Z800
{i} Please refer to your handset's manual for usage instructions.

Solutions

There several possibilities to get remote controller functionality under Linux. First of all there is the the Linux port of the bemused server and its clients, secondly there is the remoteJ project, and of course there is the possibility to use the better documented remote controller of your own phone. This page is primarily about this third alternative.

Installation and Configuration

  • Ubuntu 6.06 LTS (Dapper Drake)

Install package 'bluez-utils' using your favourite package manager. Edit file /etc/default/bluez-utils.

sudo cp /etc/default/bluez-utils /etc/default/bluez-utils_backup
sudo nano /etc/default/bluez-utils

Look for the following line:

HIDD_ENABLED=0

Change it to:

HIDD_ENABLED=1

Certain phones require the following options line:

# -D (nosdp) special hack for 700i and similar phones
# -Z (nocheck) also needed in the setup procedure
HIDD_OPTIONS="--master --server -D -Z"

Restart bluetooth services:

sudo /etc/init.d/bluez-utils restart

One this is done your PC is set to use HID services. Now you need to transfer remote control (.hid) files to your phone. Install package 'gnome-bluetooth' using your favourite package manager. Send .hid file to your phone (replace btaddr with appropriate value for your phone):

gnome-obex-send -d btaddr /path/to/<filename>.hid

The phone firmware detects this file as remote control file and automatically sets it up. Depending on the phone the profile is now accessible along with default profiles.

  • Ubuntu 7.04 (Feisty) 7.10(Gutsy)

Right, this is deadly simple. It allows your mobile to take control of the mouse and provide some keyboard functionality as well. first install bluez-utils, there may be some dependancies

sudo apt-get install bluez-utils

next lets find your phone via ol' bluetooth

hcitool scan

and you'll get a MAC address and identifier

00:11:22:AA:BB:CC  MyPhonesName

copy the MAC address and do the following

sudo hidd --connect 00:11:22:AA:BB:CC

but with your phone's MAC address, this should bring a mesage up on your phone "allow *** to access remote control?", click yes and select 'Desktop'. woohoo you can control the mouse (as well as tab and windows key and a few other things depending on you model of sony ericsson) it sucks a bit if you have to do this everytime you want to use ur mobile, and so....back to the terminal

sudo hidd --server

and now you can connect your phone from your phones remote control menu option ( usually entertainment>>remote control ) Note: If hidd --server does not work for you, you can try adding your phones's MAC address in /etc/default/bluetooth or /etc/default/bluez-utils file in HIDD_OPTIONS like HIDD_OPTIONS="--connect 00:11:22:AA:BB:CC --master --server" See this forum post for more information on Bluetooth HID remote control in Ubuntu Feisty.

Configuration files

The bluetooth remote control configuration file for Sony Ericsson is a tar archive with extension as .hid
The tar file contains two files
a) an image containing visual representation of key mappings.
b) A XML descriptor with extension .kcf that defines key mappings.
The format of XML descriptor is defined at Sony Ericsson developer site
The key codes for HID are defined at USB website

Example configurations

By default there are some configurations provided with the phones. Some work with Linux while others do not.
Following table lists the remote control configuration files specifically made for Linux applications.

Bluetooth Remote Configuration Files
Application Phone File Created By Notes
Totem SE K700i, K750i (Not tested with other phones) https://help.ubuntu.com/community/BluetoothRemoteControl?action=AttachFile&do=get&target=Totem.hid%7C%7COnkarShinde (onkarshinde at gmail dot com) I have tried to map as much commands in Totem as possible to phone keys (ex. DVD Menu, Fullscreen). Please let know if you have any comments or suggestions
amaroK SE K750i, W810i (Not tested with Other phones) https://help.ubuntu.com/community/BluetoothRemoteControl?action=AttachFile&do=get&target=Amarok.hid%7C%7C-- V7 DateTime(2007-02-08T23:15:36Z)
MPlayer SE K700i, K750i, W810i (Not tested with other phones) https://help.ubuntu.com/community/BluetoothRemoteControl?action=AttachFile&do=get&target=MPlayer.hid%7C%7CSzasz Pal (space at spacesoftwarestudio dot com)
XMMS SE K750i (Not tested with other phones) https://help.ubuntu.com/community/BluetoothRemoteControl?action=AttachFile&do=get&target=XMMS.hid%7C%7CSzasz Pal (space at spacesoftwarestudio dot com)
Rhythmbox SE K700i, K750i, W710i (Not tested with other phones) https://help.ubuntu.com/community/BluetoothRemoteControl?action=AttachFile&do=get&target=Rhythmbox.hid%7C%7CAanjhan R (aanjhan at tuxmaniac dot com)
Banshee SE K700i, K750i (Not tested with other phones) https://help.ubuntu.com/community/BluetoothRemoteControl?action=AttachFile&do=get&target=Banshee.hid%7C%7Cadam (dot) lofts (at) gmail (dot) com Volume control does not work since Banshee lacks the keybindings

Misc

A keymap image template can be found here so that it is easy to create visual representation for key mappings.
Please note that this template was made according to SE K700i screen resolution and may not fit for other phones.