After updating some VMware virtual machines to RHEL 6.8 (kernel 2.6.32-642) it appears that the size of the virtual console has been increased -- it is huge.
No X server is running in the console, i.e., it is a classical text-based linux console.
When I log in through the virtual console, the values of LINES
and COLUMNS
variables are:
COLUMNS=160
LINES=48
How can I resize the console?
Thanx in advance
update 1
I googled this issue and found a lot of solutions using the vga=
kernel option in grub.conf
. I have tried that but it does not work; although that option does appear in /proc/cmdline
after the reboot -- it is not ignored.
I have found these two lines in the dmesg
output:
Console: colour VGA+ 80x25
console [tty0] enabled
but a lot of lines below, I have found:
[drm] DMA map mode: Using physical TTM page addresses.
[drm] Capabilities:
[drm] Rect copy.
[drm] Cursor.
[drm] Cursor bypass.
[drm] Cursor bypass 2.
[drm] 8bit emulation.
[drm] Alpha cursor.
[drm] Extended Fifo.
[drm] Multimon.
[drm] Pitchlock.
[drm] Irq mask.
[drm] Display Topology.
[drm] GMR.
[drm] Traces.
[drm] GMR2.
[drm] Screen Object 2.
[drm] Command Buffers.
[drm] Max GMR ids is 64
[drm] Max number of GMR pages is 65536
[drm] Max dedicated hypervisor surface memory is 163840 kiB
[drm] Maximum display memory size is 8192 kiB
[drm] VRAM at 0xd8000000 size is 8192 kiB
[drm] MMIO at 0xd0800000 size is 256 kiB
[drm] global init.
[TTM] Zone kernel: Available graphics memory: 8167096 kiB
[TTM] Zone dma32: Available graphics memory: 2097152 kiB
[TTM] Initializing pool allocator
[TTM] Initializing DMA pool allocator
[drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[drm] No driver support for vblank timestamp query.
[drm] Screen Objects Display Unit initialized
[drm] width 1280
[drm] height 768
[drm] bpp 32
[drm] Fifo max 0x00040000 min 0x00001000 cap 0x0000077f
[drm] Using command buffers with DMA pool.
[drm] DX: no.
fbcon: svgadrmfb (fb0) is primary device
Console: switching to colour frame buffer device 160x48
[drm] Initialized vmwgfx 2.9.0 20150810 for 0000:00:0f.0 on minor 0
You can see how the drm
module sets up the graphical screen size (1280x768@32
) and text scree size (160x48
). I know nothing about this drm
module. The following command line shows something about it:
# lsmod|grep drm
drm_kms_helper 127219 1 vmwgfx
drm 362893 4 vmwgfx,ttm,drm_kms_helper
i2c_core 29132 3 i2c_piix4,drm_kms_helper,drm
I will look for information about drm
module.
update 2
I confirm that this issue is introduced in RHEL 6.8. I had updated a RHEL 6.1 box up to RHEL 6.7 and console size had suffered no change.
Later, when I have updated to RHEL 6.8, the console has become huge.