Hello,

Mathieu Malaterre, on Sat 03 Sep 2016 16:00:15 +0200, wrote:
> Some more information. I do not believe this is a 'simple' missing
> byteswap operation in bterm source code.
> 
> During debian-installer if I boot using:
> 
> > install32
> 
> I can observe the red/blue inversion (using an OFFb fb)
> 
> Now if I do:
> 
> > install32 video=offb:off
> 
> I *cannot* observe the red/blue inversion (using a radeonfb fb).
[...]
> So there is something very subbtle (at least to me) that makes bterm
> have a different behavior in OFFb vs radeonfb cases.

Could you run the attached test in both cases?

Samuel
#include <stdio.h>
#include <fcntl.h>
#include <linux/fb.h>
#include <sys/ioctl.h>
int main(void) {
  int fb;
  struct fb_fix_screeninfo fb_fix;

  fb = open ("/dev/fb0", O_RDWR);
  if (fb < 0)
    fb = open ("/dev/fb/0", O_RDWR);
  if (fb < 0)
    return 1;

  if (-1 == ioctl (fb, FBIOGET_FSCREENINFO, &fb_fix))
          return 1;
  
  printf("%d %d %d\n",
                  fb_fix.type,
                  fb_fix.type_aux,
                  fb_fix.visual);
}

Reply via email to