个人工具

UbuntuHelp:BluetoothRemoteControl

来自Ubuntu中文

Oneleaf讨论 | 贡献2007年5月24日 (四) 09:08的版本 (新页面: {{From|https://help.ubuntu.com/community/BluetoothRemoteControl}} {{Languages|UbuntuHelp:BluetoothRemoteControl}} === Introduction === This page is created to provide configuration fi...)

(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)
跳转至: 导航, 搜索



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, K600, K610, K700, K750, K790, K800, S700, V800, W300, W550, W600, W700, W710, W800, W810, W830, W850, W900, Z520, Z525, Z530, Z550, Z558, Z610, Z710, 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:

gnome-obex-send /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.

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 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)

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.