Background misaligned?

2013-01-20
2013-01-20
  • Jason Murray
    Jason Murray
    2013-01-20

    I'm currently undergoing the process of theming rEFInd on my laptop running Arch.
    I converted it to BMP24 with gimp after PNG didn't work.

    This is the image I'm trying to use as the background : http://i.imgur.com/1QTxhkf.png
    And this is what it looks like: http://i.imgur.com/dXIHC3Q.jpg

     
  • Are you saying that it did work as a BMP, but not as a PNG?

    Also, does rEFInd's resolution (which is reported on the information screen) match the size of the image (1366x768)?

    Unfortunately, none of my systems has a 1366x768 option, so I can't really test this properly. It does display as expected on a 1440x900 display in VirtualBox, but that's as close as I can test. A couple of random suggestions:

    • I notice that the image is 32-bit with an alpha layer. It's conceivable that one of these factors is causing problems; you might try saving it as 24-bit and/or without an alpha layer.
    • You could try saving the image using a different graphics program.

    Obviously these are both just potential workarounds; rEFInd shouldn't be mis-placing graphics even if they've got 32 bits per pixel or alpha layers.

     
  • I've taken a quick look at the source code and I've added one small change that might fix this problem. I'm skeptical it will have any effect, though. If you care to test it, here's a link to the binary:

    http://www.rodsbooks.com/refind-bin-0.6.5.1.zip

    I'll try fiddling with options in graphics files to try to re-create the problem locally. If you could send me an image at 800x600, 1024x768, 1440x900, or 1280x1280 using the same tools and settings you used for the problem image, that might help. I can also provide debugging builds that print debugging information if I can't reproduce the problem here and if you're willing to help debug.

     
  • Jason Murray
    Jason Murray
    2013-01-20

    It's the BMP that isn't loading properly, using a PNG doesn't load at all. Here's the BMP if you want to try testing with that: http://www.mediafire.com/view/?nu4lp4yx0t1633c

    And here's a 1440x900 version: http://www.mediafire.com/view/?y9zc4cjtle7bmy0

    I just tried removing the alpha channel layer, and the png still just loads a default gray background.

    So now I'll try that binary you provied, and yes I am willing to help debug :)

     
  • Jason Murray
    Jason Murray
    2013-01-20

    Ah, and I have been using the version from the Arch repos, which is 0.6.4-1. Should I be able to just drop in the new refind_x64.efi file?

     
    Last edit: Jason Murray 2013-01-20
  • The fact that you're using 0.6.4 explains the problem: PNG support is new with version 0.6.5. Previous versions also lacked support for big banners. If anything, the surprise is that you got anything at all; rEFInd 0.6.4 and earlier is more likely to crash than to work at all when fed a too-big banner, in my experience.

     
  • Jason Murray
    Jason Murray
    2013-01-20

    ..oh. Well alright. I suppose I'll upgrade.