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

Make boot use High Resolution VGA Console

Scheduled Pinned Locked Moved General pfSense Questions
11 Posts 4 Posters 1.9k 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.
  • S
    stephenw10 Netgate Administrator
    last edited by stephenw10 Dec 17, 2018, 8:57 PM Dec 17, 2018, 8:56 PM

    Try adding the following to /boot/loader.conf.local:

    i915kms_load="YES" 
    drm.i915.enable_unsupported=1
    

    It may detect the native resolution of your attached monitor with the driver loaded but if it doesn't you can try also adding:

    kern.vt.fb.default_mode="1024x768" 
    

    or whatever resolution you want there.

    You will need to be running >2.4.4 to load that driver.

    Steve

    G 1 Reply Last reply Dec 19, 2018, 12:35 AM Reply Quote 0
    • G
      guardian Rebel Alliance @stephenw10
      last edited by guardian Dec 19, 2018, 1:09 AM Dec 19, 2018, 12:35 AM

      Thanks for the attempt Steve @stephenw10 - Unfortunately that was really nasty as the VGA disappeared completely and the router stopped functioning.

      @stephenw10 said in Make boot use High Resolution VGA Console:

      Try adding the following to /boot/loader.conf.local:

      i915kms_load="YES" 
      drm.i915.enable_unsupported=1
      

      It may detect the native resolution of your attached monitor with the driver loaded but if it doesn't you can try also adding:

      kern.vt.fb.default_mode="1024x768" 
      

      or whatever resolution you want there.

      You will need to be running >2.4.4 to load that driver.

      Steve

      Here is what I tried for /boot/loader.conf.local:

      /boot/loader.conf.local
      kern.cam.boot_delay=10000
      kern.vty=sc
      i915kms_load="YES"
      drm.i915.enable_unsupported=

      Fortunately I able to use a USB stick and get to the console and get the router working again.

      One thing that I can confirm is that the 2.4.4-RELEASE-p1 USB Installer does use a high resolution console, but when I do a normal upgrade I still have a crappy 80x25 console.

      I just mounted the USB stick and took a look at /boot/loader.conf and it didn't appear to be loading any modules. Here's what it looks like:

      /boot/loader.conf from USB
      kern.cam.boot_delay=10000
      autoboot_delay="3"
      kern.ipc.nmbclusters="1000000"
      kern.ipc.nmbjumbop="524288"
      kern.ipc.nmbjumbo9="524288"
      hw.usb.no_pf="1"

      The one thing I did notice is that the stick appears to be set up for EFI boot (but AFAIK my BIOS doesn't have EFI enabled).

      Any suggestions?

      If you find my post useful, please give it a thumbs up!
      pfSense 2.7.2-RELEASE

      1 Reply Last reply Reply Quote 0
      • J
        jimp Rebel Alliance Developer Netgate
        last edited by jimp Dec 19, 2018, 2:15 PM Dec 19, 2018, 2:14 PM

        If you have kern.vty=sc then you can't use the VT options that @stephenw10 posted.

        You could try this:

        kern.vty=sc
        hint.sc.0.flags="0x180"
        hint.sc.0.vesa_mode="283"
        

        Or you could mess around with vidcontrol like vidcontrol -f vgarom-thin-8x16

        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!

        G 1 Reply Last reply Dec 20, 2018, 3:23 AM Reply Quote 1
        • G
          guardian Rebel Alliance @jimp
          last edited by guardian Dec 20, 2018, 3:30 AM Dec 20, 2018, 3:23 AM

          @jimp said in Make boot use High Resolution VGA Console:

          If you have kern.vty=sc then you can't use the VT options that @stephenw10 posted.

          You could try this:

          kern.vty=sc
          hint.sc.0.flags="0x180"
          hint.sc.0.vesa_mode="283"
          

          Thanks @jimp you are the man! That got it, the video mode switches very early into the boot process.

          I'm assuming that based on your answer that of the two modes 283 is the best choice.

          Or you could mess around with vidcontrol like vidcontrol -f vgarom-thin-8x16

          I looked at the man pages for vidcontrol, but it doesn't give me enough background to really understand the significance. Does this approach offer any advantages over the above suggestion?

          If you find my post useful, please give it a thumbs up!
          pfSense 2.7.2-RELEASE

          J 1 Reply Last reply Dec 20, 2018, 1:47 PM Reply Quote 0
          • J
            jimp Rebel Alliance Developer Netgate @guardian
            last edited by Dec 20, 2018, 1:47 PM

            @guardian said in Make boot use High Resolution VGA Console:

            Thanks @jimp you are the man! That got it, the video mode switches very early into the boot process.

            I'm assuming that based on your answer that of the two modes 283 is the best choice.

            That's a matter of preference, use whichever one looks better for you.

            Or you could mess around with vidcontrol like vidcontrol -f vgarom-thin-8x16

            I looked at the man pages for vidcontrol, but it doesn't give me enough background to really understand the significance. Does this approach offer any advantages over the above suggestion?

            That will change the font size/spacing without changing the resolution.

            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!

            G 1 Reply Last reply Dec 20, 2018, 9:27 PM Reply Quote 0
            • G
              guardian Rebel Alliance @jimp
              last edited by Dec 20, 2018, 9:27 PM

              @jimp said in Make boot use High Resolution VGA Console:

              @guardian said in Make boot use High Resolution VGA Console:

              Thanks @jimp you are the man! That got it, the video mode switches very early into the boot process.

              I'm assuming that based on your answer that of the two modes 283 is the best choice.

              That's a matter of preference, use whichever one looks better for you.

              Thanks @jimp - I can't really see any difference. I assume the difference is 16 vs 32 colors. Does pfSense make use of anything over 16 colors?

              Am I correct in assuming the difference is an extra 4 bits of video memory x the screen resolution ( 1280x1024x4/8=640K ) for 640K of memory?

              Or you could mess around with vidcontrol like vidcontrol -f vgarom-thin-8x16

              I looked at the man pages for vidcontrol, but it doesn't give me enough background to really understand the significance. Does this approach offer any advantages over the above suggestion?

              That will change the font size/spacing without changing the resolution.

              Where does this get applied? Sorry I'm clueless about the BSD boot sequence. Does this statement get added to some config file, or is it just applicable after boot is complete?

              If you find my post useful, please give it a thumbs up!
              pfSense 2.7.2-RELEASE

              J 1 Reply Last reply Dec 20, 2018, 9:37 PM Reply Quote 0
              • J
                jimp Rebel Alliance Developer Netgate @guardian
                last edited by Dec 20, 2018, 9:37 PM

                @guardian said in Make boot use High Resolution VGA Console:

                Thanks @jimp - I can't really see any difference. I assume the difference is 16 vs 32 colors. Does pfSense make use of anything over 16 colors?

                The only console thing that uses colors is the prompt, and that's only a few. Doesn't really matter AFAIK.

                Am I correct in assuming the difference is an extra 4 bits of video memory x the screen resolution ( 1280x1024x4/8=640K ) for 640K of memory?

                Probably, not sure it matters in the grand scheme of things, since that is probably minuscule by compared to typically available video memory on systems.

                Where does this get applied? Sorry I'm clueless about the BSD boot sequence. Does this statement get added to some config file, or is it just applicable after boot is complete?

                That takes effect only when run manually. You would need run the full command in a boot-time script every boot, you could make your own and drop it in /usr/local/etc/rc.d/ if you like what it does.

                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!

                4 1 Reply Last reply Mar 20, 2019, 9:29 AM Reply Quote 1
                • 4
                  4o4rh @jimp
                  last edited by Mar 20, 2019, 9:29 AM

                  @jimp I have Qotom J1900 4xLAN box with the following error

                  netmap: loaded module
                  module_register_init: MOD_LOAD (vesa, 0xffffffff81209800, 0) error 19
                  random: registering fast source Intel Secure Key RNG
                  

                  I read in various freebsd threads and some on here, that after the 2.4.4 people couldn't boot with this hardware.

                  The recommended workarounds, are to switch to sc or use i915 driver.
                  The i915 driver causes a complete freeze of the system within LAN initialization, so that is not an option.
                  I tried switching to sc and have seen conflicting statements re kern.vty=sc or "sc".
                  I have tried both, and get the same results.

                  boot up shows the EFI framebuffer info, address, dimension, stride, masks...then stops displaying.
                  System boots and functions, but i loose RGB display.

                  any ideas

                  1 Reply Last reply Reply Quote 0
                  • S
                    stephenw10 Netgate Administrator
                    last edited by Mar 20, 2019, 11:43 AM

                    Can you try booting legacy instead of UEFI? That has helped some systems.

                    Steve

                    4 1 Reply Last reply Mar 20, 2019, 12:01 PM Reply Quote 0
                    • 4
                      4o4rh @stephenw10
                      last edited by 4o4rh Mar 20, 2019, 2:01 PM Mar 20, 2019, 12:01 PM

                      @stephenw10 yep, change to mbr and it is responding per the instructions. vesa error gone, with 1280 after initial boot pass

                      1 Reply Last reply Reply Quote 0
                      • First post
                        Last post
                      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                        [[user:consent.lead]]
                        [[user:consent.not_received]]