← Back to team overview

ac100 team mailing list archive

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

 

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.

Gordan

-- 
You received this question notification because you are a member of
AC100 Team, which is an answer contact for AC100_enablement.


Follow ups