<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wikidot="http://www.wikidot.com/rss-namespace">

	<channel>
		<title>MBWE LED control</title>
		<link>http://mybookworld.wikidot.com/forum/t-28326/mbwe-led-control</link>
		<description>Posts in the discussion thread &quot;MBWE LED control&quot;</description>
				<copyright></copyright>
		<lastBuildDate></lastBuildDate>
		
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-28326#post-133457</guid>
				<title>Re: MBWE LED control</title>
				<link>http://mybookworld.wikidot.com/forum/t-28326/mbwe-led-control#post-133457</link>
				<description></description>
				<pubDate>Fri, 28 Mar 2008 19:24:03 +0000</pubDate>
				<wikidot:authorName>SpeedCore</wikidot:authorName>				<wikidot:authorUserId>53101</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>i figured out, that $THISWAIT is only empty, if the case "Drive is overheating, lowering sleep timeout" is active. If the drive is below 50 degrees, there's no problem. Any suggestions?</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-28326#post-133159</guid>
				<title>Re: MBWE LED control</title>
				<link>http://mybookworld.wikidot.com/forum/t-28326/mbwe-led-control#post-133159</link>
				<description></description>
				<pubDate>Fri, 28 Mar 2008 10:00:40 +0000</pubDate>
				<wikidot:authorName>Zium</wikidot:authorName>				<wikidot:authorUserId>39706</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>I've not tried this script on mbwe.<br /> Yes try to echo it.</p> <p>If it works, try to echo results of partial part of the equation. By this way, you'll be able to point out a syntax error.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-28326#post-133113</guid>
				<title>Re: MBWE LED control</title>
				<link>http://mybookworld.wikidot.com/forum/t-28326/mbwe-led-control#post-133113</link>
				<description></description>
				<pubDate>Fri, 28 Mar 2008 08:28:59 +0000</pubDate>
				<wikidot:authorName>SpeedCore</wikidot:authorName>				<wikidot:authorUserId>53101</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>that makes sense. but wait, thiswait is the product of waittime and backoff_factor. so it should contain anything… did this script work for you? i could try to echo $thiswait to see what's in it…</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-28326#post-133109</guid>
				<title>Re: MBWE LED control</title>
				<link>http://mybookworld.wikidot.com/forum/t-28326/mbwe-led-control#post-133109</link>
				<description></description>
				<pubDate>Fri, 28 Mar 2008 08:04:20 +0000</pubDate>
				<wikidot:authorName>Zium</wikidot:authorName>				<wikidot:authorUserId>39706</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>I would say $THISWAIT has no value.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-28326#post-132941</guid>
				<title>Re: MBWE LED control</title>
				<link>http://mybookworld.wikidot.com/forum/t-28326/mbwe-led-control#post-132941</link>
				<description></description>
				<pubDate>Fri, 28 Mar 2008 00:27:46 +0000</pubDate>
				<wikidot:authorName>SpeedCore</wikidot:authorName>				<wikidot:authorUserId>53101</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>the exact error message is:<br /> /usr/sbin/smart_spindown: line 227: (100-((1*5)*100)/): syntax error: operand expected (error token is ")")</p> <p>dunno what it means :(</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-28326#post-132930</guid>
				<title>Re: MBWE LED control</title>
				<link>http://mybookworld.wikidot.com/forum/t-28326/mbwe-led-control#post-132930</link>
				<description></description>
				<pubDate>Fri, 28 Mar 2008 00:08:42 +0000</pubDate>
				<wikidot:authorName>SpeedCore</wikidot:authorName>				<wikidot:authorUserId>53101</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>hi,<br /> i tried the modified script because i'd like to have the fuel gauge as timer for the sleeping mode and also the temperature control, but i'm getting something like "operand expected" on that line:</p> <p>PERCENT=$(((100-(($NUM_EQUALS*5)*100)/$THISWAIT)));</p> <p>any suggestions?</p> <p>thx<br /> SpeedCore</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-28326#post-131077</guid>
				<title>Re: MBWE LED control</title>
				<link>http://mybookworld.wikidot.com/forum/t-28326/mbwe-led-control#post-131077</link>
				<description></description>
				<pubDate>Tue, 25 Mar 2008 12:40:27 +0000</pubDate>
				<wikidot:authorName>stark</wikidot:authorName>				<wikidot:authorUserId>85651</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>i thing the power Brightness file is the main thing, caus im turning all brightness (exsept power) file down to zero, but activity stil lights, so when i turn power to zero it becomes night.</p> <p>here is a quick code for reading the current value of all files. (this is for the "noob" who dosent know php so good)</p> <div class="code"> <div class="hl-main"> <pre> <span class="hl-inlinetags">&lt;?php</span><span class="hl-code"> </span><span class="hl-reserved">echo</span><span class="hl-code"> </span><span class="hl-quotes">"</span><span class="hl-string">Activity = </span><span class="hl-quotes">"</span><span class="hl-code">; </span><span class="hl-reserved">include</span><span class="hl-code"> </span><span class="hl-quotes">'</span><span class="hl-string">/sys/class/leds/wdc-leds:activity/brightness</span><span class="hl-quotes">'</span><span class="hl-code">; </span><span class="hl-reserved">echo</span><span class="hl-code"> </span><span class="hl-quotes">"</span><span class="hl-string">Degraded = </span><span class="hl-quotes">"</span><span class="hl-code">; </span><span class="hl-reserved">include</span><span class="hl-code"> </span><span class="hl-quotes">'</span><span class="hl-string">/sys/class/leds/wdc-leds:degraded/brightness</span><span class="hl-quotes">'</span><span class="hl-code">; </span><span class="hl-reserved">echo</span><span class="hl-code"> </span><span class="hl-quotes">"</span><span class="hl-string">Fuel-Gauge = </span><span class="hl-quotes">"</span><span class="hl-code">; </span><span class="hl-reserved">include</span><span class="hl-code"> </span><span class="hl-quotes">'</span><span class="hl-string">/sys/class/leds/wdc-leds:fuel-gauge/brightness</span><span class="hl-quotes">'</span><span class="hl-code">; </span><span class="hl-reserved">echo</span><span class="hl-code"> </span><span class="hl-quotes">"</span><span class="hl-string">Ignore-Act = </span><span class="hl-quotes">"</span><span class="hl-code">; </span><span class="hl-reserved">include</span><span class="hl-code"> </span><span class="hl-quotes">'</span><span class="hl-string">/sys/class/leds/wdc-leds:ignore-act/brightness</span><span class="hl-quotes">'</span><span class="hl-code">; </span><span class="hl-reserved">echo</span><span class="hl-code"> </span><span class="hl-quotes">"</span><span class="hl-string">Over-temp = </span><span class="hl-quotes">"</span><span class="hl-code">; </span><span class="hl-reserved">include</span><span class="hl-code"> </span><span class="hl-quotes">'</span><span class="hl-string">/sys/class/leds/wdc-leds:over-temp/brightness</span><span class="hl-quotes">'</span><span class="hl-code">; </span><span class="hl-reserved">echo</span><span class="hl-code"> </span><span class="hl-quotes">"</span><span class="hl-string">Power = </span><span class="hl-quotes">"</span><span class="hl-code">; </span><span class="hl-reserved">include</span><span class="hl-code"> </span><span class="hl-quotes">'</span><span class="hl-string">/sys/class/leds/wdc-leds:power/brightness</span><span class="hl-quotes">'</span><span class="hl-code">; </span><span class="hl-reserved">echo</span><span class="hl-code"> </span><span class="hl-quotes">"</span><span class="hl-string">Rebuilding = </span><span class="hl-quotes">"</span><span class="hl-code">; </span><span class="hl-reserved">include</span><span class="hl-code"> </span><span class="hl-quotes">'</span><span class="hl-string">/sys/class/leds/wdc-leds:rebuilding/brightness</span><span class="hl-quotes">'</span><span class="hl-code">; </span><span class="hl-reserved">echo</span><span class="hl-code"> </span><span class="hl-quotes">"</span><span class="hl-string">transition = </span><span class="hl-quotes">"</span><span class="hl-code">; </span><span class="hl-reserved">include</span><span class="hl-code"> </span><span class="hl-quotes">'</span><span class="hl-string">/sys/class/leds/wdc-leds:transition/brightness</span><span class="hl-quotes">'</span><span class="hl-code">; </span><span class="hl-inlinetags">?&gt;</span> </pre></div> </div> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-28326#post-95167</guid>
				<title>Re: MBWE LED control</title>
				<link>http://mybookworld.wikidot.com/forum/t-28326/mbwe-led-control#post-95167</link>
				<description></description>
				<pubDate>Tue, 22 Jan 2008 04:36:28 +0000</pubDate>
				<wikidot:authorName>sforget</wikidot:authorName>				<wikidot:authorUserId>63457</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>I have already modified my Spin_down script to control the LEDs to show me the drive status.</p> <p>The inner ring shows me the countdown percentage. and the outer ring shows me the drive spin down/up status.</p> <p>My code is kind of a hack of kyyhkynen's spin down script, but it works quite nicely. I've also modified the script to change the spin down time based on drive temperature (as my drive has a tendancy to overheat).</p> <p>Here's my hacked script - I've documented most of t to help me keep track of what I've done:</p> <div class="code"> <pre> <code>#!/bin/bash # # smart_spindown # # Copyright (C) 2003 by Bart Samwel # # You may do with this file (and parts thereof) whatever you want, as long # as my copyright notice is retained. # # Extended by joerk at gentoo-wiki.com # Modified to fit WD MyBook World external hard drives by kyyhkynen at gmail.com # ################################################################### # # Configuration # # Disk(s) to monitor. # If you have only one disk, leave DISK2 empty DISK1=sda DISK2= # The base "no reads" wait time (in seconds). This is multiplied by # the backoff factor to determine the real "no reads" wait time. WAITTIME=300 #Time for when Drive is overheating OVERHEATWAITTIME=60 # The maximum "no reads" wait time (in seconds). # This also limits the backoff factor: the backoff factor cannot increase # above a value that makes the "no reads" wait time larger than MAXWAIT. # Default is 1200 seconds. MAXWAIT=1200 # Time (in seconds) between polls to see if the disk is active again. # Default is 30 seconds. POLLTIME=30 # Output levels. Level 2 is verbose, level 1 is normal output. # Enable all levels you would like to see. OUTLEVEL1=true OUTLEVEL2=false # Decide which output to use. Useful if run in daemon mode # echo or logger # output1 is logged to normal, output2 to debug syslog # Is PID of this shell logged? #OUTPUT1=echo #OUTPUT2=echo OUTPUTTAG="$(basename -- $0)[$$]" OUTPUT1="logger -t $OUTPUTTAG -p user.notice --" OUTPUT2="logger -t $OUTPUTTAG -p user.debug --" # LED pointers FUEL_GAUGE is the inner ring, and POWER is the outer FUEL_GAUGE="/sys/class/leds/wdc-leds:fuel-gauge/brightness" POWER="/sys/class/leds/wdc-leds:power/brightness" PERCENT=0; # # End of configuration. You shouldn't have to change lines below this :) # ######################################################################### # Device name(s) for the disk(s). DEVNAME1=/dev/$DISK1 [ "$DISK2" ] &amp;&amp; DEVNAME2=/dev/$DISK2 [ -z "$DISK2" ] &amp;&amp; DEVNAME2= # Stats file: the file used to monitor the disk's read activity. # The first entry in this stats file must represent the read activity. STATSFILE1=/sys/block/$DISK1/stat STATSFILE2=/sys/block/$DISK2/stat # Multiplication factor for the backoff after a spinup, in percentages. # Default is 300 = factor 3. BACKOFF_INCREASE_PCT=200 # Multiplication factor for the backoff at every poll that shows that # the disk is spun down. This determines how fast the backoff value # decreases. BACKOFF_DECREASE_PCT=98 # Enable this if you don't use laptop_mode. This will make the script # sync before spinning down the disc. To make this work, you must # ensure that: # 1. /proc/sys/vm/dirty_expire_centisecs is set to a high value. You can # use 60000 for 10 minutes. # 2. /proc/sys/vm/dirty_writeback_centisecs is set to the same value. # 3. Your ext3 filesystems are mounted with "commit=n", where n is the # number of seconds between commit. Use 600 for 10 minutes. NO_LAPTOP_MODE=true # # Let's go! # # Number of poll times that the disc was found to be spun down. POLLSSPUNDOWN=0 # Number of spindowns performed SPINDOWNS=0 # Number of times (*100) the WAITTIME of no-reads required before spindown BACKOFF_FACTOR=100 # Stats: Total time the disk has been up. UPTIME=0 # Total duration of last spun-down period. LASTDOWNTIME=-1 # Total duration of the last spun-up period. LASTUPTIME=0 # Duration of the last poll. Always equal to POLLTIME except the first # time around. LASTPOLLTIME=0 # Make sure the stuff we use is in the cache. I've seen it happen # that the script spun the disk down, and then "sleep" wasn't in # the cache and the disk spun right up again. :) true false sleep 1 # Log the end of script execution trap "$OUTPUT1 'Exiting.'" EXIT #Set Power Led to ON echo 255 &gt; $POWER if [ "$DISK2" ] ; then $OUTLEVEL1 &amp;&amp; ${OUTPUT1} "Monitoring spindown opportunities for disks $DISK1 and $DISK2." ; else $OUTLEVEL1 &amp;&amp; ${OUTPUT1} "Monituring spindown opportunities for disk $DISK1." ; fi ; if ($OUTLEVEL1) ; then hdparm -C $DEVNAME1 $DEVNAME2 |grep active &gt;/dev/null if [ "$?" == "0" ] ; then [ "$DISK2" ] &amp;&amp; ${OUTPUT1} "A drive is currently spun up." ; [ -z "$DISK2" ] &amp;&amp; ${OUTPUT1} "The drive is currently spun up." ; # Drive is Up, Use 100% of fuel gauge PERCENT=100 ; echo 255 &gt; $POWER else [ "$DISK2" ] &amp;&amp; ${OUTPUT1} "Both drives are currently spun down." ; [ -z "$DISK2" ] &amp;&amp; ${OUTPUT1} "The drive is currently spun down." ; # Drive is Down, Use 0% of fuel gauge PERCENT=0 ; echo 0 &gt; $POWER fi ; fi # Get Drive Temperature TEMPERATURE=`/usr/sbin/smartctl -d ata -A /dev/sda |grep 194 |awk '{ print $10; }'` ; while [[ /sbin/true ]]; do hdparm -C $DEVNAME1 $DEVNAME2 |grep active &gt;/dev/null if [ "$?" == "0" ] ; then THISWAIT=$(($WAITTIME*$BACKOFF_FACTOR/100)) ; # Drive is Up, Use 100% of fuel gauge, Turn on POWER LED PERCENT=100 ; echo 255 &gt; $POWER #Backup RamDisk - Remove if you do not use the Ramdisk /etc/init.d/S13ramdisk backup if [[ $THISWAIT -gt $MAXWAIT ]] ; then THISWAIT=$MAXWAIT ; fi ; # Increase the backoff irrespective of whether we failed # or not. The backoff should drop again by the lack of # spinups afterwards. BACKOFF_FACTOR=$(($BACKOFF_FACTOR*$BACKOFF_INCREASE_PCT/100)) ; if [[ $(($BACKOFF_FACTOR*$WAITTIME/100)) -gt $MAXWAIT ]] ; then BACKOFF_FACTOR=$(($MAXWAIT*100/$WAITTIME)) ; fi ; UPTIME=$(($UPTIME+$LASTPOLLTIME)) ; LASTUPTIME=$(($LASTUPTIME+$LASTPOLLTIME)) ; if [ "$LASTDOWNTIME" -ge "0" ] ; then $OUTLEVEL1 &amp;&amp; ${OUTPUT1} "A drive spun up after $LASTDOWNTIME seconds. Total time up/down: $UPTIME/$(($POLLSSPUNDOWN*$POLLTIME)) (avg sleep time $(($POLLSSPUNDOWN*$POLLTIME/$SPINDOWNS)))" ; fi PREVIOUS_READS_DISK1=-1 ; PREVIOUS_READS_DISK2=-1 ; NEXT_READS_DISK1=-1 ; NEXT_READS_DISK2=-1 ; NUM_EQUALS=0 ; # Value to prevent writing to Log too often LAST_TEMP_WRITE=0 ; $OUTLEVEL2 &amp;&amp; ${OUTPUT2} "Waiting for $THISWAIT seconds of read inactivity..." ; PREVIOUS_READS_DISK1=`cat $STATSFILE1 |awk '{ print $1; }'` ; [ "$DISK2" ] &amp;&amp; PREVIOUS_READS_DISK2=`cat $STATSFILE2 |awk '{ print $1; }'` ; while [[ $(($NUM_EQUALS*5)) -lt $THISWAIT ]]; do # Get Drive Temperature TEMPERATURE=`/usr/sbin/smartctl -d ata -A /dev/sda |grep 194 |awk '{ print $10; }'` ; if [ "$NUM_EQUALS" -ge "$LAST_TEMP_WRITE" ] ; then $OUTLEVEL1 &amp;&amp; ${OUTPUT1} "Current Drive Temperature: $TEMPERATURE Degrees." ; LAST_TEMP_WRITE=$(($NUM_EQUALS+5)) ; fi ; # If Temp too High - reduce sleep time. if [ "$TEMPERATURE" -ge "50" ] ; then $OUTLEVEL2 &amp;&amp; ${OUTPUT2} "Drive is OverHeating. Lowering Sleep Timeout" ; THISWAIT=$OVERHEATWAITTIME ; fi ; sleep 5 ; UPTIME=$(($UPTIME+5)) ; LASTUPTIME=$(($LASTUPTIME+5)) ; NEXT_READS_DISK1=`cat $STATSFILE1 |awk '{ print $1; }'` ; [ "$DISK2" ] &amp;&amp; NEXT_READS_DISK2=`cat $STATSFILE2 |awk '{ print $1; }'` ; if [[ $PREVIOUS_READS_DISK1 -ne $NEXT_READS_DISK1 ]] ; then NUM_EQUALS=0 ; PREVIOUS_READS_DISK1=$NEXT_READS_DISK1 ; $OUTLEVEL2 &amp;&amp; ${OUTPUT2} "$DISK1 read, restarting..." ; else if [ "$DISK2" -a $PREVIOUS_READS_DISK2 -ne $NEXT_READS_DISK2 ] ; then NUM_EQUALS=0 ; PREVIOUS_READS_DISK2=$NEXT_READS_DISK2 ; $OUTLEVEL2 &amp;&amp; ${OUTPUT2} "$DISK2 read, restarting..." ; else NUM_EQUALS=$(($NUM_EQUALS+1)) ; $OUTLEVEL2 &amp;&amp; ${OUTPUT2} "Seconds of quiet: $(($NUM_EQUALS*5))" ; fi fi # Set Fuel Gauge to show Sleep timer PERCENT=$(((100-(($NUM_EQUALS*5)*100)/$THISWAIT))); echo $PERCENT &gt; $FUEL_GAUGE ; $OUTLEVEL2 &amp;&amp; ${OUTPUT2} "Fuel Gauge at: $PERCENT %" ; done # We've just had $THISWAIT seconds of read inactivity. Writes can be # cached, reads always spin up the disk; the inactivity indicates # that we're ready to go to sleep. Laptop mode will have synced all # writes for us after the last read, so we don't have to explicitly # sync. if ( $NO_LAPTOP_MODE ) ; then sync ; fi ; hdparm -q -y $DEVNAME1 $DEVNAME2 ; SPINDOWNS=$(($SPINDOWNS+1)) ; $OUTLEVEL1 &amp;&amp; ${OUTPUT1} "Drive(s) spun down after $LASTUPTIME seconds (with $THISWAIT seconds of inactivity), total spin down count: ${SPINDOWNS}." ; LASTUPTIME=0 ; LASTDOWNTIME=0 ; # Turn Off Power LED echo 0 &gt; $POWER ; else # Check Drive Temperature TEMPERATURE=`/usr/sbin/smartctl -d ata -A /dev/sda |grep 194 |awk '{ print $10; }'` ; $OUTLEVEL1 &amp;&amp; ${OUTPUT1} "Current Drive Temperature: $TEMPERATURE Degrees." ; POLLSSPUNDOWN=$(($POLLSSPUNDOWN+1)) ; if [[ $SPINDOWNS -eq 0 ]] ; then SPINDOWNS=1 ; fi LASTDOWNTIME=$(($LASTDOWNTIME+$LASTPOLLTIME)) ; BACKOFF_FACTOR=$(($BACKOFF_FACTOR*$BACKOFF_DECREASE_PCT/100)) ; if [ $BACKOFF_FACTOR -lt 100 ] ; then BACKOFF_FACTOR=100 ; fi fi ; if ( $OUTLEVEL2 ) ; then ${OUTPUT2} "spindowns: $SPINDOWNS, time up/down: $UPTIME/$(($POLLSSPUNDOWN*$POLLTIME)), backoff $BACKOFF_FACTOR, down for $LASTDOWNTIME (avg $(($POLLSSPUNDOWN*$POLLTIME/$SPINDOWNS)))." ; fi ; sleep $POLLTIME ; LASTPOLLTIME=$POLLTIME ; done</code> </pre></div> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-28326#post-95158</guid>
				<title>Re: MBWE LED control</title>
				<link>http://mybookworld.wikidot.com/forum/t-28326/mbwe-led-control#post-95158</link>
				<description></description>
				<pubDate>Tue, 22 Jan 2008 03:44:38 +0000</pubDate>
				<wikidot:authorName>trevorf</wikidot:authorName>				<wikidot:authorUserId>71551</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>I too did find this a little annoying, as I wanted the whole device to appear as if it were off. Personally, I'm not very experienced with linux and all, so this solution may not be the nicest way of doing things. It works for me, and has been for the last 2 months now.</p> <p>We're editing the smart_spindown file /usr/sbin/smart_spindown:</p> <p>At approx:<br /> line:197 - hdparm -q -y $DEVNAME1 $DEVNAME2 ;</p> <p>Add underneath: (This is to basically to remove leds module = off)<br /> /sbin/rmmod wdc_leds</p> <p>At approx:<br /> line:142 - if [ "$?" == "0" ] ; then</p> <p>Add underneath: (This is just reloading the leds module)<br /> /usr/local/wdc/load-wdc-leds</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-28326#post-94110</guid>
				<title>Re: MBWE LED control</title>
				<link>http://mybookworld.wikidot.com/forum/t-28326/mbwe-led-control#post-94110</link>
				<description></description>
				<pubDate>Sat, 19 Jan 2008 19:33:16 +0000</pubDate>
				<wikidot:authorName>Suffocation</wikidot:authorName>				<wikidot:authorUserId>70550</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Did you found out already? I would like some script to basicly turn off the rings but keep the ability to start (if required for some unknown reason)<br /> The lights are really anoying when I'm watching tv. (yes could please the box somewhere else, but it's it's next to my router including xboxes (old and 360).</p> <p>Thnx.<br /> Suffocation</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-28326#post-71801</guid>
				<title>MBWE LED control</title>
				<link>http://mybookworld.wikidot.com/forum/t-28326/mbwe-led-control#post-71801</link>
				<description></description>
				<pubDate>Sun, 25 Nov 2007 11:08:35 +0000</pubDate>
				<wikidot:authorName>SpeedCore</wikidot:authorName>				<wikidot:authorUserId>53101</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Hey there,<br /> has anyone played around with the led-control scripts yet? i'm working on a fadeout when the disk spins down… i already found the scripts in /sys/devices/platfoem/wdc-leds but i have no idea how they're triggered :/ the inner (fuel gauge) ring is easy to control: just put a value in<br /> the brightness-file:<br /> echo 50 &gt; "/sys/devices/platform/wdc-leds/leds:wdc-leds:fuel-gauge/brightness"</p> <p>0 to 32: lits one led (5&nbsp;o’clock)<br /> 33 to 49: lits two leds (5 and 7&nbsp;o’clock)<br /> 50 to 66: lits three leds (5, 7 and 9&nbsp;o’clock)<br /> 67 to 82: lits four leds (5, 7, 9 and 11&nbsp;o’clock)<br /> 83 to 96: lits five leds (5, 7, 9, 11 and 1&nbsp;o’clock)<br /> 97 and more: lits all leds.</p> <p>greets,<br /> speedcore</p> 
				 	]]>
				</content:encoded>							</item>
				</channel>
</rss>