Tiny Core Base > TCB Q&A Forum

hack eth LED's?

(1/2) > >>

ost:
I have a silent script running and Im looking desperate to find a visual feedback device to blink status/error codes.
My question is if anyone knows a way to hack the LED's of the ethernet controller, or are they are hardware wired?
Maybe by sending some dummy packets to nowhere?

I also have a SATA activity LED with no drive on that I could use if hackable.

Rich:
Hi ost
Instead of the NIC, how about the keyboard LEDs?
To turn on an LED

--- Code: ---xset led N
--- End code ---
To turn off an LED

--- Code: ---xset -led N
--- End code ---
Where N is as follows:
1=Numlock
2=Capslock
3=Scroll lock
This only effects the LEDs and will not toggle the actual keyboard function.

curaga:
You might just have some leds with kernel drivers, have you checked /sys/class/leds?

For the NIC, ethtool man page says it can blink the leds.

Rich:
Hi curaga
Ost mentioned blinking out error or status codes. Ethtool, from what I could tell, does not allow you
to control the LEDs, just blink them for N number of seconds. I checked  /sys/class/leds  on two
machines, one running TC3.4 and one running TC3.8.4 and both where empty, so I didn't pursue
that any further. The  xset  command being built in seemed like the simplest approach.

curaga:
Yep, as long as there's a keyboard attached and X running - I got the impression that there was no X.

Navigation

[0] Message Index

[#] Next page

Go to full version