2007-04-30 15:16:41

by Stanislav Brabec

[permalink] [raw]
Subject: [Bluez-devel] bluez-gnome: No GUI way to switch from "off" mode

Hallo.

I am just curious, whether no chance to enable Bluetooth from the GNOME
Bluetooth is deliberate or not. I guess, that it is not deliberate.

How to reproduce:
1. apitest SetMode off
2. Run bluetooth-properties.
3. Mode selection is completely shaded out and there is no way to enable
Bluetooth.

Proposed change:
- Convert "Mode of operation" radio buttons to checkboxes.
- "Other devices can connect":
Will never be shaded out.
If it is off: Mode is off.
If it is on, than "Visible and connectable for other devices" is
unshaded.
- "Visible and connectable for other devices":
If it is unshaded and off: Mode is connectable
If it is unshaded and on: Mode is discoverable and "Make adapter
invisible after" is unshaded.

Is it more acceptable behavior?

Reference:
Bluetooth in GNOME does not work in default installation
https://bugzilla.novell.com/show_bug.cgi?id=3D226137

-- =

Best Regards / S pozdravem,

Stanislav Brabec
software developer
---------------------------------------------------------------------
SUSE LINUX, s. r. o. e-mail: [email protected]
Lihovarsk=E1 1060/12 tel: +420 284 028 966
190 00 Praha 9 fax: +420 284 028 951
Czech Republic http://www.suse.cz/


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel


2007-05-04 06:45:52

by Marcel Holtmann

[permalink] [raw]
Subject: Re: [Bluez-devel] bluez-gnome: No GUI way to switch from "off" mode

Hi Bastien,

> > > Not quite sure if this was intended or not ... attachted is the suggested
> > > change by Stanislav.
> >
> > Here is an alternative patch. The same improvement but different GUI
> > (see attached screenshots). I have changed second checkbox label.
> >
> > Please decide what looks more intuitive and check-in.
>
> This should optionally (ie. if HAL is available at compile and run-time)
> use the new HAL API that allows to enable/disable builtin Bluetooth
> devices completely (ie. not just not configured to accept anything, but
> completely disabled, unplugged, and not consuming one bit of power).
>
> The HAL API is pretty straight forward:
> http://people.freedesktop.org/~david/hal-spec/hal-spec.html#device-properties-killswitch
> and
> http://people.freedesktop.org/~david/hal-spec/hal-spec.html#interface-device-killswitch
>
> It's implemented for Sony and Dell laptops, with another opened RFE for
> IBM laptops:
> http://bugs.freedesktop.org/show_bug.cgi?id=10053
>
> It should be dead-easy to implement for someone with access to an IBM
> laptop (unlike me).

the off operation doesn't make any real sense for desktop system. It is
mainly there for embedded systems without HAL or where the kernel driver
has to put the device into deep-sleep mode.

An integration with HAL's killswitch is the correct way.

Regards

Marcel



-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

2007-05-03 23:32:17

by Bastien Nocera

[permalink] [raw]
Subject: Re: [Bluez-devel] bluez-gnome: No GUI way to switch from "off" mode

On Thu, 2007-05-03 at 19:25 +0200, Stanislav Brabec wrote:
> Daniel Gollub wrote:
>
> > Not quite sure if this was intended or not ... attachted is the suggested
> > change by Stanislav.
>
> Here is an alternative patch. The same improvement but different GUI
> (see attached screenshots). I have changed second checkbox label.
>
> Please decide what looks more intuitive and check-in.

This should optionally (ie. if HAL is available at compile and run-time)
use the new HAL API that allows to enable/disable builtin Bluetooth
devices completely (ie. not just not configured to accept anything, but
completely disabled, unplugged, and not consuming one bit of power).

The HAL API is pretty straight forward:
http://people.freedesktop.org/~david/hal-spec/hal-spec.html#device-properties-killswitch
and
http://people.freedesktop.org/~david/hal-spec/hal-spec.html#interface-device-killswitch

It's implemented for Sony and Dell laptops, with another opened RFE for
IBM laptops:
http://bugs.freedesktop.org/show_bug.cgi?id=10053

It should be dead-easy to implement for someone with access to an IBM
laptop (unlike me).

--
Bastien Nocera <[email protected]>


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel