From: Ian Molton <ian.molton@collabora.co.uk>
To: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
Cc: linux-acpi@vger.kernel.org
Subject: Re: Thinkpad X200s
Date: Wed, 02 Dec 2009 12:10:50 +0000 [thread overview]
Message-ID: <4B16594A.2000101@collabora.co.uk> (raw)
In-Reply-To: <20091130234706.GC29580@khazad-dum.debian.net>
Henrique de Moraes Holschuh wrote:
> That said, please play with the master_switch_mode parameter of the
> rfkill module. I personally cannot tolerate anything but
> master_switch_mode=1, and I dare think it might solve your problem :)
Sadly not. It looks like it should, and I've instrumented the rfkill
module to be sure the parameter is set, which it is. Debug log (WWAN)
follows. Bluetooth behaves the same way as WWAN - powers up after
killswitch toggle, regardless of its state prior to that.
# cat /sys/module/rfkill/parameters/master_switch_mode
1
prior to sleep:
# find /sys | grep rfkill..name | xargs cat
tpacpi_bluetooth_sw
tpacpi_wwan_sw
hci0
phy0
# find /sys | grep rfkill..state | xargs cat
1
1
1
1
Turn off WWAN vis /sys:
# echo 0 > /sys/devices/platform/thinkpad_acpi/rfkill/rfkill1/state
Verify it is off:
# find /sys | grep rfkill..state | xargs cat
1
0
1
1
Flip rfkill (hard) switch to off:
corwyn:/home/collabora# find /sys | grep rfkill..state | xargs cat
2
2
2
note: hci0 goes missing when the hard switch is used. (presumably usb
power loss)
Flip rfkill (hard) switch back on again:
corwyn:/home/collabora# find /sys | grep rfkill..state | xargs cat
1
1
1
1
> I think I can consider this patch approved and add your tested-by?
You can certainly add my tested-by for the sleep/resume path patch.
Tested-by: Ian Molton <ian.molton@collabora.co.uk>
> Does thinkpad-acpi tells
acpi -V -s does not list any wireless devices at all. dmesg has a few
mentions of thinkpad-acpi but only the rfkillswitch as far as wireless
devices.
Thanks for your quick response too :-)
-Ian
prev parent reply other threads:[~2009-12-02 12:11 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-27 11:20 Thinkpad X200s Ian Molton
2009-11-27 22:11 ` Henrique de Moraes Holschuh
2009-11-28 12:07 ` Henrique de Moraes Holschuh
2009-11-28 12:49 ` Ian Molton
2009-11-28 18:15 ` Henrique de Moraes Holschuh
2009-11-30 9:50 ` Ian Molton
2009-11-30 23:47 ` Henrique de Moraes Holschuh
2009-12-02 12:10 ` Ian Molton [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4B16594A.2000101@collabora.co.uk \
--to=ian.molton@collabora.co.uk \
--cc=hmh@hmh.eng.br \
--cc=linux-acpi@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox