[PATCH 0/2] get fbdev size from cmdline if no connector found

Vincent Abriou vincent.abriou at st.com
Fri Jan 6 16:44:42 UTC 2017


In case no connector is found while creating the fbdev, gives the
possibility to specify the default fbdev size by firstly checking if the
command line is defining a preferred mode. Else go into fallback and set
1024x768 fbdev size as it was already done.

It is usefull in case you forgot to plug your connector cable but you want
your fbdev to have the size you have defined in the command line.
Then when you plug your connector cable, the fbdev will match your display
size.

In case no command line is specified, the 1024x768 fbdev resolution is keept
as default fbdev resolution.

Vincent Abriou (2):
  drm: remove useless parameters from drm_pick_cmdline_mode function
  drm: get fbdev size from cmdline mode if it exists.

 drivers/gpu/drm/drm_fb_helper.c    | 39 +++++++++++++++++++++++++++++---------
 drivers/gpu/drm/i915/intel_fbdev.c |  2 +-
 include/drm/drm_fb_helper.h        |  3 +--
 3 files changed, 32 insertions(+), 12 deletions(-)

-- 
2.7.4



More information about the dri-devel mailing list