sgi_led: Control your front panel LED

IRIX/Nekoware development, porting and related topics.
Forum rules
Any posts concerning pirated software or offering to buy/sell/trade commercial software are subject to removal.
User avatar
japes
Donor
Donor
Posts: 999
Joined: Thu Nov 08, 2007 4:35 pm
Location: Lynnwood, WA

sgi_led: Control your front panel LED

Unread postby japes » Wed Sep 03, 2014 10:58 pm

I threw together a quick little set of utilities and thought someone might want them, for what I dunno, but have fun with them. They turn the LED on the front of your workstation amber or back to green.

Code: Select all

ledon   turn the red/amber led on (green off).
ledoff  turn the red/amber led off (green on).
setled  both functions in one - use setled 0 for off, settled 1 for on.


Source is included. Inspired by sgi-heartbeat.tar.gz

https://github.com/jpbot/sgi_led

binary and source attached.
Attachments
sgi_led.tar.gz
(6.65 KiB) Downloaded 46 times
:O3000: :Fuel: :Tezro: :Tezro: :Octane2: :Octane: :Octane: :Indigo: :Indigo: :Indigo: :Indigo: :O2: :1600SW: :O2: :1600SW: :1600SW: :Indigo2: :Indigo2: :Indigo2: :Indigo2: :Indigo2IMP: :Indy: :Indy: :Indy: :Indy: :O3x0: :O3x02L: :O3x02L:

User avatar
uunix
Donor
Donor
Posts: 1808
Joined: Sun Mar 27, 2011 12:48 pm
Location: Stourbridge / England / UK

Re: sgi_led: Control your front panel LED

Unread postby uunix » Fri Sep 05, 2014 1:40 pm

Brilliant, works a treat, my green led is dead, so now my octane looks like a Cylon! Thanks
-----------------------------------------------------------------------
Hey Ho! Pip & Dandy!
:Octane2: :O2: :Indigo: :Indy:
-----------------------------------------------------------------------

User avatar
ClassicHasClass
Donor
Donor
Posts: 2092
Joined: Wed Jul 25, 2012 7:12 pm
Location: Sunny So Cal
Contact:

Re: sgi_led: Control your front panel LED

Unread postby ClassicHasClass » Fri Sep 05, 2014 11:14 pm

Hmm. Might have to see if this can be modified for Fuel.
smit happens.

:Fuel: bigred, 900MHz R16K, 4GB RAM, V12 DCD, 6.5.30
:Indy: indy, 150MHz R4400SC, 256MB RAM, XL24, 6.5.10
:Indigo2IMP: purplehaze, 175MHz R10000, Solid IMPACT
probably posted from Image bruce, Quad 2.5GHz PowerPC 970MP, 16GB RAM, Mac OS X 10.4.11
plus IBM POWER6 p520 * Apple Network Server 500 * RDI PrecisionBook * BeBox * Solbourne S3000 * Commodore 128 * many more...

User avatar
canavan
Posts: 754
Joined: Mon Jul 21, 2003 6:19 am

Re: sgi_led: Control your front panel LED

Unread postby canavan » Sun Sep 07, 2014 9:14 am

Hmm. Might have to see if this can be modified for Fuel.
I haven's tried it on my fuel, but it works on my tezro, although you have to be root - no error message is printed if the access is denied.
Attachments
neko_setled.tardist
tardist, with updated source, includes rudimentary error reporting, fti, ftr, but no relnotes. Should install the binaries suid root or make use of the privileges system, but does neither.
(30 KiB) Downloaded 32 times

User avatar
japes
Donor
Donor
Posts: 999
Joined: Thu Nov 08, 2007 4:35 pm
Location: Lynnwood, WA

Re: sgi_led: Control your front panel LED

Unread postby japes » Sun Sep 07, 2014 6:57 pm

Wow fancy package.

I didn't mention that I tested this really only on my Octane2, but it should work with most workstation systems. Big Iron might not have a LED, or it might be different than the usual power light style of the workstations.

I did just try it on my Challenge S here and it worked fine. Even logged in as guest. I wouldn't be surprised if you had to be root, but at least on that machine it wasn't necessary.

The man page for syssgi doesn't mention anything specific either.
:O3000: :Fuel: :Tezro: :Tezro: :Octane2: :Octane: :Octane: :Indigo: :Indigo: :Indigo: :Indigo: :O2: :1600SW: :O2: :1600SW: :1600SW: :Indigo2: :Indigo2: :Indigo2: :Indigo2: :Indigo2IMP: :Indy: :Indy: :Indy: :Indy: :O3x0: :O3x02L: :O3x02L:

inca
Posts: 19
Joined: Sun Mar 28, 2010 5:05 am
Location: Riga, Latvia
Contact:

Re: sgi_led: Control your front panel LED

Unread postby inca » Fri Nov 14, 2014 4:41 pm

Wow! Nice! It does work for Fuel. Turns on red led in blinking mode.
:O2: :Octane2: :Fuel:


Return to “SGI: Development”

Who is online

Users browsing this forum: No registered users and 2 guests