Fedora Linux Support Community & Resources Center
  #1  
Old 29th January 2012, 10:00 PM
Sickman Offline
Registered User
 
Join Date: Jan 2012
Location: Italy
Posts: 4
linuxfirefox
Wireless led always on (asus k52f)

Hi everyone! this is my first post here so be good with me

I've installed Fedora 16 on my Asus k52f, and i've got this little thing to solve (i fixed some other stuff).
The wireless led of my laptop is always on, even if i shut down the switch (fn+f2 it works fine). I tried to follow a fix that was originally made for ubuntu, to solve the thing, but it didn' t work on Fedora. This is the stuff i found. It' about create these two files, and give the commands:

gedit /etc/acpi/events/asus-wireless-switch
Code:
   event=hotkey ATKD 0000005d
action=/etc/acpi/asus-wireless-switch.sh
gedit /etc/acpi/asus-wireless-switch.sh
Code:
 #!/bin/sh
# Toggle wireless device on Asus K52 laptops

WLANSTATUS=`cat /sys/class/ieee80211/phy*/rfkill*/state`

test -z $WLANSTATUS && exit 1

if [ $WLANSTATUS = 0 ]; then
echo 0 > /sys/devices/platform/asus_laptop/wlan    
elif [ $WLANSTATUS = 1 ]; then
echo 1 > /sys/devices/platform/asus_laptop/wlan
fi
sudo chmod +x /etc/acpi/asus-wireless-switch.sh
sudo service acpid restart


anyone have any idea? any solution? Thanks in advance

Last edited by Sickman; 31st January 2012 at 04:46 PM.
Reply With Quote
  #2  
Old 31st January 2012, 04:51 PM
Sickman Offline
Registered User
 
Join Date: Jan 2012
Location: Italy
Posts: 4
linuxfirefox
Re: Wireless led always on (asus k52f)

I'm glad to say that i solved the problem!
The scripts was fine, the only thing to change was the hotkey for buttons fn+f2 in the first file (/etc/acpi/events/asus-wireless-switch ), so i changed from "00000005d" to "button/wlan.*"
Reply With Quote
  #3  
Old 1st February 2012, 10:03 AM
hieronymous Offline
Registered User
 
Join Date: Jan 2012
Location: auckland
Posts: 77
linuxfirefox
Re: Wireless led always on (asus k52f)

Quote:
Originally Posted by Sickman View Post

gedit /etc/acpi/events/asus-wireless-switch
Code:
   event=hotkey ATKD 0000005d
action=/etc/acpi/asus-wireless-switch.sh
Hi Sickman

I think you mean change /etc/acpi/events/asus-wireless-switch to the following?

Code:
event=button/wlan.*
action=/etc/acpi/asus-wireless-switch.sh
Reply With Quote
  #4  
Old 1st February 2012, 09:14 PM
Sickman Offline
Registered User
 
Join Date: Jan 2012
Location: Italy
Posts: 4
linuxchrome
Re: Wireless led always on (asus k52f)

Yes! sorry if it was not clear!
Reply With Quote
  #5  
Old 2nd February 2012, 04:00 AM
hieronymous Offline
Registered User
 
Join Date: Jan 2012
Location: auckland
Posts: 77
linuxfedorafirefox
Re: Wireless led always on (asus k52f)

Hi Sickman

That's OK - I figured it out after a while. Your solution is smart work, it's the first Fedora fix I have seen!
Reply With Quote
  #6  
Old 23rd February 2012, 01:44 AM
coolroot Offline
Registered User
 
Join Date: Feb 2012
Location: Syria
Posts: 5
linuxfirefox
Re: Wireless led always on (asus k52f)

Quote:
Originally Posted by Sickman View Post
I'm glad to say that i solved the problem!
The scripts was fine, the only thing to change was the hotkey for buttons fn+f2 in the first file (/etc/acpi/events/asus-wireless-switch ), so i changed from "00000005d" to "button/wlan.*"
Hello everyone
Sickman ,I'm glad you could solve the problem
I have an "ASUS k52f" too
you wrote that you have solved another problems
I'm wondering if you had any suspend/hibernate problems or any other kind of problems(e.g graphics support) _ I have an ATI radeon HD 5470 _ do you have the same one ?
could you tell me what problems did you counter on this ASUS(list of problems)
because I moved from using ubuntu to fedora (fedora 15)

and thanks anyway ^_^
Reply With Quote
  #7  
Old 2nd March 2012, 11:41 AM
Sickman Offline
Registered User
 
Join Date: Jan 2012
Location: Italy
Posts: 4
linuxfirefox
Re: Wireless led always on (asus k52f)

Hey sorry for i'm answering only now, but didn' t saw this before...
So Coolroot, i had the suspension/hybernation problem and i found the solution (not mine, i just found it on a thread), but i don't have an ati card, so can't help u bout that!

for suspension/hybernation:

create these two scripts in /etc/pm/sleep.d

1- name it: 20_custom-ehci_hcd

Code:
#!/bin/sh

case "${1}" in
        hibernate|suspend)
              # Unbind ehci_hcd for first device 0000:00:1a.0
               echo -n "0000:00:1a.0" | tee /sys/bus/pci/drivers/ehci_hcd/unbind
              # Unbind ehci_hcd for second device 0000:00:1d.0
               echo -n "0000:00:1d.0" | tee /sys/bus/pci/drivers/ehci_hcd/unbind
        ;;
        resume|thaw)
              # Bind ehci_hcd for first device 0000:00:1a.0
              echo -n "0000:00:1a.0" | tee /sys/bus/pci/drivers/ehci_hcd/bind
              # Bind ehci_hcd for second device 0000:00:1d.0
              echo -n "0000:00:1d.0" | tee /sys/bus/pci/drivers/ehci_hcd/bind
        ;;
esac
2 - this is to resume wireless after suspend (i need it, for mine, an atheros 9285) name it 30_custom-ath9k


Code:
#!/bin/sh

case "${1}" in
        hibernate|suspend)
              nmcli nm sleep true
              rmmod ath9k
              echo 0 > /sys/devices/platform/asus_laptop/wlan
        ;;
        resume|thaw)
              modprobe ath9k
              nmcli nm sleep false
              echo 1 > /sys/devices/platform/asus_laptop/wlan
        ;;
esac
Make them executable
Let me know if it works also for you!

Last edited by Sickman; 2nd March 2012 at 12:17 PM.
Reply With Quote
  #8  
Old 19th March 2012, 03:34 AM
coolroot Offline
Registered User
 
Join Date: Feb 2012
Location: Syria
Posts: 5
linuxfirefox
Thumbs up Re: Wireless led always on (asus k52f)

I'm sorry that it took so long for me to answer
but there is bad internet conditions here

I want thank very much Sickman for sharing this solution

suspend is working like a charm after the fix , but hibernate still has a problem when it wakes up, everything gets weird(cursor is a weird box and the system hangs)
the X server should be restarted to solve the issue or maybe there is something wrong with my system

but the real problem now is that the Display manager won't start, and some services fail to start on startup ( cgconfig, vbox services ,wlmproxy and ctrlproxy)

I have to use single user mode then
Code:
init 3
then I login and
Code:
startx
NOTICE: the startup problem may be caused by something else

any solution or a clue to fix startup/hibernate problems, it's annoying
I think this one is easy to solve, the only thing I need is a clue

thank you again Sickman ^_^
Reply With Quote
Reply

Tags
asus, k52f, led, wireless

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Fan and CPU behaviour - Fedora 15 - laptop Asus K52F nekron29 Hardware & Laptops 1 14th September 2011 06:01 AM
asus wireless shabakeh Hardware & Laptops 2 23rd January 2011 11:33 AM
can't connect wireless with asus pce-n13 boardbox Servers & Networking 1 20th July 2010 06:28 AM
f8 - asus P5E3 - wireless pmvalente Servers & Networking 3 8th July 2008 01:25 PM
Help with Asus F5R Wireless. just1ce Hardware & Laptops 8 17th February 2008 02:38 PM


Current GMT-time: 05:55 (Friday, 22-08-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat