Linux fbset Command
The Linux fbset command is used to set the frame buffer.
The fbset command can be used to set the size of the frame buffer, adjust the resolution, position, height, width, color depth, and determine whether to enable various hardware features of the graphics card.
Syntax
fbset [-ahinsvVx][-db <info file>][-fb <peripheral device number>][--test][display mode]
Parameters:
-a or --all: Change the display mode for all virtual terminals using the device.
-db<info file>: Specify the info file for the display mode, with the default filename being fb.modes, located in the /etc directory.
-fb<peripheral device number>: Specify the peripheral device for the output frame buffer, with the default being "/dev/fd0".
-h or -help: Online help.
-i or --info: List all information related to the frame buffer.
-ifb<peripheral device number>: Use the settings of another frame buffer peripheral device.
-n or --now: Change the display mode immediately.
-ofb<peripheral device number>: This parameter has the same effect as specifying the "-fb" parameter.
-s or --show: List the current display mode settings.
-v or --verbose: Show the command execution process.
-V or --version: Display version information.
-x or --xfree86: Use XFree86 compatible mode.
--test: Only test, does not change the current display mode.
Examples
Set screen resolution and desktop resolution
# fbset -g 800 688 1024 768 // Screen resolution is 800*600, desktop resolution is 1024*768
Enable hardware text acceleration
# fbset -accel true // Enable hardware text acceleration
Enable broadcast function
# fbset -bcast true // Enable broadcast function