Linux fbset command

Linux 命令大全Linux Command Collection

The Linux fbset command is used to set the framebuffer.

The fbset command can be used to set the size of the framebuffer, and also adjust the screen resolution, position, height, width, and color depth, and can decide whether to enable various hardware features of the graphics card.

Syntax

fbset [-ahinsvVx][-db <信息文件>][-fb <外围设备代号>][--test][显示模式]

Parameters:

  • -a or --all: Change the display mode of all virtual terminals using this device.
  • -db<info file>: Specify the info file for display modes. The default file name is fb.modes, stored in the /etc directory.
  • -fb<peripheral device number>: Specify the peripheral device used as the output framebuffer. The default is "/dev/fd0".
  • -h or -help: Online help.
  • -i or --info: List all relevant framebuffer information.
  • -ifb<peripheral device number>: Use the settings of another framebuffer 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: Display the command execution process.
  • -V or --version: Display version information.
  • -x or --xfree86: Use XFree86 compatible mode.
  • --test: Only perform a test, does not change the current display mode.

Examples

Set 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 //启动广播功能

Linux 命令大全Linux Command Collection

Other extensions