* [sisyphus] Настройка Bluetooth гарнитуры для работы с SIP телефоном в Sisyphus
@ 2007-01-29 16:31 Anton Farygin
2007-01-30 5:41 ` Ildar Mulyukov
0 siblings, 1 reply; 3+ messages in thread
From: Anton Farygin @ 2007-01-29 16:31 UTC (permalink / raw)
To: sisyphus
Небольшой мануал по настройке BT-audio гарнитуры (от любого сотового
телефона подойдёт) для работы с SIP телефоном (twinkle):
1). Идём на http://bluetooth-alsa.sourceforge.net/, качаем всё из cvs
(plugz)
2) собираем, устанавливаем
3) из скачанного CVS накладываем патч на ядро, как написано в этой
документации: http://bluetooth-alsa.sourceforge.net/build.html
4) делаем конфиг для alsa в ~/.asoundrc пишем, заменив в default на свой
адрес BT адаптера. Адрес берётся из команды hcitool scan:
$ cat ~/.asoundrc
pcm.headset {
@args [BDADDR TIMEOUT]
# The Bluetooth device address for target headset, used for
Audio Gateway (PC) initiated connections
# Please note that this value is ignored when the connection is
Headset initiated
@args.BDADDR {
type string
default "00:00:A3:66:B1:43"
}
# This value represents how long we will try to reach the
headset, until we give up.
# Value is in milliseconds
@args.TIMEOUT {
type integer
default 6000
}
type sco
bdaddr $BDADDR
timeout $TIMEOUT
}
ctl.headset {
type sco
}
pcm.a2dpd {
type a2dpd
}
4) Связываем гарнитуру с компьютером. Наверное это самый гемморойный
процесс.
Для этого:
- перевести гарнитуру в режим поиска (например удерживая кнопку
вклуючения более 10 секунд).
- делаем скриптик на шелл, вот с таким содержимым:
#!/bin/sh
echo "PIN 0000"
где 0000 - pin код вашей BT гарнитуры (по дефолту 0000, как правило)
- Запускаем "passkey-agent --default ./pin-helper.sh"
- в отдельном терминале говорим: sdptool browse
<BDADDR_вашей_гарнитуры, который узнаётся из hcitool scan>
По идее этого должно хватить.. после связывания (смотрим
/var/log/messages) - всё должно заработать
6) запускаем headsetd
5) пробуем играть звук: aplay -Dplug:headset <какой-нить_wav_файл>
6) настраиваем twinkle на работу через устройство plug:headset, выбрав в
списке устройств - other alsa devices.
Rgds,
Rider
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [sisyphus] Настройка Bluetooth гарнитуры для работы с SIP телефоном в Sisyphus
2007-01-29 16:31 [sisyphus] Настройка Bluetooth гарнитуры для работы с SIP телефоном в Sisyphus Anton Farygin
@ 2007-01-30 5:41 ` Ildar Mulyukov
2007-01-30 9:51 ` Anton Farygin
0 siblings, 1 reply; 3+ messages in thread
From: Ildar Mulyukov @ 2007-01-30 5:41 UTC (permalink / raw)
To: sisyphus
On 29.01.2007 22:31:16, Anton Farygin wrote:
> Небольшой мануал по настройке BT-audio гарнитуры (от любого сотового
> телефона подойдёт) для работы с SIP телефоном (twinkle):
>
> 1). Идём на http://bluetooth-alsa.sourceforge.net/, качаем всё из cvs
> (plugz)
В этом месте я начал сомневаться ...
> 2) собираем, устанавливаем
>
> 3) из скачанного CVS накладываем патч на ядро, как написано в этой
> документации: http://bluetooth-alsa.sourceforge.net/build.html
... а в этом месте я удостоверился, что это письмо - диверсия. :)
Райдер, а существует для этого более человеческий способ? У
какого-нибудь дистра это работает из коробки?
Ильдар
--
Ildar Mulyukov, free SW designer/programmer/packager
=========================================
email: ildar@altlinux.ru
Jabber: ildar@jabber.ru
ICQ: 4334029
ALT Linux Sisyphus http://www.sisyphus.ru
=========================================
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [sisyphus] Настройка Bluetooth гарнитуры для работы с SIP телефоном в Sisyphus
2007-01-30 5:41 ` Ildar Mulyukov
@ 2007-01-30 9:51 ` Anton Farygin
0 siblings, 0 replies; 3+ messages in thread
From: Anton Farygin @ 2007-01-30 9:51 UTC (permalink / raw)
To: sisyphus
Ildar Mulyukov wrote:
> On 29.01.2007 22:31:16, Anton Farygin wrote:
>> Небольшой мануал по настройке BT-audio гарнитуры (от любого сотового
>> телефона подойдёт) для работы с SIP телефоном (twinkle):
>>
>> 1). Идём на http://bluetooth-alsa.sourceforge.net/, качаем всё из cvs
>> (plugz)
>
> В этом месте я начал сомневаться ...
И зря ;)
>
>> 2) собираем, устанавливаем
>>
>> 3) из скачанного CVS накладываем патч на ядро, как написано в этой
>> документации: http://bluetooth-alsa.sourceforge.net/build.html
>
> ... а в этом месте я удостоверился, что это письмо - диверсия. :)
Нет, это некий мануал для тех, кто хочет это всё помантейнить ;)
>
> Райдер, а существует для этого более человеческий способ? У
> какого-нибудь дистра это работает из коробки?
>
Из коробки новая схема (без ядерных модулей alsa bt_sco) не работает
пока что ни в одном дистрибутиве, насколько я нашёл.
Дело в том, что точно так же можно заставить работать Bluetooth
стерео-наушники (a2dp профиль)
собственно это письмо можно расценивать как стартовый мануал к желающим
упакетить это всё в Sisyphus. всё собирается без проблем.
Rgds,
Rider
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2007-01-30 9:51 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-01-29 16:31 [sisyphus] Настройка Bluetooth гарнитуры для работы с SIP телефоном в Sisyphus Anton Farygin
2007-01-30 5:41 ` Ildar Mulyukov
2007-01-30 9:51 ` Anton Farygin
ALT Linux Sisyphus discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
public-inbox-index sisyphus
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.sisyphus
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git