bugGNU GRUB - Bugs: bug #51914, Dynamic font size selection based...


You are not allowed to post comments on this tracker with your current authentication level.

bug #51914: Dynamic font size selection based on DPI

Submitted by:  Preston Crow <pcrow>
Submitted on:  Fri 01 Sep 2017 07:20:49 PM UTC  
Category:  User Interface Severity:  Major
Priority:  5 - Normal Item Group:  Feature Request
Status:  None Privacy:  Public
Assigned to:  None Originator Name:  Preston Crow
Open/Closed:  Open Release: 
Release:  2.02 Reproducibility:  Every Time
Planned Release:  None

Wed 20 Jan 2021 07:03:30 AM UTC, comment #1: 

original submission:

> Another option would be to use the EDID information to set an environment variable with the current DPI.

I have come across this same issue. I'd like to write grub.cfg files that can be responsive to different monitors - selecting fonts size & possibly themes based on the DPI or simply the framebuffer width/height.

I support the environment variable idea, perhaps videoinfo could take a '--set' option, like the 'search' command does, to make the information available to my script.

Darrin Smart <darrinsmart>
Fri 01 Sep 2017 07:20:49 PM UTC, original submission:  

I have a laptop that is often connected to different external displays.  Grub does a fine job of selecting the correct resolution (usually the maximum) and displaying my background image, but I don't seem to be able to configure it to select the appropriate size of font based on the DPI or screen resolution.  The displays I use range from 96 DPI to 288 DPI, so no one font will look right everywhere.

I looked into manually modifying my grub.cfg.  While the 'videoinfo' command will tell me what the resolution is, it doesn't appear that there's any way to capture the output of that command into a variable that I could then parse and test.  I would think I could make this work if grub had support for BASH-like syntax: VAR_NAME=$( videoinfo )

Another option would be to use the EDID information to set an environment variable with the current DPI.

Preston Crow <pcrow>


No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by darrinsmart (Posted a comment)
  • -email is unavailable- added by pcrow (Submitted the item)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.




    No changes have been made to this item

    Back to the top

    Powered by Savane 3.6