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

Trevor trevor.chart at gmail.com
Fri Aug 7 09:19:32 UTC 2009



Andreas Schreiner wrote:
> Quoting Trevor <trevor.chart at gmail.com>:
> 
>> This is a constant bug for me on 900a. Fn+F2 will switch wireless off, 
>> but not back on. Running the wireless scripts manually results in:
>> off:
>> trevor at Myri:/etc/acpi/actions$ sudo sh wireless.sh off
>> Detected eeepc-wlan as rfkill /sys/class/rfkill/rfkill0
>> Detected WLAN module ath5k on wlan0
>>
>> On:
>> trevor at Myri:/etc/acpi/actions$ sudo sh 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
>> exec: 51: wireless.sh: not found
>>
>> the led comes back on, but I get no connectivity and scanning with wicd
>>
>> anything else I can provide?
> 
> 
> I also use the EeePC 900a but not with pure Debian but Sidux instead. I 
> have not yet tried this with "real" Debian Kernels and this is why I 
> didt not yet open a bug report.
> 
> But the story is as follows! The EeePC 900A still needs pciehp_force=1 
> when loading the pciehp kernel module - even with the most up-to-date 
> kernels. WLAN toggle will not work without pciehp_force=1 but it will 
> work with it!
> 
> Here is what you can do to test this:
> Reboot, then open a console and become root:
> 
> Unload the pciehp module:
> # modprobe -r pciehp
> 
> Load it again with pciehp_force
> # modprobe pciehp pciehp_force=1
> 
> You will now see that WLAN toggle works again without problems by 
> pressing fn-F2
> 
> 
> If you want to fix this permanently until the next eeepc-acpi-scripts 
> update you can edit the /etc/init.d/eeepc-acpi-scripts file accordingly. 
> This is what I have done but I would only recommend it if you at least 
> understand how the file works and what to change - otherwise might break 
> something.
> 
> 
> I hope I will find some time soon to test this with original Debian 
> Kernels (stable, testing and unstable). Then it'll be easy to patch 
> eeepc-acpi-scripts accordingly to specially treat the 900A.
> 
> Regards
> Andreas Schreiner
> 
> 

Hey! It works great! Thanks Andreas!
All, I can take on working up a patch to do this by default on the 900a 
(testing on all current kernels). Where should I send/submit the patch 
once it's ready? Andreas, let me know if you would prefer to take the 
lead or corroborate on this. I don't usually boot from the pre-ath5k 
kernels, but I can definitely do so for testing purposes.

Trevor Chart



More information about the Debian-eeepc-devel mailing list