Re: idea: WWAN enable/disable
- From: Marcel Holtmann <marcel holtmann org>
- To: Bastien Nocera <hadess hadess net>
- Cc: networkmanager-list gnome org
- Subject: Re: idea: WWAN enable/disable
- Date: Sun, 14 Jun 2009 21:06:53 +0200
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.
Regards
Marcel
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]