All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: Wifi switch not working, linux on IdeaPad S205
@ 2011-05-31 22:50 Joey Lee
  2011-05-31 23:42 ` Florian Heyer
  0 siblings, 1 reply; 37+ messages in thread
From: Joey Lee @ 2011-05-31 22:50 UTC (permalink / raw)
  To: Joey Lee; +Cc: ike.pan, heyho, platform-driver-x86

於 二,2011-05-31 於 13:58 +0000,joeyli(Joey Lee) 提到:
> Hi Florian, 
> 
> 於 二,2011-05-31 於 15:02 +0200,Florian Heyer 提到:
> > On 05/31/2011 11:42 AM, Joey Lee wrote:
> > > Just checked your DSDT, it declared the AMW0 methods, I agreed Ike's
> > > suggestion that will be better you direct test acer-wmi on your machine.
> > >
> > > Please modprobe acer-wmi driver, then try to turn on/off bluetooth or
> > > wireless device by rfkill.
> > 
> > Hello Joey,
> > 
> > here are some findings with acer_wmi. I execute the following steps from 
> > top to bottom, and only after the last step my wifi works. After each 
> > step you find the output of "rfkill list":
> > 
> > after booting (no ideapad_laptop, no acer_wmi):
> > 0: hci0: Bluetooth
> > 	Soft blocked: no
> > 	Hard blocked: no
> > 1: phy0: Wireless LAN
> > 	Soft blocked: no
> > 	Hard blocked: yes
> > 
> > after loading acer_wmi (wifi switch is on):
> > 0: hci0: Bluetooth
> > 	Soft blocked: no
> > 	Hard blocked: no
> > 1: phy0: Wireless LAN
> > 	Soft blocked: no
> > 	Hard blocked: no
> > 2: acer-wireless: Wireless LAN
> > 	Soft blocked: yes
> > 	Hard blocked: no
> > 
> > after switching off:
> > 1: phy0: Wireless LAN
> > 	Soft blocked: no
> > 	Hard blocked: no
> > 2: acer-wireless: Wireless LAN
> > 	Soft blocked: yes
> > 	Hard blocked: no
> > 
> > switching on again:
> > 1: phy0: Wireless LAN
> > 	Soft blocked: no
> > 	Hard blocked: yes
> > 2: acer-wireless: Wireless LAN
> > 	Soft blocked: yes
> > 	Hard blocked: no
> > 3: hci0: Bluetooth
> > 	Soft blocked: no
> > 	Hard blocked: no
> > 
> > after removing acer_wmi with modprobe -r:
> > 1: phy0: Wireless LAN
> > 	Soft blocked: no
> > 	Hard blocked: no
> > 3: hci0: Bluetooth
> > 	Soft blocked: no
> > 	Hard blocked: no
> > 
> > Now wifi networking can be used!
> > The optimal solution would be to have ideapad_laptop make all 
> > initialisations so wifi can be used after booting with no manual steps 
> > necessary.
> > 
> > Regards
> 
> Your wmi method type is AMW0 and I thought acer-wmi query wrong EC
> register address so your acer-wireless was always soft-blocked.
> 
> Please kindly help me to find out which register on your machine is
> mapping to wireless status, please reference to Carlos's acer_ec.pl
> tool:
> 
> http://code.google.com/p/aceracpi/wiki/EmbeddedController
> 
> Simple use:
> 	watch -n 1 perl acer_ec.pl regs
> 
> Then press your wireless Fn key to monitor which register changed when
> you press Fn key:
> 
> e.g. the register at row B0 and column 0A is register 0xBA (0x is used
> to indicate this is a hexadecimal number).
> 
> There maybe have other EC register changing when you press key, please
> do a couple of times and make sure you find out the right one.
> 
> If we are lucky, we can find out one EC register mapping to your
> wireless state.
> 
> 
> Thank's
> Joey Lee

After traced S205 DSDT, I thought you will got a result is 0x71, please
help to use acer_ec.pl to confirm this register changed. Please give me
the value when wireless on/off.

And, 
Please attached on dmidecode, just need: 
	dmidecode > dmidecode.log

I need add your dmi information to quirk table in acer-wmi.


Thank's
Joey Lee

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

* Re: Wifi switch not working, linux on IdeaPad S205
  2011-05-31 22:50 Wifi switch not working, linux on IdeaPad S205 Joey Lee
@ 2011-05-31 23:42 ` Florian Heyer
  2011-06-01  2:08   ` Joey Lee
  0 siblings, 1 reply; 37+ messages in thread
From: Florian Heyer @ 2011-05-31 23:42 UTC (permalink / raw)
  To: Joey Lee; +Cc: ike.pan, platform-driver-x86

On 06/01/2011 12:50 AM, Joey Lee wrote:
>
> After traced S205 DSDT, I thought you will got a result is 0x71, please
> help to use acer_ec.pl to confirm this register changed. Please give me
> the value when wireless on/off.

Hello Joey,

just short testing: the hardware wifi switch (not the wifi key 
combination fn+f5) toggles register 0x0C from 0 (off) to 64 (on). Wifi 
goes on/off (after having first loaded/unloaded acer_wmi).

The wifi key combination fn+f5 doesn't seem to change anything (i have 
to look again to be sure).

>
> And,
> Please attached on dmidecode, just need:
> 	dmidecode>  dmidecode.log

ok, i'll provide that tomorrow.


regards
-- 
Florian Heyer - heyho@flanto.de

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

* Re: Wifi switch not working, linux on IdeaPad S205
  2011-05-31 23:42 ` Florian Heyer
@ 2011-06-01  2:08   ` Joey Lee
  2011-06-02  8:42     ` Florian Heyer
  0 siblings, 1 reply; 37+ messages in thread
From: Joey Lee @ 2011-06-01  2:08 UTC (permalink / raw)
  To: heyho; +Cc: ike.pan, Joey Lee, platform-driver-x86

於 三,2011-06-01 於 01:42 +0200,Florian Heyer 提到:
> On 06/01/2011 12:50 AM, Joey Lee wrote:
> >
> > After traced S205 DSDT, I thought you will got a result is 0x71, please
> > help to use acer_ec.pl to confirm this register changed. Please give me
> > the value when wireless on/off.
> 
> Hello Joey,
> 
> just short testing: the hardware wifi switch (not the wifi key 
> combination fn+f5) toggles register 0x0C from 0 (off) to 64 (on). Wifi 
> goes on/off (after having first loaded/unloaded acer_wmi).
> 

It's also ok for acer-wmi can capture 0x0C then set to wireless
killswitch.

> The wifi key combination fn+f5 doesn't seem to change anything (i have 
> to look again to be sure).
> 

So, does that mean Fn+F5 cann't on/off wireless? or Not?
Could you please help to check the value on 0x51 and 0x52?


Thakn's
Joey Lee

> >
> > And,
> > Please attached on dmidecode, just need:
> > 	dmidecode>  dmidecode.log
> 
> ok, i'll provide that tomorrow.
> 
> 
> regards

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

* Re: Wifi switch not working, linux on IdeaPad S205
  2011-06-01  2:08   ` Joey Lee
@ 2011-06-02  8:42     ` Florian Heyer
  2011-06-02 19:16       ` Joey Lee
  0 siblings, 1 reply; 37+ messages in thread
From: Florian Heyer @ 2011-06-02  8:42 UTC (permalink / raw)
  To: Joey Lee; +Cc: ike.pan, platform-driver-x86

[-- Attachment #1: Type: text/plain, Size: 615 bytes --]

On 06/01/2011 04:08 AM, Joey Lee wrote:
> So, does that mean Fn+F5 cann't on/off wireless? or Not?
> Could you please help to check the value on 0x51 and 0x52?

I tested again on my ideapad s205:

hardware wifi switch changes the following registers:
0x0C: 0->64
0x78: 0->1

key combination fn+f5:
i can't see a register which changes stable from 0->1 or similar.

i tried combination fn+cursor-up (labeled with screen brightness). 
Screen brightness changes and so do some registers (in the range 0...255 
according to brightness level).

0x51 and 0x52 do not change.


regards
-- 
Florian Heyer - heyho@flanto.de

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: dmidecode-s205.log --]
[-- Type: text/x-log; name="dmidecode-s205.log", Size: 12789 bytes --]

綇ñ1&z\x11‹ÕË J·\x05p€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rÀ\x1f~¾\r_\x7f¶\rˆ1\x1fÿëA¤p€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔r¿1‡ÉánwT¼3\x15„ƒÍHªp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔räÃ’\x1c~ÎTO#ë3¶²ñjp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4y}^[Í“^ì吔rp€+K4

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

* Re: Wifi switch not working, linux on IdeaPad S205
  2011-06-02  8:42     ` Florian Heyer
@ 2011-06-02 19:16       ` Joey Lee
  2011-06-03 12:49         ` Florian Heyer
  0 siblings, 1 reply; 37+ messages in thread
From: Joey Lee @ 2011-06-02 19:16 UTC (permalink / raw)
  To: heyho; +Cc: ike.pan, Joey Lee, platform-driver-x86

於 四,2011-06-02 於 10:42 +0200,Florian Heyer 提到:
> On 06/01/2011 04:08 AM, Joey Lee wrote:
> > So, does that mean Fn+F5 cann't on/off wireless? or Not?
> > Could you please help to check the value on 0x51 and 0x52?
> 
> I tested again on my ideapad s205:
> 
> hardware wifi switch changes the following registers:
> 0x0C: 0->64
> 0x78: 0->1

> key combination fn+f5:
> i can't see a register which changes stable from 0->1 or similar.
> 

This is a problem on "Fn+F5" and "wireless hardware switch", does "Fn
+F5" also can control wireless state? If yes, then it's a problem it
have conflict with "wirelss hardware switch".

I mean, even 0x0C is "64", the Fn+F5 still can turn-off wireless, does
it right?
If the answer is yes, then we cann't use 0x0C to be killswitch state.

> i tried combination fn+cursor-up (labeled with screen brightness). 
> Screen brightness changes and so do some registers (in the range 0...255 
> according to brightness level).
> 
> 0x51 and 0x52 do not change.
> 

What the value in 0x51 and 0x52? is 0, 1 or?


Thank's
Joey Lee

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

* Re: Wifi switch not working, linux on IdeaPad S205
  2011-06-02 19:16       ` Joey Lee
@ 2011-06-03 12:49         ` Florian Heyer
  2011-06-07 13:48           ` Joey Lee
  0 siblings, 1 reply; 37+ messages in thread
From: Florian Heyer @ 2011-06-03 12:49 UTC (permalink / raw)
  To: Joey Lee; +Cc: ike.pan, platform-driver-x86

On 02.06.2011 21:16, Joey Lee wrote:
> This is a problem on "Fn+F5" and "wireless hardware switch", does "Fn
> +F5" also can control wireless state? If yes, then it's a problem it
> have conflict with "wirelss hardware switch".
> 
> I mean, even 0x0C is "64", the Fn+F5 still can turn-off wireless, does
> it right?
> If the answer is yes, then we cann't use 0x0C to be killswitch state.

fn+f5 doesn't do anything no matter what state the wifi switch is.
Personally i wouldn't mind if only the wifi switch is supported, i mean,
you don't need a key combination if you have a real switch for wifi
(de)activation.

> What the value in 0x51 and 0x52? is 0, 1 or?

It's 0!

regards
-- 
Florian Heyer - heyho@flanto.de

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

* Re: Wifi switch not working, linux on IdeaPad S205
  2011-06-03 12:49         ` Florian Heyer
@ 2011-06-07 13:48           ` Joey Lee
  2011-06-09  8:36             ` Ike Panhc
  0 siblings, 1 reply; 37+ messages in thread
From: Joey Lee @ 2011-06-07 13:48 UTC (permalink / raw)
  To: ike.pan, heyho; +Cc: Joey Lee, platform-driver-x86

於 五,2011-06-03 於 14:49 +0200,Florian Heyer 提到:
> On 02.06.2011 21:16, Joey Lee wrote:
> > This is a problem on "Fn+F5" and "wireless hardware switch", does "Fn
> > +F5" also can control wireless state? If yes, then it's a problem it
> > have conflict with "wirelss hardware switch".
> > 
> > I mean, even 0x0C is "64", the Fn+F5 still can turn-off wireless, does
> > it right?
> > If the answer is yes, then we cann't use 0x0C to be killswitch state.
> 
> fn+f5 doesn't do anything no matter what state the wifi switch is.
> Personally i wouldn't mind if only the wifi switch is supported, i mean,
> you don't need a key combination if you have a real switch for wifi
> (de)activation.
> 

I thought need to check with Ike for more detail why the Fn+F5 key not
work on S205.
As I know on Thinkpad machine, the hardware switch causes killswitch set
to hard-block, and Fn+F5 causes killswitch set to soft-block.

Ike, 
need your comments for Fn+F5 key and wireless hardware switch on
ideapad. How does it implement on ideapad?
  	- press Fn+F5: soft-block wireless killswitch?
	- wireless hardware switch: hard-block wireless killswitch?

> > What the value in 0x51 and 0x52? is 0, 1 or?
> 
> It's 0!
> 
> regards

0x52 is zero maybe means the Fn+F5 will not do anything.
Could you please help to double check it by the following ways?

 a. Please make sure CONFIG_ACPI_DEBUG=y then run the following command
by root:

echo 0xFFFFFFFF >/sys/module/acpi/parameters/debug_layer; echo 0xF >/sys/module/acpi/parameters/debug_level 

	Then please press Fn+F5 key and attached dmesg on mail, we can know
find out which _Q method mapping to this key.

 b. Please run this command by root:
	perl acer_ec.pl := 0x52 1
   
    Then press Fn+F5 key, does it have anything changed?


Thank's
Joey Lee

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

* Re: Wifi switch not working, linux on IdeaPad S205
  2011-06-07 13:48           ` Joey Lee
@ 2011-06-09  8:36             ` Ike Panhc
  2011-06-15  9:32               ` Joey Lee
  0 siblings, 1 reply; 37+ messages in thread
From: Ike Panhc @ 2011-06-09  8:36 UTC (permalink / raw)
  To: Joey Lee; +Cc: heyho, platform-driver-x86

On 06/07/2011 09:48 PM, Joey Lee wrote:
> 於 五,2011-06-03 於 14:49 +0200,Florian Heyer 提到:
>> fn+f5 doesn't do anything no matter what state the wifi switch is.
>> Personally i wouldn't mind if only the wifi switch is supported, i mean,
>> you don't need a key combination if you have a real switch for wifi
>> (de)activation.
>>
> 
> I thought need to check with Ike for more detail why the Fn+F5 key not
> work on S205.

I read the DSDT again. Fn+F5 is the soft rfkill key. It looks fine.
I guess the problem is the hard rfkill status is blocked, wifi will be
blocked even the soft one is unblocked.

> As I know on Thinkpad machine, the hardware switch causes killswitch set
> to hard-block, and Fn+F5 causes killswitch set to soft-block.
> 
> Ike, 
> need your comments for Fn+F5 key and wireless hardware switch on
> ideapad. How does it implement on ideapad?
>   	- press Fn+F5: soft-block wireless killswitch?
> 	- wireless hardware switch: hard-block wireless killswitch?

Both of the answers are yes.

The problem is that on ideapad s205 without acer-wmi, when ideapad-laptop
have the hard switch event, the driver asks the status of switch and DSDT
replies blocked.

In the DSDT the driver read bit of GWSS as status of hardware switch and
I can not find out anything to update GWSS in DSDT :(

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

* Re: Wifi switch not working, linux on IdeaPad S205
  2011-06-09  8:36             ` Ike Panhc
@ 2011-06-15  9:32               ` Joey Lee
  2011-06-15  9:42                 ` Florian Heyer
  2011-06-16  9:58                 ` Ike Panhc
  0 siblings, 2 replies; 37+ messages in thread
From: Joey Lee @ 2011-06-15  9:32 UTC (permalink / raw)
  To: ike.pan; +Cc: heyho, Joey Lee, platform-driver-x86

於 四,2011-06-09 於 16:36 +0800,Ike Panhc 提到:
> On 06/07/2011 09:48 PM, Joey Lee wrote:
> > 於 五,2011-06-03 於 14:49 +0200,Florian Heyer 提到:
> >> fn+f5 doesn't do anything no matter what state the wifi switch is.
> >> Personally i wouldn't mind if only the wifi switch is supported, i mean,
> >> you don't need a key combination if you have a real switch for wifi
> >> (de)activation.
> >>
> > 
> > I thought need to check with Ike for more detail why the Fn+F5 key not
> > work on S205.
> 

But Florian said the Fn+F5 doesn't work to him, as you said, the _Q2B
works when GWSS is not zero:

        Method (_Q2B, 0, NotSerialized)         /* wifi key? */
        {  
            Store (0x2B, P80H)
            If (LEqual (GWSS, 0x00)) {}         /* on issue machine, GWSS is 0 */
            Else
            {  
                If (WLPS)                       /* if have wireless */
                {  
                    Store (WRST, WLEN)          /* write wireless RF state to EC */
                }

> I read the DSDT again. Fn+F5 is the soft rfkill key. It looks fine.
> I guess the problem is the hard rfkill status is blocked, wifi will be
> blocked even the soft one is unblocked.
> 
> > As I know on Thinkpad machine, the hardware switch causes killswitch set
> > to hard-block, and Fn+F5 causes killswitch set to soft-block.
> > 
> > Ike, 
> > need your comments for Fn+F5 key and wireless hardware switch on
> > ideapad. How does it implement on ideapad?
> >   	- press Fn+F5: soft-block wireless killswitch?
> > 	- wireless hardware switch: hard-block wireless killswitch?
> 
> Both of the answers are yes.
> 
> The problem is that on ideapad s205 without acer-wmi, when ideapad-laptop
> have the hard switch event, the driver asks the status of switch and DSDT
> replies blocked.
> 
> In the DSDT the driver read bit of GWSS as status of hardware switch and
> I can not find out anything to update GWSS in DSDT :(

I also didn't see any other statement in DSDT touch GWSS.

On the other hand,  
I reviewed Florian's following mail:

於 二,2011-05-31 於 15:02 +0200,Florian Heyer 提到: 
> On 05/31/2011 11:42 AM, Joey Lee wrote:
> > Just checked your DSDT, it declared the AMW0 methods, I agreed Ike's
> > suggestion that will be better you direct test acer-wmi on your machine.
> >
> > Please modprobe acer-wmi driver, then try to turn on/off bluetooth or
> > wireless device by rfkill.
> 
> Hello Joey,
> 
> here are some findings with acer_wmi. I execute the following steps from 
> top to bottom, and only after the last step my wifi works. After each 
> step you find the output of "rfkill list":
> 
> after booting (no ideapad_laptop, no acer_wmi):
> 0: hci0: Bluetooth
> 	Soft blocked: no
> 	Hard blocked: no
> 1: phy0: Wireless LAN
> 	Soft blocked: no
> 	Hard blocked: yes
> 

When system boot, wireless is hard blocked by default.

> after loading acer_wmi (wifi switch is on):
> 0: hci0: Bluetooth
> 	Soft blocked: no
> 	Hard blocked: no
> 1: phy0: Wireless LAN
> 	Soft blocked: no
> 	Hard blocked: no
> 2: acer-wireless: Wireless LAN
> 	Soft blocked: yes
> 	Hard blocked: no

The acer-wmi will set initial value by call AMW0 wmi method to unblock wireless.

> 
> after switching off:
> 1: phy0: Wireless LAN
> 	Soft blocked: no
> 	Hard blocked: no
> 2: acer-wireless: Wireless LAN
> 	Soft blocked: yes
> 	Hard blocked: no
> 

Press hardware switch to off, here have a question:
 + It disabled bluetooth but not wireless?

I thought the wireless works fine when system at this status, even acer-wireless
stay on soft blocked.

> switching on again:
> 1: phy0: Wireless LAN
> 	Soft blocked: no
> 	Hard blocked: yes
> 2: acer-wireless: Wireless LAN
> 	Soft blocked: yes
> 	Hard blocked: no
> 3: hci0: Bluetooth
> 	Soft blocked: no
> 	Hard blocked: no
> 

Press hardware switch again, here have a question:
 + looks like it enable bluetooth but hard blocked wireless again?

> 
> after removing acer_wmi with modprobe -r:
> 1: phy0: Wireless LAN
> 	Soft blocked: no
> 	Hard blocked: no
> 3: hci0: Bluetooth
> 	Soft blocked: no
> 	Hard blocked: no
> 

Here a bit not make sense:
 + acer-wmi doesn't touch wireless by AMW0 when it un-probe, but wireless state
   set to unblock. 
   Does that mean current "hardware switch" state is "OFF", but wireless state is unblock?

> 
> 
> Now wifi networking can be used!
> The optimal solution would be to have ideapad_laptop make all 
> initialisations so wifi can be used after booting with no manual steps 
> necessary.
> 
> Regards

Here have some questions: 
 + Does "hardware switch" on IdeaPad S205 not just control wireless? Does it also control bluetooth?
 + Does "hardware switch" emit any KEY_WIRELESS, KEY_BLUETOOTH or KEY_RFKILL? And rfkill-input works?

I mean: Does this switch only control by BIOS? or actually rfkill-input also touch the killswitch?


Thank's a lot!
Joey Lee

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

* Re: Wifi switch not working, linux on IdeaPad S205
  2011-06-15  9:32               ` Joey Lee
@ 2011-06-15  9:42                 ` Florian Heyer
  2011-06-17 13:09                   ` Joey Lee
  2011-06-16  9:58                 ` Ike Panhc
  1 sibling, 1 reply; 37+ messages in thread
From: Florian Heyer @ 2011-06-15  9:42 UTC (permalink / raw)
  To: Joey Lee; +Cc: ike.pan, platform-driver-x86

On 06/15/2011 11:32 AM, Joey Lee wrote:
>   + Does "hardware switch" on IdeaPad S205 not just control wireless? Does it also control bluetooth?

Hello Joey,

just a quick answer (i will go through your whole mail in the evening):

Yes, the hardware switch controls bluetooth and works fine: ubuntu's 
bluetooth icon appears/disappears when i toggle the switch on/off. This 
works even without acer_wmi.

I have the hardware switch usually on "on" and with this setting rfkill 
shows the following state directly after booting (without loading acer_wmi):

0: hci0: Bluetooth
  	Soft blocked: no
  	Hard blocked: no
1: phy0: Wireless LAN
  	Soft blocked: no
  	Hard blocked: yes



regards
-- 
Florian Heyer - heyho@flanto.de

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

* Re: Wifi switch not working, linux on IdeaPad S205
  2011-06-15  9:32               ` Joey Lee
  2011-06-15  9:42                 ` Florian Heyer
@ 2011-06-16  9:58                 ` Ike Panhc
  2011-06-17 10:58                   ` Joey Lee
  1 sibling, 1 reply; 37+ messages in thread
From: Ike Panhc @ 2011-06-16  9:58 UTC (permalink / raw)
  To: Joey Lee; +Cc: heyho, platform-driver-x86

On 06/15/2011 05:32 PM, Joey Lee wrote:
> 於 四,2011-06-09 於 16:36 +0800,Ike Panhc 提到:
> 
> But Florian said the Fn+F5 doesn't work to him, as you said, the _Q2B
> works when GWSS is not zero:
> 
>         Method (_Q2B, 0, NotSerialized)         /* wifi key? */
>         {  
>             Store (0x2B, P80H)
>             If (LEqual (GWSS, 0x00)) {}         /* on issue machine, GWSS is 0 */
>             Else
>             {  
>                 If (WLPS)                       /* if have wireless */
>                 {  
>                     Store (WRST, WLEN)          /* write wireless RF state to EC */
>                 }
> 

I see your point. IMHO this is ok. When the radio switch is off, it shall
be no different on every soft block modes.

> 於 二,2011-05-31 於 15:02 +0200,Florian Heyer 提到: 
>> On 05/31/2011 11:42 AM, Joey Lee wrote:
>>> Just checked your DSDT, it declared the AMW0 methods, I agreed Ike's
>>> suggestion that will be better you direct test acer-wmi on your machine.
>>>
>>> Please modprobe acer-wmi driver, then try to turn on/off bluetooth or
>>> wireless device by rfkill.
>>
>> Hello Joey,
>>
>> here are some findings with acer_wmi. I execute the following steps from 
>> top to bottom, and only after the last step my wifi works. After each 
>> step you find the output of "rfkill list":
>>
>> after booting (no ideapad_laptop, no acer_wmi):
>> 0: hci0: Bluetooth
>> 	Soft blocked: no
>> 	Hard blocked: no
>> 1: phy0: Wireless LAN
>> 	Soft blocked: no
>> 	Hard blocked: yes
>>
> 
> When system boot, wireless is hard blocked by default.
> 

Read the reply mail from Florian. This is a problem because hard blocked
shall be no when the radio switch is on. Since phy0 is registered by wifi
driver, I think this is not generic design.

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

* Re: Wifi switch not working, linux on IdeaPad S205
  2011-06-16  9:58                 ` Ike Panhc
@ 2011-06-17 10:58                   ` Joey Lee
  0 siblings, 0 replies; 37+ messages in thread
From: Joey Lee @ 2011-06-17 10:58 UTC (permalink / raw)
  To: ike.pan; +Cc: heyho, Joey Lee, platform-driver-x86

於 四,2011-06-16 於 17:58 +0800,Ike Panhc 提到:
> On 06/15/2011 05:32 PM, Joey Lee wrote:
> > 於 四,2011-06-09 於 16:36 +0800,Ike Panhc 提到:
> > 
> > But Florian said the Fn+F5 doesn't work to him, as you said, the _Q2B
> > works when GWSS is not zero:
> > 
> >         Method (_Q2B, 0, NotSerialized)         /* wifi key? */
> >         {  
> >             Store (0x2B, P80H)
> >             If (LEqual (GWSS, 0x00)) {}         /* on issue machine, GWSS is 0 */
> >             Else
> >             {  
> >                 If (WLPS)                       /* if have wireless */
> >                 {  
> >                     Store (WRST, WLEN)          /* write wireless RF state to EC */
> >                 }
> > 
> 
> I see your point. IMHO this is ok. When the radio switch is off, it shall
> be no different on every soft block modes.

> > 於 二,2011-05-31 於 15:02 +0200,Florian Heyer 提到: 
> >> On 05/31/2011 11:42 AM, Joey Lee wrote:
> >>> Just checked your DSDT, it declared the AMW0 methods, I agreed Ike's
> >>> suggestion that will be better you direct test acer-wmi on your machine.
> >>>
> >>> Please modprobe acer-wmi driver, then try to turn on/off bluetooth or
> >>> wireless device by rfkill.
> >>
> >> Hello Joey,
> >>
> >> here are some findings with acer_wmi. I execute the following steps from 
> >> top to bottom, and only after the last step my wifi works. After each 
> >> step you find the output of "rfkill list":
> >>
> >> after booting (no ideapad_laptop, no acer_wmi):
> >> 0: hci0: Bluetooth
> >> 	Soft blocked: no
> >> 	Hard blocked: no
> >> 1: phy0: Wireless LAN
> >> 	Soft blocked: no
> >> 	Hard blocked: yes
> >>
> > 
> > When system boot, wireless is hard blocked by default.
> > 
> 
> Read the reply mail from Florian. This is a problem because hard blocked
> shall be no when the radio switch is on. Since phy0 is registered by wifi
> driver, I think this is not generic design.
> 

There have some problems not just check the EC register then set
killswitch to hard blocked:

 + Per Florian's report, looks like the hardware key cann't unblock for
wireless and need acer-wmi driver unblock by evaluate AMW0 method. Does
that mean acer-wmi driver need evaluate AMW0 every time when user press
hardware key? This logic is so specially, and only S205 need do that.

 + The hardware key is not just control wireless, it also control
bluetooth. That will be better we also find out which EC register
mapping to bluetooth.

 + In current acer-wmi driver, it only maintain soft block for wireless
killswitch. IdeaPad S205 will be the only one machine that maintain hard
block but no soft block. There have no other acer machine like this. 

Simply said, I don't want to put this specially case to acer-wmi (I
believe need use quirk). Does it possible support it in ideapad-laptop?

May I just check if there have VPC2004 device in dsdt, then acer-wmi
will not loading, leave ideapad-laptop take care?


Thank's a lot!
Joey Lee

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

* Re: Wifi switch not working, linux on IdeaPad S205
  2011-06-15  9:42                 ` Florian Heyer
@ 2011-06-17 13:09                   ` Joey Lee
  2011-06-17 15:03                     ` Florian Heyer
  0 siblings, 1 reply; 37+ messages in thread
From: Joey Lee @ 2011-06-17 13:09 UTC (permalink / raw)
  To: heyho; +Cc: ike.pan, Joey Lee, platform-driver-x86

Hi Florian, 

於 三,2011-06-15 於 11:42 +0200,Florian Heyer 提到:
> On 06/15/2011 11:32 AM, Joey Lee wrote:
> >   + Does "hardware switch" on IdeaPad S205 not just control wireless? Does it also control bluetooth?
> 
> Hello Joey,
> 
> just a quick answer (i will go through your whole mail in the evening):
> 
> Yes, the hardware switch controls bluetooth and works fine: ubuntu's 
> bluetooth icon appears/disappears when i toggle the switch on/off. This 
> works even without acer_wmi.
> 
> I have the hardware switch usually on "on" and with this setting rfkill 
> shows the following state directly after booting (without loading acer_wmi):
> 
> 0: hci0: Bluetooth
>   	Soft blocked: no
>   	Hard blocked: no
> 1: phy0: Wireless LAN
>   	Soft blocked: no
>   	Hard blocked: yes
> 
> 
> 
> regards

Could you pleas share the dmidecode information to me? just need: 
	dmidecode > dmidecode.log

I want to generate a acer-wmi patch to test AMW0 method on your machine.

For IdeaPad S205, this case is too special for acer machines, I still
thought that will be better support it in ideapad-laptop. But, we can
test on acer-wmi first.


Thank's
Joey Lee

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

* Re: Wifi switch not working, linux on IdeaPad S205
  2011-06-17 13:09                   ` Joey Lee
@ 2011-06-17 15:03                     ` Florian Heyer
  2011-06-17 22:50                       ` Joey Lee
  2011-06-18  0:38                       ` Joey Lee
  0 siblings, 2 replies; 37+ messages in thread
From: Florian Heyer @ 2011-06-17 15:03 UTC (permalink / raw)
  To: Joey Lee; +Cc: ike.pan, platform-driver-x86

[-- Attachment #1: Type: text/plain, Size: 645 bytes --]

On 17.06.2011 15:09, Joey Lee wrote:
> Could you pleas share the dmidecode information to me? just need: 
> 	dmidecode > dmidecode.log
> 

No problem, see attachment.

> I want to generate a acer-wmi patch to test AMW0 method on your machine.
> 
> For IdeaPad S205, this case is too special for acer machines, I still
> thought that will be better support it in ideapad-laptop. But, we can
> test on acer-wmi first.

To me it seems logical to solve the problem in ideapad-laptop and not in
acer-wmi as the laptop is obviously of ideapad type :)
I will be happily testing patches to solve the issue.


regards
-- 
Florian Heyer - heyho@flanto.de

[-- Attachment #2: dmidecode.log --]
[-- Type: text/plain, Size: 12789 bytes --]

# dmidecode 2.9
# SMBIOS entry point at 0xc732c000
SMBIOS 2.6 present.
49 structures occupying 1720 bytes.
Table at 0x000EA830.

Handle 0x0000, DMI type 0, 24 bytes
BIOS Information
	Vendor: LENOVO
	Version: 4BCN19WW
	Release Date: 03/23/2011
	Address: 0xE0000
	Runtime Size: 128 kB
	ROM Size: 2048 kB
	Characteristics:
		PCI is supported
		BIOS is upgradeable
		BIOS shadowing is allowed
		Boot from CD is supported
		Selectable boot is supported
		EDD is supported
		Print screen service is supported (int 5h)
		8042 keyboard services are supported (int 9h)
		Serial services are supported (int 14h)
		Printer services are supported (int 17h)
		CGA/mono video services are supported (int 10h)
		NEC PC-98
		ACPI is supported
		USB legacy is supported
		BIOS boot specification is supported
		Function key-initiated network boot is supported
		Targeted content distribution is supported
	BIOS Revision: 1.0

Handle 0x0001, DMI type 1, 27 bytes
System Information
	Manufacturer: LENOVO
	Product Name: 10382LG
	Version: Ideapad S205
	Serial Number: WB01703388WB01032805
	UUID: 833EEFC0-59F2-11E0-8640-C54E073867D1
	Wake-up Type: Power Switch
	SKU Number: System SKU Number Unknown
	Family: IDEAPAD         

Handle 0x0002, DMI type 2, 15 bytes
Base Board Information
	Manufacturer: LENOVO
	Product Name: Inagua
	Version: 109-B78210-00A
	Serial Number: WB01703388
	Asset Tag: Base Board Asset Tag Unknown
	Features:
		Board is a hosting board
		Board is replaceable
	Location In Chassis: Chassis Location Unknown
	Chassis Handle: 0x0000
	Type: Motherboard
	Contained Object Handles: 0

Handle 0x0003, DMI type 3, 21 bytes
Chassis Information
	Manufacturer: LENOVO
	Type: Notebook
	Lock: Not Present
	Version: Chassis Version Unknown
	Serial Number: Chassis Serial Number Unknown
	Asset Tag: Chassis Asset Tag Unknown
	Boot-up State: Safe
	Power Supply State: Safe
	Thermal State: Other
	Security Status: Other
	OEM Information: 0x00000000
	Height: Unspecified
	Number Of Power Cords: 1
	Contained Elements: 0

Handle 0x0004, DMI type 8, 9 bytes
Port Connector Information
	Internal Reference Designator: J1902
	Internal Connector Type: None
	External Reference Designator: Keyboard
	External Connector Type: PS/2
	Port Type: Keyboard Port

Handle 0x0005, DMI type 8, 9 bytes
Port Connector Information
	Internal Reference Designator: J1900
	Internal Connector Type: None
	External Reference Designator: Touch Pad
	External Connector Type: PS/2
	Port Type: Mouse Port

Handle 0x0006, DMI type 8, 9 bytes
Port Connector Information
	Internal Reference Designator: J1300
	Internal Connector Type: None
	External Reference Designator: External LAN
	External Connector Type: RJ-45
	Port Type: Network Port

Handle 0x0007, DMI type 8, 9 bytes
Port Connector Information
	Internal Reference Designator: J1400
	Internal Connector Type: None
	External Reference Designator: Internal LAN
	External Connector Type: RJ-45
	Port Type: Network Port

Handle 0x0008, DMI type 8, 9 bytes
Port Connector Information
	Internal Reference Designator: J1500
	Internal Connector Type: None
	External Reference Designator: USB 0
	External Connector Type: Access Bus (USB)
	Port Type: USB

Handle 0x0009, DMI type 8, 9 bytes
Port Connector Information
	Internal Reference Designator: J1600
	Internal Connector Type: None
	External Reference Designator: USB 3.0
	External Connector Type: Access Bus (USB)
	Port Type: USB

Handle 0x000A, DMI type 8, 9 bytes
Port Connector Information
	Internal Reference Designator: J1501
	Internal Connector Type: None
	External Reference Designator: USB 8
	External Connector Type: Access Bus (USB)
	Port Type: USB

Handle 0x000B, DMI type 8, 9 bytes
Port Connector Information
	Internal Reference Designator: J1501
	Internal Connector Type: None
	External Reference Designator: USB 9
	External Connector Type: Access Bus (USB)
	Port Type: USB

Handle 0x000C, DMI type 8, 9 bytes
Port Connector Information
	Internal Reference Designator: J1500
	Internal Connector Type: None
	External Reference Designator: USB 10
	External Connector Type: Access Bus (USB)
	Port Type: USB

Handle 0x000D, DMI type 8, 9 bytes
Port Connector Information
	Internal Reference Designator: J1703
	Internal Connector Type: None
	External Reference Designator: SATA 0 (HDD)
	External Connector Type: SAS/SATA Plug Receptacle
	Port Type: SATA

Handle 0x000E, DMI type 8, 9 bytes
Port Connector Information
	Internal Reference Designator: J1705
	Internal Connector Type: None
	External Reference Designator: SATA 1 (Cable SATA ODD)
	External Connector Type: SAS/SATA Plug Receptacle
	Port Type: SATA

Handle 0x000F, DMI type 8, 9 bytes
Port Connector Information
	Internal Reference Designator: J1501
	Internal Connector Type: None
	External Reference Designator: SATA 2 (eSATA)
	External Connector Type: SAS/SATA Plug Receptacle
	Port Type: SATA

Handle 0x0010, DMI type 8, 9 bytes
Port Connector Information
	Internal Reference Designator: J2106
	Internal Connector Type: None
	External Reference Designator: Audio Line In
	External Connector Type: Mini Jack (headphones)
	Port Type: Audio Port

Handle 0x0011, DMI type 8, 9 bytes
Port Connector Information
	Internal Reference Designator: J2105
	Internal Connector Type: None
	External Reference Designator: Audio Line Out
	External Connector Type: Mini Jack (headphones)
	Port Type: Audio Port

Handle 0x0012, DMI type 8, 9 bytes
Port Connector Information
	Internal Reference Designator: J3702
	Internal Connector Type: None
	External Reference Designator: SIM Card
	External Connector Type: Other
	Port Type: Other

Handle 0x0013, DMI type 8, 9 bytes
Port Connector Information
	Internal Reference Designator: J3304
	Internal Connector Type: None
	External Reference Designator: SD Card
	External Connector Type: Other
	Port Type: Other

Handle 0x0014, DMI type 8, 9 bytes
Port Connector Information
	Internal Reference Designator: J2108
	Internal Connector Type: None
	External Reference Designator: WEBCAM
	External Connector Type: Other
	Port Type: Other

Handle 0x0015, DMI type 8, 9 bytes
Port Connector Information
	Internal Reference Designator: J900
	Internal Connector Type: None
	External Reference Designator: VGA
	External Connector Type: DB-15 female
	Port Type: Video Port

Handle 0x0016, DMI type 8, 9 bytes
Port Connector Information
	Internal Reference Designator: J1800
	Internal Connector Type: None
	External Reference Designator: LVDS
	External Connector Type: Other
	Port Type: Video Port

Handle 0x0017, DMI type 8, 9 bytes
Port Connector Information
	Internal Reference Designator: J1850
	Internal Connector Type: None
	External Reference Designator: Display Port
	External Connector Type: Other
	Port Type: Video Port

Handle 0x0018, DMI type 9, 17 bytes
System Slot Information
	Designation: MINI PCIE 0 (J3700)
	Type: x1 <OUT OF SPEC>
	Current Usage: Available
	Length: Short
	Characteristics:
		3.3 V is provided
		PME signal is supported
		Hot-plug devices are supported
		SMBus signal is supported

Handle 0x0019, DMI type 9, 17 bytes
System Slot Information
	Designation: MINI PCIE 1 (J3703)
	Type: x1 <OUT OF SPEC>
	Current Usage: Available
	Length: Short
	Characteristics:
		3.3 V is provided
		PME signal is supported
		Hot-plug devices are supported
		SMBus signal is supported

Handle 0x001A, DMI type 9, 17 bytes
System Slot Information
	Designation: PCI-E GPP (J3600)
	Type: x1 <OUT OF SPEC>
	Current Usage: Available
	Length: Long
	Characteristics:
		3.3 V is provided
		PME signal is supported
		Hot-plug devices are supported
		SMBus signal is supported

Handle 0x001B, DMI type 10, 6 bytes
On Board Device Information
	Type: Video
	Status: Enabled
	Description: AMD Ontario GPU

Handle 0x001C, DMI type 10, 6 bytes
On Board Device Information
	Type: Sound
	Status: Enabled
	Description: AZALIA HD Audio

Handle 0x001D, DMI type 10, 6 bytes
On Board Device Information
	Type: Ethernet
	Status: Enabled
	Description: Broadcom NIC BCM5761E

Handle 0x001E, DMI type 10, 6 bytes
On Board Device Information
	Type: Ethernet
	Status: Enabled
	Description: Atheros NIC AR8151

Handle 0x001F, DMI type 10, 6 bytes
On Board Device Information
	Type: SATA Controller
	Status: Enabled
	Description: AMD Hudsion 1

Handle 0x0020, DMI type 10, 6 bytes
On Board Device Information
	Type: Unknown
	Status: Enabled
	Description: Infineon TPM SLB9635

Handle 0x0021, DMI type 10, 6 bytes
On Board Device Information
	Type: Unknown
	Status: Enabled
	Description: NEC USB3.0 D720200F1

Handle 0x0022, DMI type 11, 5 bytes
OEM Strings
	String 1: OEM default string

Handle 0x0023, DMI type 13, 22 bytes
BIOS Language Information
	Installable Languages: 4
		en-US
		fr-FR
		ja-JP
		ko-KR
	Currently Installed Language: en-US

Handle 0x0024, DMI type 32, 11 bytes
System Boot Information
	Status: No errors detected

Handle 0x0025, DMI type 133, 5 bytes
OEM-specific Type
	Header and Data:
		85 05 25 00 01
	Strings:
		KHOIHGIUCCHHII

Handle 0x0026, DMI type 4, 42 bytes
Processor Information
	Socket Designation: Socket FT1
	Type: Central Processor
	Family: <OUT OF SPEC>
	Manufacturer: AMD
	ID: 10 0F 50 00 FF FB 8B 17
	Version: AMD E-350 Processor
	Voltage: 1.3 V
	External Clock: 100 MHz
	Max Speed: 1600 MHz
	Current Speed: 1600 MHz
	Status: Populated, Enabled
	Upgrade: None
	L1 Cache Handle: 0x0027
	L2 Cache Handle: 0x0028
	L3 Cache Handle: Not Provided
	Serial Number: Not Specified
	Asset Tag: Not Specified
	Part Number: Not Specified
	Core Count: 2
	Core Enabled: 2
	Thread Count: 2
	Characteristics:
		64-bit capable

Handle 0x0027, DMI type 7, 19 bytes
Cache Information
	Socket Designation: L1 Cache
	Configuration: Enabled, Not Socketed, Level 1
	Operational Mode: Write Back
	Location: Internal
	Installed Size: 128 KB
	Maximum Size: 128 KB
	Supported SRAM Types:
		Pipeline Burst
	Installed SRAM Type: Pipeline Burst
	Speed: 1 ns
	Error Correction Type: Multi-bit ECC
	System Type: Unified
	Associativity: 2-way Set-associative

Handle 0x0028, DMI type 7, 19 bytes
Cache Information
	Socket Designation: L2 Cache
	Configuration: Enabled, Not Socketed, Level 2
	Operational Mode: Write Back
	Location: Internal
	Installed Size: 1024 KB
	Maximum Size: 1024 KB
	Supported SRAM Types:
		Pipeline Burst
	Installed SRAM Type: Pipeline Burst
	Speed: 1 ns
	Error Correction Type: Multi-bit ECC
	System Type: Unified
	Associativity: 16-way Set-associative

Handle 0x0029, DMI type 16, 15 bytes
Physical Memory Array
	Location: System Board Or Motherboard
	Use: System Memory
	Error Correction Type: None
	Maximum Capacity: 32 GB
	Error Information Handle: Not Provided
	Number Of Devices: 2

Handle 0x002A, DMI type 19, 15 bytes
Memory Array Mapped Address
	Starting Address: 0x00000000000
	Ending Address: 0x000FFFFFFFF
	Range Size: 4 GB
	Physical Array Handle: 0x0029
	Partition Width: 0

Handle 0x002B, DMI type 17, 28 bytes
Memory Device
	Array Handle: 0x0029
	Error Information Handle: Not Provided
	Total Width: 64 bits
	Data Width: 64 bits
	Size: 2048 MB
	Form Factor: SODIMM
	Set: 1
	Locator: J400
	Bank Locator: Channel A
	Type: <OUT OF SPEC>
	Type Detail: Synchronous
	Speed: 1333 MHz (0.8 ns)
	Manufacturer: 80AD
	Serial Number: 12662DCF
	Asset Tag: 0918
	Part Number: 484D543332355336

Handle 0x002C, DMI type 20, 19 bytes
Memory Device Mapped Address
	Starting Address: 0x00000000000
	Ending Address: 0x0007FFFFFFF
	Range Size: 2 GB
	Physical Device Handle: 0x002B
	Memory Array Mapped Address Handle: 0x002A
	Partition Row Position: 2
	Interleave Position: 2
	Interleaved Data Depth: 6

Handle 0x002D, DMI type 17, 28 bytes
Memory Device
	Array Handle: 0x0029
	Error Information Handle: Not Provided
	Total Width: 64 bits
	Data Width: 64 bits
	Size: 2048 MB
	Form Factor: SODIMM
	Set: 2
	Locator: J401
	Bank Locator: Channel B
	Type: <OUT OF SPEC>
	Type Detail: Synchronous
	Speed: 1333 MHz (0.8 ns)
	Manufacturer: 80CE
	Serial Number: 9260DFE3
	Asset Tag: 0918
	Part Number: 4D34373142353737

Handle 0x002E, DMI type 20, 19 bytes
Memory Device Mapped Address
	Starting Address: 0x00080000000
	Ending Address: 0x000FFFFFFFF
	Range Size: 2 GB
	Physical Device Handle: 0x002D
	Memory Array Mapped Address Handle: 0x002A
	Partition Row Position: 2
	Interleave Position: 2
	Interleaved Data Depth: 6

Handle 0x002F, DMI type 15, 29 bytes
System Event Log
	Area Length: 18 bytes
	Header Start Offset: 0x0000
	Header Length: 16 bytes
	Data Start Offset: 0x0010
	Access Method: General-purpose non-volatile data functions
	Access Address: 0x00F0
	Status: Valid, Not Full
	Change Token: 0x00000000
	Header Format: Type 1
	Supported Log Type Descriptors: 3
	Descriptor 1: POST error
	Data Format 1: POST results bitmap
	Descriptor 2: Single-bit ECC memory error
	Data Format 2: Multiple-event
	Descriptor 3: Multi-bit ECC memory error
	Data Format 3: Multiple-event

Handle 0xFEFF, DMI type 127, 4 bytes
End Of Table


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

* Re: Wifi switch not working, linux on IdeaPad S205
  2011-06-17 15:03                     ` Florian Heyer
@ 2011-06-17 22:50                       ` Joey Lee
  2011-06-19 16:15                         ` Florian Heyer
  2011-06-18  0:38                       ` Joey Lee
  1 sibling, 1 reply; 37+ messages in thread
From: Joey Lee @ 2011-06-17 22:50 UTC (permalink / raw)
  To: heyho; +Cc: ike.pan, Joey Lee, platform-driver-x86

Hi Florian, 

於 五,2011-06-17 於 17:03 +0200,Florian Heyer 提到:
> On 17.06.2011 15:09, Joey Lee wrote:
> > Could you pleas share the dmidecode information to me? just need: 
> > 	dmidecode > dmidecode.log
> > 
> 
> No problem, see attachment.
> 
> > I want to generate a acer-wmi patch to test AMW0 method on your machine.
> > 
> > For IdeaPad S205, this case is too special for acer machines, I still
> > thought that will be better support it in ideapad-laptop. But, we can
> > test on acer-wmi first.
> 
> To me it seems logical to solve the problem in ideapad-laptop and not in
> acer-wmi as the laptop is obviously of ideapad type :)
> I will be happily testing patches to solve the issue.
> 
> 
> regards

Could you please help to file a bug on kernel bugzilla for this issue?
	https://bugzilla.kernel.org/

That will be good for collect all information and attached dmi, dsdt on
the bug, and don't need dig mail loop.


Thank's
Joey Lee

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

* Re: Wifi switch not working, linux on IdeaPad S205
  2011-06-17 15:03                     ` Florian Heyer
  2011-06-17 22:50                       ` Joey Lee
@ 2011-06-18  0:38                       ` Joey Lee
  2011-06-19 15:23                         ` Florian Heyer
  1 sibling, 1 reply; 37+ messages in thread
From: Joey Lee @ 2011-06-18  0:38 UTC (permalink / raw)
  To: heyho; +Cc: ike.pan, Joey Lee, platform-driver-x86

於 五,2011-06-17 於 17:03 +0200,Florian Heyer 提到:
> On 17.06.2011 15:09, Joey Lee wrote:
> > Could you pleas share the dmidecode information to me? just need: 
> > 	dmidecode > dmidecode.log
> > 
> 
> No problem, see attachment.
> 
> > I want to generate a acer-wmi patch to test AMW0 method on your machine.
> > 
> > For IdeaPad S205, this case is too special for acer machines, I still
> > thought that will be better support it in ideapad-laptop. But, we can
> > test on acer-wmi first.
> 
> To me it seems logical to solve the problem in ideapad-laptop and not in
> acer-wmi as the laptop is obviously of ideapad type :)
> I will be happily testing patches to solve the issue.
> 

Could you please help to test this patch? This is just a test patch, and
I didn't evaluation AWM0 in update rfkill state polling because I didn't
think evaluate AWM0 per second is a good idea.

Please probe acer-wmi driver then report rfkill state. That's see what
the situation, then we add AWM0 part in next patch.

PS:
Sorry for I didn't compiler and test this patch because I didn't take
acer netbook back to home.


Thank's
Joey Lee


From 0e0602a099775fafa21b3428d50bcca2be58c3fb Mon Sep 17 00:00:00 2001
From: Lee, Chun-Yi <jlee@novell.com>
Date: Sat, 18 Jun 2011 08:32:03 +0800
Subject: [PATCH] acer-wmi: support Lenovo S205

Just for testing. I didn't evaluate AMW0 in polling.

Signed-off-by: Lee, Chun-Yi <jlee@novell.com>
---
 drivers/platform/x86/acer-wmi.c |   30 ++++++++++++++++++++++++++++--
 1 files changed, 28 insertions(+), 2 deletions(-)

diff --git a/drivers/platform/x86/acer-wmi.c b/drivers/platform/x86/acer-wmi.c
index 005417b..424b83e 100644
--- a/drivers/platform/x86/acer-wmi.c
+++ b/drivers/platform/x86/acer-wmi.c
@@ -304,6 +304,10 @@ static struct quirk_entry quirk_fujitsu_amilo_li_1718 = {
 	.wireless = 2,
 };
 
+static struct quirk_entry quirk_lenovo_ideapad_s205 = {
+	.wireless = 3,
+};
+
 /* The Aspire One has a dummy ACPI-WMI interface - disable it */
 static struct dmi_system_id __devinitdata acer_blacklist[] = {
 	{
@@ -450,6 +454,15 @@ static struct dmi_system_id acer_quirks[] = {
 		},
 		.driver_data = &quirk_medion_md_98300,
 	},
+	{
+		.callback = dmi_matched,
+		.ident = "Lenovo Ideapad S205",
+		.matches = {
+			DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
+			DMI_MATCH(DMI_PRODUCT_NAME, "10382LG"),
+		},
+		.driver_data = &quirk_lenovo_ideapad_s205,
+	},
 	{}
 };
 
@@ -542,6 +555,12 @@ struct wmi_interface *iface)
 				return AE_ERROR;
 			*value = result & 0x1;
 			return AE_OK;
+		case 3:
+			err = ec_read(0x78, &result);
+			if (err)
+				return AE_ERROR;
+			*value = result & 0x1;
+			return AE_OK;
 		default:
 			err = ec_read(0xA, &result);
 			if (err)
@@ -1266,8 +1285,15 @@ static void acer_rfkill_update(struct work_struct *ignored)
 	acpi_status status;
 
 	status = get_u32(&state, ACER_CAP_WIRELESS);
-	if (ACPI_SUCCESS(status))
-		rfkill_set_sw_state(wireless_rfkill, !state);
+	if (ACPI_SUCCESS(status)) {
+		if (quirks->wireless == 3) {
+			pr_info("acer_rfkill_update state: %d", state);
+			rfkill_set_hw_state(wireless_rfkill, !state);
+			/* TODO: set AWM0? */
+		} else {
+			rfkill_set_sw_state(wireless_rfkill, !state);
+		}
+	}
 
 	if (has_cap(ACER_CAP_BLUETOOTH)) {
 		status = get_u32(&state, ACER_CAP_BLUETOOTH);
-- 
1.6.0.2

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

* Re: Wifi switch not working, linux on IdeaPad S205
  2011-06-18  0:38                       ` Joey Lee
@ 2011-06-19 15:23                         ` Florian Heyer
  2011-06-20 10:10                           ` Joey Lee
  2011-06-22  9:28                           ` Ike Panhc
  0 siblings, 2 replies; 37+ messages in thread
From: Florian Heyer @ 2011-06-19 15:23 UTC (permalink / raw)
  To: Joey Lee; +Cc: ike.pan, platform-driver-x86

On 06/18/2011 02:38 AM, Joey Lee wrote:
>
> Could you please help to test this patch? This is just a test patch, and
> I didn't evaluation AWM0 in update rfkill state polling because I didn't
> think evaluate AWM0 per second is a good idea.
>
> Please probe acer-wmi driver then report rfkill state. That's see what
> the situation, then we add AWM0 part in next patch.

Hello Joey,

just tested your patch. It works, after inserting the patched module i 
can use wifi!

After booting with hardware switch = on i inserted patched acer-wmi. 
This is "rfkill list" state after inserting:

0: hci0: Bluetooth
	Soft blocked: no
	Hard blocked: no
1: phy0: Wireless LAN
	Soft blocked: no
	Hard blocked: no
2: acer-wireless: Wireless LAN
	Soft blocked: no
	Hard blocked: no

After switching to off:
1: phy0: Wireless LAN
	Soft blocked: no
	Hard blocked: no
2: acer-wireless: Wireless LAN
	Soft blocked: no
	Hard blocked: yes

Switching back to on:
1: phy0: Wireless LAN
	Soft blocked: no
	Hard blocked: no
2: acer-wireless: Wireless LAN
	Soft blocked: no
	Hard blocked: no
3: hci0: Bluetooth
	Soft blocked: no
	Hard blocked: no


regards
-- 
Florian Heyer - heyho@flanto.de

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

* Re: Wifi switch not working, linux on IdeaPad S205
  2011-06-17 22:50                       ` Joey Lee
@ 2011-06-19 16:15                         ` Florian Heyer
  0 siblings, 0 replies; 37+ messages in thread
From: Florian Heyer @ 2011-06-19 16:15 UTC (permalink / raw)
  To: Joey Lee; +Cc: ike.pan, platform-driver-x86

On 18.06.2011 00:50, Joey Lee wrote:
> Could you please help to file a bug on kernel bugzilla for this issue?
> 	https://bugzilla.kernel.org/

Ok, i filed a bug:

https://bugzilla.kernel.org/show_bug.cgi?id=37892

-- 
Florian Heyer - heyho@flanto.de

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

* Re: Wifi switch not working, linux on IdeaPad S205
  2011-06-19 15:23                         ` Florian Heyer
@ 2011-06-20 10:10                           ` Joey Lee
  2011-06-20 10:58                             ` Florian Heyer
  2011-06-22  9:28                           ` Ike Panhc
  1 sibling, 1 reply; 37+ messages in thread
From: Joey Lee @ 2011-06-20 10:10 UTC (permalink / raw)
  To: heyho; +Cc: ike.pan, Joey Lee, platform-driver-x86

於 日,2011-06-19 於 17:23 +0200,Florian Heyer 提到:
> On 06/18/2011 02:38 AM, Joey Lee wrote:
> >
> > Could you please help to test this patch? This is just a test patch, and
> > I didn't evaluation AWM0 in update rfkill state polling because I didn't
> > think evaluate AWM0 per second is a good idea.
> >
> > Please probe acer-wmi driver then report rfkill state. That's see what
> > the situation, then we add AWM0 part in next patch.
> 
> Hello Joey,
> 
> just tested your patch. It works, after inserting the patched module i 
> can use wifi!
> 

It's a good news, looks the REAL situation is not complex like us
thought. 

> After booting with hardware switch = on i inserted patched acer-wmi. 
> This is "rfkill list" state after inserting:
> 
> 0: hci0: Bluetooth
> 	Soft blocked: no
> 	Hard blocked: no
> 1: phy0: Wireless LAN
> 	Soft blocked: no
> 	Hard blocked: no
> 2: acer-wireless: Wireless LAN
> 	Soft blocked: no
> 	Hard blocked: no
> 
initial: BT on, Wireless on

Yes, acer-wmi enabled wireless by evaluate AMW0 method when initial.

> After switching to off:
> 1: phy0: Wireless LAN
> 	Soft blocked: no
> 	Hard blocked: no
> 2: acer-wireless: Wireless LAN
> 	Soft blocked: no
> 	Hard blocked: yes
> 
BT off, Wireless off?

Good, acer-wireless updated state to hard blocked, it's right!

But,
here have a question:

The phy0 killswitch didn't set to hard blocked, did wireless LAN still
can be used at this moment? even hardware switch is off?

> Switching back to on:
> 1: phy0: Wireless LAN
> 	Soft blocked: no
> 	Hard blocked: no
> 2: acer-wireless: Wireless LAN
> 	Soft blocked: no
> 	Hard blocked: no
> 3: hci0: Bluetooth
> 	Soft blocked: no
> 	Hard blocked: no
> 

I thought the real situation back to BT on, Wireless on, right?


Thank's a lot!
Joey Lee

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

* Re: Wifi switch not working, linux on IdeaPad S205
  2011-06-20 10:10                           ` Joey Lee
@ 2011-06-20 10:58                             ` Florian Heyer
  2011-06-21 10:16                               ` Joey Lee
  0 siblings, 1 reply; 37+ messages in thread
From: Florian Heyer @ 2011-06-20 10:58 UTC (permalink / raw)
  To: Joey Lee; +Cc: ike.pan, platform-driver-x86

On 06/20/2011 12:10 PM, Joey Lee wrote:
> But,
> here have a question:
>
> The phy0 killswitch didn't set to hard blocked, did wireless LAN still
> can be used at this moment? even hardware switch is off?

Hello Joey,

i tested again:

First with acer-wmi inserted (as always boot-state of wifi button is on):

switching to off "rfkill list" is:

1: phy0: Wireless LAN
	Soft blocked: no
	Hard blocked: yes
6: acer-wireless: Wireless LAN
	Soft blocked: no
	Hard blocked: yes

(phy0-hard blocked goes to "yes" after 1 or 2 seconds, maybe yesterday i 
didn't wait long enough). Wifi doesn't work in this state, i checked.

Switching to on "rfkill list" is:

1: phy0: Wireless LAN
	Soft blocked: no
	Hard blocked: no
6: acer-wireless: Wireless LAN
	Soft blocked: no
	Hard blocked: no
7: hci0: Bluetooth
	Soft blocked: no
	Hard blocked: no

Wifi now works!

After removing acer-wmi (so i loaded it only for initialisation), 
switching to off "rfkill list" is:

1: phy0: Wireless LAN
	Soft blocked: no
	Hard blocked: yes

Back to on:

1: phy0: Wireless LAN
	Soft blocked: no
	Hard blocked: no
5: hci0: Bluetooth
	Soft blocked: no
	Hard blocked: no


wifi works in state "on"- so acer-wmi is really needed only for 
initialisation.
ideapad-laptop is _not_ loaded, the wifi switch works correctly nonetheless.

> I thought the real situation back to BT on, Wireless on, right?

yes, after switching to on everything is back to state after 
initialisation (wifi works).


regards
-- 
Florian Heyer - heyho@flanto.de

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

* Re: Wifi switch not working, linux on IdeaPad S205
  2011-06-20 10:58                             ` Florian Heyer
@ 2011-06-21 10:16                               ` Joey Lee
  2011-06-24 21:03                                 ` Florian Heyer
  0 siblings, 1 reply; 37+ messages in thread
From: Joey Lee @ 2011-06-21 10:16 UTC (permalink / raw)
  To: heyho; +Cc: ike.pan, Joey Lee, platform-driver-x86

於 一,2011-06-20 於 12:58 +0200,Florian Heyer 提到:
> On 06/20/2011 12:10 PM, Joey Lee wrote:
> > But,
> > here have a question:
> >
> > The phy0 killswitch didn't set to hard blocked, did wireless LAN still
> > can be used at this moment? even hardware switch is off?
> 
> Hello Joey,
> 
> i tested again:
> 
> First with acer-wmi inserted (as always boot-state of wifi button is on):
> 
> switching to off "rfkill list" is:
> 
> 1: phy0: Wireless LAN
> 	Soft blocked: no
> 	Hard blocked: yes
> 6: acer-wireless: Wireless LAN
> 	Soft blocked: no
> 	Hard blocked: yes
> 
> (phy0-hard blocked goes to "yes" after 1 or 2 seconds, maybe yesterday i 
> didn't wait long enough). Wifi doesn't work in this state, i checked.
> 
> Switching to on "rfkill list" is:
> 
> 1: phy0: Wireless LAN
> 	Soft blocked: no
> 	Hard blocked: no
> 6: acer-wireless: Wireless LAN
> 	Soft blocked: no
> 	Hard blocked: no
> 7: hci0: Bluetooth
> 	Soft blocked: no
> 	Hard blocked: no
> 
> Wifi now works!
> 

Looks good!

We need 100% make sure acer-wireless's block state mapping to REAL
wireless RF state.

> After removing acer-wmi (so i loaded it only for initialisation), 
> switching to off "rfkill list" is:
> 
> 1: phy0: Wireless LAN
> 	Soft blocked: no
> 	Hard blocked: yes
> 
> Back to on:
> 
> 1: phy0: Wireless LAN
> 	Soft blocked: no
> 	Hard blocked: no
> 5: hci0: Bluetooth
> 	Soft blocked: no
> 	Hard blocked: no
> 
> 
> wifi works in state "on"- so acer-wmi is really needed only for 
> initialisation.

For a normal user, he will not un-probe acer-wmi driver after system.
Could you please help to confirm? I mean please switch your hardware
wifi switch a couple of cycles with acer-wmi loaded. 

Just want to 100% make sure acer-wmi will not crash after switch
wireless state by hardware a lot of times.

> ideapad-laptop is _not_ loaded, the wifi switch works correctly nonetheless.
> 

It's the same, if you wan to use ideapad-laptop at the same time. Please
load ideapad-laptop and acer-wmi then switch wireless button many times,
make sure there have not thing crash. 

> > I thought the real situation back to BT on, Wireless on, right?
> 
> yes, after switching to on everything is back to state after 
> initialisation (wifi works).

Currently, looks like we don't need evaluate AMW0 method every time we
press hardware wireless switch. It's similar with other AMW0 machines
just change to maintain hard-block.

Please help to confirm acer-wmi strong enough works with hardware
switch, then we can support it in acer-wmi or ideapad-laptop.


Thank's a lot!
Joey Lee

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

* Re: Wifi switch not working, linux on IdeaPad S205
  2011-06-19 15:23                         ` Florian Heyer
  2011-06-20 10:10                           ` Joey Lee
@ 2011-06-22  9:28                           ` Ike Panhc
  2011-06-24 21:28                             ` Florian Heyer
  1 sibling, 1 reply; 37+ messages in thread
From: Ike Panhc @ 2011-06-22  9:28 UTC (permalink / raw)
  To: Florian Heyer; +Cc: Joey Lee, platform-driver-x86

Hi Florian,

Could you have the same test with ideapad-laptop loaded? I need to make
sure ideapad-laptop have the correct rfkill information.

Thanks a lot.

On 06/19/2011 11:23 PM, Florian Heyer wrote:
> On 06/18/2011 02:38 AM, Joey Lee wrote:
>>
>> Could you please help to test this patch? This is just a test patch, and
>> I didn't evaluation AWM0 in update rfkill state polling because I didn't
>> think evaluate AWM0 per second is a good idea.
>>
>> Please probe acer-wmi driver then report rfkill state. That's see what
>> the situation, then we add AWM0 part in next patch.
> 
> Hello Joey,
> 
> just tested your patch. It works, after inserting the patched module i can use wifi!
> 
> After booting with hardware switch = on i inserted patched acer-wmi. This is "rfkill list" state after inserting:
> 
> 0: hci0: Bluetooth
>     Soft blocked: no
>     Hard blocked: no
> 1: phy0: Wireless LAN
>     Soft blocked: no
>     Hard blocked: no
> 2: acer-wireless: Wireless LAN
>     Soft blocked: no
>     Hard blocked: no
> 
> After switching to off:
> 1: phy0: Wireless LAN
>     Soft blocked: no
>     Hard blocked: no
> 2: acer-wireless: Wireless LAN
>     Soft blocked: no
>     Hard blocked: yes
> 
> Switching back to on:
> 1: phy0: Wireless LAN
>     Soft blocked: no
>     Hard blocked: no
> 2: acer-wireless: Wireless LAN
>     Soft blocked: no
>     Hard blocked: no
> 3: hci0: Bluetooth
>     Soft blocked: no
>     Hard blocked: no
> 
> 
> regards

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

* Re: Wifi switch not working, linux on IdeaPad S205
  2011-06-21 10:16                               ` Joey Lee
@ 2011-06-24 21:03                                 ` Florian Heyer
  2011-06-27  8:17                                   ` Joey Lee
  0 siblings, 1 reply; 37+ messages in thread
From: Florian Heyer @ 2011-06-24 21:03 UTC (permalink / raw)
  To: Joey Lee; +Cc: ike.pan, platform-driver-x86

Hello Joey,

> For a normal user, he will not un-probe acer-wmi driver after system.
> Could you please help to confirm? I mean please switch your hardware
> wifi switch a couple of cycles with acer-wmi loaded.
>
> Just want to 100% make sure acer-wmi will not crash after switch
> wireless state by hardware a lot of times.

Ok, with only acer-wmi loaded (wifi is connected) i toggled the wifi 
switch a couple of times. Trying as fast as possible...no problem, 
system didn't crash. After finally switching to "on" wifi connected again.

> It's the same, if you wan to use ideapad-laptop at the same time. Please
> load ideapad-laptop and acer-wmi then switch wireless button many times,
> make sure there have not thing crash.
>

With acer-wmi AND idepad-laptop loaded i tried the same as above. Again, 
no crash. After switching finally to "on" wifi connected again.

I noticed a message from acer-wmi (has nothing to do with the tests 
above): acer-wmi prints a message to kernel message log about every second:

[28907.045046] acer_wmi: acer_rfkill_update state: 1

Is this debugging output? For the final version it should be disabled.


regards
-- 
Florian Heyer - heyho@flanto.de

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

* Re: Wifi switch not working, linux on IdeaPad S205
  2011-06-22  9:28                           ` Ike Panhc
@ 2011-06-24 21:28                             ` Florian Heyer
  2011-06-27  8:17                               ` Joey Lee
  2011-06-30 14:26                               ` Ike Panhc
  0 siblings, 2 replies; 37+ messages in thread
From: Florian Heyer @ 2011-06-24 21:28 UTC (permalink / raw)
  To: Ike Panhc; +Cc: Joey Lee, platform-driver-x86

On 22.06.2011 11:28, Ike Panhc wrote:
> Hi Florian,
>
> Could you have the same test with ideapad-laptop loaded? I need to make
> sure ideapad-laptop have the correct rfkill information.
>

Hello Ike,

no problem:

After booting, wifi switch is on:

after loading acer-wmi and idepad-laptop "rfkill list" shows
0: hci0: Bluetooth
	Soft blocked: no
	Hard blocked: no
1: phy0: Wireless LAN
	Soft blocked: no
	Hard blocked: no
2: acer-wireless: Wireless LAN
	Soft blocked: no
	Hard blocked: no
3: ideapad_bluetooth: Bluetooth
	Soft blocked: no
	Hard blocked: no

wifi doesn't work this time (this seems to vary, sometimes wifi works 
directly after loading acer-wmi).

after switching to off:
1: phy0: Wireless LAN
	Soft blocked: no
	Hard blocked: no
2: acer-wireless: Wireless LAN
	Soft blocked: no
	Hard blocked: yes
3: ideapad_bluetooth: Bluetooth
	Soft blocked: no
	Hard blocked: yes

after switching back to on:
1: phy0: Wireless LAN
	Soft blocked: no
	Hard blocked: no
2: acer-wireless: Wireless LAN
	Soft blocked: no
	Hard blocked: no
3: ideapad_bluetooth: Bluetooth
	Soft blocked: no
	Hard blocked: no
4: hci0: Bluetooth
	Soft blocked: no
	Hard blocked: no

wifi runs and is trying to connect...but no connection. I toggled wifi 
on/off again and it gets enabled/disabled correctly every time but i 
don't get a stable wifi connection this time. This might be a different 
issue with the wifi driver as this one is under development too. I've 
had this behaviour some times (i have used the ideapad about 20 hours 
this week).


regards
-- 
Florian Heyer - heyho@flanto.de

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

* Re: Wifi switch not working, linux on IdeaPad S205
  2011-06-24 21:03                                 ` Florian Heyer
@ 2011-06-27  8:17                                   ` Joey Lee
  0 siblings, 0 replies; 37+ messages in thread
From: Joey Lee @ 2011-06-27  8:17 UTC (permalink / raw)
  To: heyho; +Cc: ike.pan, Joey Lee, platform-driver-x86

於 五,2011-06-24 於 23:03 +0200,Florian Heyer 提到:
> Hello Joey,
> 
> > For a normal user, he will not un-probe acer-wmi driver after system.
> > Could you please help to confirm? I mean please switch your hardware
> > wifi switch a couple of cycles with acer-wmi loaded.
> >
> > Just want to 100% make sure acer-wmi will not crash after switch
> > wireless state by hardware a lot of times.
> 
> Ok, with only acer-wmi loaded (wifi is connected) i toggled the wifi 
> switch a couple of times. Trying as fast as possible...no problem, 
> system didn't crash. After finally switching to "on" wifi connected again.
> 
> > It's the same, if you wan to use ideapad-laptop at the same time. Please
> > load ideapad-laptop and acer-wmi then switch wireless button many times,
> > make sure there have not thing crash.
> >
> 
> With acer-wmi AND idepad-laptop loaded i tried the same as above. Again, 
> no crash. After switching finally to "on" wifi connected again.
> 

Thank's for your confirm and good news!

> I noticed a message from acer-wmi (has nothing to do with the tests 
> above): acer-wmi prints a message to kernel message log about every second:
> 
> [28907.045046] acer_wmi: acer_rfkill_update state: 1
> 
> Is this debugging output? For the final version it should be disabled.
> 

Yes, this is a debug message to make sure the EC register value mapping
to rfkill hardware switch status:
	0 means wireless disabled (hard-blocked)
	1 means wireless enabled (unblocked)

I will remove this message when send out support patch to acer-wmi.


Thank's a lot!
Joey Lee

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

* Re: Wifi switch not working, linux on IdeaPad S205
  2011-06-24 21:28                             ` Florian Heyer
@ 2011-06-27  8:17                               ` Joey Lee
  2011-06-30 14:26                               ` Ike Panhc
  1 sibling, 0 replies; 37+ messages in thread
From: Joey Lee @ 2011-06-27  8:17 UTC (permalink / raw)
  To: heyho; +Cc: ike.pan, Joey Lee, platform-driver-x86

於 五,2011-06-24 於 23:28 +0200,Florian Heyer 提到:
> On 22.06.2011 11:28, Ike Panhc wrote:
> > Hi Florian,
> >
> > Could you have the same test with ideapad-laptop loaded? I need to make
> > sure ideapad-laptop have the correct rfkill information.
> >
> 
> Hello Ike,
> 
> no problem:
> 
> After booting, wifi switch is on:
> 
> after loading acer-wmi and idepad-laptop "rfkill list" shows
> 0: hci0: Bluetooth
> 	Soft blocked: no
> 	Hard blocked: no
> 1: phy0: Wireless LAN
> 	Soft blocked: no
> 	Hard blocked: no
> 2: acer-wireless: Wireless LAN
> 	Soft blocked: no
> 	Hard blocked: no
> 3: ideapad_bluetooth: Bluetooth
> 	Soft blocked: no
> 	Hard blocked: no
> 
> wifi doesn't work this time (this seems to vary, sometimes wifi works 
> directly after loading acer-wmi).
> 

If only loading acer-wmi, did it have the same problem? Wifi doesn't
work but killswitch is unblock? Sound like SOMETIMES it fail?



Thank's
Joey Lee


> after switching to off:
> 1: phy0: Wireless LAN
> 	Soft blocked: no
> 	Hard blocked: no
> 2: acer-wireless: Wireless LAN
> 	Soft blocked: no
> 	Hard blocked: yes
> 3: ideapad_bluetooth: Bluetooth
> 	Soft blocked: no
> 	Hard blocked: yes
> 
> after switching back to on:
> 1: phy0: Wireless LAN
> 	Soft blocked: no
> 	Hard blocked: no
> 2: acer-wireless: Wireless LAN
> 	Soft blocked: no
> 	Hard blocked: no
> 3: ideapad_bluetooth: Bluetooth
> 	Soft blocked: no
> 	Hard blocked: no
> 4: hci0: Bluetooth
> 	Soft blocked: no
> 	Hard blocked: no
> 
> wifi runs and is trying to connect...but no connection. I toggled wifi 
> on/off again and it gets enabled/disabled correctly every time but i 
> don't get a stable wifi connection this time. This might be a different 
> issue with the wifi driver as this one is under development too. I've 
> had this behaviour some times (i have used the ideapad about 20 hours 
> this week).
> 
> 
> regards

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

* Re: Wifi switch not working, linux on IdeaPad S205
  2011-06-24 21:28                             ` Florian Heyer
  2011-06-27  8:17                               ` Joey Lee
@ 2011-06-30 14:26                               ` Ike Panhc
  2011-06-30 15:03                                 ` Florian Heyer
  1 sibling, 1 reply; 37+ messages in thread
From: Ike Panhc @ 2011-06-30 14:26 UTC (permalink / raw)
  To: Florian Heyer; +Cc: Joey Lee, platform-driver-x86

Hi Florian,

Thanks for your testing, looks like ideapad-laptop reports correct rfkill
state.

Just two questions to be clarified,

 1. Which wifi driver you are using? wl or others?
 2. When system fails to connect AP, is the wifi scanning result correct?

Just wonder if there are any chance that ideapad-laptop block your wifi
connection even it shows unblocked.

On 06/25/2011 05:28 AM, Florian Heyer wrote:
> On 22.06.2011 11:28, Ike Panhc wrote:
>> Hi Florian,
>>
>> Could you have the same test with ideapad-laptop loaded? I need to make
>> sure ideapad-laptop have the correct rfkill information.
>>
> 
> Hello Ike,
> 
> no problem:
> 
> After booting, wifi switch is on:
> 
> after loading acer-wmi and idepad-laptop "rfkill list" shows
> 0: hci0: Bluetooth
>     Soft blocked: no
>     Hard blocked: no
> 1: phy0: Wireless LAN
>     Soft blocked: no
>     Hard blocked: no
> 2: acer-wireless: Wireless LAN
>     Soft blocked: no
>     Hard blocked: no
> 3: ideapad_bluetooth: Bluetooth
>     Soft blocked: no
>     Hard blocked: no
> 
> wifi doesn't work this time (this seems to vary, sometimes wifi works directly after loading acer-wmi).
> 
> after switching to off:
> 1: phy0: Wireless LAN
>     Soft blocked: no
>     Hard blocked: no
> 2: acer-wireless: Wireless LAN
>     Soft blocked: no
>     Hard blocked: yes
> 3: ideapad_bluetooth: Bluetooth
>     Soft blocked: no
>     Hard blocked: yes
> 
> after switching back to on:
> 1: phy0: Wireless LAN
>     Soft blocked: no
>     Hard blocked: no
> 2: acer-wireless: Wireless LAN
>     Soft blocked: no
>     Hard blocked: no
> 3: ideapad_bluetooth: Bluetooth
>     Soft blocked: no
>     Hard blocked: no
> 4: hci0: Bluetooth
>     Soft blocked: no
>     Hard blocked: no
> 
> wifi runs and is trying to connect...but no connection. I toggled wifi on/off again and it gets enabled/disabled correctly every time but i don't get a stable wifi connection this time. This might be a different issue with the wifi driver as this one is under development too. I've had this behaviour some times (i have used the ideapad about 20 hours this week).
> 
> 
> regards

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

* Re: Wifi switch not working, linux on IdeaPad S205
  2011-06-30 14:26                               ` Ike Panhc
@ 2011-06-30 15:03                                 ` Florian Heyer
  2011-07-01  8:24                                   ` Ike Panhc
  0 siblings, 1 reply; 37+ messages in thread
From: Florian Heyer @ 2011-06-30 15:03 UTC (permalink / raw)
  To: Ike Panhc; +Cc: Joey Lee, platform-driver-x86

On 30.06.2011 16:26, Ike Panhc wrote:
> Hi Florian,
>
> Thanks for your testing, looks like ideapad-laptop reports correct rfkill
> state.
>
> Just two questions to be clarified,
>
>   1. Which wifi driver you are using? wl or others?

Hello Joey,

i'm not really sure what you mean. What's "wl"? I'm using the modules 
rt2800pci and rt2x00pci for wifi support (hardware is Ralink corp. 
RT3090 Wireless 802.11n 1T/1R PCIe).

 >   2. When system fails to connect AP, is the wifi scanning result 
correct?
 >
 > Just wonder if there are any chance that ideapad-laptop block your wifi
 > connection even it shows unblocked.

I'll have to check again. Wifi runs stable since a few days. I'm running 
kernel 2.6.39 now.


regards
-- 
Florian Heyer - heyho@flanto.de

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

* Re: Wifi switch not working, linux on IdeaPad S205
  2011-06-30 15:03                                 ` Florian Heyer
@ 2011-07-01  8:24                                   ` Ike Panhc
  0 siblings, 0 replies; 37+ messages in thread
From: Ike Panhc @ 2011-07-01  8:24 UTC (permalink / raw)
  To: Florian Heyer; +Cc: Joey Lee, platform-driver-x86

On 06/30/2011 11:03 PM, Florian Heyer wrote:
> On 30.06.2011 16:26, Ike Panhc wrote:
>> Hi Florian,
>>
>> Thanks for your testing, looks like ideapad-laptop reports correct rfkill
>> state.
>>
>> Just two questions to be clarified,
>>
>>   1. Which wifi driver you are using? wl or others?
> 
> Hello Joey,
> 
> i'm not really sure what you mean. What's "wl"? I'm using the modules rt2800pci and rt2x00pci for wifi support (hardware is Ralink corp. RT3090 Wireless 802.11n 1T/1R PCIe).
> 

Thanks for your answer. I assumed the wifi chips are from Broadcom,

>>   2. When system fails to connect AP, is the wifi scanning result correct?
>>
>> Just wonder if there are any chance that ideapad-laptop block your wifi
>> connection even it shows unblocked.
> 
> I'll have to check again. Wifi runs stable since a few days. I'm running kernel 2.6.39 now.

Thanks a lot, This is what I need to know.

> 
> 
> regards

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

* Re: Wifi switch not working, linux on IdeaPad S205
  2011-05-31 13:02               ` Florian Heyer
@ 2011-05-31 13:58                 ` Joey Lee
  0 siblings, 0 replies; 37+ messages in thread
From: Joey Lee @ 2011-05-31 13:58 UTC (permalink / raw)
  To: heyho; +Cc: ike.pan, Joey Lee, platform-driver-x86

Hi Florian, 

於 二,2011-05-31 於 15:02 +0200,Florian Heyer 提到:
> On 05/31/2011 11:42 AM, Joey Lee wrote:
> > Just checked your DSDT, it declared the AMW0 methods, I agreed Ike's
> > suggestion that will be better you direct test acer-wmi on your machine.
> >
> > Please modprobe acer-wmi driver, then try to turn on/off bluetooth or
> > wireless device by rfkill.
> 
> Hello Joey,
> 
> here are some findings with acer_wmi. I execute the following steps from 
> top to bottom, and only after the last step my wifi works. After each 
> step you find the output of "rfkill list":
> 
> after booting (no ideapad_laptop, no acer_wmi):
> 0: hci0: Bluetooth
> 	Soft blocked: no
> 	Hard blocked: no
> 1: phy0: Wireless LAN
> 	Soft blocked: no
> 	Hard blocked: yes
> 
> after loading acer_wmi (wifi switch is on):
> 0: hci0: Bluetooth
> 	Soft blocked: no
> 	Hard blocked: no
> 1: phy0: Wireless LAN
> 	Soft blocked: no
> 	Hard blocked: no
> 2: acer-wireless: Wireless LAN
> 	Soft blocked: yes
> 	Hard blocked: no
> 
> after switching off:
> 1: phy0: Wireless LAN
> 	Soft blocked: no
> 	Hard blocked: no
> 2: acer-wireless: Wireless LAN
> 	Soft blocked: yes
> 	Hard blocked: no
> 
> switching on again:
> 1: phy0: Wireless LAN
> 	Soft blocked: no
> 	Hard blocked: yes
> 2: acer-wireless: Wireless LAN
> 	Soft blocked: yes
> 	Hard blocked: no
> 3: hci0: Bluetooth
> 	Soft blocked: no
> 	Hard blocked: no
> 
> after removing acer_wmi with modprobe -r:
> 1: phy0: Wireless LAN
> 	Soft blocked: no
> 	Hard blocked: no
> 3: hci0: Bluetooth
> 	Soft blocked: no
> 	Hard blocked: no
> 
> Now wifi networking can be used!
> The optimal solution would be to have ideapad_laptop make all 
> initialisations so wifi can be used after booting with no manual steps 
> necessary.
> 
> Regards

Your wmi method type is AMW0 and I thought acer-wmi query wrong EC
register address so your acer-wireless was always soft-blocked.

Please kindly help me to find out which register on your machine is
mapping to wireless status, please reference to Carlos's acer_ec.pl
tool:

http://code.google.com/p/aceracpi/wiki/EmbeddedController

Simple use:
	watch -n 1 perl acer_ec.pl regs

Then press your wireless Fn key to monitor which register changed when
you press Fn key:

e.g. the register at row B0 and column 0A is register 0xBA (0x is used
to indicate this is a hexadecimal number).

There maybe have other EC register changing when you press key, please
do a couple of times and make sure you find out the right one.

If we are lucky, we can find out one EC register mapping to your
wireless state.


Thank's
Joey Lee

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

* Re: Wifi switch not working, linux on IdeaPad S205
  2011-05-31  9:42             ` Joey Lee
@ 2011-05-31 13:02               ` Florian Heyer
  2011-05-31 13:58                 ` Joey Lee
  0 siblings, 1 reply; 37+ messages in thread
From: Florian Heyer @ 2011-05-31 13:02 UTC (permalink / raw)
  To: Joey Lee; +Cc: ike.pan, platform-driver-x86

On 05/31/2011 11:42 AM, Joey Lee wrote:
> Just checked your DSDT, it declared the AMW0 methods, I agreed Ike's
> suggestion that will be better you direct test acer-wmi on your machine.
>
> Please modprobe acer-wmi driver, then try to turn on/off bluetooth or
> wireless device by rfkill.

Hello Joey,

here are some findings with acer_wmi. I execute the following steps from 
top to bottom, and only after the last step my wifi works. After each 
step you find the output of "rfkill list":

after booting (no ideapad_laptop, no acer_wmi):
0: hci0: Bluetooth
	Soft blocked: no
	Hard blocked: no
1: phy0: Wireless LAN
	Soft blocked: no
	Hard blocked: yes

after loading acer_wmi (wifi switch is on):
0: hci0: Bluetooth
	Soft blocked: no
	Hard blocked: no
1: phy0: Wireless LAN
	Soft blocked: no
	Hard blocked: no
2: acer-wireless: Wireless LAN
	Soft blocked: yes
	Hard blocked: no

after switching off:
1: phy0: Wireless LAN
	Soft blocked: no
	Hard blocked: no
2: acer-wireless: Wireless LAN
	Soft blocked: yes
	Hard blocked: no

switching on again:
1: phy0: Wireless LAN
	Soft blocked: no
	Hard blocked: yes
2: acer-wireless: Wireless LAN
	Soft blocked: yes
	Hard blocked: no
3: hci0: Bluetooth
	Soft blocked: no
	Hard blocked: no

after removing acer_wmi with modprobe -r:
1: phy0: Wireless LAN
	Soft blocked: no
	Hard blocked: no
3: hci0: Bluetooth
	Soft blocked: no
	Hard blocked: no

Now wifi networking can be used!
The optimal solution would be to have ideapad_laptop make all 
initialisations so wifi can be used after booting with no manual steps 
necessary.

Regards
-- 
Florian Heyer - heyho@flanto.de

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

* Re: Wifi switch not working, linux on IdeaPad S205
  2011-05-31  7:26           ` Florian Heyer
@ 2011-05-31  9:42             ` Joey Lee
  2011-05-31 13:02               ` Florian Heyer
  0 siblings, 1 reply; 37+ messages in thread
From: Joey Lee @ 2011-05-31  9:42 UTC (permalink / raw)
  To: heyho; +Cc: ike.pan, Joey Lee, platform-driver-x86

Hi Florian, 

於 二,2011-05-31 於 09:26 +0200,Florian Heyer 提到:
> On 31.05.2011 08:38, Ike Panhc wrote:
> > Hi Joey,
> > 
> > I put it at http://people.canonical.com/~ikepanhc/DSDTs/acpidump-ideapad-s10-3t.dat
> 
> Hi Ike,
> 
> i think this acpi-dump is for another system (it's for a ideapad s10).
> 
> I put the one for Ideapad s205 at
> http://www.heyer-it.de/dl/s205/acpidump-ideapad-s205.txt
> 
> 
> Regards

Just checked your DSDT, it declared the AMW0 methods, I agreed Ike's
suggestion that will be better you direct test acer-wmi on your machine.

Please modprobe acer-wmi driver, then try to turn on/off bluetooth or
wireless device by rfkill.


Thank's
Joey Lee

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

* Re: Wifi switch not working, linux on IdeaPad S205
  2011-05-31  6:38         ` Ike Panhc
@ 2011-05-31  7:26           ` Florian Heyer
  2011-05-31  9:42             ` Joey Lee
  0 siblings, 1 reply; 37+ messages in thread
From: Florian Heyer @ 2011-05-31  7:26 UTC (permalink / raw)
  To: Ike Panhc; +Cc: Joey Lee, platform-driver-x86

On 31.05.2011 08:38, Ike Panhc wrote:
> Hi Joey,
> 
> I put it at http://people.canonical.com/~ikepanhc/DSDTs/acpidump-ideapad-s10-3t.dat

Hi Ike,

i think this acpi-dump is for another system (it's for a ideapad s10).

I put the one for Ideapad s205 at
http://www.heyer-it.de/dl/s205/acpidump-ideapad-s205.txt


Regards
-- 
Florian Heyer - heyho@flanto.de

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

* Re: Wifi switch not working, linux on IdeaPad S205
  2011-05-31  6:28       ` Joey Lee
@ 2011-05-31  6:38         ` Ike Panhc
  2011-05-31  7:26           ` Florian Heyer
  0 siblings, 1 reply; 37+ messages in thread
From: Ike Panhc @ 2011-05-31  6:38 UTC (permalink / raw)
  To: Joey Lee; +Cc: heyho, platform-driver-x86

Hi Joey,

I put it at http://people.canonical.com/~ikepanhc/DSDTs/acpidump-ideapad-s10-3t.dat

Thanks a lot.


On 05/31/2011 02:28 PM, Joey Lee wrote:
> Hi Ike, 
> 
> Does there have any acpidump attached on any bug, then I can download
> it?
> Need my help to look at maybe acer-wmi can support this machine?
> 
> 
> Thank's a lot!
> Joey Lee
> 
> 於 二,2011-05-31 於 14:02 +0800,Ike Panhc 提到:
>> Hi Florian,
>>
>> Sorry its being awhile. Thanks for your reply, the notify looks fine but after
>> reading the DSDT I find no hint how to fix it. :(
>>
>> It looks like we need acer_wmi to unseal the wifi switch. I am thinking of
>> two solutions. The first one is to have a module parameter to avoid reading
>> switch status. The second one is to find out how to unseal the switch function
>> with wmi (maybe a worse idea).
>>
>> First thing I need to ask is there any side effect to load acer-wmi on your
>> ideapad?
>>
>>
>>
>> On 04/28/2011 04:42 PM, Florian Heyer wrote:
>>> On 18.04.2011 03:35, Ike Panhc wrote:
>>>> In the mean time. Some test is suggested.
>>>>
>>> [...]
>>>>  * Insert a printk in notify function like this
>>>>
>>>> --- a/drivers/platform/x86/ideapad-laptop.c
>>>> +++ b/drivers/platform/x86/ideapad-laptop.c
>>>> @@ -449,6 +449,7 @@ static void ideapad_acpi_notify(struct acpi_device *adevice, u32 event)
>>>>         acpi_handle handle = adevice->handle;
>>>>         unsigned long vpc1, vpc2, vpc_bit;
>>>>  
>>>> +       pr_info("notified. event: 0x%X.\n", event);
>>>>         if (read_ec_data(handle, 0x10, &vpc1))
>>>>                 return;
>>>>         if (read_ec_data(handle, 0x1A, &vpc2))
>>>>
>>>>    and see if we have the acpi event on switch event.
>>>
>>> Hello Ike,
>>>
>>> i'm back at this problem.
>>> I have loaded module ideapad_laptop with modification as above.
>>>
>>> On triggering the hardware wifi button on->off->on i get the following
>>> messages:
>>>
>>> [  730.712030] usb 3-5: USB disconnect, device number 4
>>> [  730.713156] btusb_bulk_complete: hci0 urb ffff8801178d7b40 failed to
>>> resubmit (19)
>>> [  730.713183] btusb_intr_complete: hci0 urb ffff880115e6c780 failed to
>>> resubmit (19)
>>> [  730.713983] btusb_bulk_complete: hci0 urb ffff8801178d7000 failed to
>>> resubmit (19)
>>> [  730.714236] btusb_send_frame: hci0 urb ffff880114055600 submission failed
>>> [  730.715438] notified. event: 0x80.
>>> [  731.710317] hci_cmd_timer: hci0 command tx timeout
>>> [  732.008870] notified. event: 0x80.
>>> [  732.650384] usb 3-5: new full speed USB device number 5 using ohci_hcd
>>>
>>>
>>> Other function buttons (e.g. screen brightness adjustment) also produce
>>> messages as above "notified. event: 0x80."
>>>
>>>
>>> Regards
>>
>> --
>> To unsubscribe from this list: send the line "unsubscribe platform-driver-x86" in
>> the body of a message to majordomo@vger.kernel.org
>> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 
> 

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

* Re: Wifi switch not working, linux on IdeaPad S205
  2011-05-31  6:02     ` Ike Panhc
@ 2011-05-31  6:28       ` Joey Lee
  2011-05-31  6:38         ` Ike Panhc
  0 siblings, 1 reply; 37+ messages in thread
From: Joey Lee @ 2011-05-31  6:28 UTC (permalink / raw)
  To: ike.pan; +Cc: heyho, platform-driver-x86

Hi Ike, 

Does there have any acpidump attached on any bug, then I can download
it?
Need my help to look at maybe acer-wmi can support this machine?


Thank's a lot!
Joey Lee

於 二,2011-05-31 於 14:02 +0800,Ike Panhc 提到:
> Hi Florian,
> 
> Sorry its being awhile. Thanks for your reply, the notify looks fine but after
> reading the DSDT I find no hint how to fix it. :(
> 
> It looks like we need acer_wmi to unseal the wifi switch. I am thinking of
> two solutions. The first one is to have a module parameter to avoid reading
> switch status. The second one is to find out how to unseal the switch function
> with wmi (maybe a worse idea).
> 
> First thing I need to ask is there any side effect to load acer-wmi on your
> ideapad?
> 
> 
> 
> On 04/28/2011 04:42 PM, Florian Heyer wrote:
> > On 18.04.2011 03:35, Ike Panhc wrote:
> >> In the mean time. Some test is suggested.
> >>
> > [...]
> >>  * Insert a printk in notify function like this
> >>
> >> --- a/drivers/platform/x86/ideapad-laptop.c
> >> +++ b/drivers/platform/x86/ideapad-laptop.c
> >> @@ -449,6 +449,7 @@ static void ideapad_acpi_notify(struct acpi_device *adevice, u32 event)
> >>         acpi_handle handle = adevice->handle;
> >>         unsigned long vpc1, vpc2, vpc_bit;
> >>  
> >> +       pr_info("notified. event: 0x%X.\n", event);
> >>         if (read_ec_data(handle, 0x10, &vpc1))
> >>                 return;
> >>         if (read_ec_data(handle, 0x1A, &vpc2))
> >>
> >>    and see if we have the acpi event on switch event.
> > 
> > Hello Ike,
> > 
> > i'm back at this problem.
> > I have loaded module ideapad_laptop with modification as above.
> > 
> > On triggering the hardware wifi button on->off->on i get the following
> > messages:
> > 
> > [  730.712030] usb 3-5: USB disconnect, device number 4
> > [  730.713156] btusb_bulk_complete: hci0 urb ffff8801178d7b40 failed to
> > resubmit (19)
> > [  730.713183] btusb_intr_complete: hci0 urb ffff880115e6c780 failed to
> > resubmit (19)
> > [  730.713983] btusb_bulk_complete: hci0 urb ffff8801178d7000 failed to
> > resubmit (19)
> > [  730.714236] btusb_send_frame: hci0 urb ffff880114055600 submission failed
> > [  730.715438] notified. event: 0x80.
> > [  731.710317] hci_cmd_timer: hci0 command tx timeout
> > [  732.008870] notified. event: 0x80.
> > [  732.650384] usb 3-5: new full speed USB device number 5 using ohci_hcd
> > 
> > 
> > Other function buttons (e.g. screen brightness adjustment) also produce
> > messages as above "notified. event: 0x80."
> > 
> > 
> > Regards
> 
> --
> To unsubscribe from this list: send the line "unsubscribe platform-driver-x86" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

* Re: Wifi switch not working, linux on IdeaPad S205
  2011-04-28  8:42   ` Florian Heyer
@ 2011-05-31  6:02     ` Ike Panhc
  2011-05-31  6:28       ` Joey Lee
  0 siblings, 1 reply; 37+ messages in thread
From: Ike Panhc @ 2011-05-31  6:02 UTC (permalink / raw)
  To: Florian Heyer; +Cc: platform-driver-x86

Hi Florian,

Sorry its being awhile. Thanks for your reply, the notify looks fine but after
reading the DSDT I find no hint how to fix it. :(

It looks like we need acer_wmi to unseal the wifi switch. I am thinking of
two solutions. The first one is to have a module parameter to avoid reading
switch status. The second one is to find out how to unseal the switch function
with wmi (maybe a worse idea).

First thing I need to ask is there any side effect to load acer-wmi on your
ideapad?



On 04/28/2011 04:42 PM, Florian Heyer wrote:
> On 18.04.2011 03:35, Ike Panhc wrote:
>> In the mean time. Some test is suggested.
>>
> [...]
>>  * Insert a printk in notify function like this
>>
>> --- a/drivers/platform/x86/ideapad-laptop.c
>> +++ b/drivers/platform/x86/ideapad-laptop.c
>> @@ -449,6 +449,7 @@ static void ideapad_acpi_notify(struct acpi_device *adevice, u32 event)
>>         acpi_handle handle = adevice->handle;
>>         unsigned long vpc1, vpc2, vpc_bit;
>>  
>> +       pr_info("notified. event: 0x%X.\n", event);
>>         if (read_ec_data(handle, 0x10, &vpc1))
>>                 return;
>>         if (read_ec_data(handle, 0x1A, &vpc2))
>>
>>    and see if we have the acpi event on switch event.
> 
> Hello Ike,
> 
> i'm back at this problem.
> I have loaded module ideapad_laptop with modification as above.
> 
> On triggering the hardware wifi button on->off->on i get the following
> messages:
> 
> [  730.712030] usb 3-5: USB disconnect, device number 4
> [  730.713156] btusb_bulk_complete: hci0 urb ffff8801178d7b40 failed to
> resubmit (19)
> [  730.713183] btusb_intr_complete: hci0 urb ffff880115e6c780 failed to
> resubmit (19)
> [  730.713983] btusb_bulk_complete: hci0 urb ffff8801178d7000 failed to
> resubmit (19)
> [  730.714236] btusb_send_frame: hci0 urb ffff880114055600 submission failed
> [  730.715438] notified. event: 0x80.
> [  731.710317] hci_cmd_timer: hci0 command tx timeout
> [  732.008870] notified. event: 0x80.
> [  732.650384] usb 3-5: new full speed USB device number 5 using ohci_hcd
> 
> 
> Other function buttons (e.g. screen brightness adjustment) also produce
> messages as above "notified. event: 0x80."
> 
> 
> Regards

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

* Re: Wifi switch not working, linux on IdeaPad S205
       [not found] ` <4DAB9566.7010601@canonical.com>
@ 2011-04-28  8:42   ` Florian Heyer
  2011-05-31  6:02     ` Ike Panhc
  0 siblings, 1 reply; 37+ messages in thread
From: Florian Heyer @ 2011-04-28  8:42 UTC (permalink / raw)
  To: Ike Panhc; +Cc: platform-driver-x86

On 18.04.2011 03:35, Ike Panhc wrote:
> In the mean time. Some test is suggested.
> 
[...]
>  * Insert a printk in notify function like this
> 
> --- a/drivers/platform/x86/ideapad-laptop.c
> +++ b/drivers/platform/x86/ideapad-laptop.c
> @@ -449,6 +449,7 @@ static void ideapad_acpi_notify(struct acpi_device *adevice, u32 event)
>         acpi_handle handle = adevice->handle;
>         unsigned long vpc1, vpc2, vpc_bit;
>  
> +       pr_info("notified. event: 0x%X.\n", event);
>         if (read_ec_data(handle, 0x10, &vpc1))
>                 return;
>         if (read_ec_data(handle, 0x1A, &vpc2))
> 
>    and see if we have the acpi event on switch event.

Hello Ike,

i'm back at this problem.
I have loaded module ideapad_laptop with modification as above.

On triggering the hardware wifi button on->off->on i get the following
messages:

[  730.712030] usb 3-5: USB disconnect, device number 4
[  730.713156] btusb_bulk_complete: hci0 urb ffff8801178d7b40 failed to
resubmit (19)
[  730.713183] btusb_intr_complete: hci0 urb ffff880115e6c780 failed to
resubmit (19)
[  730.713983] btusb_bulk_complete: hci0 urb ffff8801178d7000 failed to
resubmit (19)
[  730.714236] btusb_send_frame: hci0 urb ffff880114055600 submission failed
[  730.715438] notified. event: 0x80.
[  731.710317] hci_cmd_timer: hci0 command tx timeout
[  732.008870] notified. event: 0x80.
[  732.650384] usb 3-5: new full speed USB device number 5 using ohci_hcd


Other function buttons (e.g. screen brightness adjustment) also produce
messages as above "notified. event: 0x80."


Regards
-- 
Florian Heyer - heyho@flanto.de

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

end of thread, other threads:[~2011-07-01  8:25 UTC | newest]

Thread overview: 37+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-31 22:50 Wifi switch not working, linux on IdeaPad S205 Joey Lee
2011-05-31 23:42 ` Florian Heyer
2011-06-01  2:08   ` Joey Lee
2011-06-02  8:42     ` Florian Heyer
2011-06-02 19:16       ` Joey Lee
2011-06-03 12:49         ` Florian Heyer
2011-06-07 13:48           ` Joey Lee
2011-06-09  8:36             ` Ike Panhc
2011-06-15  9:32               ` Joey Lee
2011-06-15  9:42                 ` Florian Heyer
2011-06-17 13:09                   ` Joey Lee
2011-06-17 15:03                     ` Florian Heyer
2011-06-17 22:50                       ` Joey Lee
2011-06-19 16:15                         ` Florian Heyer
2011-06-18  0:38                       ` Joey Lee
2011-06-19 15:23                         ` Florian Heyer
2011-06-20 10:10                           ` Joey Lee
2011-06-20 10:58                             ` Florian Heyer
2011-06-21 10:16                               ` Joey Lee
2011-06-24 21:03                                 ` Florian Heyer
2011-06-27  8:17                                   ` Joey Lee
2011-06-22  9:28                           ` Ike Panhc
2011-06-24 21:28                             ` Florian Heyer
2011-06-27  8:17                               ` Joey Lee
2011-06-30 14:26                               ` Ike Panhc
2011-06-30 15:03                                 ` Florian Heyer
2011-07-01  8:24                                   ` Ike Panhc
2011-06-16  9:58                 ` Ike Panhc
2011-06-17 10:58                   ` Joey Lee
     [not found] <4DAB18C3.7010106@flanto.de>
     [not found] ` <4DAB9566.7010601@canonical.com>
2011-04-28  8:42   ` Florian Heyer
2011-05-31  6:02     ` Ike Panhc
2011-05-31  6:28       ` Joey Lee
2011-05-31  6:38         ` Ike Panhc
2011-05-31  7:26           ` Florian Heyer
2011-05-31  9:42             ` Joey Lee
2011-05-31 13:02               ` Florian Heyer
2011-05-31 13:58                 ` Joey Lee

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.