public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
From: Bastien Nocera <hadess@hadess.net>
To: Sebastian Spaeth <Sebastian@SSpaeth.de>
Cc: linux-bluetooth@vger.kernel.org
Subject: Re: bluez-gnome wizard deficiencies make it mostly useless
Date: Wed, 12 Nov 2008 20:29:57 +0100	[thread overview]
Message-ID: <1226518197.15397.11.camel@snoogens.fab.redhat.com> (raw)
In-Reply-To: <491AB358.9000209@SSpaeth.de>

On Wed, 2008-11-12 at 11:43 +0100, Sebastian Spaeth wrote:
<snip>
> I caused quite a ruckus in this gnome bug yesterday:
> http://bugzilla.gnome.org/show_bug.cgi?id=560315

You didn't cause a ruckus, people that don't actually read the comments
did.

> Currently the bluez-gnome connection wizard fails invariably for all BT
> devices that don't have a keyboard and are not special cased in source code.

Mice, tablets, keyboards, headsets, hands-free, phones work. Only GPS
devices and mice, and headsets that don't use '0000' as the PIN codes
don't work.

That's not very many, and I managed to pair every single one of my
devices without a problem (and I have quite a lot of them).

> In my case this happens:
> I select the "setup new device" from the bluetooth-applet. Select
> "eGPS-397" which is my BT GPS device. Next, the "connecting" page comes
> up with a brief flash of some "type in random PIN" or something. It
> dissappears within a fraction of a second without giving me the chance
> to interact at all, leading to the page "pairing failed". This makes the
> wizard useless for all BT devices that cannot enter PINs and that are
> not special cased.

We know about that problem. I have a patch in my tree for your
particular GPS device, I'm still waiting for you to file a bug with the
details spelled out.

> Bastien Nocera thinks it would be a bad idea to allow users to enter a
> fixed pin (as a second choice to a default random PIN) via dialog and
> asked to enter a new bug for each device to add it as another special
> case. This is the wrong approach IMHO. Tracking all the devices out
> there and their PINs will be a losing battle and bloat the code. With a
> GPS device product lifecycle of a year, those devices will be outdated
> until the code ships in a Linux distribution.

I didn't say it was a bad idea to allow users to enter a fixed PIN, I
said it would be a bad idea to replace random PINs altogether with
user-provided PINs.

> I see 2 solutions and I would like input in what bluez-gnome devs think:
> 1) Try to pair with random PIN if that fails try "0000", "1234", "1111".
> This would at least cover about 90% of all devices and only special case
> the rest.

That wouldn't work, a lot of devices will get out of pairing mode after
an unsuccesful pairing.

> 2) Prepopulate a Random PIN in a field but allow the user to override
> that PIN. After all he should know best what PIN to use.

That's as bad as making the user enter the PIN themselves.

My solution would be to have a button at the bottom of the device
selection page called "PIN options" (or similar). The button would popup
a dialogue with options:
[X] Automatic PIN selection

[ ] Force a random PIN number

[ ] Use fixed PIN code:
        [X] '0000' (most headsets, mice and GPS devices)
        [ ] '1111'
        [ ] '1234'
        [ ] Custom: ___________

Wording is obviously up for discussion. The code is probably an
afternoon's work for somebody comfortable with GTK+, maybe a bit longer
to get Marcel happy with it ;)

Cheers


  parent reply	other threads:[~2008-11-12 19:29 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <491AB358.9000209@SSpaeth.de>
2008-11-12 18:39 ` bluez-gnome wizard deficiencies make it mostly useless Jim Carter
2008-11-12 19:29 ` Bastien Nocera [this message]
2008-11-12 19:59   ` Jim Carter
2008-11-13  9:40   ` Sebastian Spaeth
2008-11-12  9:17 Sebastian Spaeth

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=1226518197.15397.11.camel@snoogens.fab.redhat.com \
    --to=hadess@hadess.net \
    --cc=Sebastian@SSpaeth.de \
    --cc=linux-bluetooth@vger.kernel.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
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox