[Debian-eeepc-devel] Bug#485236: eeepc-acpi-scripts: Fn+F2 sometimes fails to switch wireless on

Alan Jenkins sourcejedi.lkml at googlemail.com
Wed Aug 12 10:48:10 UTC 2009


Trevor wrote:
> Alan Jenkins wrote:
>> On 8/11/09, Alan Jenkins <sourcejedi.lkml at googlemail.com> wrote:
>>> On 8/11/09, Trevor <trevor.chart at gmail.com> wrote:
>>>> Alan Jenkins wrote:
>>>>>               On 2.6.30, eeepc-laptop is intended to replace
>>>>> the force-loading of pciehp.  It would be good to know why it doesn't
>>>>> work on the 900A when it works on other machines.  Maybe we can fix
>>>>> it.
>>>> I don't have any idea why, but it's definitely not working here. I'm
>>>> happy to help however I can
>>>>
>>>>> Does dmesg show any errors during the initialisation of eeepc-laptop?
>>>>>
>>>>> I would be interested in the full output of dmesg and acpidump.
>>>>>
>>>>> Regards
>>>>> Alan
>>>> I don't see anything out-of-place in dmesg, but I've never seen the
>>>> successful version, so my eyes are likely not the best to look at it.
>>>> full output of dmesg is attached,
>>> [   10.405347] eeepc: Eee PC Hotkey Driver
>>> [   10.406016] eeepc: Hotkey init flags 0x41
>>> [   10.406214] eeepc: Get control methods supported: 0x181701
>>> [   10.406403] input: Asus EeePC extra buttons as
>>> /devices/virtual/input/input1
>>>
>>> Thanks.  I don't see any problem here.
>>>
>>>> how would I get you the acpidump?
>>> Simples :-).  It'll be 100k+ so I guess it's best to send off-list (or
>>> use pastebin etc).
>>>
>>> sudo apt-get install acpidump
>>> sudo acpidump > acpidump.out
>>>
>>>
>>> Also, can you please run a test for me?  It should help confirm that
>>> the problem is what it looks like.  Without pciehp loaded, what is the
>>> result of
>>>
>>> cat /sys/bus/pci/slots/eeepc-wifi/adaptor
>>>
>>> both after you disable the wifi, and then after you enable it again.
>>
>> Sorry, thats "adapter" with an e... and it won't help.
>>
>> Let's check what happens to the network interface instead. Does the
>> directory "/sys/class/net/wlan0" still exist when you disable the
>> wireless (without pciehp loaded)?
>>
>> Thanks
>> Alan
>
> Here's my command record for your test:
>
> trevor at Myri:~$ #verify that pciehp isn't loaded
> trevor at Myri:~$ lsmod | grep pciehp
> trevor at Myri:~$ #wlan up and working off of boot-up
> trevor at Myri:~$ cd /sys/class/net/wlan0
> trevor at Myri:/sys/class/net/wlan0$ ls
> address    device    flags    link_mode  power           type
> addr_len   dev_id    ifalias  mtu     statistics    uevent
> broadcast  dormant   ifindex  operstate  subsystem
> carrier    features  iflink   phy80211     tx_queue_len
> trevor at Myri:/sys/class/net/wlan0$ cd
> trevor at Myri:~$ #wlan  off
> trevor at Myri:~$ sudo /etc/acpi/actions/wireless.sh off
> Detected eeepc-wlan as rfkill /sys/class/rfkill/rfkill0
> Detected WLAN module ath5k on wlan0
> There is already a pid file /var/run/dhclient.wlan0.pid with pid 2638
> killed old client process, removed PID file
> Internet Systems Consortium DHCP Client V3.1.2p1
> Copyright 2004-2009 Internet Systems Consortium.
> All rights reserved.
> For info, please visit http://www.isc.org/sw/dhcp/
>
> Listening on LPF/wlan0/00:15:af:c9:9f:d9
> Sending on   LPF/wlan0/00:15:af:c9:9f:d9
> Sending on   Socket/fallback
> DHCPRELEASE on wlan0 to 192.168.0.1 port 67
> Error for wireless request "Set Mode" (8B06) :
>     SET failed on device wlan0 ; Invalid argument.
> trevor at Myri:~$ cd /sys/class/net/wlan0
> bash: cd: /sys/class/net/wlan0: No such file or directory
> trevor at Myri:~$ #wlan back on
> trevor at Myri:~$ sudo /etc/acpi/actions/wireless.sh on
> Detected eeepc-wlan as rfkill /sys/class/rfkill/rfkill0
> Detected WLAN module ath5k on wlan0
> wlan0: ERROR while getting interface flags: No such device
> Detected eeepc-wlan as rfkill /sys/class/rfkill/rfkill0
> Detected WLAN module ath5k on wlan0
> Internet Systems Consortium DHCP Client V3.1.2p1
> Copyright 2004-2009 Internet Systems Consortium.
> All rights reserved.
> For info, please visit http://www.isc.org/sw/dhcp/
>
> Bind socket to interface: No such device
> trevor at Myri:~$ cd /sys/class/net/wlan0
> bash: cd: /sys/class/net/wlan0: No such file or directory
> trevor at Myri:~$
>

Oops.  Looking at wireless.sh, this doesn't tell me anything either.

> ACPI dump is coming off-list - anyone who wants a copy for themselves,
> just let me know.
>
> Thanks for all the help,
>
> Trevor

Great, that shows the exact problem I was expecting.

Here's a test patch for 2.6.30 (attached).

Regards
Alan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: eeepc-laptop-rfkill-hotplug-P0P5.patch
Type: text/x-diff
Size: 1204 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/debian-eeepc-devel/attachments/20090812/302178ca/attachment.patch>


More information about the Debian-eeepc-devel mailing list