* bluez-gnome: how to turn adapter off?
@ 2008-09-29 15:59 Stefan Seyfried
2008-09-29 16:05 ` Bastien Nocera
0 siblings, 1 reply; 9+ messages in thread
From: Stefan Seyfried @ 2008-09-29 15:59 UTC (permalink / raw)
To: linux-bluetooth
Hi,
I now got several bugreports from people searching for the button to turn
their bluetooth device off in the bluetooth-applet. I seem to remember that
there was the setting "off" (in addition to "Hidden", "Always visible",
"Temporary visible") in previous versions. So what's the rationale for
removing it (users seem to expect to find it there)? And if I remember
incorrectly: could we place such a button there?
Thanks,
Stefan
--
Stefan Seyfried
R&D Team Mobile Devices | "Any ideas, John?"
SUSE LINUX Products GmbH, Nürnberg | "Well, surrounding them's out."
This footer brought to you by insane German lawmakers:
SUSE Linux Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg)
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: bluez-gnome: how to turn adapter off?
2008-09-29 15:59 bluez-gnome: how to turn adapter off? Stefan Seyfried
@ 2008-09-29 16:05 ` Bastien Nocera
2008-09-29 16:20 ` Stefan Seyfried
0 siblings, 1 reply; 9+ messages in thread
From: Bastien Nocera @ 2008-09-29 16:05 UTC (permalink / raw)
To: Stefan Seyfried; +Cc: linux-bluetooth
On Mon, 2008-09-29 at 17:59 +0200, Stefan Seyfried wrote:
> Hi,
>
> I now got several bugreports from people searching for the button to turn
> their bluetooth device off in the bluetooth-applet. I seem to remember that
> there was the setting "off" (in addition to "Hidden", "Always visible",
> "Temporary visible") in previous versions. So what's the rationale for
> removing it (users seem to expect to find it there)? And if I remember
> incorrectly: could we place such a button there?
There was never an "off" switch. There was:
- Other devices can connect
- Visible and connectable for other devices
- Limited discoverable and connectable
The last 2 were folded into a single option.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: bluez-gnome: how to turn adapter off?
2008-09-29 16:05 ` Bastien Nocera
@ 2008-09-29 16:20 ` Stefan Seyfried
2008-09-29 20:39 ` Bastien Nocera
2008-09-29 23:43 ` Marcel Holtmann
0 siblings, 2 replies; 9+ messages in thread
From: Stefan Seyfried @ 2008-09-29 16:20 UTC (permalink / raw)
To: Bastien Nocera; +Cc: linux-bluetooth
Bastien Nocera wrote:
> On Mon, 2008-09-29 at 17:59 +0200, Stefan Seyfried wrote:
>> Hi,
>>
>> I now got several bugreports from people searching for the button to turn
>> their bluetooth device off in the bluetooth-applet. I seem to remember that
>> there was the setting "off" (in addition to "Hidden", "Always visible",
>> "Temporary visible") in previous versions. So what's the rationale for
>> removing it (users seem to expect to find it there)? And if I remember
>> incorrectly: could we place such a button there?
>
> There was never an "off" switch. There was:
> - Other devices can connect
> - Visible and connectable for other devices
> - Limited discoverable and connectable
>
> The last 2 were folded into a single option.
Ok, so I remembered wrong ;-) How about adding a "disable this adapter"
option? Would a patch that implements this be welcome?
--
Stefan Seyfried
R&D Team Mobile Devices | "Any ideas, John?"
SUSE LINUX Products GmbH, Nürnberg | "Well, surrounding them's out."
This footer brought to you by insane German lawmakers:
SUSE Linux Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg)
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: bluez-gnome: how to turn adapter off?
2008-09-29 16:20 ` Stefan Seyfried
@ 2008-09-29 20:39 ` Bastien Nocera
2008-09-29 23:44 ` Marcel Holtmann
2008-09-30 3:18 ` Marcel Holtmann
2008-09-29 23:43 ` Marcel Holtmann
1 sibling, 2 replies; 9+ messages in thread
From: Bastien Nocera @ 2008-09-29 20:39 UTC (permalink / raw)
To: Stefan Seyfried; +Cc: linux-bluetooth
On Mon, 2008-09-29 at 18:20 +0200, Stefan Seyfried wrote:
<snip>
> Ok, so I remembered wrong ;-) How about adding a "disable this adapter"
> option? Would a patch that implements this be welcome?
I'd like a patch implementing HAL killswitching. DannyK can explain to
you how that's supposed to work.
I saw this as a single toggle menu item in the right-click, allowing you
to enable/disable the main Bluetooth adapter on laptops. If there's a
killswitch present, and there's 0 or 1 adapter (and the adapter matches
the expected device) then the Bluetooth icon would shown grayed out.
This would probably also require more work like this:
<match key="@info.parent:system.product" contains="VGN-S1XP">
<merge key="killswitch.expected_usb_vendor_id"
type="int">0x44e</merge>
<merge key="killswitch.expected_usb_product_id"
type="int">0x3007</merge>
</match>
To make sure the killswitch controls (or tries to control) the correct
adapter.
Cheers
^ permalink raw reply [flat|nested] 9+ messages in thread* Re: bluez-gnome: how to turn adapter off?
2008-09-29 20:39 ` Bastien Nocera
@ 2008-09-29 23:44 ` Marcel Holtmann
2008-09-30 3:18 ` Marcel Holtmann
1 sibling, 0 replies; 9+ messages in thread
From: Marcel Holtmann @ 2008-09-29 23:44 UTC (permalink / raw)
To: Bastien Nocera; +Cc: Stefan Seyfried, linux-bluetooth
Hi Bastien,
> > Ok, so I remembered wrong ;-) How about adding a "disable this adapter"
> > option? Would a patch that implements this be welcome?
>
> I'd like a patch implementing HAL killswitching. DannyK can explain to
> you how that's supposed to work.
>
> I saw this as a single toggle menu item in the right-click, allowing you
> to enable/disable the main Bluetooth adapter on laptops. If there's a
> killswitch present, and there's 0 or 1 adapter (and the adapter matches
> the expected device) then the Bluetooth icon would shown grayed out.
>
> This would probably also require more work like this:
> <match key="@info.parent:system.product" contains="VGN-S1XP">
> <merge key="killswitch.expected_usb_vendor_id"
> type="int">0x44e</merge>
> <merge key="killswitch.expected_usb_product_id"
> type="int">0x3007</merge>
> </match>
can we not just reference the UDI the killswitch belongs to. The vendor
and product things can be misleading.
Regards
Marcel
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: bluez-gnome: how to turn adapter off?
2008-09-29 20:39 ` Bastien Nocera
2008-09-29 23:44 ` Marcel Holtmann
@ 2008-09-30 3:18 ` Marcel Holtmann
2008-09-30 10:17 ` Bastien Nocera
1 sibling, 1 reply; 9+ messages in thread
From: Marcel Holtmann @ 2008-09-30 3:18 UTC (permalink / raw)
To: Bastien Nocera; +Cc: Stefan Seyfried, linux-bluetooth
Hi Bastien,
> > Ok, so I remembered wrong ;-) How about adding a "disable this adapter"
> > option? Would a patch that implements this be welcome?
>
> I'd like a patch implementing HAL killswitching. DannyK can explain to
> you how that's supposed to work.
>
> I saw this as a single toggle menu item in the right-click, allowing you
> to enable/disable the main Bluetooth adapter on laptops. If there's a
> killswitch present, and there's 0 or 1 adapter (and the adapter matches
> the expected device) then the Bluetooth icon would shown grayed out.
so I added killswitch support to bluetooth-properties. Works pretty good
enough for me.
I like having a grayed out icon, but for that to work, we first need to
have some who actually draws it in all resolutions for us.
Regards
Marcel
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: bluez-gnome: how to turn adapter off?
2008-09-30 3:18 ` Marcel Holtmann
@ 2008-09-30 10:17 ` Bastien Nocera
2008-09-30 10:29 ` Marcel Holtmann
0 siblings, 1 reply; 9+ messages in thread
From: Bastien Nocera @ 2008-09-30 10:17 UTC (permalink / raw)
To: Marcel Holtmann; +Cc: Stefan Seyfried, linux-bluetooth
On Tue, 2008-09-30 at 05:18 +0200, Marcel Holtmann wrote:
> Hi Bastien,
>
> > > Ok, so I remembered wrong ;-) How about adding a "disable this adapter"
> > > option? Would a patch that implements this be welcome?
> >
> > I'd like a patch implementing HAL killswitching. DannyK can explain to
> > you how that's supposed to work.
> >
> > I saw this as a single toggle menu item in the right-click, allowing you
> > to enable/disable the main Bluetooth adapter on laptops. If there's a
> > killswitch present, and there's 0 or 1 adapter (and the adapter matches
> > the expected device) then the Bluetooth icon would shown grayed out.
>
> so I added killswitch support to bluetooth-properties. Works pretty good
> enough for me.
>
> I like having a grayed out icon, but for that to work, we first need to
> have some who actually draws it in all resolutions for us.
GTK+ doesn't use separate pixbufs for those type of icons, but generates
them on the fly with gdk_pixbuf_saturate_and_pixelate().
new_pixbuf = gdk_pixbuf_copy (original);
gdk_pixbuf_saturate_and_pixelate(original, new_pixbuf, 0.8, TRUE);
And then set "new_pixbuf" as the image for the status icon. This will be
a bit convoluted in the actual code as you're using icon names, and we'd
need to 1) know whether we have a killswitch, and whether it's enabled
and 2) modify the status icon to use the pixbuf.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: bluez-gnome: how to turn adapter off?
2008-09-30 10:17 ` Bastien Nocera
@ 2008-09-30 10:29 ` Marcel Holtmann
0 siblings, 0 replies; 9+ messages in thread
From: Marcel Holtmann @ 2008-09-30 10:29 UTC (permalink / raw)
To: Bastien Nocera; +Cc: Stefan Seyfried, linux-bluetooth
Hi Bastien,
> > > > Ok, so I remembered wrong ;-) How about adding a "disable this adapter"
> > > > option? Would a patch that implements this be welcome?
> > >
> > > I'd like a patch implementing HAL killswitching. DannyK can explain to
> > > you how that's supposed to work.
> > >
> > > I saw this as a single toggle menu item in the right-click, allowing you
> > > to enable/disable the main Bluetooth adapter on laptops. If there's a
> > > killswitch present, and there's 0 or 1 adapter (and the adapter matches
> > > the expected device) then the Bluetooth icon would shown grayed out.
> >
> > so I added killswitch support to bluetooth-properties. Works pretty good
> > enough for me.
> >
> > I like having a grayed out icon, but for that to work, we first need to
> > have some who actually draws it in all resolutions for us.
>
> GTK+ doesn't use separate pixbufs for those type of icons, but generates
> them on the fly with gdk_pixbuf_saturate_and_pixelate().
>
> new_pixbuf = gdk_pixbuf_copy (original);
> gdk_pixbuf_saturate_and_pixelate(original, new_pixbuf, 0.8, TRUE);
>
> And then set "new_pixbuf" as the image for the status icon. This will be
> a bit convoluted in the actual code as you're using icon names, and we'd
> need to 1) know whether we have a killswitch, and whether it's enabled
> and 2) modify the status icon to use the pixbuf.
as long as we have to poll the killswitch from HAL, this is never going
to get merged into bluez-gnome. I want async notifications.
Regards
Marcel
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: bluez-gnome: how to turn adapter off?
2008-09-29 16:20 ` Stefan Seyfried
2008-09-29 20:39 ` Bastien Nocera
@ 2008-09-29 23:43 ` Marcel Holtmann
1 sibling, 0 replies; 9+ messages in thread
From: Marcel Holtmann @ 2008-09-29 23:43 UTC (permalink / raw)
To: Stefan Seyfried; +Cc: Bastien Nocera, linux-bluetooth
Hi Stefan,
> >> I now got several bugreports from people searching for the button to turn
> >> their bluetooth device off in the bluetooth-applet. I seem to remember that
> >> there was the setting "off" (in addition to "Hidden", "Always visible",
> >> "Temporary visible") in previous versions. So what's the rationale for
> >> removing it (users seem to expect to find it there)? And if I remember
> >> incorrectly: could we place such a button there?
> >
> > There was never an "off" switch. There was:
> > - Other devices can connect
> > - Visible and connectable for other devices
> > - Limited discoverable and connectable
> >
> > The last 2 were folded into a single option.
>
> Ok, so I remembered wrong ;-) How about adding a "disable this adapter"
> option? Would a patch that implements this be welcome?
you might have been right, because some distros shipped a patch to add
an "off" selection to it. This wouldn't have done anything useful on the
desktop, but they did it without knowing what they are doing.
Regards
Marcel
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2008-09-30 10:29 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-29 15:59 bluez-gnome: how to turn adapter off? Stefan Seyfried
2008-09-29 16:05 ` Bastien Nocera
2008-09-29 16:20 ` Stefan Seyfried
2008-09-29 20:39 ` Bastien Nocera
2008-09-29 23:44 ` Marcel Holtmann
2008-09-30 3:18 ` Marcel Holtmann
2008-09-30 10:17 ` Bastien Nocera
2008-09-30 10:29 ` Marcel Holtmann
2008-09-29 23:43 ` Marcel Holtmann
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox