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

    Limit Battery Charging

    Scheduled Pinned Locked Moved Hardware
    16 Posts 4 Posters 1.6k Views
    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.
    • stephenw10S
      stephenw10 Netgate Administrator
      last edited by

      Set it in the BIOS?

      There is nothing in pfSense to set that. If you're lucky someone might have written some custom code in FreeBSD to do it. I'm not aware of anything though.

      Steve

      E 1 Reply Last reply Reply Quote 0
      • stephenw10S stephenw10 moved this topic from General pfSense Questions on
      • E
        eng3 @stephenw10
        last edited by

        @stephenw10 I know there is a windows tool from lenovo that can do it. otherwise, I there is no bios setting

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

          Well it must set something in nvram since it's a microcontroller running that not anything in Windows. There a good change it will just stay at that if you reboot into pfSense.

          1 Reply Last reply Reply Quote 0
          • E
            eng3
            last edited by

            I'll give it a try.

            I also found this thread

            https://forums.freebsd.org/threads/how-to-set-battery-charging-thresholds-on-laptop.79807

            though I can't find the setting they refer to.

            stephenw10S johnpozJ 2 Replies Last reply Reply Quote 0
            • stephenw10S
              stephenw10 Netgate Administrator @eng3
              last edited by

              @eng3 said in Limit Battery Charging:

              https://forums.freebsd.org/threads/how-to-set-battery-charging-thresholds-on-laptop.79807

              Looks like fun!
              Which part? Do you see any battery output? Derails from acpi etc?

              Steve

              E 1 Reply Last reply Reply Quote 0
              • johnpozJ
                johnpoz LAYER 8 Global Moderator @eng3
                last edited by

                @eng3 is there a way to have something else also on the ups, and have it control the charging of it.. Where then it sends shutdown to pfsense if no power and ups battery running low.

                Pretty sure the nuts package allows for this.. The guy to ask is prob @dennypage

                An intelligent man is sometimes forced to be drunk to spend time with his fools
                If you get confused: Listen to the Music Play
                Please don't Chat/PM me for help, unless mod related
                SG-4860 24.11 | Lab VMs 2.8, 24.11

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

                  This is a laptop battery though. I don't think I've see a nut driver for that. Though that would be quite cool!

                  johnpozJ 1 Reply Last reply Reply Quote 0
                  • provelsP
                    provels
                    last edited by

                    24-hour lamp timer in UPS outlet, laptop power cord into timer. 2 hours on/2 hours off. Cake!

                    Peder

                    MAIN - pfSense+ 24.11-RELEASE - Adlink MXE-5401, i7, 16 GB RAM, 64 GB SSD. 500 GB HDD for SyslogNG
                    BACKUP - pfSense+ 23.01-RELEASE - Hyper-V Virtual Machine, Gen 1, 2 v-CPUs, 3 GB RAM, 8GB VHDX (Dynamic)

                    E 1 Reply Last reply Reply Quote 0
                    • E
                      eng3 @provels
                      last edited by

                      @provels charge and discharge rate is not equal. This also would put unnecessary cylces on the battery which would defeat the purpose of trying to limit the charge threshold.

                      provelsP 1 Reply Last reply Reply Quote 0
                      • johnpozJ
                        johnpoz LAYER 8 Global Moderator @stephenw10
                        last edited by

                        @stephenw10 Oh I was thinking external UPS... well yeah that would be quite slick ;) but yeah don't think that possible..

                        An intelligent man is sometimes forced to be drunk to spend time with his fools
                        If you get confused: Listen to the Music Play
                        Please don't Chat/PM me for help, unless mod related
                        SG-4860 24.11 | Lab VMs 2.8, 24.11

                        1 Reply Last reply Reply Quote 0
                        • provelsP
                          provels @eng3
                          last edited by

                          @eng3
                          Why the timers are adjustable in 1 hour increments.
                          Like discharge 3, charge 1 maybe? Do I have to think of everything? 🤣

                          Peder

                          MAIN - pfSense+ 24.11-RELEASE - Adlink MXE-5401, i7, 16 GB RAM, 64 GB SSD. 500 GB HDD for SyslogNG
                          BACKUP - pfSense+ 23.01-RELEASE - Hyper-V Virtual Machine, Gen 1, 2 v-CPUs, 3 GB RAM, 8GB VHDX (Dynamic)

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

                            @stephenw10 I tried but I get "acpi_call: not found". Also, not really too sure how to view battery level in pfsense

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

                              What exactly did you try? There are a number of things referenced here.

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

                                @stephenw10 I tried to execute "acpi_call"

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

                                  Ah, OK. acpi_call is not included in pfSense or the default repo.
                                  You can try adding it directly from FreeBSD like:

                                  [22.01-RELEASE][admin@5100.stevew.lan]/root: pkg add https://pkg.freebsd.org/FreeBSD:12:amd64/latest/All/acpi_call-1.0.1_1.txz
                                  Fetching acpi_call-1.0.1_1.txz: 100%    6 KiB   6.3kB/s    00:01    
                                  Installing acpi_call-1.0.1_1...
                                  Extracting acpi_call-1.0.1_1: 100%
                                  [22.01-RELEASE][admin@5100.stevew.lan]/root: rehash
                                  [22.01-RELEASE][admin@5100.stevew.lan]/root: acpi_call
                                  Please specify path to method with -p flag
                                  

                                  But you need to understand the possible consequences of doing that:
                                  https://docs.netgate.com/pfsense/en/latest/recipes/freebsd-pkg-repo.html#concerns-warnings

                                  Steve

                                  1 Reply Last reply Reply Quote 0
                                  • First post
                                    Last post
                                  Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.