For asus eee pc

$ cat /sys/class/dmi/id/product_name
1011PX
$ cat /sys/class/dmi/id/board_name
1015PE

Tested with Atheros and Broadcom ( ...mpcie internal wireless controller
)

kubuntu 12.04, 12.10 (ver <= kernel-3.5) wifi enabled/disabled - OK.
Update to kubuntu 14.04. Wireless on/off switch - RIP... 

Set wapf flag not help:
a) asus_nb_wmi - never load.
b) set (edit/rebuild asus-wmi.c ) wapf values 0,1,4 in asus_wmi - do nothing 
expected and positive.

Code in linux/drivers/platform/x86/asus-wmi.c ( line with 
asus->driver->wlan_ctrl_by_user = 1; )
was added after kernel ver. 3.5 (?) and damage switch - rfkill "Hard blocked: 
yes /  Hard blocked: no" 

Fix tested with kernel 3.13.0-30 ( as I hope nondestructive for other
models requested "wlan_ctrl_by_user" ) attached in archive.

folder: test debug – just logs and source asus-wmi.c with extended trace
info

folder: fix_eeepc_wlan_switch

Modified asus-wmi.c ( original ….linux/drivers/platform/x86/asus-wmi.c )

Config asus_wmi.conf  for modified asus-wmi.c   
( /etc/modprobe.d/asus_wmi.conf )

options asus_wmi wapf=0
Allow override/set wapf in asus-wmi.ko without  asus_nb_wmi
By default wapf=-1 and do nothing.
Value  wapf >= 0 set (override ) any other values

options asus_wmi disable_wlan_auto_hw_switch_detect=1
1 – disable  "wlan_ctrl_by_user = 1" and prevent explode my mind with message  
Hard blocked: yes
instead of expected Hard blocked: no!
0 – do nothing with original code ( by default )

Reason for options?
1)
I don't see  wapf  in eeepc-wmi.ko... and in future some xxxx-wmi.ko without 
extended config damage wireless lan for years or two for thousand users.  :)
2)
I don't like rebuild driver after every update :Very Big Smile:



** Attachment added: "I hope this help not only for my poor eee pc"
   
https://bugs.launchpad.net/ubuntu/+source/linux-lts-raring/+bug/1277959/+attachment/4151167/+files/asuswlan.zip

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1277959

Title:
  [Asus 1015E] Fn+F2 is not working for activating/deactivating wifi

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux-lts-raring/+bug/1277959/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to