From: Anton Farygin <rider@altlinux.com> To: sisyphus@lists.altlinux.org Subject: [sisyphus] Настройка Bluetooth гарнитуры для работы с SIP телефоном в Sisyphus Date: Mon, 29 Jan 2007 19:31:16 +0300 Message-ID: <45BE2154.4050008@altlinux.com> (raw) Небольшой мануал по настройке 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
next reply other threads:[~2007-01-29 16:31 UTC|newest] Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top 2007-01-29 16:31 Anton Farygin [this message] 2007-01-30 5:41 ` Ildar Mulyukov 2007-01-30 9:51 ` Anton Farygin
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=45BE2154.4050008@altlinux.com \ --to=rider@altlinux.com \ --cc=sisyphus@lists.altlinux.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
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