[РЕШЕНО] "Родное" разрешение 1920х1080 в консоли

Вместе с миграцией (наконец таки, из-за предупреждения о прекращении поддержки initscrips) системы на systemd, решил вчера и эту занимательную проблему. Занимательна она тем что при выполнении

# hwinfo --framebuffer

Получалось

02: None 00.0: 11001 VESA Framebuffer
  [Created at bios.459]
  Unique ID: rdCR.r0InD6PeDiF
  Hardware Class: framebuffer
  Model: "NVIDIA BIOS-P/[email protected]"
  Vendor: "NVIDIA Corporation"
  Device: "BIOS-P/[email protected]"
  SubVendor: "NVIDIA"
  SubDevice:
  Revision: "Chip Rev"
  Memory Size: 14 MB
  Memory Range: 0xef000000-0xefdfffff (rw)
  Mode 0x0300: 640x400 (+640), 8 bits
  Mode 0x0301: 640x480 (+640), 8 bits
  Mode 0x0303: 800x600 (+800), 8 bits
  Mode 0x0305: 1024x768 (+1024), 8 bits
  Mode 0x0307: 1280x1024 (+1280), 8 bits
  Mode 0x030e: 320x200 (+640), 16 bits
  Mode 0x030f: 320x200 (+1280), 24 bits
  Mode 0x0311: 640x480 (+1280), 16 bits
  Mode 0x0312: 640x480 (+2560), 24 bits
  Mode 0x0314: 800x600 (+1600), 16 bits
  Mode 0x0315: 800x600 (+3200), 24 bits
  Mode 0x0317: 1024x768 (+2048), 16 bits
  Mode 0x0318: 1024x768 (+4096), 24 bits
  Mode 0x031a: 1280x1024 (+2560), 16 bits
  Mode 0x031b: 1280x1024 (+5120), 24 bits
  Mode 0x0330: 320x200 (+320), 8 bits
  Mode 0x0331: 320x400 (+320), 8 bits
  Mode 0x0332: 320x400 (+640), 16 bits
  Mode 0x0333: 320x400 (+1280), 24 bits
  Mode 0x0334: 320x240 (+320), 8 bits
  Mode 0x0335: 320x240 (+640), 16 bits
  Mode 0x0336: 320x240 (+1280), 24 bits
  Mode 0x033d: 640x400 (+1280), 16 bits
  Mode 0x033e: 640x400 (+2560), 24 bits
  Mode 0x0345: 1600x1200 (+1600), 8 bits
  Mode 0x0346: 1600x1200 (+3200), 16 bits
  Mode 0x034a: 1600x1200 (+6400), 24 bits
  Config Status: cfg=new, avail=yes, need=no, active=unknown

то есть интересующего меня разрешения не было вроде бы даже в природе. Однако вызывал сомнение факт что не древняя совсем карточка NVidia GForce 580 GTX не может обеспечит подобный фокус.

Сомневался не зря, как как на арчевики наткнулся на решение сабжа.

Итак

1. Качаем пакет v86d

# pacman -S v86d

2. Редактируем настройки GRUB2, в файле /etc/default/grub комментируем строку GRUB_GFXPAYLOAD_LINUX=keep, то есть выключаем сохранение выставленного грабом видеорежима в консоли, после чего реконфигурируем загрузчик

# grub-mkconfig -o /boot/grub/grub.cfg

3. Добавляем v86d в список хуков в /etc/mkinitcpio.conf

HOOKS="base udev v86d autodetect modconf block filesystems keyboard fsck"

4. Редактируем /usr/lib/modprobe.d/uvesafb.conf таким вот образом

#
# 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=ywrap

и копируем этот файл в /etc/modprobe.d/uvesafb.conf

5. В файле /etc/mkinitcpio.conf в секцию FILES путь к файлу конфига uvesafb

FILES="/etc/modprobe.d/uvesafb.conf"

6. Регенерируем инитрамфс

# mkinitcpio -p linux

7. Перезагружаемся и любуемся :)

