public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
* Persisting power state when set via rfkill directly
@ 2009-11-03 15:55 Ross Burton
  2009-11-03 16:52 ` Marcel Holtmann
  0 siblings, 1 reply; 6+ messages in thread
From: Ross Burton @ 2009-11-03 15:55 UTC (permalink / raw)
  To: linux-bluetooth

[-- Attachment #1: Type: text/plain, Size: 704 bytes --]

Hi,

I see that bluez has support for saving the current power state to disk
(in /var/lib/bluetooth/[id]/config) when the Powered adaptor property is
toggled, so that the same state can be restored when restarted.
However, this only works if the powered state is toggled via the Bluez
DBus API, applications which directly touch rfkill (such as
gnome-bluetooth) don't cause the current mode to be persisted.

>>From a quick look at the code I'd say that rfkill_event() shouldn't
return early if the adaptor was powered down and instead get the adaptor
pointer and write the new mode state.  Does this sound reasonable?

Ross
-- 
Intel Open Source Technology Centre
http://oss.intel.com/

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 190 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2009-11-05 16:54 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-03 15:55 Persisting power state when set via rfkill directly Ross Burton
2009-11-03 16:52 ` Marcel Holtmann
2009-11-03 17:04   ` Bastien Nocera
2009-11-03 17:16     ` Marcel Holtmann
2009-11-05 12:37       ` Bastien Nocera
2009-11-05 16:54         ` Marcel Holtmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox