Skip to contentSkip to conversation

Wifi switch not working, linux on IdeaPad S205

DISCUSSION Florian Heyer 3 participants 8 messages Apr 28, 2011 – May 31, 2011 2 messages not in the archive x86 platform drivers

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

#2 lore raw
Quoted 2 lines · Ike Panhc

In the mean time. Some test is suggested.

[...]

Quoted 13 lines

* Insert a printk in notify function like this

drivers/platform/x86/ideapad-laptop.c +1 -0
@@ -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))
Quoted 1 line

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

Signature · 1 line
Florian Heyer - [email protected]
#3 lore raw

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?

Quoted 46 lines · Florian Heyer
Quoted 2 lines · Ike Panhc

In the mean time. Some test is suggested.

[...]

Quoted 13 lines

* Insert a printk in notify function like this

drivers/platform/x86/ideapad-laptop.c +1 -0
@@ -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))
Quoted 1 line

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

#4 lore raw

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 提到:

Quoted 67 lines

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?

Quoted 41 lines · Florian Heyer
Quoted 2 lines · Ike Panhc

In the mean time. Some test is suggested.

[...]

Quoted 13 lines

* Insert a printk in notify function like this

drivers/platform/x86/ideapad-laptop.c +1 -0
@@ -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))
Quoted 1 line

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
Quoted 5 lines

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 [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#5 lore raw

Hi Joey,

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

Thanks a lot.

Quoted 80 lines · Joey Lee

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 提到:

Quoted 67 lines

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?

Quoted 41 lines · Florian Heyer
Quoted 2 lines · Ike Panhc

In the mean time. Some test is suggested.

[...]

Quoted 13 lines

* Insert a printk in notify function like this

drivers/platform/x86/ideapad-laptop.c +1 -0
@@ -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))
Quoted 1 line

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
Quoted 5 lines

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 [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#7 lore raw

Hi Florian,

於 二,2011-05-31 於 09:26 +0200,Florian Heyer 提到:

Quoted 7 lines · Ike Panhc
Quoted 3 lines

Hi Joey,

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

Hi Ike,

Quoted 7 lines

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

#8 lore raw
Quoted 5 lines · Joey Lee

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

Signature · 1 line
Florian Heyer - [email protected]
#9 lore raw

Hi Florian,

於 二,2011-05-31 於 15:02 +0200,Florian Heyer 提到:

Quoted 59 lines · Joey Lee
Quoted 5 lines

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

Quoted 6 lines

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