* /proc/acpi/ibm/wan stopped appearing
@ 2008-08-27 22:11 Jeremy Fitzhardinge
2008-08-27 23:12 ` Henrique de Moraes Holschuh
0 siblings, 1 reply; 7+ messages in thread
From: Jeremy Fitzhardinge @ 2008-08-27 22:11 UTC (permalink / raw)
To: Henrique de Moraes Holschuh, Linux Kernel Mailing List
/proc/acpi/ibm/wan stopped appearing for me at some point recently
(bluetooth is still there). I guess this has something to do with the
RFKILL changes, but I haven't looked at them in detail. I guess my
question is: is this expected, and what's the "proper" way to control
the WWAN radio now?
Thanks,
J
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: /proc/acpi/ibm/wan stopped appearing
2008-08-27 22:11 /proc/acpi/ibm/wan stopped appearing Jeremy Fitzhardinge
@ 2008-08-27 23:12 ` Henrique de Moraes Holschuh
2008-08-27 23:27 ` Jeremy Fitzhardinge
0 siblings, 1 reply; 7+ messages in thread
From: Henrique de Moraes Holschuh @ 2008-08-27 23:12 UTC (permalink / raw)
To: Jeremy Fitzhardinge; +Cc: Linux Kernel Mailing List
On Wed, 27 Aug 2008, Jeremy Fitzhardinge wrote:
> /proc/acpi/ibm/wan stopped appearing for me at some point recently
> (bluetooth is still there). I guess this has something to do with the
> RFKILL changes, but I haven't looked at them in detail. I guess my
> question is: is this expected, and what's the "proper" way to control
> the WWAN radio now?
1. It is not expected, I have not removed /proc interface support for
anything. Look at the thinkpad-acpi documentation, it is always (and I do
mean ALWAYS) up-to-date.
The /proc interface for thinkpad-acpi is not going away for a while yet,
unless ACPI itself decides that /proc/acpi must die.
2. The proper way to control ANY radio's rfkill functions is through the
rfkill sysfs interface. That includes thinkpad-acpi's bluetooth and WWAN.
IOW, we may have a regression here. Please compile thinkpad-acpi with debug
mode enabled, load it with the "debug=0xffff" and "experimental=1"
parameters (as far as I remember, WWAN requires "experimental=1" to work,
without that it will NOT load, and you will NOT get /proc/acpi/ibm/wan or
anything else WWAN related from thinkpad-acpi), and send me the resulting
log output from thinkpad-acpi.
--
"One disk to rule them all, One disk to find them. One disk to bring
them all and in the darkness grind them. In the Land of Redmond
where the shadows lie." -- The Silicon Valley Tarot
Henrique Holschuh
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: /proc/acpi/ibm/wan stopped appearing
2008-08-27 23:12 ` Henrique de Moraes Holschuh
@ 2008-08-27 23:27 ` Jeremy Fitzhardinge
2008-08-28 1:46 ` Henrique de Moraes Holschuh
0 siblings, 1 reply; 7+ messages in thread
From: Jeremy Fitzhardinge @ 2008-08-27 23:27 UTC (permalink / raw)
To: Henrique de Moraes Holschuh; +Cc: Linux Kernel Mailing List
Henrique de Moraes Holschuh wrote:
> 2. The proper way to control ANY radio's rfkill functions is through the
> rfkill sysfs interface. That includes thinkpad-acpi's bluetooth and WWAN.
>
Do you know what UI-level programs make use of these interfaces now?
> IOW, we may have a regression here. Please compile thinkpad-acpi with debug
> mode enabled, load it with the "debug=0xffff" and "experimental=1"
> parameters (as far as I remember, WWAN requires "experimental=1" to work,
> without that it will NOT load, and you will NOT get /proc/acpi/ibm/wan or
> anything else WWAN related from thinkpad-acpi), and send me the resulting
> log output from thinkpad-acpi.
Actually, that may be it. I think I used to load it as a module, and
modprobe.conf set experimental=1, but I don't have an equivalent on the
kernel command line.
I think I'll submit a patch to remove the need for experimental; it's
been working fine for me for 3 years now.
J
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: /proc/acpi/ibm/wan stopped appearing
2008-08-27 23:27 ` Jeremy Fitzhardinge
@ 2008-08-28 1:46 ` Henrique de Moraes Holschuh
2008-08-28 4:04 ` [PATCH] ACPI: thinkpad-acpi: wan radio control is not experimental Jeremy Fitzhardinge
0 siblings, 1 reply; 7+ messages in thread
From: Henrique de Moraes Holschuh @ 2008-08-28 1:46 UTC (permalink / raw)
To: Jeremy Fitzhardinge; +Cc: Linux Kernel Mailing List
On Wed, 27 Aug 2008, Jeremy Fitzhardinge wrote:
> Henrique de Moraes Holschuh wrote:
> > 2. The proper way to control ANY radio's rfkill functions is through the
> > rfkill sysfs interface. That includes thinkpad-acpi's bluetooth and WWAN.
> >
>
> Do you know what UI-level programs make use of these interfaces now?
Anything that does it through HAL when HAL gets updated, I suppose.
I don't really care for the network management GUIs, I have never seen one
that worked properly, so I dropped them all for good. The UIs I use are
wpa-supplicant's config file, iproute and friends, and Debian's ifupdown
crap.
The only UI I trust enough to touch rfkill control on my machines is the
kernel itself (rfkill-input is an UI), so I guess you will have to ask
someone else about it normal user-level UIs and GUIs for rfkill :(
Probably in the linux-wireless ML, instead of here in LKML.
> > IOW, we may have a regression here. Please compile thinkpad-acpi with debug
> > mode enabled, load it with the "debug=0xffff" and "experimental=1"
> > parameters (as far as I remember, WWAN requires "experimental=1" to work,
> > without that it will NOT load, and you will NOT get /proc/acpi/ibm/wan or
> > anything else WWAN related from thinkpad-acpi), and send me the resulting
> > log output from thinkpad-acpi.
>
> Actually, that may be it. I think I used to load it as a module, and
> modprobe.conf set experimental=1, but I don't have an equivalent on the
> kernel command line.
thinkpad-acpi.experimental=1 in the kernel command line should do it.
> I think I'll submit a patch to remove the need for experimental; it's
> been working fine for me for 3 years now.
It is in my TODO list, so you don't need to bother. But if you do, here are
my requirements for patches to be accepted, so that you don't waste your
time:
1. Do it based on thinkpad-acpi in Linus' mainline, and give the patch a
proper title prefix ("ACPI: thinkpad-acpi: "), title and commit message.
Sign it off, and CC me.
2. UPDATE THE DOCUMENTATION ALONG WITH THE CODE, in the SAME patch. That
means Documentation/laptops/thinkpad-acpi.txt.
Plus the usual "test it first", etc. But it will be an extremely trivial
one-liner patch to the code, so I wouldn't worry much about that ;-) It is
the doc update that will make up most of the patch.
--
"One disk to rule them all, One disk to find them. One disk to bring
them all and in the darkness grind them. In the Land of Redmond
where the shadows lie." -- The Silicon Valley Tarot
Henrique Holschuh
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH] ACPI: thinkpad-acpi: wan radio control is not experimental
2008-08-28 1:46 ` Henrique de Moraes Holschuh
@ 2008-08-28 4:04 ` Jeremy Fitzhardinge
2008-08-28 13:39 ` Henrique de Moraes Holschuh
2008-08-28 17:25 ` Andi Kleen
0 siblings, 2 replies; 7+ messages in thread
From: Jeremy Fitzhardinge @ 2008-08-28 4:04 UTC (permalink / raw)
To: Henrique de Moraes Holschuh; +Cc: Linux Kernel Mailing List
The WWAN radio control has been working well for over three years,
and is no longer experimental.
Signed-off-by: Jeremy Fitzhardinge <jeremy@goop.org>
---
Documentation/laptops/thinkpad-acpi.txt | 11 +++--------
drivers/misc/thinkpad_acpi.c | 1 -
2 files changed, 3 insertions(+), 9 deletions(-)
===================================================================
--- a/Documentation/laptops/thinkpad-acpi.txt
+++ b/Documentation/laptops/thinkpad-acpi.txt
@@ -44,7 +44,7 @@
- LCD brightness control
- Volume control
- Fan control and monitoring: fan speed, fan enable/disable
- - Experimental: WAN enable and disable
+ - WAN enable and disable
A compatibility table by model and feature is maintained on the web
site, http://ibm-acpi.sf.net/. I appreciate any success or failure
@@ -1375,17 +1375,12 @@
would be the safest choice, though).
-EXPERIMENTAL: WAN
------------------
+WAN
+---
procfs: /proc/acpi/ibm/wan
sysfs device attribute: wwan_enable (deprecated)
sysfs rfkill class: switch "tpacpi_wwan_sw"
-
-This feature is marked EXPERIMENTAL because the implementation
-directly accesses hardware registers and may not work as expected. USE
-WITH CAUTION! To use this feature, you need to supply the
-experimental=1 parameter when loading the module.
This feature shows the presence and current state of a W-WAN (Sierra
Wireless EV-DO) device.
===================================================================
--- a/drivers/misc/thinkpad_acpi.c
+++ b/drivers/misc/thinkpad_acpi.c
@@ -3086,7 +3086,6 @@
.read = wan_read,
.write = wan_write,
.exit = wan_exit,
- .flags.experimental = 1,
};
/*************************************************************************
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] ACPI: thinkpad-acpi: wan radio control is not experimental
2008-08-28 4:04 ` [PATCH] ACPI: thinkpad-acpi: wan radio control is not experimental Jeremy Fitzhardinge
@ 2008-08-28 13:39 ` Henrique de Moraes Holschuh
2008-08-28 17:25 ` Andi Kleen
1 sibling, 0 replies; 7+ messages in thread
From: Henrique de Moraes Holschuh @ 2008-08-28 13:39 UTC (permalink / raw)
To: Jeremy Fitzhardinge; +Cc: Linux Kernel Mailing List
On Wed, 27 Aug 2008, Jeremy Fitzhardinge wrote:
> The WWAN radio control has been working well for over three years,
> and is no longer experimental.
>
> Signed-off-by: Jeremy Fitzhardinge <jeremy@goop.org>
Acked-by: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
I have queued it and since it is an one-liner with zero chance of
causing problems, I will ask Andi to merge it for 2.6.27. If he doesn't
agree, it will be merged for 2.6.28.
--
"One disk to rule them all, One disk to find them. One disk to bring
them all and in the darkness grind them. In the Land of Redmond
where the shadows lie." -- The Silicon Valley Tarot
Henrique Holschuh
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] ACPI: thinkpad-acpi: wan radio control is not experimental
2008-08-28 4:04 ` [PATCH] ACPI: thinkpad-acpi: wan radio control is not experimental Jeremy Fitzhardinge
2008-08-28 13:39 ` Henrique de Moraes Holschuh
@ 2008-08-28 17:25 ` Andi Kleen
1 sibling, 0 replies; 7+ messages in thread
From: Andi Kleen @ 2008-08-28 17:25 UTC (permalink / raw)
To: Jeremy Fitzhardinge
Cc: Henrique de Moraes Holschuh, Linux Kernel Mailing List
Jeremy Fitzhardinge <jeremy@goop.org> writes:
> The WWAN radio control has been working well for over three years,
> and is no longer experimental.
Queued thanks. I can put it into the next .27 update.
-Andi
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2008-08-28 17:25 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-27 22:11 /proc/acpi/ibm/wan stopped appearing Jeremy Fitzhardinge
2008-08-27 23:12 ` Henrique de Moraes Holschuh
2008-08-27 23:27 ` Jeremy Fitzhardinge
2008-08-28 1:46 ` Henrique de Moraes Holschuh
2008-08-28 4:04 ` [PATCH] ACPI: thinkpad-acpi: wan radio control is not experimental Jeremy Fitzhardinge
2008-08-28 13:39 ` Henrique de Moraes Holschuh
2008-08-28 17:25 ` Andi Kleen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox