Welcome to Linux Knowledge Base and Tutorial
"The place where you learn linux"
International Rescue Committe

 Create an AccountHome | Submit News | Your Account  

Tutorial Menu
Linux Tutorial Home
Table of Contents

· Introduction to Operating Systems
· Linux Basics
· Working with the System
· Shells and Utilities
· Editing Files
· Basic Administration
· The Operating System
· The X Windowing System
· The Computer Itself
· Networking
· System Monitoring
· Solving Problems
· Security
· Installing and Upgrading
· Linux and Windows

Man Pages
Linux Topics
Test Your Knowledge

Site Menu
Site Map
Copyright Info
Terms of Use
Privacy Info
Masthead / Impressum
Your Account

Private Messages

News Archive
Submit News
User Articles
Web Links


The Web

Who's Online
There are currently, 132 guest(s) and 0 member(s) that are online.

You are an Anonymous user. You can register for free by clicking here




       fbset [options] [mode]


       fbset  is  a system utility to show or change the settings
       of the frame buffer device. The frame buffer  device  pro­
       vides  a  simple  and unique interface to access different
       kinds of graphic displays.

       Frame buffer devices are accessed via special device nodes
       located in the /dev directory. The naming scheme for these
       nodes is always fb/<n> or fb<n>, where n is the number  of
       the used frame buffer device.

       fbset   uses   an  own  video  mode  database  located  in
       /etc/fb.modes. An unlimited number of video modes  can  be
       defined  in  this  database.  For  further information see


       If no option is given,  fbset  will  display  the  current
       frame buffer settings.

       General options:

              --help, -h
                     display an usage information

              --test don't  change, just test whether the mode is

              --show, -s
                     display the video  mode  settings.  This  is
                     default if no further option or only a frame
                     buffer device via -fb is given

              --info, -i
                     display all available frame buffer  informa­

              --verbose, -v
                     display  information what fbset is currently

              --version, -V
                     display the version information about fbset

              --xfree86, -x
                     display  the  timing  information  as   it's
                     needed by XFree86

       Frame buffer device nodes:

       Display bitfield colors:

              -rgba <red,green,blue,alpha>
                     each in length or length/offset color format

       Display geometry:

              -xres <value>
                     set visible horizontal resolution  (in  pix­

              -yres <value>
                     set visible vertical resolution (in pixels)

              -vxres <value>
                     set  virtual  horizontal resolution (in pix­

              -vyres <value>
                     set virtual vertical resolution (in pixels)

              -depth <value>
                     set display depth (in bits per pixel)

              -nonstd <value>
                     select nonstandard video mode

              --geometry, -g ...
                     set all geometry parameters at
                     once   in   the  order  <xres>
                     <yres>     <vxres>     <vyres>
                     <depth>,  e.g.  -g 640 400 640
                     400 4

                     make the  physical  resolution
                     match the virtual resolution

       Display timings:

              -pixclock <value>
                     set  the  length  of one pixel
                     (in  picoseconds).  Note  that
                     the  frame  buffer  device may
                     only   support   some    pixel

              -left <value>
                     set left margin (in pixels)

              -vslen <value>
                     set vertical sync  length  (in
                     pixel lines)

              --timings, -t ...
                     set  all  timing parameters at
                     once in the  order  <pixclock>
                     <left> <right> <upper> <lower>
                     <hslen>  <vslen>,   e.g.    -g
                     35242 64 96 35 12 112 2

       Display flags:

              -accel {false|true}
                     set hardware text acceleration

              -hsync {low|high}
                     set the horizontal sync polar­

              -vsync {low|high}
                     set the vertical sync polarity

              -csync {low|high}
                     set the composite sync  polar­

              -gsync {false|true}
                     set synch on green

              -extsync {false|true}
                     enable   or  disable  external
                     resync. If  enabled  the  sync
                     timings  are  not generated by
                     the frame  buffer  device  and
                     must  be  provided  externally
                     instead. Note that this option
                     may  not be supported by every
                     frame buffer device

              -bcast {false|true}
                     enable  or  disable  broadcast
                     modes.  If  enabled  the frame
                     buffer  generates  the   exact
                     timings  for several broadcast
                     modes (e.g. PAL or NTSC). Note
                     that  this  option  may not be
                     supported   by   every   frame
                     buffer device

              -double {false|true}
                     enable or disable  doublescan.
                     If  enabled every line will be
                     displayed twice and  this  way
                     the  horizontal  frequency can
                     easily be doubled, so that the
                     same  resolution  can  be dis­
                     played on different  monitors,
                     even  if  the  horizontal fre­
                     quency specification  differs.
                     Note  that this option may not
                     be supported  by  every  frame
                     buffer device

       Display positioning:

              -move {left|right|up|down}
                     move  the  visible part of the
                     display   in   the   specified

              -step <value>
                     set   step  size  for  display
                     positioning  (in   pixels   or
                     pixel  lines), if -step is not
                     given display will be moved  8
                     pixels horizontally or 2 pixel
                     lines vertically


       To set the used video mode for X insert  the
       following in rc.local:

              fbset -fb /dev/fb0 vga

       and  make the used frame buffer device known
       to X:

              export FRAMEBUFFER=/dev/fb0




       fb.modes(5), fbdev(4)


       Geert     Uytterhoeven      <Geert.Uytterho­

Show your Support for the Linux Tutorial

Purchase one of the products from our new online shop. For each product you purchase, the Linux Tutorial gets a portion of the proceeds to help keep us going.



Security Code
Security Code
Type Security Code

Don't have an account yet? You can create one. As a registered user you have some advantages like theme manager, comments configuration and post comments with your name.

Help if you can!

Amazon Wish List

Did You Know?
The Linux Tutorial welcomes your suggestions and ideas.


Tell a Friend About Us

Bookmark and Share

Web site powered by PHP-Nuke

Is this information useful? At the very least you can help by spreading the word to your favorite newsgroups, mailing lists and forums.
All logos and trademarks in this site are property of their respective owner. The comments are property of their posters. Articles are the property of their respective owners. Unless otherwise stated in the body of the article, article content (C) 1994-2013 by James Mohr. All rights reserved. The stylized page/paper, as well as the terms "The Linux Tutorial", "The Linux Server Tutorial", "The Linux Knowledge Base and Tutorial" and "The place where you learn Linux" are service marks of James Mohr. All rights reserved.
The Linux Knowledge Base and Tutorial may contain links to sites on the Internet, which are owned and operated by third parties. The Linux Tutorial is not responsible for the content of any such third-party site. By viewing/utilizing this web site, you have agreed to our disclaimer, terms of use and privacy policy. Use of automated download software ("harvesters") such as wget, httrack, etc. causes the site to quickly exceed its bandwidth limitation and are therefore expressly prohibited. For more details on this, take a look here

PHP-Nuke Copyright © 2004 by Francisco Burzi. This is free software, and you may redistribute it under the GPL. PHP-Nuke comes with absolutely no warranty, for details, see the license.
Page Generation: 0.09 Seconds