使用Atheros AR5007的HP dv5上的无线LED不会停止闪烁

所以,我正在使用WiFi LED时出现这个问题,当我使用互联网时,它不会停止闪烁。

我尝试了很多不同的解决方案。 我在Google,Ubuntus论坛和博客等其他主题上搜索了很多内容,但他们提供的解决方案都没有为我工作。 我希望你们其中一个人能在这里帮助我。

我的笔记本电脑是HP dv5 1240br,无线适配器是Atheros AR5007 802.11b / g。

thigomes95@Homenotebook:~$ lsmod | grep ath ath5k 156371 0 ath 24067 1 ath5k mac80211 462092 1 ath5k cfg80211 199587 3 ath5k,ath,mac80211 

不幸的是,这个驱动程序没有选项可以关闭闪烁,但你应该能够通过sys接口控制LED并将命令放在启动脚本中:

  • 从命令行测试命令:

     echo none | sudo tee "/sys/class/leds/ath5k-phy0::tx/trigger" > /dev/null echo none | sudo tee "/sys/class/leds/ath5k-phy0::rx/trigger" > /dev/null 

    这应该完全关闭led触发数据传输。 如果你想要它反映你的无线电状态(开/关),你可以试试这个(我担心我无法测试这个):

     echo none | sudo tee "/sys/class/leds/ath5k-phy0::tx/trigger" > /dev/null echo phy0radio | sudo tee "/sys/class/leds/ath5k-phy0::rx/trigger" > /dev/null 

    [如果phy0radio不起作用,你可以运行cat /sys/class/leds/ath5k-phy0::rx/trigger来获取你可以试用的led的支持触发器列表。

  • 一旦知道要使用哪些命令,请在无线接口启动时自动运行它们:

    1. 从命令行在gedit中创建并打开一个新文件:

       gksu gedit /etc/network/if-up.d/ath5k-led-trigger 
    2. 现在将以下内容粘贴到文件中(如有必要,将值替换为echo和无线接口名称):

       #!/bin/sh -e # Called whenever an interface comes up. Sets led triggers for # tx and rx of the ath5k module. # Only care about the wireless interface "wlan0" if [ "$IFACE" != "wlan0" ]; then exit 0 fi # Also exit, if /sys is not yet mounted (not sure # if that's even possible, but checking shouldn't hurt). if [ ! -d "/sys/class/leds/ath5k-phy0::tx/trigger" ]; then exit 0 fi # Echo the two triggers echo none > "/sys/class/leds/ath5k-phy0::tx/trigger" echo none > "/sys/class/leds/ath5k-phy0::rx/trigger" 
    3. 保存,退出gedit,返回命令行使脚本可执行:

       sudo chmod +x /etc/network/if-up.d/ath5k-led-trigger 

下次重启时,闪烁应该消失。 如果有其他人知道在系统启动时运行这两个回声的更好方法(Upstart作业?),请随意评论或建议编辑。 🙂