← Back to team overview

ac100 team mailing list archive

Re: [Question #204692]: Show mmc (hdd style) activity inac100 led

 

Am Dienstag, 31. Juli 2012, 18:36:03 schrieb Gordan Bobic:
> Question #204692 on AC100_enablement changed:
> https://answers.launchpad.net/ac100/+question/204692
> 
>     Status: Open => Answered
> 
> Gordan Bobic proposed the following answer:
> 
> On 07/31/2012 07:01 PM, Francesco Cortassa Gozzi wrote:
> > New question #204692 on AC100_enablement:
> > https://answers.launchpad.net/ac100/+question/204692
> > 
> > Hi Guys!
> > 
> > First of all, my very big compliments to all of you for the hard work you
> > have done to make the ac100 a pleasant-to-use machine!!!
> > 
> > I'd like to add the internal MMC activity notification, as it frequently
> > happens that I start some heavy application, say Firefox, and the system
> > gets stuck for some seconds. I dunno if I didn't click correctly or it's
> > just a matter of waiting... In a proper laptop, I'd have a look at the
> > HDD led to verify that the program is starting up. I'd sacrifice the wifi
> > led to use it for MMC activity.
> > Unfortunately I'm not that linux guru as you guys are, and that's the
> > reason why I'm asking for your help. What I know is that the MMC led is
> > driven by the '/sys/class/leds/mmc0::/brightness' system file, and I'm
> > looking for a convenient way to feed the
> > '/sys/class/leds/wifi-led/brightness' wifi led with the mmc content...
> > Or, even, another better way to do the job.
> > 
> > Just for testing, the following command does the trick, but it is awful
> > and cpu consuming (I feel ashamed of this command!!!):
> > 
> > while : ; do cat "/sys/class/leds/mmc0::/brightness"> 
> > /sys/class/leds/wifi-led/brightness ;done
> > 
> > Does anyone of you have an idea on how to pipe the content of one file
> > into the other, without making loops or whatever? I tried also to symlink
> > without luck...
> To make it efficient, you'd need to write a kernel patch that connects
> these internally and runs every time the MMC interrupt triggers.

maybe not. I haven't my ac100 here, but in "theory", it should be enough to 
echo mmc0 to the wifi led trigger in sysfs.

Marc


Follow ups

References