Navigation

    Netgate Discussion Forum
    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search

    Netgate SG-3100 LEDs

    Official Netgate® Hardware
    20
    54
    21668
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • ?
      A Former User last edited by

      What do the LEDs mean by default and how do you configure them? As far as I can see there is NO documentation on this at Netgate beyond the mention that they are configurable. Sure, I bet you can rewrite it in the firmware and MAKE the LEDs do what I want but that's way more effort than it needs to be.

      1 Reply Last reply Reply Quote 0
      • ?
        Guest last edited by

        What do you expect from that LEDs? In normal this LEDs are blinking green at start up and then green
        for a good connection and red for a failure or disconnection, that's it in short. Or something in that matter
        will be also all other LEDs blinking such as the ALIX or APU boards from PC Engines will do it.

        1 Reply Last reply Reply Quote 0
        • C
          cparkervt last edited by

          I have the same question. My SG-3100 only has a throbbing / breathing blue LED under the black diamond at idle. Netgate has zero documentation on them, and there doesn't appear to be any package in the repo for configuring them.

          1 Reply Last reply Reply Quote 0
          • stephenw10
            stephenw10 Netgate Administrator last edited by

            Right now they illuminate in sequence during the different stages of boot process, circle, square, diamond, with a fast blue flash.
            When booting is complete the diamond flashes blue with a slow flash.
            If the system sees an update is available the square flashes orange with a slow flash.

            As you say they can be configured to flash any colour at any speed. Suggestions always welcome.  :)

            They can be configured from user space so via a shellcmd for example. There are two places to do that.

            Via the gpioctl command:

            [2.4.2-DEVELOPMENT][admin@3100.stevew.lan]/root: gpioctl 6 duty 100
            

            That sets led 6 to maximum brightness. 6 is the red led in the circle. Each LED is tri-colour device with 3 LEDs in it for red green and blue:

            | Front Indicator | Red | Green | Blue |
            | Diamond | 0 | 1 | 2 |
            | Square | 3 | 4 | 5 |
            | Circle | 6 | 7 | 8 |

            The flashing frequency and duration is controlled by a set of sysctls:

            [2.4.2-DEVELOPMENT][admin@3100.stevew.lan]/root: sysctl dev.gpio.0
            dev.gpio.0.led.2.T2: 0
            dev.gpio.0.led.2.DT: 0
            dev.gpio.0.led.2.T1-T3: 520
            dev.gpio.0.led.2.pwm: 1
            dev.gpio.0.led.1.T2: 0
            dev.gpio.0.led.1.DT: 0
            dev.gpio.0.led.1.T1-T3: 1040
            dev.gpio.0.led.1.pwm: 0
            dev.gpio.0.led.0.T2: 520
            dev.gpio.0.led.0.DT: 0
            dev.gpio.0.led.0.T1-T3: 1040
            dev.gpio.0.led.0.pwm: 0
            dev.gpio.0.pin.8.T4: 0
            dev.gpio.0.pin.8.T0: 0
            dev.gpio.0.pin.7.T4: 0
            dev.gpio.0.pin.7.T0: 0
            dev.gpio.0.pin.6.T4: 0
            dev.gpio.0.pin.6.T0: 0
            dev.gpio.0.pin.5.T4: 0
            dev.gpio.0.pin.5.T0: 0
            dev.gpio.0.pin.4.T4: 3640
            dev.gpio.0.pin.4.T0: 0
            dev.gpio.0.pin.3.T4: 3640
            dev.gpio.0.pin.3.T0: 0
            dev.gpio.0.pin.2.T4: 3640
            dev.gpio.0.pin.2.T0: 0
            dev.gpio.0.pin.1.T4: 0
            dev.gpio.0.pin.1.T0: 0
            dev.gpio.0.pin.0.T4: 0
            dev.gpio.0.pin.0.T0: 0
            dev.gpio.0.%parent: iicbus0
            dev.gpio.0.%pnpinfo: name=is31fl3199 compat=issi,is31fl3199
            dev.gpio.0.%location: addr=0xce
            dev.gpio.0.%driver: gpio
            dev.gpio.0.%desc: ISSI IS31FL3199 9 channel light effect LED driver
            
            

            The exact settings of which I have not had time to investigate yet.  ;)
            But for example you can switch led 1 (square) to pwm mode where it is not controlled by the led controller directly but stays on permanently at whatever settings you have set using gpioctl:

            [2.4.2-DEVELOPMENT][admin@3100.stevew.lan]/root: sysctl dev.gpio.0.led.1.pwm=1
            dev.gpio.0.led.1.pwm: 0 -> 1
            
            

            More information on those settings can be found in the datasheet: http://www.issi.com/WW/pdf/IS31FL3199.pdf

            We hope to have something more comprehensible than that documented soon though.

            Steve

            wgstarks 1 Reply Last reply Reply Quote 1
            • ?
              A Former User last edited by

              @stephenw10:

              Right now they illuminate in sequence during the different stages of boot process, circle, square, diamond, with a fast blue flash.
              When booting is complete the diamond flashes blue with a slow flash.
              If the system sees an update is available the square flashes orange with a slow flash.

              As you say they can be configured to flash any colour at any speed. Suggestions always welcome.  :)

              They can be configured from user space so via a shellcmd for example. There are two places to do that.

              Via the gpioctl command:

              [2.4.2-DEVELOPMENT][admin@3100.stevew.lan]/root: gpioctl 6 duty 100
              

              That sets led 6 to maximum brightness. 6 is the red led in the circle. Each LED is tri-colour device with 3 LEDs in it for red green and blue:

              | Front Indicator | Red | Green | Blue |
              | Diamond | 0 | 1 | 2 |
              | Square | 3 | 4 | 5 |
              | Circle | 6 | 7 | 8 |

              The flashing frequency and duration is controlled by a set of sysctls:

              [2.4.2-DEVELOPMENT][admin@3100.stevew.lan]/root: sysctl dev.gpio.0
              dev.gpio.0.led.2.T2: 0
              dev.gpio.0.led.2.DT: 0
              dev.gpio.0.led.2.T1-T3: 520
              dev.gpio.0.led.2.pwm: 1
              dev.gpio.0.led.1.T2: 0
              dev.gpio.0.led.1.DT: 0
              dev.gpio.0.led.1.T1-T3: 1040
              dev.gpio.0.led.1.pwm: 0
              dev.gpio.0.led.0.T2: 520
              dev.gpio.0.led.0.DT: 0
              dev.gpio.0.led.0.T1-T3: 1040
              dev.gpio.0.led.0.pwm: 0
              dev.gpio.0.pin.8.T4: 0
              dev.gpio.0.pin.8.T0: 0
              dev.gpio.0.pin.7.T4: 0
              dev.gpio.0.pin.7.T0: 0
              dev.gpio.0.pin.6.T4: 0
              dev.gpio.0.pin.6.T0: 0
              dev.gpio.0.pin.5.T4: 0
              dev.gpio.0.pin.5.T0: 0
              dev.gpio.0.pin.4.T4: 3640
              dev.gpio.0.pin.4.T0: 0
              dev.gpio.0.pin.3.T4: 3640
              dev.gpio.0.pin.3.T0: 0
              dev.gpio.0.pin.2.T4: 3640
              dev.gpio.0.pin.2.T0: 0
              dev.gpio.0.pin.1.T4: 0
              dev.gpio.0.pin.1.T0: 0
              dev.gpio.0.pin.0.T4: 0
              dev.gpio.0.pin.0.T0: 0
              dev.gpio.0.%parent: iicbus0
              dev.gpio.0.%pnpinfo: name=is31fl3199 compat=issi,is31fl3199
              dev.gpio.0.%location: addr=0xce
              dev.gpio.0.%driver: gpio
              dev.gpio.0.%desc: ISSI IS31FL3199 9 channel light effect LED driver
              
              

              The exact settings of which I have not had time to investigate yet.  ;)
              But for example you can switch led 1 (square) to pwm mode where it is not controlled by the led controller directly but stays on permanently at whatever settings you have set using gpioctl:

              [2.4.2-DEVELOPMENT][admin@3100.stevew.lan]/root: sysctl dev.gpio.0.led.1.pwm=1
              dev.gpio.0.led.1.pwm: 0 -> 1
              
              

              More information on those settings can be found in the datasheet: http://www.issi.com/WW/pdf/IS31FL3199.pdf

              We hope to have something more comprehensible than that documented soon though.

              Steve

              Very cool, my friend. Thanks for the info.

              1 Reply Last reply Reply Quote 0
              • D
                danijam last edited by

                Thanks for posting that useful info. I would definately back suggestions to improve the documentation on the SG-3100 with respect to the LED lights meaning and configuration.

                In addition I suspect many deployments of this device could be in locations where having a very bright flashing light would be unwanted, such as a living room/lounge. Having an easy way to A) dim them AND B) change them to static would be valuable.

                Thanks

                1 Reply Last reply Reply Quote 1
                • stephenw10
                  stephenw10 Netgate Administrator last edited by

                  Indeed I have at times been reduced to covering it with an old sock but I like your plan better!  ;D

                  I'll pass that to our developers. Any other suggestions welcome!

                  Steve

                  lohphat 1 Reply Last reply Reply Quote 0
                  • lohphat
                    lohphat @stephenw10 last edited by

                    @stephenw10 Having a UI page to alter/disable the LEDs (e.g. dark for normal operation, alert for update/error notifications) would be better than a sock.

                    I can signal the Mars rover with the SG-3100, I think I may need sunscreen.

                    SG-3100 23.01-RELEASE (ARM) | Avahi (2.2_3) | ntopng (0.8.13_10) | openvpn-client-export (1.8) | pfBlockerNG-devel (3.2.0_1) | pimd (0.0.3_6) | snort (4.1.6_6) | System_Patches (2.0_7)

                    1 Reply Last reply Reply Quote 0
                    • wgstarks
                      wgstarks @stephenw10 last edited by wgstarks

                      @stephenw10
                      I've been trying to get this to work, but I must be missing something.

                      Used Command Prompt in the GUI.

                      gpioctl 2 duty 000
                      

                      Set the blue flashing diamond led to zero brightness, which worked.

                      gpioctl 1 duty 050
                      

                      Set the green diamond led to 50%, still flashing though.

                      Ran the command posted to switch led 1 to pwm-

                      sysctl dev.gpio.0.led.1.pwm=1dev.gpio.0.led.1.pwm: 0 -> 1
                      

                      This isn't working though. LED 1 continues to flash. What did I get wrong here?

                      Box: SG-3100
                      CPU: ARM v7 Cortex-A9 @ 1.6 GHz with NEON SIMD and FPU

                      1 Reply Last reply Reply Quote 0
                      • wgstarks
                        wgstarks last edited by

                        Re: Netgate SG-3100 LEDs

                        ThinkI found one mistake. Ran this command instead-

                        sysctl dev.gpio.0.led.1.pwm=1
                        

                        Still didn't work though.

                        Here is the output from sysctl dev.gpio.0

                        dev.gpio.0.led.2.T2: 0
                        dev.gpio.0.led.2.DT: 0
                        dev.gpio.0.led.2.T1-T3: 520
                        dev.gpio.0.led.2.pwm: 0
                        dev.gpio.0.led.1.T2: 0
                        dev.gpio.0.led.1.DT: 0
                        dev.gpio.0.led.1.T1-T3: 520
                        dev.gpio.0.led.1.pwm: 1
                        dev.gpio.0.led.0.T2: 520
                        dev.gpio.0.led.0.DT: 0
                        dev.gpio.0.led.0.T1-T3: 1040
                        dev.gpio.0.led.0.pwm: 0
                        dev.gpio.0.pin.8.T4: 0
                        dev.gpio.0.pin.8.T0: 0
                        dev.gpio.0.pin.7.T4: 0
                        dev.gpio.0.pin.7.T0: 0
                        dev.gpio.0.pin.6.T4: 0
                        dev.gpio.0.pin.6.T0: 0
                        dev.gpio.0.pin.5.T4: 0
                        dev.gpio.0.pin.5.T0: 0
                        dev.gpio.0.pin.4.T4: 0
                        dev.gpio.0.pin.4.T0: 0
                        dev.gpio.0.pin.3.T4: 0
                        dev.gpio.0.pin.3.T0: 0
                        dev.gpio.0.pin.2.T4: 3640
                        dev.gpio.0.pin.2.T0: 0
                        dev.gpio.0.pin.1.T4: 0
                        dev.gpio.0.pin.1.T0: 0
                        dev.gpio.0.pin.0.T4: 0
                        dev.gpio.0.pin.0.T0: 0
                        dev.gpio.0.%parent: iicbus0
                        dev.gpio.0.%pnpinfo: name=is31fl3199 compat=issi,is31fl3199
                        dev.gpio.0.%location: addr=0xce
                        dev.gpio.0.%driver: gpio
                        dev.gpio.0.%desc: ISSI IS31FL3199 9 channel light effect LED driver
                        

                        Box: SG-3100
                        CPU: ARM v7 Cortex-A9 @ 1.6 GHz with NEON SIMD and FPU

                        1 Reply Last reply Reply Quote 0
                        • ?
                          A Former User last edited by

                          This thread on reddit has some useful information on the topic: https://www.reddit.com/r/PFSENSE/comments/8v1owa/need_help_configuring_internal_switch_vlan_and/

                          1 Reply Last reply Reply Quote 0
                          • M
                            msf2000 last edited by

                            I notice that every once in a while (not sure the cause), the middle LED will go off (dark) on its own....

                            Is only the right-most LED being used by the pfSense hardware/software? Or which LEDs are OK for me to write a custom PHP script against?

                            wgstarks 1 Reply Last reply Reply Quote 0
                            • wgstarks
                              wgstarks @msf2000 last edited by wgstarks

                              @msf2000
                              All the LED’s will flash in sequence during boot. After the boot process is complete the right LED will pulse blue. If an update is available to the pfSense software the center LED will light up orange.
                              https://forum.netgate.com/topic/122407/netgate-sg-3100-leds/4

                              If you do write a script, perhaps you would consider sharing it?

                              Box: SG-3100
                              CPU: ARM v7 Cortex-A9 @ 1.6 GHz with NEON SIMD and FPU

                              M 2 Replies Last reply Reply Quote 0
                              • M
                                msf2000 @wgstarks last edited by

                                @wgstarks

                                Sure. No promises that it actually works though. :)

                                1 Reply Last reply Reply Quote 0
                                • lohphat
                                  lohphat last edited by lohphat

                                  Because my SG-3100 is out in the open the flashing blue LED is distracting, so I simply entered a cron entry to turn the LED off after 20 minutes post-startup.

                                  */20 	* 	* 	* 	* 	root 	/usr/sbin/gpioctl 2 duty 0
                                  

                                  SG-3100 23.01-RELEASE (ARM) | Avahi (2.2_3) | ntopng (0.8.13_10) | openvpn-client-export (1.8) | pfBlockerNG-devel (3.2.0_1) | pimd (0.0.3_6) | snort (4.1.6_6) | System_Patches (2.0_7)

                                  1 Reply Last reply Reply Quote 0
                                  • T
                                    tjsober last edited by tjsober

                                    I just set up my new SG-3100 and all seems to be working fine. The right side diamond LED slowly flashes. However when I go to Diagnostics - Halt System and the system shuts down, I lose my connection as expected but the LED continues to slow-blink. I was expecting it to shut off. Is this normal?

                                    jimp 1 Reply Last reply Reply Quote 0
                                    • jimp
                                      jimp Rebel Alliance Developer Netgate @tjsober last edited by

                                      @tjsober said in Netgate SG-3100 LEDs:

                                      I just set up my new SG-3100 and all seems to be working fine. The right side diamond LED slowly flashes. However when I go to Diagnostics - Halt System and the system shuts down, I lose my connection as expected but the LED continues to slow-blink. I was expecting it to shut off. Is this normal?

                                      There is an issue we're addressing on 2.4.4 where the OS is not completely halting on shutdown that may be related. The fix is partially in snapshots now but should be completely done shortly.

                                      Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                                      Need help fast? Netgate Global Support!

                                      Do not Chat/PM for help!

                                      M 1 Reply Last reply Reply Quote 0
                                      • M
                                        msf2000 @jimp last edited by

                                        I observe the same behavior of the last blue LED.... system shutdown does not stop the LED slow flashing. As a workround, i use ssh to shutdown if needed, which allows me to see when the OS is actually halted.

                                        I agree with @tjsober that it would be helpful if the last blue LED went dark once the system was properly halted. Perhaps this is something the watchdog timer can do?

                                        1 Reply Last reply Reply Quote 0
                                        • M
                                          msf2000 @wgstarks last edited by

                                          @wgstarks

                                          Got a working tcsh shell script. It updates the left LED to green, amber, red, or blue, depending on the gateway status of the WAN port. Should be easy to customize.

                                          #!/bin/tcsh
                                          #
                                          # This script updates the SG-3100 device's first LED with gateway status
                                          #
                                          #   php /usr/local/sbin/pfSsh.php playback gatewaystatus
                                          #
                                          set gw = `/usr/local/bin/php /usr/local/sbin/pfSsh.php playback gatewaystatus | grep WAN `
                                          set gwping = `echo $gw | awk '{ ORS="  "; print $6 }' `
                                          set gwstatus = `echo $gw | awk '{ ORS="  "; print $7 }' `
                                          
                                          # based on gwstatus, set color of first LED
                                          # led a  -  led b  -  led c
                                          # 6 7 8  -  3 4 5  -  0 1 2 
                                          
                                          switch ($gwstatus)
                                          case "none":
                                          case "Online": 
                                              /usr/sbin/gpioctl 6 duty 0
                                              /usr/sbin/gpioctl 7 duty 128
                                              /usr/sbin/gpioctl 8 duty 0
                                              breaksw
                                          case "down": 
                                          case "Offline":
                                              /usr/sbin/gpioctl 6 duty 128
                                              /usr/sbin/gpioctl 7 duty 0
                                              /usr/sbin/gpioctl 8 duty 0
                                              breaksw
                                          case "highloss":
                                          case "loss": 
                                          case "highdelay":
                                          case "delay":
                                          case "Warning": 
                                              /usr/sbin/gpioctl 6 duty 128
                                              /usr/sbin/gpioctl 7 duty 32
                                              /usr/sbin/gpioctl 8 duty 0
                                              breaksw
                                          default:
                                              /usr/sbin/gpioctl 6 duty 0
                                              /usr/sbin/gpioctl 7 duty 0
                                              /usr/sbin/gpioctl 8 duty 128
                                          endsw
                                          
                                          B 1 Reply Last reply Reply Quote 1
                                          • wgstarks
                                            wgstarks last edited by

                                            @msf2000 said in Netgate SG-3100 LEDs:

                                            @wgstarks
                                            Got a working tcsh shell script.

                                            How/where should I install this? Needs to run at boot I'm guessing?

                                            Box: SG-3100
                                            CPU: ARM v7 Cortex-A9 @ 1.6 GHz with NEON SIMD and FPU

                                            M 1 Reply Last reply Reply Quote 0
                                            • M
                                              msf2000 @wgstarks last edited by

                                              @wgstarks

                                              Yes, upload the shell script as a file. (Root's home directory is fine.) Then, install the "Cron" package. Add the shell script as a cron job to run every minute.

                                              wgstarks 1 Reply Last reply Reply Quote 0
                                              • wgstarks
                                                wgstarks @msf2000 last edited by

                                                @msf2000
                                                Thanks. Looks like it's working.

                                                Box: SG-3100
                                                CPU: ARM v7 Cortex-A9 @ 1.6 GHz with NEON SIMD and FPU

                                                D 1 Reply Last reply Reply Quote 0
                                                • D
                                                  dpasadis @wgstarks last edited by

                                                  @wgstarks It would be great if the lights could serve 2 purposes:
                                                  (1) show boot status during a power-on or reboot (like they do now)
                                                  (2) show network activity on 3 network segments the rest of the time (WAN, LAN, OPT1)

                                                  If #2 was implemented, a glance at the firewall would tell us a lot about what's going on. It would be greatly appreciated.

                                                  wgstarks M 2 Replies Last reply Reply Quote 0
                                                  • wgstarks
                                                    wgstarks @dpasadis last edited by

                                                    @dpasadis said in Netgate SG-3100 LEDs:

                                                    @wgstarks It would be great if the lights could serve 2 purposes:
                                                    (1) show boot status during a power-on or reboot (like they do now)
                                                    (2) show network activity on 3 network segments the rest of the time (WAN, LAN, OPT1)

                                                    If #2 was implemented, a glance at the firewall would tell us a lot about what's going on. It would be greatly appreciated.

                                                    This isn’t my code. It was provided by @msf2000.

                                                    Box: SG-3100
                                                    CPU: ARM v7 Cortex-A9 @ 1.6 GHz with NEON SIMD and FPU

                                                    1 Reply Last reply Reply Quote 0
                                                    • M
                                                      msf2000 @dpasadis last edited by

                                                      @dpasadis

                                                      1. You could install the "ShellCmd" package and have the LED script run on bootup, if you'd like.
                                                      2. Just rotate the device 180 degrees, and you'll see the network traffic. ;)

                                                      The script I wrote was more for users to see that the firewall is working, instead of power-cycling the pfsense unnecessarily when their internet is slow.

                                                      1 Reply Last reply Reply Quote 0
                                                      • D
                                                        dpasadis last edited by

                                                        Thanks msf2000. I appreciate your contribution.

                                                        I like your first suggestion (and your second for different reasons).

                                                        I've done a lot of work on operating systems, including Unix/Linux, so I might be able to figure out #1 without spending a crazy amount of time on it. If I get a good result, I'll share it here.

                                                        1 Reply Last reply Reply Quote 0
                                                        • Mr_AJ
                                                          Mr_AJ last edited by

                                                          Cool thread!

                                                          1 Reply Last reply Reply Quote 0
                                                          • Z
                                                            z4xh last edited by

                                                            I wrote some more comprehensive documentation on my blog, which explains the timings in more depth. https://www.zacharyschneider.ca/blog/post/2019/12/customizing-leds-netgate-sg-3100

                                                            Hope it helps!

                                                            1 Reply Last reply Reply Quote 2
                                                            • J
                                                              jchonchi last edited by

                                                              I took some of the information in this article and wrote a script that sets the LED colors based on network interface state and bandwidth usage.

                                                              K styxl 2 Replies Last reply Reply Quote 5
                                                              • K
                                                                KnowbuddyYuno @jchonchi last edited by

                                                                @jchonchi Sounds useful. Does the script work as intended?

                                                                I'm a complete moron when it comes to coding, so my risk tolerance is near zero.

                                                                1 Reply Last reply Reply Quote 0
                                                                • styxl
                                                                  styxl @jchonchi last edited by

                                                                  @jchonchi i am using the script, works like charm. Thanks

                                                                  1 Reply Last reply Reply Quote 0
                                                                  • jchonig
                                                                    jchonig last edited by jchonig

                                                                    Very helpful thread.

                                                                    I re-wrote msf2000s script as a sh script and generalized it a bit.

                                                                    I use the left (circult) and middle (square) LEDs to monitor my two WAN connections.

                                                                    I also toned it down a bit so I don't need sunblock.

                                                                    You can find it here

                                                                    Thanks

                                                                    Jeff

                                                                    SG-3100

                                                                    1 Reply Last reply Reply Quote 2
                                                                    • B
                                                                      bldnightowl @msf2000 last edited by

                                                                      @msf2000 This was working for a long time in 2.4.5 -- but doesn't seem to anymore in 21.02.

                                                                      wgstarks M Z 3 Replies Last reply Reply Quote 0
                                                                      • wgstarks
                                                                        wgstarks @bldnightowl last edited by

                                                                        @bldnightowl said in Netgate SG-3100 LEDs:

                                                                        @msf2000 This was working for a long time in 2.4.5 -- but doesn't seem to anymore in 21.02.

                                                                        After reading the release notes I’m guessing this is the reason-

                                                                        
                                                                        Several abandoned and deprecated packages have been removed, including:
                                                                        
                                                                        OpenBGPD (use FRR instead)
                                                                        Quagga OSPF (use FRR instead)
                                                                        routed
                                                                        blinkled
                                                                        gwled
                                                                        
                                                                        

                                                                        Box: SG-3100
                                                                        CPU: ARM v7 Cortex-A9 @ 1.6 GHz with NEON SIMD and FPU

                                                                        1 Reply Last reply Reply Quote 0
                                                                        • M
                                                                          msf2000 @bldnightowl last edited by

                                                                          @bldnightowl
                                                                          What the crap is NetGate doing with version numbers? Breaking their own products? I don't plan to update past 2.4.5. Guess I'll read up on what's going on later.

                                                                          As for my script, sorry, you are probably on your own if you upgrade to v21.

                                                                          1 Reply Last reply Reply Quote 0
                                                                          • Z
                                                                            z4xh @bldnightowl last edited by

                                                                            @bldnightowl Check that you're using the right GPIO device:

                                                                            sysctl dev.gpio | grep .led.
                                                                            

                                                                            When I upgraded to 21.02/2.5, the GPIO device changed from 0 to 2 on my SG-3100.

                                                                            @wgstarks The blinkled and gwled packages aren't needed for the SG-3100 LED driver, those are for controlling the LEDs on ALIX and WRAP platforms.

                                                                            jchonig 1 Reply Last reply Reply Quote 0
                                                                            • jchonig
                                                                              jchonig @z4xh last edited by

                                                                              @z4xh What is the relationship between the output of that command to the numbers I provide to gpioctl? I'll update my script to make use of that and test it on 2.4.5 while they figure out the issues with 21.02.

                                                                              Thanks.

                                                                              Jeff

                                                                              Thanks

                                                                              Jeff

                                                                              SG-3100

                                                                              Z 1 Reply Last reply Reply Quote 0
                                                                              • Z
                                                                                z4xh @jchonig last edited by

                                                                                @jchonig This github commit explains it best: https://github.com/justdaniel-gh/sg3100customleds/commit/ddbf412cb1cf3ba32160972e2177c356611ff57f

                                                                                1 Reply Last reply Reply Quote 1
                                                                                • jimp
                                                                                  jimp Rebel Alliance Developer Netgate last edited by

                                                                                  The probe order of the GPIO devices changed in the newer version of FreeBSD since more of the on-board devices are supported now. It wasn't intentionally moved or anything.

                                                                                  Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                                                                                  Need help fast? Netgate Global Support!

                                                                                  Do not Chat/PM for help!

                                                                                  1 Reply Last reply Reply Quote 0
                                                                                  • stephenw10
                                                                                    stephenw10 Netgate Administrator last edited by

                                                                                    Yes, it looks like the script doesn't set the gpio device so it defaults to using device 0 which is no longer valid. You need to set gpioctl to use /dev/gpioc2, for example:

                                                                                    /usr/sbin/gpioctl -f /dev/gpioc2 6 duty 0
                                                                                    

                                                                                    Steve

                                                                                    jchonig 1 Reply Last reply Reply Quote 1
                                                                                    • First post
                                                                                      Last post