All the mail mirrored from lore.kernel.org
 help / color / mirror / Atom feed
* rfkill bound to a switch
@ 2016-07-28  8:02 Kai Hendry
  2016-08-01  9:16 ` Johannes Berg
  0 siblings, 1 reply; 2+ messages in thread
From: Kai Hendry @ 2016-07-28  8:02 UTC (permalink / raw
  To: linux-wireless

Hi there,

Since laptops typically have a toggle button for killing and enabled
wifi, how does one supposed to bind rfkill like a toggle?

I.e. knowing which state you are in so you can call {block,unblock}
accordingly?

Parsing event or list output seems non-trivial.


Kind regards,

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

* Re: rfkill bound to a switch
  2016-07-28  8:02 rfkill bound to a switch Kai Hendry
@ 2016-08-01  9:16 ` Johannes Berg
  0 siblings, 0 replies; 2+ messages in thread
From: Johannes Berg @ 2016-08-01  9:16 UTC (permalink / raw
  To: Kai Hendry, linux-wireless

On Thu, 2016-07-28 at 16:02 +0800, Kai Hendry wrote:
> Hi there,
> 
> Since laptops typically have a toggle button for killing and enabled
> wifi, how does one supposed to bind rfkill like a toggle?
> 
> I.e. knowing which state you are in so you can call {block,unblock}
> accordingly?
> 
> Parsing event or list output seems non-trivial.
> 

Don't use the rfkill tool - just open /dev/rfkill yourself, the API is
really simple.

johannes

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

end of thread, other threads:[~2016-08-01  9:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-07-28  8:02 rfkill bound to a switch Kai Hendry
2016-08-01  9:16 ` Johannes Berg

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.