ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
From: Michael Shigorin <mike@osdn.org.ua>
To: sisyphus@lists.altlinux.org
Cc: Andrey Rahmatullin <wrar@altlinux.ru>
Subject: [sisyphus] [SOLVED] Re:  bluetooth & passkey-agent
Date: Fri, 10 Dec 2010 20:50:13 +0200
Message-ID: <20101210185013.GA22017@osdn.org.ua> (raw)
In-Reply-To: <20100331181842.GI5726@wrars-comp.wrarsdomain>

On Thu, Apr 01, 2010 at 12:18:42AM +0600, Andrey Rahmatullin wrote:
> > Поиск по ресурсам (в том числе и altlinux) дал следующий результат
> > - в консоли нужно использовать passkey-agent.
> Брр.
> 
> > И https://bugzilla.altlinux.org/show_bug.cgi?id=10176
> 3 года прошло.
> 
> > Но этой программы нет ни в одном пакете.
> > Ее нет даже в исходниках bluez-4.63.
> Конечно, она 1.5 года назад заменена на agent, который, впрочем,
> по-прежнему остаётся лишь примером использования API.
> 
> > Какой способ работает для ввода PIN-кода в версии 4.63?
> Как и раньше, любой правильный GUI-апплет, например blueman.

Любые "правильные" GUI зависят от наличия библиотек для этого
самого GUI, что может быть не факт.  Далее, автоматизации это
всё подлежит куда хуже.

Короче, получилось сделать в CLI по мотивам
http://forums.gentoo.org/viewtopic-p-6022104.html#6022104
(bluez-4.81-alt1, на телефоне разрешена временная видимость):

service bluetoothd start
hcitool scan	# записываем адрес удалённого устройства (BD_REMOTE)
hciconfig	# записываем адрес локального устройства (BD_LOCAL)
cd /var/lib/bluetooth
mkdir BD_LOCAL	# в смысле xx:xx:xx:xx:xx:xx
cd BD_LOCAL
echo "BD_REMOTE PINC" >> pincodes	# PIN -- например, 5460

Можно ещё на трубе сказать, чтоб не переспрашивало для данного
спаренного устройства.

PS: и не ленитесь делать бэкапы адресной книжки -- на прошлой
неделе кто-то (точнее, почти наверняка известно, кто именно)
в больнице позарился на старенькую 6230i с более чем полтыщей
контактов, а последний бэкап был ещё прошлым ноябрём -- дальше
пришлось переезжать на bluez4 и долго ругаться по этому поводу.
Ну да зато получилось подобрать и найти живьём 6303 classic
(так и не оценив труды нокиевских маркетоидов, обкромсавших
ряд полезных вещей и назвавших результат 6303i).  Так что с кем
обменивались телефонами в этом году -- прошу прислать заново.

PPS: закинул на вики: http://www.altlinux.org/Bluetooth

-- 
 ---- WBR, Michael Shigorin <mike@altlinux.ru>
  ------ Linux.Kiev http://www.linux.kiev.ua/


      parent reply	other threads:[~2010-12-10 18:50 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-31 18:11 [sisyphus] " Dmitry
2010-03-31 18:18 ` Andrey Rahmatullin
2010-04-01  3:49   ` Ildar Mulyukov
2010-04-01  6:15     ` Andrey Rahmatullin
2010-04-01  6:44       ` Ildar Mulyukov
2010-04-01  7:52         ` Andrey Rahmatullin
2010-04-01  8:25           ` Ildar Mulyukov
2010-04-01  8:29             ` Andrey Rahmatullin
2010-12-10 18:50   ` Michael Shigorin [this message]

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=20101210185013.GA22017@osdn.org.ua \
    --to=mike@osdn.org.ua \
    --cc=shigorin@gmail.com \
    --cc=sisyphus@lists.altlinux.org \
    --cc=wrar@altlinux.ru \
    /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