Это решение буква в букву почерпнуто в арч-вики на английском языке. Так что, люди - читайте вики! :)
Да пребудет с нами Сила...!
CPU Intel Core i9 10900-KF/RAM DDR4 128 Gb/NVidia GForce GTX 1080 Ti Turbo 11Gb/SSD M2 512 Gb/HDD Seagate SATA3 2 Tb/HDD Toshiba 3Tb/HDD Toshiba 6Tb
http://rusrailsim.org
То есть иксы вам не нужны? Насколько я помню, драйвер nvidia несовместим с uvesafb.
Natrio
То есть иксы вам не нужны? Насколько я помню, драйвер nvidia несовместим с uvesafb.
частично совместим, можно подгрузить модуль nvidia и принудительно выгрузить uvesafb, иксы запускается. Только вот при попытке назад вернутся на uvesafb вылетает kernel panic.
white_ghost
Natrio
То есть иксы вам не нужны? Насколько я помню, драйвер nvidia несовместим с uvesafb.
частично совместим, можно подгрузить модуль nvidia и принудительно выгрузить uvesafb, иксы запускается. Только вот при попытке назад вернутся на uvesafb вылетает kernel panic.

У меня прекрасно работает и то и другое. Никаких кернел паник. Переход из консоли в иксы и назад без всяких сбоев. И ничего принудительно не выгружаю. Может проблема позже проявится? Но пока ок, делал не задумываясь об их совместимости.

