Re: idea: WWAN enable/disable



On Sun, 2009-06-14 at 21:06 +0200, Marcel Holtmann wrote:
> Hi Bastien,
> 
> > > > > hows about adding a option to enable/disable WWAN, same like the feature
> > > > > to en/disable wireless (gnomeapplet: right-click > checkbox)
> > > > > 
> > > > > on my lenovo-notebook it is quite simple to do it
> > > > > 
> > > > > to enable: echo enable > /proc/acpi/ibm/wan
> > > > > to disable: echo disable > /proc/acpi/ibm/wan
> > > > > to get status: cat /proc/acpi/ibm/wan
> > > > 
> > > > There's already killswitch support in NetworkManager, just make sure
> > > > that the method for accessing those is supported in HAL.
> > > > 
> > > > Not sure how that's going to be handled in the post-HAL world, Dan?
> > > 
> > > starting with 2.6.31 we do have a proper /dev/rfkill interface that can
> > > do all this properly without having to involve HAL, udev or similar.
> > 
> > Goodie, will have to move gnome-bluetooth to using that scheme.
> > 
> > Do you have any references to the API/ioctls for it?
> 
> it is pretty simple actually. Check include/linux/rfkill.h and it is
> just poll, read and write. Only one ioctl for rfkill-input replacement
> in the future, but that is unimportant and will go away. That is it.
> 
> http://git.sipsolutions.net/gitweb.cgi?p=rfkill.git;a=summary
> 
> This contains a really simple rfkill userspace tool.

Looks good. Hopefully one of Dan or myself will pick it up and wrap it
in GObject goodness to share in NM and gnome-bluetooth.

Cheers



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]