← 返回命令列表

Linux command

con2fbmap 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Show

con2fbmap 1

Map

con2fbmap 1 0

Map

con2fbmap 3 1

说明

con2fbmap shows or sets the mapping between Linux virtual consoles and framebuffer devices. Framebuffer devices provide a unified interface for accessing graphics displays and are accessed through device nodes /dev/fb\<n\>, where n is the device number. When called with only a console number, it displays the current framebuffer mapping for that console. When called with both a console number and a framebuffer number, it reassigns the console to use the specified framebuffer device. This is useful on systems with multiple graphics adapters or displays, allowing different virtual consoles to render on different screens.

参数

console
The virtual console number to query or modify (required).
framebuffer
The framebuffer device number to map the console to. If omitted, the current mapping is displayed.

FAQ

What is the con2fbmap command used for?

con2fbmap shows or sets the mapping between Linux virtual consoles and framebuffer devices. Framebuffer devices provide a unified interface for accessing graphics displays and are accessed through device nodes /dev/fb\<n\>, where n is the device number. When called with only a console number, it displays the current framebuffer mapping for that console. When called with both a console number and a framebuffer number, it reassigns the console to use the specified framebuffer device. This is useful on systems with multiple graphics adapters or displays, allowing different virtual consoles to render on different screens.

How do I run a basic con2fbmap example?

Run `con2fbmap 1` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does console do in con2fbmap?

The virtual console number to query or modify (required).