[Packard-Bell EasyNote] asus_laptop problem: wifi

Bug #612454 reported by simon
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Won't Fix
Undecided
Ike Panhc

Bug Description

The main problem is that wifi receives but doesn't transmit data (http://bugzilla.intellinuxwireless.org/show_bug.cgi?id=2128). The workaround is to blacklist asus_laptop.

ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: linux-image-2.6.32-24-generic 2.6.32-24.38
Regression: No
Reproducible: Yes
ProcVersionSignature: Ubuntu 2.6.32-24.38-generic 2.6.32.15+drm33.5
Uname: Linux 2.6.32-24-generic i686
NonfreeKernelModules: nvidia
AlsaVersion: Advanced Linux Sound Architecture Driver Version 1.0.21.
Architecture: i386
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: polona 1140 F.... kmix
                      polona 1145 F.... amarok
CRDA: Error: [Errno 2] No such file or directory
Card0.Amixer.info:
 Card hw:0 'Intel'/'HDA Intel at 0xfebfc000 irq 21'
   Mixer name : 'Analog Devices AD1986A'
   Components : 'HDA:11d41986,1631c022,00100500 HDA:10573055,1631c022,00100700'
   Controls : 38
   Simple ctrls : 22
Date: Mon Aug 2 10:17:06 2010
HibernationDevice: RESUME=UUID=b61f9990-58e5-4cb0-b6ae-1f1a26862599
InstallationMedia: Kubuntu 10.04 LTS "Lucid Lynx" - Release i386 (20100427)
MachineType: Packard Bell BV EasyNote_MX66
ProcCmdLine: BOOT_IMAGE=/boot/vmlinuz-2.6.32-24-generic root=UUID=9e43439c-0c44-4504-87b9-60d53d1722d2 ro quiet splash
ProcEnviron:
 LANGUAGE=
 PATH=(custom, no user)
 LANG=sl_SI.UTF-8
 SHELL=/bin/bash
RelatedPackageVersions: linux-firmware 1.34.1
RfKill:
 0: phy0: Wireless LAN
  Soft blocked: no
  Hard blocked: no
SourcePackage: linux
dmi.bios.date: 09/28/2006
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: T12JNC.206
dmi.board.asset.tag: To Be Filled By O.E.M.
dmi.board.name: EasyNote_MX65
dmi.board.vendor: Packard Bell BV
dmi.board.version: 1.0
dmi.chassis.type: 10
dmi.chassis.vendor: Packard Bell BV
dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvrT12JNC.206:bd09/28/2006:svnPackardBellBV:pnEasyNote_MX66:pvrPB76E00253:rvnPackardBellBV:rnEasyNote_MX65:rvr1.0:cvnPackardBellBV:ct10:cvr:
dmi.product.name: EasyNote_MX66
dmi.product.version: PB76E00253
dmi.sys.vendor: Packard Bell BV

Revision history for this message
simon (simon-vrhovec) wrote :
Revision history for this message
Ike Panhc (ikepanhc) wrote :

Hi Simon,

I also need some other information that seems not with apport, please attach them.

* DMI
Please attach the output of "cat /sys/class/dmi/id/modalias"

* DSDT
Please attach DSDT.dsl which can be made with following commands
$ sudo cp /sys/firmware/acpi/tables/DSDT ./DSDT.bin
$ sudo iasl -d ./DSDT.bin

Revision history for this message
Ike Panhc (ikepanhc) wrote :

for DSDT, please use acpidump. It will give me more information.

$ sudo acpidump > acpidump.dat

Then attach the acpidump.dat

Thanks a lot.

Revision history for this message
simon (simon-vrhovec) wrote :
Revision history for this message
simon (simon-vrhovec) wrote :
Revision history for this message
simon (simon-vrhovec) wrote :
Revision history for this message
simon (simon-vrhovec) wrote :

I have detected another asus_laptop bug concerning numlock. This laptop has a keypad on the right like on this picture:

http://www.abcelectronique.com/comparateur/informatique/ordinateur/ordinateur_portable/photos/easynote_mx66_005_packard_bell.jpg

I will describe only the behaviour of one key - 1 / End. The others work the same way.

