You are not logged in.
I'm trying to get my console to display correctly at 1080p; trying to do so through GRUB was always an absolute nightmare.
The console displays fine with nouveau, but nouveau causes the infamous pink line bug, which is simply too irritating to ignore; nouveau is not an option.
In the past, my console has run at low res and incorrect scale with nvidia, but I've ignored the problem since I prefer to use a virtual terminal in X.
Now, if possible, I need to use the actual console for the purposes of module development.
I installed v86d and uvesafb and configured the console for 1920x1080 and 32 bit depth.
The console is displaying with the correct resolution now, but is surrounded by a black border, making the font distorted and extremely difficult to read.
How can I get my console to scale correctly to fullscreen? Any ideas at all. I found nothing in the forums or wiki, and I'm out.
I'm fairly certain there are no vga or video settings in GRUB that are interfering.
Offline
Which nvidia driver are you using? Please paste your uvesafb.conf (and your grub config).
# edit: also, what resolution is reported:
cat /sys/class/graphics/fb0/virtual_sizeOffline
Output of "pacman -Qi nvidia"
Name : nvidia
Version : 343.36-2
Description : NVIDIA drivers for linux
Architecture : x86_64
URL : http://www.nvidia.com/
Licenses : custom
Groups : None
Provides : None
Depends On : linux>=3.17 linux<3.18 nvidia-libgl nvidia-utils=343.36
Optional Deps : None
Required By : None
Optional For : None
Conflicts With : None
Replaces : None
Installed Size : 5.30 MiB
Packager : Felix Yan <felixonmars@archlinux.org>
Build Date : Thu 11 Dec 2014 08:32:19 AM CST
Install Date : Fri 12 Dec 2014 12:10:32 AM CST
Install Reason : Explicitly installed
Install Script : Yes
Validated By : SignatureOutput "cat /boot/grub/grub.cfg"
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#
### BEGIN /etc/grub.d/00_header ###
insmod part_gpt
insmod part_msdos
if [ -s $prefix/grubenv ]; then
load_env
fi
if [ "${next_entry}" ] ; then
set default="${next_entry}"
set next_entry=
save_env next_entry
set boot_once=true
else
set default="0"
fi
if [ x"${feature_menuentry_id}" = xy ]; then
menuentry_id_option="--id"
else
menuentry_id_option=""
fi
export menuentry_id_option
if [ "${prev_saved_entry}" ]; then
set saved_entry="${prev_saved_entry}"
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
fi
function savedefault {
if [ -z "${boot_once}" ]; then
saved_entry="${chosen}"
save_env saved_entry
fi
}
function load_video {
if [ x$feature_all_video_module = xy ]; then
insmod all_video
else
insmod efi_gop
insmod efi_uga
insmod ieee1275_fb
insmod vbe
insmod vga
insmod video_bochs
insmod video_cirrus
fi
}
set menu_color_normal=green/black
set menu_color_highlight=black/green
if [ x$feature_default_font_path = xy ] ; then
font=unicode
else
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 337acc84-0300-43b1-b426-79391d39e898
else
search --no-floppy --fs-uuid --set=root 337acc84-0300-43b1-b426-79391d39e898
fi
font="/usr/share/grub/unicode.pf2"
fi
if loadfont $font ; then
set gfxmode=auto
load_video
insmod gfxterm
set locale_dir=$prefix/locale
set lang=en_US
insmod gettext
fi
terminal_input console
terminal_output gfxterm
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 337acc84-0300-43b1-b426-79391d39e898
else
search --no-floppy --fs-uuid --set=root 337acc84-0300-43b1-b426-79391d39e898
fi
insmod png
background_image -m stretch /boot/grub/archgrub.png
if [ x$feature_timeout_style = xy ] ; then
set timeout_style=menu
set timeout=5
# Fallback normal timeout code in case the timeout_style feature is
# unavailable.
else
set timeout=5
fi
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/10_linux ###
menuentry 'Arch Linux' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-337acc84-0300-43b1-b426-79391d39e898' {
load_video
insmod gzio
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 337acc84-0300-43b1-b426-79391d39e898
else
search --no-floppy --fs-uuid --set=root 337acc84-0300-43b1-b426-79391d39e898
fi
echo 'Loading Linux linux ...'
linux /boot/vmlinuz-linux root=UUID=337acc84-0300-43b1-b426-79391d39e898 rw quiet
echo 'Loading initial ramdisk ...'
initrd /boot/initramfs-linux.img
}
submenu 'Advanced options for Arch Linux' $menuentry_id_option 'gnulinux-advanced-337acc84-0300-43b1-b426-79391d39e898' {
menuentry 'Arch Linux, with Linux linux' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-advanced-337acc84-0300-43b1-b426-79391d39e898' {
load_video
insmod gzio
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 337acc84-0300-43b1-b426-79391d39e898
else
search --no-floppy --fs-uuid --set=root 337acc84-0300-43b1-b426-79391d39e898
fi
echo 'Loading Linux linux ...'
linux /boot/vmlinuz-linux root=UUID=337acc84-0300-43b1-b426-79391d39e898 rw quiet
echo 'Loading initial ramdisk ...'
initrd /boot/initramfs-linux.img
}
menuentry 'Arch Linux, with Linux linux (fallback initramfs)' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-fallback-337acc84-0300-43b1-b426-79391d39e898' {
load_video
insmod gzio
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 337acc84-0300-43b1-b426-79391d39e898
else
search --no-floppy --fs-uuid --set=root 337acc84-0300-43b1-b426-79391d39e898
fi
echo 'Loading Linux linux ...'
linux /boot/vmlinuz-linux root=UUID=337acc84-0300-43b1-b426-79391d39e898 rw quiet
echo 'Loading initial ramdisk ...'
initrd /boot/initramfs-linux-fallback.img
}
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###
### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###
### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###
### BEGIN /etc/grub.d/41_custom ###
if [ -f ${config_directory}/custom.cfg ]; then
source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
### BEGIN /etc/grub.d/60_memtest86+ ###
### END /etc/grub.d/60_memtest86+ ###Output "cat /usr/lib/modprobe.d/uvesafb.conf"
Video mode is set as "1920x1080-32".
#
# This file sets the parameters for uvesafb module.
# The following format should be used:
# options uvesafb mode=<xres>x<yres>[-<bpp>][@<refresh>] scroll=<ywrap|ypan|redraw> ...
#
# For more details see:
# http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=blob;f=Documentation/fb/uvesafb.txt
#
options uvesafb mode_option=1920x1080-32 scroll=ywrapThis file is mirrored in /etc/modprobe.d/uvesafb.conf.
Running "diff /usr/lib/modprobe.d/uvesafb.conf /etc/modprobe.d/uvesafb.conf" returns no output.
Output of "cat /sys/class/graphics/fb0/virtual_size" is solely "1920,1080".
---edit---
Output of "cat /etc/default/grub" in case it's helpful.
GRUB_DEFAULT=0
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR="Arch"
GRUB_CMDLINE_LINUX_DEFAULT="quiet"
GRUB_CMDLINE_LINUX=""
# Preload both GPT and MBR modules so that they are not missed
GRUB_PRELOAD_MODULES="part_gpt part_msdos"
# Uncomment to enable Hidden Menu, and optionally hide the timeout count
#GRUB_HIDDEN_TIMEOUT=5
#GRUB_HIDDEN_TIMEOUT_QUIET=true
# Uncomment to use basic console
GRUB_TERMINAL_INPUT=console
# Uncomment to disable graphical terminal
#GRUB_TERMINAL_OUTPUT=console
# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
GRUB_GFXMODE=auto
# Uncomment to allow the kernel use the same resolution used by grub
#GRUB_GFXPAYLOAD_LINUX=keep
# Uncomment if you want GRUB to pass to the Linux kernel the old parameter
# format "root=/dev/xxx" instead of "root=/dev/disk/by-uuid/xxx"
#GRUB_DISABLE_LINUX_UUID=true
# Uncomment to disable generation of recovery mode menu entries
GRUB_DISABLE_RECOVERY=true
# Uncomment and set to the desired menu colors. Used by normal and wallpaper
# modes only. Entries specified as foreground/background.
GRUB_COLOR_NORMAL="green/black"
GRUB_COLOR_HIGHLIGHT="black/green"
# Uncomment one of them for the gfx desired, a image background or a gfxtheme
GRUB_BACKGROUND="/boot/grub/archgrub.png"
#GRUB_THEME="/path/to/gfxtheme"
# Uncomment to get a beep at GRUB start
#GRUB_INIT_TUNE="480 440 1"
#GRUB_SAVEDEFAULT="true"Also, it might help to describe the behaviour more specifically / more in depth...
The rendered part of the console occupies the same space as the GRUB boot menu.
I installed and configured virtualbox a few weeks previously.
I ran "sudo depmod -a" as the wiki / forums indicated it could remedy problems with virtual machines failing to start.
It did fix the virtualbox problem; after reboot, suddenly lightdm *also* initally occupied the same window space as grub.
That was new behaviour. When I logged in to xmonad, the desktop displayed similarly to GRUB.
I hadn't tried fixing it; logging in with root followed by "ps -e | grep X" and "kill -9 <Xpid>" caused X as a whole to start behaving and scaling normally.
I haven't rebooted until attempting to rectify the issue with my console.
The oddity with scaling in lightdm and xmonad still shows up after reboot and is still reparable by killing X.
Killing X doesn't - obviously - have any effect on console scale.
---/edit---
d(-_-)
Last edited by seppukuzushi (2014-12-31 14:01:23)
Offline
I don't know how Grub works (and, looking at those configs, who would
), but you could try commenting this:
insmod vga
Offline
No dice. I did also notice that my motherboard displays with the same scaling even before GRUB loads. Anything going on there?
Offline
I'd be looking it to whatever it was that changes the behaviour when you installed Virtualbox: that seems to be the most likely culprit...
Offline