Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Kernel & Hardware
  • Search

Srollback in Console

Kernel not recognizing your hardware? Problems with power management or PCMCIA? What hardware is compatible with Gentoo? See here. (Only for kernels supported by Gentoo.)
Post Reply
Advanced search
9 posts • Page 1 of 1
Author
Message
paulb787
Apprentice
Apprentice
Posts: 250
Joined: Mon Nov 14, 2005 1:56 pm

Srollback in Console

  • Quote

Post by paulb787 » Fri Oct 14, 2011 5:04 am

I just learned that you can scroll back in the console with.shift page up and pg down.
I love it. I can only scroll up a little and was wondering.why? If anybody can help.

Thank u
Top
wswartzendruber
Veteran
Veteran
User avatar
Posts: 1261
Joined: Tue Mar 23, 2004 1:16 am
Location: Idaho, USA

  • Quote

Post by wswartzendruber » Fri Oct 14, 2011 5:08 am

So is this Konsole or GNOME Terminal...or a plain old TTY?
Top
Aquous
l33t
l33t
Posts: 700
Joined: Sat Jan 08, 2011 1:10 pm

  • Quote

Post by Aquous » Fri Oct 14, 2011 12:29 pm

He's talking about plain old TTY.

The amount you can scroll back by is determined by a certain kernel .config setting, however that has a maximum buffer size of, I believe, 256KiB. Which is about one full screen and a half. I don't know why this limitation exists, only that it's hard-coded into the kernel .config.
Top
John R. Graham
Administrator
Administrator
User avatar
Posts: 10898
Joined: Tue Mar 08, 2005 3:39 pm
Location: Somewhere over Winder, Georgia, USA

  • Quote

Post by John R. Graham » Fri Oct 14, 2011 1:59 pm

A screen and a half? Dude, this is a text console. 256KiB is enough for over 100 pages of 80x25 text console.

- John
I can confirm that I have received between 0 and 499 National Security Letters.
Top
wswartzendruber
Veteran
Veteran
User avatar
Posts: 1261
Joined: Tue Mar 23, 2004 1:16 am
Location: Idaho, USA

  • Quote

Post by wswartzendruber » Fri Oct 14, 2011 2:51 pm

Isn't there a kernel configuration setting called "Backbuffer console in system RAM?" It's under Graphics in the Drivers section.
Top
Chiitoo
Ninja Apprentice
Ninja Apprentice
User avatar
Posts: 3076
Joined: Sun Feb 28, 2010 5:36 pm
Location: Sore wa sore, kore wa kore... nanoda.

Hmmm.

  • Quote

Post by Chiitoo » Fri Oct 14, 2011 2:52 pm

I do believe this might be the setting, quoting make menuconfig? ^^

Code: Select all

  │ CONFIG_VGACON_SOFT_SCROLLBACK_SIZE:                                                                   
  │                                                                                                                   
  │ Enter the amount of System RAM to allocate for the scrollback                                         
  │ buffer.  Each 64KB will give you approximately 16 80x25                                                  
  │ screenfuls of scrollback buffer                                                                        
  │                                                                                                                
  │ Symbol: VGACON_SOFT_SCROLLBACK_SIZE [=64]                         
  │ Type  : integer                                                                    
  │ Range : [1 1024]                                                            
  │ Prompt: Scrollback Buffer Size (in KB)                                                                          
  │   Defined at drivers/video/console/Kconfig:37                                                           
  │   Depends on: HAS_IOMEM [=y] && VT [=y] && VGACON_SOFT_SCROLLBACK [=y]          
  │   Location:                                           
  │     -> Device Drivers                             
  │       -> Graphics support                                       
  │         -> Console display driver support                        
  │           -> VGA text console (VGA_CONSOLE [=y])                        
  │             -> Enable Scrollback Buffer in System RAM (VGACON_SOFT_SCROLLBACK [=y]) 
Edit:

T'was all messed up oddly enough even though in preview it seemed to be fine.
Kindest of regardses.
Top
BitJam
Advocate
Advocate
Posts: 2513
Joined: Tue Aug 12, 2003 4:15 pm
Location: Silver City, NM

  • Quote

Post by BitJam » Fri Oct 14, 2011 6:43 pm

In /usr/src/linux/Documentation/fb/fbcon.txt it says:

Code: Select all

2. fbcon=scrollback:<value>[k]

        The scrollback buffer is memory that is used to preserve display
        contents that has already scrolled past your view.  This is accessed
        by using the Shift-PageUp key combination.  The value 'value' is any
        integer. It defaults to 32KB.  The 'k' suffix is optional, and will
        multiply the 'value' by 1024.
You can adjust the size of the scrollback buffer at boot time.
Top
Aquous
l33t
l33t
Posts: 700
Joined: Sat Jan 08, 2011 1:10 pm

  • Quote

Post by Aquous » Fri Oct 14, 2011 6:44 pm

John R. Graham wrote:A screen and a half? Dude, this is a text console. 256KiB is enough for over 100 pages of 80x25 text console.
Your text console may be 80x25, but mine is 1280/8x1024/16=160x64. 8)

Having said that, you are right... I forgot I was using fbcondecor, which apparently matters, because I really do only get a screen and a half with that buffer set to 256KiB.
Top
wrc1944
Advocate
Advocate
Posts: 3467
Joined: Thu Aug 15, 2002 10:33 am
Location: Gainesville, Florida

  • Quote

Post by wrc1944 » Fri Oct 14, 2011 6:47 pm

Hmmm.
I've used this kernel setting for years. It helps some in tty, but I've only gotten about 30 pages or so more than the default 5-6 pages, IIRC.
Am I missing something? This limited tty scrollback has been a pet peave of mine for ten years, and I've never figured out how to make it any larger, as 1024 seems to be a hard coded limitation. :?

Code: Select all

# Console display driver support
#
CONFIG_VGA_CONSOLE=y
CONFIG_VGACON_SOFT_SCROLLBACK=y
CONFIG_VGACON_SOFT_SCROLLBACK_SIZE=1024
CONFIG_DUMMY_CONSOLE=y
CONFIG_FRAMEBUFFER_CONSOLE=y
CONFIG_FRAMEBUFFER_CONSOLE_DETECT_PRIMARY=y
# CONFIG_FRAMEBUFFER_CONSOLE_ROTATION is not set 
Main box- AsRock x370 Gaming K4
Ryzen 7 3700x, 3.6GHz, 16GB GSkill Flare DDR4 3200mhz
Samsung SATA 1000GB, Radeon HD R7 350 2GB DDR5
OpenRC Gentoo ~amd64 plasma, glibc-2.41-r2, gcc-15.1.0
kernel-6.15.6 USE=experimental python3.13.3
Top
Post Reply

9 posts • Page 1 of 1

Return to “Kernel & Hardware”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic