![]() |
Info.SetLedOptions HistoryHide minor edits - Show changes to markup August 02, 2008, at 11:42 PM
by -- Added linebreaks so the syscalls get right
Changed line 22 from:
to:
Changed line 25 from:
to:
Changed line 28 from:
to:
March 18, 2008, at 12:59 AM
by -- more copyediting.
Changed lines 1-2 from:
(Note that this applies to Set_Led, a binary available in Unslung. The analogous command to set or toggle LED states in SlugOS/BE is /bin/leds .) to:
March 18, 2008, at 12:56 AM
by -- copyediting. don\'t blame me, \"Preview\" is broken
Changed lines 1-2 from:
(Note that this applies to Set_Led, a binary available in Unslung. The analagous command to set or toggle LED states in SlugOS is /bin/leds .) to:
March 18, 2008, at 12:53 AM
by -- add reference to other distros
Added lines 1-2:
(Note that this applies to Set_Led, a binary available in Unslung. The analagous command to set or toggle LED states in SlugOS is /bin/leds .) February 25, 2006, at 08:45 AM
by -- Shutdown warning crontab
Changed lines 45-57 from:
-- gerti to:
-- gerti Because I don't want my HDD to run 24/7, I automatically shut down at night (and restart in the morning using the Always-On-wiring). To be warned before shutdown occurs (save data, cancel shutdown, ...), I added the following lines to my /etc/crontab: 30 22 * * * root Set_Led s_blinking &>/dev/null 00 23 * * * root Set_Led rs_blinking &>/dev/null 00 23 * * * root Set_Led beep1 &>/dev/null 29 23 * * * root Set_Led beep3 &>/dev/null 30 23 * * * root /usr/sbin/DO_Shutdown &>/dev/null This way, the Ready-LED starts to blink Green/Orange one hour before shutdown. Half an hour before shutdown, the LED starts to blink Green/Red and a beep is triggered. Finally, one minute before shutdown, a triple beep will demand attention. Feel free to use this as a starting point for your own warning mechanism. October 13, 2005, at 02:04 PM
by -- typo on Set_Led s_blinking fixed (green element changed to red element)
Changed line 13 from:
to:
January 21, 2005, at 06:40 PM
by --
Changed lines 29-45 from:
The bit arguments referred to above correspond to the information on GPIOConnections. It is not a bitmask, it is the number of the bit to affect. to:
The bit arguments referred to above correspond to the information on GPIOConnections. It is not a bitmask, it is the number of the bit to affect. Some additional comments: There is a bit of 'magic' going on with some of the commands: The "blinking" commands as well as the "beep2" and "beep3" commands do not return. So to use them in a script and avoid blocking, follow them with an ampersand as in Set_Led rs_blinking &
A subsequent call of "Set_Led ready" will turn the status LED to green and terminate the blinking or beep processes. Also when the "r_blinking" command is terminated manually while the LED is off, it will stay off. I do not know of a way to achieve this programmatically though. Lastly the "power_off" command is intended to be used at the end of the shutdown scripts. A proper shutdown that will also call the shutdown scripts can be triggered with the "halt" command. -- gerti October 10, 2004, at 11:49 AM
by --
Changed line 6 from:
to:
September 22, 2004, at 05:24 PM
by --
Added lines 16-29:
Set_Led does its magic by accessing a few syscalls. I do not know whether this will work with the OpenSlug kernel. The syscalls are as follows.
The bit arguments referred to above correspond to the information on GPIOConnections. It is not a bitmask, it is the number of the bit to affect. September 22, 2004, at 05:11 PM
by --
Added line 3:
Added line 5:
Changed lines 7-8 from:
to:
September 22, 2004, at 05:24 AM
by --
Changed lines 5-6 from:
killed. to:
Changed lines 7-18 from:
ready/status bi-color LED.
LED. (Green is not affected).
(Green is not affected).
(Red is not affected).
(Green is not affected).
ready/status LED. to:
September 22, 2004, at 05:24 AM
by --
Changed lines 1-20 from:
Describe SetLedOptions here. to:
killed.
ready/status bi-color LED.
LED. (Green is not affected).
(Green is not affected).
(Red is not affected).
(Green is not affected).
ready/status LED.
view ·
edit ·
print ·
history ·
Last edited by Marcelo Vianna.
Based on work by abliss, Sebastian Kraatz, ShaunLeeClarke, gerti, kaste, glum, and rwhitby. Originally by rwhitby. Page last modified on August 02, 2008, at 11:42 PM
|