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

    Unable to get screensaver working.

    Scheduled Pinned Locked Moved 2.1 Snapshot Feedback and Problems - RETIRED
    26 Posts 4 Posters 9.8k 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.
    • O
      OrBy
      last edited by

      Basic info: pfSense-2.1-BETA0-512mb-amd64-nanobsd_vga-20121210-1806.img.gz running on msata ssd on a Intel DN2800MT board.
      Trying to get the display to turn off after 1 min.

      Following instructions @ http://forum.pfsense.org/index.php/topic,25506.msg132418.html

      I set the FS to RW, downloaded http://files.pfsense.org/jimp/ko-8.3/amd64/green_saver.ko to /boot/modules/ then created/edited /boot/loader.conf.local to read green_saver_load="YES". Then I installed the shellcmd package and added "vidcontrol -t 60" (for 1 min), set the FS back to RO and rebooted.

      Waited for 1 min after the FW finished loading and zilch.

      I have also tried playing with rc.conf, rc.conf.local, and loader.conf with no effect…

      Any suggestions?

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

        Is it loading the module correctly?
        You can see the currently loaded modules using kldstat. There should also be something at the beginning of the boot messages giving details.

        Perhaps your monitor/board/driver combination is not playing nicely with the DPMS signals. Did you try any other saver modules?

        Steve

        1 Reply Last reply Reply Quote 0
        • O
          OrBy
          last edited by

          So I did a wipe and a fresh load of pfSense-2.1-BETA1-4g-amd64-nanobsd_vga-20121212-1059.img.gz last night and got it configured and up and running. I followed the same steps today and it looks like no it's not loading. I see nothing about it when booting and kldstat shows the following:

          Id Refs Address            Size     Name
          1    9 0xffffffff80100000 11f3410  kernel
          2    1 0xffffffff81412000 c61      coretemp.ko
          3    1 0xffffffff81413000 702e     cpufreq.ko

          Digging a bit more around I tried the following @ the shell:
          kldload green_saver
          And got the following error:
          kldload: can't load green_saver: Exec format error

          I then tried the same with blank_saver.ko and got a similar error. Digging around on google a bit - it sounds like a build / dependance issue and the files @  http://files.pfsense.org/jimp/ko-8.3/amd64/ may not be compatible with amd64-nanobsd snapshots?

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

            They should be compatible.
            How are you downloading them? Possibly they are being corrupted during download.

            Try fetching them straight to the box:

            fetch http://files.pfsense.org/jimp/ko-8.3/amd64/green_saver.ko
            

            Steve

            1 Reply Last reply Reply Quote 0
            • O
              OrBy
              last edited by

              Tried it via direct copy/paste of your suggestion:

              [2.1-BETA1][admin@pfsense.somthing]/boot/modules(8): fetch http://files.pfsense.org/jimp/ko-8.3/amd64/green_saver.ko
              green_saver.ko                                100% of 3624  B  524 kBps
              [2.1-BETA1][admin@pfsense.somthing]/boot/modules(9): kldload green_saver
              kldload: can't load green_saver: Exec format error
              
              1 Reply Last reply Reply Quote 0
              • stephenw10S
                stephenw10 Netgate Administrator
                last edited by

                Hmm, odd. Perhaps there is some incompatibility issue there.
                You are definitely running 64bit I suppose. Have to ask.  ;)

                Try loading some other kernel module that won't do anything. Try cpuctl.ko. I don't have a 2.1 box up to check but I assume that isn't in the image already.

                Steve

                1 Reply Last reply Reply Quote 0
                • O
                  OrBy
                  last edited by

                  [2.1-BETA1][admin@pfsense.somthing]/boot/modules(7): fetch http://files.pfsense.org/jimp/ko-8.3/amd64/cpuctl.ko
                  cpuctl.ko                                     100% of   10 kB  212 kBps
                  [2.1-BETA1][admin@pfsense.somthing]/boot/modules(8): kldload cpuctl.ko
                  [2.1-BETA1][admin@pfsense.somthing]/boot/modules(9): kldstat
                  Id Refs Address            Size     Name
                   1   11 0xffffffff80100000 11f3410  kernel
                   2    1 0xffffffff81412000 c61      coretemp.ko
                   3    1 0xffffffff81413000 702e     cpufreq.ko
                   4    1 0xffffffff8141b000 ecf      cpuctl.ko
                  

                  Well that seemed to work - but why that and not the savers?

                  *edit and I have to assume yes to the 64bit question as the file I used was pfSense-2.1-BETA1-4g-amd64-nanobsd_vga-20121212-1059.img.gz. Unless this is some how not 64bit?

                  1 Reply Last reply Reply Quote 0
                  • O
                    OrBy
                    last edited by

                    I was doing most of my testing remote and has not has a chance to check the local console. Checked it today and found a bunch of "KLD green_saver.ko: depends on splash - not available" errors that never echo'ed back though the putty session.

                    Digging around a bit it sounds like splash is a kernel device that BSD uses for a start splash screen and screen savers as well. I started getting a bit out of my depth at this point - any one have a walk though how to enable splash on pfsense?

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

                      I've never tried this but I see there are some 'splash' kernel modules you could load. Easy test.

                      Steve

                      1 Reply Last reply Reply Quote 0
                      • O
                        OrBy
                        last edited by

                        I saw that as well and gave it a shot - they also gave the same error. It looks like splash is actually a device that some how needs to be enabled via a different method.

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

                          If you're using splash_* it looks like you need bitmap_load as well:
                          See the examples here: http://www.freebsd.org/cgi/man.cgi?query=splash&sektion=4&apropos=0&manpath=FreeBSD+9.0-RELEASE

                          Though it does seem like you need something compiled into the kernel as well:
                          @man:

                          In order to load the splash screen or the screen saver, you must have the following line in the kernel configuration file.

                          device splash

                          Steve

                          1 Reply Last reply Reply Quote 0
                          • O
                            OrBy
                            last edited by

                            Yeah I think it needs a re-compiled kernel with the option enabled before this can be taken any further if I understand http://aplawrence.com/Unixart/compiling_freebsd.html correctly. As of right now that's way beyond my ability.

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

                              Yep I agree it looks like it's not included in the pfSense kernel:

                              [2.0.1-RELEASE][admin@pfsense.fire.box]/boot/kernel(27): kldstat -v | grep splash
                              [2.0.1-RELEASE][admin@pfsense.fire.box]/boot/kernel(28):
                              
                              

                              Not 100% sure if it would appear in that list though.  :-\ Anyone else?

                              Steve

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

                                splash is in GENERIC so it's on a full install because full install kernels include GENERIC and specify additional options beyond what is there. NanoBSD kernels are pruned down and do not include things like that.

                                So it will work on a full install, but not NanoBSD.

                                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
                                • stephenw10S
                                  stephenw10 Netgate Administrator
                                  last edited by

                                  Thanks Jim, as always.  :)

                                  Steve

                                  1 Reply Last reply Reply Quote 0
                                  • O
                                    OrBy
                                    last edited by

                                    Ahhhh ok. Since this is running on a SSD - the RO default state of the NanoBSD was one of the traits I was looking to keep. Is there any chance that in the future that the splash device option be added to the NanoBSD VGA build since it's more then likely going to have a screen attached?

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

                                      seems like it might be OK… feel free to submit a pull request on github with the changes, or a redmine feature request.

                                      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
                                      • O
                                        OrBy
                                        last edited by

                                        Thank you again stephenw10 and jimp! I have done so and will wait to see what they say/do.

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

                                          https://github.com/bsdperimeter/pfsense-tools/commit/eace068d57a040c9013d1d3124094262944338d8 :-)

                                          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
                                          • O
                                            OrBy
                                            last edited by

                                            Whoa - that was quick!
                                            Updated today and redid the steps in my 1st post - went down to check the local console and it has already went to sleep! I would say that's tested, working, and my issue is solved!

                                            Thank you again jimp and stephenw10!

                                            This thread can be closed as solved as far my issue.

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