Если бы были проблемы, не стал бы открывать эту тему
Да пребудет с нами Сила...!
CPU Intel Core i9 10900-KF/RAM DDR4 128 Gb/NVidia GForce GTX 1080 Ti Turbo 11Gb/SSD M2 512 Gb/HDD Seagate SATA3 2 Tb/HDD Toshiba 3Tb/HDD Toshiba 6Tb
http://rusrailsim.org
Почему-то не помогло.
Делал всё пошагово, буква в букву.
Карта GeForce GT 430.
Ядро не паникует, но и в консоли те же долбаные 1024х768 :(
Я не красноглазик, я фаерфоксик ^_^
firefoxic
Почему-то не помогло.
Делал всё пошагово, буква в букву.
Карта GeForce GT 430.
Ядро не паникует, но и в консоли те же долбаные 1024х768 :(

Странно.
В конфиге GRUB2 /etc/default/grub должно быть так

#GRUB_GFXPAYLOAD_LINUX=keep

Эту строку надо закомментировать. Иначе - сохраняется разрешение установленное загрузчиком. У меня не заработало пока не закоментил.

P.S.: У меня упорно не возникает kernel panic. Может проблема несовместимости уже решена? Несовместимость драйверов nonvenau и nvidia, вот о ней да, я слышал, да они даже рядом не ставятся из пакмана

P.P.S.: Обязательно нужно реконфигурировать GRUB2 командой

# grub-mkconfig -o /boot/grub/grub.cfg

после изменения параметров в конфиге
Да пребудет с нами Сила...!
CPU Intel Core i9 10900-KF/RAM DDR4 128 Gb/NVidia GForce GTX 1080 Ti Turbo 11Gb/SSD M2 512 Gb/HDD Seagate SATA3 2 Tb/HDD Toshiba 3Tb/HDD Toshiba 6Tb
http://rusrailsim.org
Хмм... спасибо, что наводите на правильные мысли.
Я вспомнил, что ковырялся раньше с этим конфигом (/etc/default/grub). Но теперь уже не понимаю, что может мешать новому варианту борьбы с консолью.
Может вы какую неправильность заметите:
GRUB_DEFAULT=0
GRUB_TIMEOUT=0
GRUB_DISTRIBUTOR="Arch"
GRUB_CMDLINE_LINUX_DEFAULT="quiet"
GRUB_CMDLINE_LINUX="auto"
# 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="light-blue/black"
#GRUB_COLOR_HIGHLIGHT="light-cyan/blue"
# Uncomment one of them for the gfx desired, a image background or a gfxtheme
#GRUB_BACKGROUND="/path/to/wallpaper"
#GRUB_THEME="/path/to/gfxtheme"
# Uncomment to get a beep at GRUB start
#GRUB_INIT_TUNE="480 440 1"
#GRUB_SAVEDEFAULT="true"
Я не красноглазик, я фаерфоксик ^_^
Да вроде так же как и у меня. Надо проверить нет ли ошибок при регенерации инитрамфс
Да пребудет с нами Сила...!
CPU Intel Core i9 10900-KF/RAM DDR4 128 Gb/NVidia GForce GTX 1080 Ti Turbo 11Gb/SSD M2 512 Gb/HDD Seagate SATA3 2 Tb/HDD Toshiba 3Tb/HDD Toshiba 6Tb
http://rusrailsim.org
А в /etc/mkinitcpio.conf в строку
MODULES=""
нужно добавить nouveau?
Я не красноглазик, я фаерфоксик ^_^
firefoxic
А в /etc/mkinitcpio.conf в строку
MODULES=""
нужно добавить nouveau?

нет, в этот конфиг надо прописать путь к настройкам uvesafb
FILES="/etc/modprobe.d/uvesafb.conf"

и убедится что данный файл имеется по указанному пути

nonvenau тут вообще не при чем

Делюсь своими конфигами

/etc/mkinitcpio.conf
# vim:set ft=sh
# MODULES
# The following modules are loaded before any boot hooks are
# run.  Advanced users may wish to specify all system modules
# in this array.  For instance:
#     MODULES="piix ide_disk reiserfs"
MODULES=""
# BINARIES
# This setting includes any additional binaries a given user may
# wish into the CPIO image.  This is run last, so it may be used to
# override the actual binaries included by a given hook
# BINARIES are dependency parsed, so you may safely ignore libraries
BINARIES=""
# FILES
# This setting is similar to BINARIES above, however, files are added
# as-is and are not parsed in any way.  This is useful for config files.
FILES="/etc/modprobe.d/uvesafb.conf"
# HOOKS
# This is the most important setting in this file.  The HOOKS control the
# modules and scripts added to the image, and what happens at boot time.
# Order is important, and it is recommended that you do not change the
# order in which HOOKS are added.  Run 'mkinitcpio -H <hook name>' for
# help on a given hook.
# 'base' is _required_ unless you know precisely what you are doing.
# 'udev' is _required_ in order to automatically load modules
# 'filesystems' is _required_ unless you specify your fs modules in MODULES
# Examples:
##   This setup specifies all modules in the MODULES setting above.
##   No raid, lvm2, or encrypted root is needed.
#    HOOKS="base"
#
##   This setup will autodetect all modules for your system and should
##   work as a sane default
#    HOOKS="base udev autodetect block filesystems"
#
##   This setup will generate a 'full' image which supports most systems.
##   No autodetection is done.
#    HOOKS="base udev block filesystems"
#
##   This setup assembles a pata mdadm array with an encrypted root FS.
##   Note: See 'mkinitcpio -H mdadm' for more information on raid devices.
#    HOOKS="base udev block mdadm encrypt filesystems"
#
##   This setup loads an lvm2 volume group on a usb device.
#    HOOKS="base udev block lvm2 filesystems"
#
##   NOTE: If you have /usr on a separate partition, you MUST include the
#    usr, fsck and shutdown hooks.
HOOKS="base udev v86d autodetect modconf block filesystems keyboard fsck"
# COMPRESSION
# Use this to compress the initramfs image. By default, gzip compression
# is used. Use 'cat' to create an uncompressed image.
#COMPRESSION="gzip"
#COMPRESSION="bzip2"
#COMPRESSION="lzma"
#COMPRESSION="xz"
#COMPRESSION="lzop"
# COMPRESSION_OPTIONS
# Additional options for the compressor
#COMPRESSION_OPTIONS=""

/etc/modprobe.d/uvesafb.conf
#
# 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=ywrap

/etc/default/grub
GRUB_DEFAULT=0
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR="Arch"
GRUB_CMDLINE_LINUX_DEFAULT="quiet"
#GRUB_CMDLINE_LINUX="init=/usr/lib/systemd/systemd"
# 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="light-blue/black"
#GRUB_COLOR_HIGHLIGHT="light-cyan/blue"
# Uncomment one of them for the gfx desired, a image background or a gfxtheme
#GRUB_BACKGROUND="/path/to/wallpaper"
#GRUB_THEME="/path/to/gfxtheme"
# Uncomment to get a beep at GRUB start
#GRUB_INIT_TUNE="480 440 1"
#GRUB_SAVEDEFAULT="true"

Думаю надо проверить эту строку

HOOKS="base udev v86d autodetect modconf block filesystems keyboard fsck"

наличие v86d в списке хуков - обработчиков используемых при создании образа initramfs
Да пребудет с нами Сила...!
CPU Intel Core i9 10900-KF/RAM DDR4 128 Gb/NVidia GForce GTX 1080 Ti Turbo 11Gb/SSD M2 512 Gb/HDD Seagate SATA3 2 Tb/HDD Toshiba 3Tb/HDD Toshiba 6Tb
http://rusrailsim.org
 
Зарегистрироваться или войдите чтобы оставить сообщение.