uvesafb.txt 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183
  1. uvesafb - A Generic Driver for VBE2+ compliant video cards
  2. ==========================================================
  3. 1. Requirements
  4. ---------------
  5. uvesafb should work with any video card that has a Video BIOS compliant
  6. with the VBE 2.0 standard.
  7. Unlike other drivers, uvesafb makes use of a userspace helper called
  8. v86d. v86d is used to run the x86 Video BIOS code in a simulated and
  9. controlled environment. This allows uvesafb to function on arches other
  10. than x86. Check the v86d documentation for a list of currently supported
  11. arches.
  12. v86d source code can be downloaded from the following website:
  13. http://dev.gentoo.org/~spock/projects/uvesafb
  14. Please refer to the v86d documentation for detailed configuration and
  15. installation instructions.
  16. Note that the v86d userspace helper has to be available at all times in
  17. order for uvesafb to work properly. If you want to use uvesafb during
  18. early boot, you will have to include v86d into an initramfs image, and
  19. either compile it into the kernel or use it as an initrd.
  20. 2. Caveats and limitations
  21. --------------------------
  22. uvesafb is a _generic_ driver which supports a wide variety of video
  23. cards, but which is ultimately limited by the Video BIOS interface.
  24. The most important limitations are:
  25. - Lack of any type of acceleration.
  26. - A strict and limited set of supported video modes. Often the native
  27. or most optimal resolution/refresh rate for your setup will not work
  28. with uvesafb, simply because the Video BIOS doesn't support the
  29. video mode you want to use. This can be especially painful with
  30. widescreen panels, where native video modes don't have the 4:3 aspect
  31. ratio, which is what most BIOS-es are limited to.
  32. - Adjusting the refresh rate is only possible with a VBE 3.0 compliant
  33. Video BIOS. Note that many nVidia Video BIOS-es claim to be VBE 3.0
  34. compliant, while they simply ignore any refresh rate settings.
  35. 3. Configuration
  36. ----------------
  37. uvesafb can be compiled either as a module, or directly into the kernel.
  38. In both cases it supports the same set of configuration options, which
  39. are either given on the kernel command line or as module parameters, e.g.:
  40. video=uvesafb:1024x768-32,mtrr:3,ywrap (compiled into the kernel)
  41. # modprobe uvesafb mode_option=1024x768-32 mtrr=3 scroll=ywrap (module)
  42. Accepted options:
  43. ypan Enable display panning using the VESA protected mode
  44. interface. The visible screen is just a window of the
  45. video memory, console scrolling is done by changing the
  46. start of the window. This option is available on x86
  47. only and is the default option on that architecture.
  48. ywrap Same as ypan, but assumes your gfx board can wrap-around
  49. the video memory (i.e. starts reading from top if it
  50. reaches the end of video memory). Faster than ypan.
  51. Available on x86 only.
  52. redraw Scroll by redrawing the affected part of the screen, this
  53. is the default on non-x86.
  54. (If you're using uvesafb as a module, the above three options are
  55. used a parameter of the scroll option, e.g. scroll=ypan.)
  56. vgapal Use the standard VGA registers for palette changes.
  57. pmipal Use the protected mode interface for palette changes.
  58. This is the default if the protected mode interface is
  59. available. Available on x86 only.
  60. mtrr:n Setup memory type range registers for the framebuffer
  61. where n:
  62. 0 - disabled (equivalent to nomtrr)
  63. 3 - write-combining (default)
  64. Values other than 0 and 3 will result in a warning and will be
  65. treated just like 3.
  66. nomtrr Do not use memory type range registers.
  67. vremap:n
  68. Remap 'n' MiB of video RAM. If 0 or not specified, remap memory
  69. according to video mode.
  70. vtotal:n
  71. If the video BIOS of your card incorrectly determines the total
  72. amount of video RAM, use this option to override the BIOS (in MiB).
  73. <mode> The mode you want to set, in the standard modedb format. Refer to
  74. modedb.txt for a detailed description. When uvesafb is compiled as
  75. a module, the mode string should be provided as a value of the
  76. 'mode_option' option.
  77. vbemode:x
  78. Force the use of VBE mode x. The mode will only be set if it's
  79. found in the VBE-provided list of supported modes.
  80. NOTE: The mode number 'x' should be specified in VESA mode number
  81. notation, not the Linux kernel one (eg. 257 instead of 769).
  82. HINT: If you use this option because normal <mode> parameter does
  83. not work for you and you use a X server, you'll probably want to
  84. set the 'nocrtc' option to ensure that the video mode is properly
  85. restored after console <-> X switches.
  86. nocrtc Do not use CRTC timings while setting the video mode. This option
  87. has any effect only if the Video BIOS is VBE 3.0 compliant. Use it
  88. if you have problems with modes set the standard way. Note that
  89. using this option implies that any refresh rate adjustments will
  90. be ignored and the refresh rate will stay at your BIOS default (60 Hz).
  91. noedid Do not try to fetch and use EDID-provided modes.
  92. noblank Disable hardware blanking.
  93. v86d:path
  94. Set path to the v86d executable. This option is only available as
  95. a module parameter, and not as a part of the video= string. If you
  96. need to use it and have uvesafb built into the kernel, use
  97. uvesafb.v86d="path".
  98. Additionally, the following parameters may be provided. They all override the
  99. EDID-provided values and BIOS defaults. Refer to your monitor's specs to get
  100. the correct values for maxhf, maxvf and maxclk for your hardware.
  101. maxhf:n Maximum horizontal frequency (in kHz).
  102. maxvf:n Maximum vertical frequency (in Hz).
  103. maxclk:n Maximum pixel clock (in MHz).
  104. 4. The sysfs interface
  105. ----------------------
  106. uvesafb provides several sysfs nodes for configurable parameters and
  107. additional information.
  108. Driver attributes:
  109. /sys/bus/platform/drivers/uvesafb
  110. - v86d (default: /sbin/v86d)
  111. Path to the v86d executable. v86d is started by uvesafb
  112. if an instance of the daemon isn't already running.
  113. Device attributes:
  114. /sys/bus/platform/drivers/uvesafb/uvesafb.0
  115. - nocrtc
  116. Use the default refresh rate (60 Hz) if set to 1.
  117. - oem_product_name
  118. - oem_product_rev
  119. - oem_string
  120. - oem_vendor
  121. Information about the card and its maker.
  122. - vbe_modes
  123. A list of video modes supported by the Video BIOS along with their
  124. VBE mode numbers in hex.
  125. - vbe_version
  126. A BCD value indicating the implemented VBE standard.
  127. 5. Miscellaneous
  128. ----------------
  129. Uvesafb will set a video mode with the default refresh rate and timings
  130. from the Video BIOS if you set pixclock to 0 in fb_var_screeninfo.
  131. --
  132. Michal Januszewski <spock@gentoo.org>
  133. Last updated: 2009-03-30
  134. Documentation of the uvesafb options is loosely based on vesafb.txt.