Re: X and intelfb fight over videomode

From: Antonino A. Daplas (adaplas_at_gmail.com)
Date: 11/17/05

  • Next message: Andrew Morton: "Re: [PATCH] Keys: Permit key expiry time to be set"
    Date:	Thu, 17 Nov 2005 10:03:53 +0800
    To: David Härdeman <david@2gen.com>
    
    

    David Härdeman wrote:
    > On Thu, Nov 17, 2005 at 09:11:53AM +0800, Antonino A. Daplas wrote:
    >> David Härdeman wrote:
    >>> intelfb: Changing the video mode is not supported.
    >
    >> Try booting with video=intelfb:1024x768-16@60,mtrr=0. Do not include
    >> the vga=0x318 option. This prevents intelfb from changing the videomode.
    >
    > It seems that intelfb can't change it no matter what....booting with
    > video=intelfb:1024x768-16@60,mtrr=0 gives me the usual vga console and
    > no framebuffer. The following is printed during boot:
    >

    Ah, okay, you have a flatpanel display, so you really need vesa to program
    the mode.

    > Suggestions?
    >

    The main problem is that when check_var fails, set_par is not called
    which means that the ringbuffer is not set up correctly after switching
    from X.

    Try this first, then we'll think of a definitive solution later.

    Open drivers/video/intelfb/intelfbdrv.c and look at intelfb_check_var().

    Look for this particular snippet...

            if (FIXED_MODE(dinfo) &&
                (change_var ||
                 var->yres_virtual > dinfo->initial_var.yres_virtual ||
                 var->yres_virtual < dinfo->initial_var.yres ||
                 var->xoffset || var->nonstd)) {
                    if (first) {
                            ERR_MSG("Changing the video mode is not supported.\n");
                            first = 0;
                    }
                    return -EINVAL;
            }

    And then insert a line so it looks like this:

            if (FIXED_MODE(dinfo) &&
                (change_var ||
                 var->yres_virtual > dinfo->initial_var.yres_virtual ||
                 var->yres_virtual < dinfo->initial_var.yres ||
                 var->xoffset || var->nonstd)) {
                    if (first) {
                            ERR_MSG("Changing the video mode is not supported.\n");
                            first = 0;
                    }
                    intelfb_set_par(info); /* insert this line */
                    return -EINVAL;
            }

    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/


  • Next message: Andrew Morton: "Re: [PATCH] Keys: Permit key expiry time to be set"

    Relevant Pages

    • Re: [PATCH] Re: 2.4.22-rc2 ext2 filesystem corruption
      ... Okay, color me as having no idea what's going on... ... Jiggered things around to boot from the drive connected to the Promise ... memory blocks, free a memory block twice, forget to free a memory block, ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: 64 bit kernel
      ... the chipset "fooled" the OS into thinking that it was doing 32 bit wide operations. ... kernel problem or if it's a BIOS problem. ... After some searching I found others with similar problems and they had to use "noapic nolapic" kernel boot options to install and boot the OS. ... To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ ...
      (Linux-Kernel)
    • Re: RFC: [2.6 patch] better i386 CPU selection
      ... If we boot a 386 kernel on a ppro with that bug, ... For the handful of bytes saved in the mtrr driver, ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [PATCH] mm lock ordering summary
      ... On Fri, 25 Jun 2004, Andrew Morton wrote: ... It's alleging that you'll be okay if you write code with tree_lock ... Look at the summary and if what I've written fits ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • fastboot, diskstat
      ... that the total time for prefetching + actual boot was only 10% shorter, ... actually cache the pages I touched, ... Also, regarding the directory entries, are they accessed via the buffer ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)