Skip to contentSkip to conversation

Documentation: fbcon: formatting cleanup and improvements

PATCH In review Bagas Sanjaya 3 participants 6 messages Sep 9, 2025 – Sep 18, 2025

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

cover Documentation: fbcon: formatting cleanup and improvements

Hi,

Here are reST formatting cleanup and improvements for fbcon documentation. The shortlog below should be self-explanatory.

This series is based on docs-next tree.

Enjoy!

Bagas Sanjaya (3):
Documentation: fbcon: Add boot options and attach/detach/unload
section headings
Documentation: fbcon: Reindent 8th step of attach/detach/unload
Documentation: fbcon: Use admonition directives

 Documentation/fb/fbcon.rst | 42 ++++++++++++++++++++++----------------
 1 file changed, 24 insertions(+), 18 deletions(-)

base-commit: 7e5a0fe4e8ae2eb341f8ebbee2b24231a58fc28b

Signature · 1 line
An old man doll... just what I always wanted! - Clara
#1 lore raw

PATCH 1/3 Documentation: fbcon: Add boot options and attach/detach/unload section headings

These last two enumerated sections headings are in normal paragraphs, making both sections merged into "Loading" section instead.

Add the headings.

---
 Documentation/fb/fbcon.rst | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
Documentation/fb/fbcon.rst +3 -1
index 212f7003cfbab2..b9ddc145aa9f6a 100644
@@ -74,6 +74,7 @@ Possible scenarios:
 	 over the console.
 
 C. Boot options
+===============
 
 	 The framebuffer console has several, largely unknown, boot options
 	 that can change its behavior.
@@ -172,7 +173,8 @@ C. Boot options
 	The value 'n' overrides the number of bootup logos. 0 disables the
 	logo, and -1 gives the default which is the number of online CPUs.
 
-C. Attaching, Detaching and Unloading
+D. Attaching, Detaching and Unloading
+=====================================
 
 Before going on to how to attach, detach and unload the framebuffer console, an
 illustration of the dependencies may help.
Signature · 1 line
An old man doll... just what I always wanted! - Clara
#2 lore raw

PATCH 2/3 Documentation: fbcon: Reindent 8th step of attach/detach/unload

In reply to Bagas Sanjaya

Properly indent 8th step text (as enumerated list item) to be inline with other steps.

---
 Documentation/fb/fbcon.rst | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
Documentation/fb/fbcon.rst +5 -5
index b9ddc145aa9f6a..3ed98b3ce64713 100644
@@ -251,11 +251,11 @@ restored properly. The following is one of the several methods that you can do:
        echo 1 > /sys/class/vtconsole/vtcon1/bind
 
 8. Once fbcon is unbound, all drivers registered to the system will also
-become unbound.  This means that fbcon and individual framebuffer drivers
-can be unloaded or reloaded at will. Reloading the drivers or fbcon will
-automatically bind the console, fbcon and the drivers together. Unloading
-all the drivers without unloading fbcon will make it impossible for the
-console to bind fbcon.
+   become unbound.  This means that fbcon and individual framebuffer drivers
+   can be unloaded or reloaded at will. Reloading the drivers or fbcon will
+   automatically bind the console, fbcon and the drivers together. Unloading
+   all the drivers without unloading fbcon will make it impossible for the
+   console to bind fbcon.
 
 Notes for vesafb users:
 =======================
Signature · 1 line
An old man doll... just what I always wanted! - Clara
#3 lore raw

PATCH 3/3 Documentation: fbcon: Use admonition directives

In reply to Bagas Sanjaya

Use reST syntax for admonitions (notes and custom admonition for gotcha).

---
 Documentation/fb/fbcon.rst | 28 ++++++++++++++++------------
 1 file changed, 16 insertions(+), 12 deletions(-)
Documentation/fb/fbcon.rst +16 -12
index 3ed98b3ce64713..a98a5cb0b0d8bd 100644
@@ -39,11 +39,13 @@ Also, you will need to select at least one compiled-in font, but if
 you don't do anything, the kernel configuration tool will select one for you,
 usually an 8x16 font.
 
-GOTCHA: A common bug report is enabling the framebuffer without enabling the
-framebuffer console.  Depending on the driver, you may get a blanked or
-garbled display, but the system still boots to completion.  If you are
-fortunate to have a driver that does not alter the graphics chip, then you
-will still get a VGA console.
+.. admonition:: GOTCHA
+
+   A common bug report is enabling the framebuffer without enabling the
+   framebuffer console.  Depending on the driver, you may get a blanked or
+   garbled display, but the system still boots to completion.  If you are
+   fortunate to have a driver that does not alter the graphics chip, then you
+   will still get a VGA console.
 
 B. Loading
 ==========
@@ -117,9 +119,10 @@ C. Boot options
 	outside the given range will still be controlled by the standard
 	console driver.
 
-	NOTE: For x86 machines, the standard console is the VGA console which
-	is typically located on the same video card.  Thus, the consoles that
-	are controlled by the VGA console will be garbled.
+	.. note::
+	   For x86 machines, the standard console is the VGA console which
+	   is typically located on the same video card.  Thus, the consoles that
+	   are controlled by the VGA console will be garbled.
 
 4. fbcon=rotate:<n>
 
@@ -141,10 +144,11 @@ C. Boot options
 	Console rotation will only become available if Framebuffer Console
 	Rotation support is compiled in your kernel.
 
-	NOTE: This is purely console rotation.  Any other applications that
-	use the framebuffer will remain at their 'normal' orientation.
-	Actually, the underlying fb driver is totally ignorant of console
-	rotation.
+	.. note::
+	   This is purely console rotation.  Any other applications that
+	   use the framebuffer will remain at their 'normal' orientation.
+	   Actually, the underlying fb driver is totally ignorant of console
+	   rotation.
 
 5. fbcon=margin:<color>
 
Signature · 1 line
An old man doll... just what I always wanted! - Clara
reviewer Reviewed-by Tested-by on the v1 series
#4 lore raw
In reply to Bagas Sanjaya
Quoted 15 lines · Bagas Sanjaya

Hi,

Here are reST formatting cleanup and improvements for fbcon documentation. The shortlog below should be self-explanatory.

This series is based on docs-next tree.

Enjoy!

Bagas Sanjaya (3):
Documentation: fbcon: Add boot options and attach/detach/unload
section headings
Documentation: fbcon: Reindent 8th step of attach/detach/unload
Documentation: fbcon: Use admonition directives

Quoted 5 lines
 Documentation/fb/fbcon.rst | 42 ++++++++++++++++++++++----------------
 1 file changed, 24 insertions(+), 18 deletions(-)

base-commit: 7e5a0fe4e8ae2eb341f8ebbee2b24231a58fc28b

For all 3 patches:

Thanks.

Signature · 1 line
~Randy
maintainer
#5 lore raw
In reply to Bagas Sanjaya
Quoted 9 lines · Bagas Sanjaya

Hi,

Here are reST formatting cleanup and improvements for fbcon documentation. The shortlog below should be self-explanatory.

This series is based on docs-next tree.

Enjoy!

Quoted 8 lines

Bagas Sanjaya (3):
Documentation: fbcon: Add boot options and attach/detach/unload
section headings
Documentation: fbcon: Reindent 8th step of attach/detach/unload
Documentation: fbcon: Use admonition directives

 Documentation/fb/fbcon.rst | 42 ++++++++++++++++++++++----------------
 1 file changed, 24 insertions(+), 18 deletions(-)

It looks like nobody has picked these up yet, so I've applied them.

Thanks,

jon