From owner-freebsd-questions@FreeBSD.ORG Thu Feb 2 14:52:48 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 57801106564A for ; Thu, 2 Feb 2012 14:52:48 +0000 (UTC) (envelope-from cwhiteh@onetel.com) Received: from anakin.london.02.net (anakin.london.02.net [87.194.255.134]) by mx1.freebsd.org (Postfix) with ESMTP id F2A898FC0A for ; Thu, 2 Feb 2012 14:52:47 +0000 (UTC) Received: from muji2.config (87.194.237.233) by anakin.london.02.net (8.5.140) id 4EEB63D200C62937 for freebsd-questions@freebsd.org; Thu, 2 Feb 2012 14:52:46 +0000 Message-ID: <4F2AA33E.6010207@onetel.com> Date: Thu, 02 Feb 2012 14:52:46 +0000 From: Chris Whitehouse User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.9.2.9) Gecko/20100924 Thunderbird/3.1.4 MIME-Version: 1.0 To: User Questions Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: ath and how to control wireless light X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Feb 2012 14:52:48 -0000 Hello I have FreeBSD 9R amd64 installed on a HP G60 laptop. This machine has a combined wireless switch and led. The switch turns the wifi on and off but the light stays red. The light is supposed to show red for wireless off and blue for wireless on. I found some sysctls that control it: dev.ath.0.softled: 0 dev.ath.0.ledpin: 3 dev.ath.0.ledon: 1 dev.ath.0.ledidle: 2700 softled, ledpin and ledon are all set to 0 on boot. I set ledpin to 3, then to change the colour of the light I turn on softled 0->1, toggle ledon and turn off softled again. Can I make that sequence occur, or do something else, to make the led change when the button is pressed _and_ keep in sync with whether the wireless is on or off? With softled=1 the light is blue with a short red flash or red with a short blue flash depending on the value of ledon. Also when softled=1 the light flashes in it's "opposite" colour when there is network traffic. So it would probably be ok just to leave softled=1 and toggle ledon. The wireless device is dev.ath.0.%desc: Atheros 5424/2424. I think there is a slight glitch with the on/off button, that under some circumstances it doesn't turn the wifi on again, which would be much easier to test if the light worked. Also what is ledidle and what do different settings do? Thanks Chris