Linux fbset Command
The Linux fbset command is used to configure the frame buffer.
The fbset command can be used to set the size of the frame buffer, adjust the resolution, position, dimensions, and color depth of the display, and decide whether to enable various hardware features of the graphics card.
Syntax
fbset [-ahinsvVx][-db <信息文件>][-fb <外围设备代号>][--test][显示模式]
Parameters:
- -a or --all changes the display mode of all virtual terminals using this device.
- -db
specifies the info file for display modes; the default file name is fb.modes, stored in the /etc directory - -fb
specifies the peripheral device used as the output frame buffer; the default is "/dev/fd0". - -h or -help online help.
- -i or --info lists all information related to the frame buffer.
- -ifb
uses the settings of another frame buffer peripheral device. - -n or --now changes the display mode immediately.
- -ofb
this parameter has the same effect as specifying the "-fb" parameter. - -s or --show lists the current display mode settings.
- -v or --verbose displays the command execution process.
- -V or --version Display version information.
- -x or --xfree86 uses XFree86-compatible mode.
- --test performs a test only and does not change the current display mode.
Example
Set the screen resolution and desktop resolution
# fbset -g 800 688 1024 768//画面分辨率为800*600 桌面分辨率为1024*768
Enable hardware text acceleration
# fbset -accel true // 启动硬件文本加速
Enable broadcast function
# fbset -bcast true //Start broadcast function
Linux Command Reference