When asus_laptop is blacklisted (correct behaviour):
 - numlock off:
    1 -> End
    shift + 1 -> Select till End
 - numlock on:
    1 -> 1
    shift + 1 -> Select till End

When asus_laptop is not blacklisted:
 - numlock off:
    1 -> End
    shift + 1 -> 1 (!)
 - numlock on:
    1 -> 1
    shift + 1 -> Select till End

It's a pesky bug making it difficult to select things. Often accidentally rewriting text with numbers.

Ike Panhc (ikepanhc)
Changed in linux (Ubuntu):
assignee: nobody → Ike Panhc (ikepanhc)
Ike Panhc (ikepanhc)
Changed in linux (Ubuntu):
status: New → In Progress
Revision history for this message
Ike Panhc (ikepanhc) wrote :

Hi Simon,

I go through the DSDT you post. It looks a normal asus laptop one and nothing interesting me so far.

Will keep digging.

Could you look into /sys/devices/platform/asus_laptop and cat those files there (Ex: display,wlan,bluetooth) please.

Thanks a lot.

Revision history for this message
simon (simon-vrhovec) wrote :

Hi Ike,

here are the cats:

> cat bluetooth
1

> cat display
1

> cat infos
Asus Laptop Support 0.42
Model reference : T12J
SFUN value : 0x8f7
DSDT length : 29842
DSDT checksum : 187
DSDT revision : 1
OEM id : T1200
OEM table id : T1200205
OEM revision : 0x205
ASL comp vendor id : INTL
ASL comp revision : 0x2002026

> cat modalias
platform:asus_laptop

> cat uevent
DRIVER=asus_laptop
MODALIAS=platform:asus_laptop

> cat wlan
1

Let me know if you need any other files from the subdirectories.

Thank you!

Revision history for this message
Ike Panhc (ikepanhc) wrote :

Hi Simon,

Sorry for replying late. I read the DSDT and asus-laptop. looks like the WLED method is the rfkill switch.

Since you have blacklist the asus-laptop. Can you try to insert it by

# sudo insmod /lib/modules/`uname -r`/drivers/platform/x86/asus-laptop wlan_status=0

and see if the wifi will be blocked or not.

Thanks a lot.

Revision history for this message
simon (simon-vrhovec) wrote :

Hi Ike,

I have tried to insert it but the path is incorrect. I located asus-laptop but still an error occurs:

$ sudo insmod /lib/modules/`uname -r`/kernel/drivers/platform/x86/asus-laptop.ko wlan_status=0
insmod: error inserting '/lib/modules/2.6.32-24-generic/kernel/drivers/platform/x86/asus-laptop.ko': -1 Unknown symbol in module

Thanks,
Simon

Revision history for this message
Ike Panhc (ikepanhc) wrote :

Hi Simon,

Sorry, I forget to tell you about the dependency.

Please use the following command before insmod.

$ sudo modprobe led-class

Revision history for this message
Ike Panhc (ikepanhc) wrote :

oh, BTW

After insmod, please tell me if wifi is ok or not, and please cat "/sys/devices/platform/asus_laptop/wlan". I need the value to know the status of WLAN.

Thanks for your great help.

Revision history for this message
simon (simon-vrhovec) wrote :

Hi Ike,

I am still getting the same error. Are there any other dependencies? I am attaching the result of

$ modprobe -l

Thanks,
Simon

Revision history for this message
Ike Panhc (ikepanhc) wrote :

Hi Simon,

The dependency information is at /lib/modules/`uname -r`/modules.dep

you can find the dependency by

# grep asus-laptop /lib/modules/`uname -r`/modules.dep

For Lucid kernel (2.6.32 based), depends on led-class
For Maverick kernel (2.6.35 based), depends on led-class and sparse-keymap

If something still goes wrong when insmod, you can use dmesg to find out which symbol missed
For example:

# sudo insmod /lib/modules/`uname -r`/kernel/drivers/platform/x86/asus-laptop.ko
insmod: error inserting '/lib/modules/2.6.35-15-generic/kernel/drivers/platform/x86/asus-laptop.ko': -1 Unknown symbol in module
# dmesg | tail -5
[ 1810.825553] asus_laptop: Unknown symbol sparse_keymap_free (err 0)
[ 1810.826257] asus_laptop: Unknown symbol led_classdev_unregister (err 0)
[ 1810.827612] asus_laptop: Unknown symbol sparse_keymap_report_event (err 0)
[ 1810.827809] asus_laptop: Unknown symbol sparse_keymap_setup (err 0)
[ 1810.828457] asus_laptop: Unknown symbol led_classdev_register (err 0)

and dmesg tells me three sparse_keymap functions and two led_class functions missing.

Revision history for this message
Ike Panhc (ikepanhc) wrote :

When you have the unknown symbol in dmesg, you can find where to have the symbol by reading modules.symbols

# grep led_classdev_register /lib/modules/`uname -r`/modules.symbols
alias symbol:led_classdev_register led_class

Revision history for this message
simon (simon-vrhovec) wrote :

Hi Ike,

the problem is in the parameter...

$ dmesg | tail -2
[ 70.452041] wlan0: no IPv6 routers present
[ 332.156298] asus_laptop: Unknown parameter `wlan_status'

Thanks,
Simon

Revision history for this message
Ike Panhc (ikepanhc) wrote :

Ouch, sorry, that's my fault. the parameter is added when .34 kernel and I check asus-laptop.c with mainline kernel.

I will find out how to force asus-laptop not to set wlan status.

Revision history for this message
Ike Panhc (ikepanhc) wrote :

Hi Simon,

I made a dkms package with asus-laptop.c from lucid but remove forcing wifi on when init. Could you install it and reboot to see if the wifi works fine or not? Thanks a lot.

Revision history for this message
simon (simon-vrhovec) wrote :

Hi Ike,

I have installed the package and rebooted keeping asus_laptop blacklisted. The wifi works and the '/sys/devices/platform/asus_laptop_test/wlan' is set to 1.

Simon

Revision history for this message
Ike Panhc (ikepanhc) wrote :

Thanks Simon,

I only remove two lines from asus-laptop.c. Looks like what I guess is correct. I think the other function of asus-laptop works for you (ex: hotkeys). Please keep blacklist asus-laptop and using the dkms package. I will ask maintainer of asus-laptop if he has similar report and how to deal with it.

Revision history for this message
Ike Panhc (ikepanhc) wrote :
Revision history for this message
Ike Panhc (ikepanhc) wrote :

Hi Simon,

I am afraid that currently no good solutions for fix this situation because removing those two line will let wifi of some other laptops down.

Are you ok with the dkms package attached for lucid? In future releases (Ex: Maverick) you can append "options asus_laptop wlan_status=-1" in /etc/modprobe.d

I will help Corentin Chary to maintain the wiki and hope that we can have a list for those methods.

I set the status of this bug to "Wont Fix" since this is a real bug but unfortunately we have no good solutions. If the problem is solved, I will set the status to "Fix Released".

Changed in linux (Ubuntu):
status: In Progress → Won't Fix
Revision history for this message
simon (simon-vrhovec) wrote :

Hi Ike,

thank you for your efforts. I guess it will have to do it.

Just an observation as an external... Why does a Packard-Bell laptop need an Asus driver (why not pb-laptop)? Is PB EasyNote based on Asus? Should I make an extensive test of all buttons, leds, etc. and report it to somebody (e.g. the developer of asus-laptop) to see how do they differ?

Simon

Revision history for this message
Ike Panhc (ikepanhc) wrote :

Hi Simon,

I guess its because the same company or team to design the BIOS for Packard-Bell and Asus laptops. asus-laptop.ko will bind on an ACPI device whose HID is "ATK0100" or "ATK0101". You may find the string in the DSDT.dsl you posted. As I know, if a laptop has the ATK0100 in its DSDT and the behavior of the device is very similar.

I do not have an Asus laptop but have a Lenovo SL400 laptops. I tried to enable the hotkey an year ago. Corentin Chary saw the DSDT and was surprised its looks like an Asus DSDT. Only few lines added and the hotkey works.

For those extra functions for your laptop, you may try them and if some of them are no function, please file another bug and ping me on IRC. I will see what I can do.

If you are interested in writing an ACPI driver, you may start from the article Matthew Garrett wrote, its at http://lwn.net/Articles/367630/

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.