LinuxForum.Fans
Тема

tty + X.org

Автор: MSUer 17 сообщений 4123 просмотров
#260021

Возникла такая проблема. Поменял разрешение tty на 1280x1024 после это после запуска kde при переходе на tty1-6 на на монитор ничего не выводится (черный экран), только двв маленьких беленьких пикселя на верху монитора.

/etc/default/grub

text
# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.

GRUB_DEFAULT=0 GRUB_TIMEOUT=3 GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian` GRUB_CMDLINE_LINUX_DEFAULT="" GRUB_CMDLINE_LINUX=""

# Uncomment to enable BadRAM filtering, modify to suit your needs # This works with Linux (no patch required) and with any kernel that obtains # the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...) #GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"

# Uncomment to disable graphical terminal (grub-pc only) #GRUB_TERMINAL=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=1280x1024x32 GRUB_GFXPAYLOAD_LINUX=keep

# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux #GRUB_DISABLE_LINUX_UUID=true

# Uncomment to disable generation of recovery mode menu entries #GRUB_DISABLE_LINUX_RECOVERY="true"

# Uncomment to get a beep at grub start #GRUB_INIT_TUNE="480 440 1"

/etc/X11/xorg.conf

text
Section "ServerLayout"
        Identifier     "X.org Configured"
        Screen      0  "Screen0" 0 0
        InputDevice    "Mouse0" "CorePointer"
        InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files" ModulePath "/usr/lib/xorg/modules" FontPath "/usr/share/fonts/X11/misc" FontPath "/usr/share/fonts/X11/cyrillic" FontPath "/usr/share/fonts/X11/100dpi/:unscaled" FontPath "/usr/share/fonts/X11/75dpi/:unscaled" FontPath "/usr/share/fonts/X11/Type1" FontPath "/usr/share/fonts/X11/100dpi" FontPath "/usr/share/fonts/X11/75dpi" FontPath "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType" FontPath "built-ins" EndSection

Section "Module" Load "dri2" Load "extmod" Load "record" Load "dbe" Load "glx" Load "dri" EndSection

Section "InputDevice" Identifier "Keyboard0" Driver "kbd" EndSection

Section "InputDevice" Identifier "Mouse0" Driver "mouse" Option "Protocol" "auto" Option "Device" "/dev/input/mice" Option "ZAxisMapping" "4 5 6 7" EndSection

Section "Monitor" Identifier "Monitor0" VendorName "Monitor Vendor" ModelName "Monitor Model" EndSection

Section "Device" ### Available Driver options are:- ### Values: <i>: integer, <f>: float, <bool>: "True"/"False", ### <string>: "String", <freq>: "<f> Hz/kHz/MHz" ### [arg]: arg optional #Option "SWcursor" # [<bool>] #Option "HWcursor" # [<bool>] #Option "NoAccel" # [<bool>] #Option "ShadowFB" # [<bool>] #Option "UseFBDev" # [<bool>] #Option "Rotate" # [<str>] #Option "VideoKey" # <i> #Option "FlatPanel" # [<bool>] #Option "FPDither" # [<bool>] #Option "CrtcNumber" # <i> #Option "FPScale" # [<bool>] #Option "FPTweak" # <i> #Option "DualHead" # [<bool>] Identifier "Card0" Driver "nvidia" VendorName "nVidia Corporation" BoardName "G92 [GeForce GTS 250]" BusID "PCI:1:0:0" EndSection

Section "Screen" Identifier "Screen0" Device "Card0" Monitor "Monitor0" SubSection "Display" Viewport 0 0 Depth 1 EndSubSection SubSection "Display" Viewport 0 0 Depth 4 EndSubSection SubSection "Display" Viewport 0 0 Depth 8 EndSubSection SubSection "Display" Viewport 0 0 Depth 15 EndSubSection SubSection "Display" Viewport 0 0 Depth 16 EndSubSection SubSection "Display" Viewport 0 0 Depth 24 EndSubSection EndSection

#260032

Ну там же написано:

text
# 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'

или покажи

text
# hwinfo --framebuffer
#260035
text
02: None 00.0: 11001 VESA Framebuffer                           
  [Created at bios.464]                                                                                                                                                             
  Unique ID: rdCR.t6XA6qQU13C                                                                                                                                                       
  Hardware Class: framebuffer                                                                                                                                                       
  Model: "NVIDIA BIOS-P/N@N6069"                                                                                                                                                    
  Vendor: "NVIDIA Corporation"                                                                                                                                                      
  Device: "BIOS-P/N@N6069"                                                                                                                                                          
  SubVendor: "NVIDIA"                                                                                                                                                               
  SubDevice:                                                                                                                                                                        
  Revision: "GW-CLK@"                                                                                                                                                               
  Memory Size: 14 MB                                                                                                                                                                
  Memory Range: 0xfb000000-0xfbdfffff (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 0x0347: 1400x1050 (+1400), 8 bits
  Mode 0x0348: 1400x1050 (+2800), 16 bits
  Mode 0x0349: 1400x1050 (+5600), 24 bits
  Mode 0x034a: 1600x1200 (+6400), 24 bits
  Mode 0x0352: 2048x1536 (+8192), 24 bits
  Mode 0x0360: 1280x800 (+1280), 8 bits
  Mode 0x0361: 1280x800 (+5120), 24 bits
  Mode 0x0362: 768x480 (+768), 8 bits
  Mode 0x0364: 1440x900 (+1440), 8 bits
  Mode 0x0365: 1440x900 (+5760), 24 bits
  Mode 0x0368: 1680x1050 (+1680), 8 bits
  Mode 0x0369: 1680x1050 (+6720), 24 bits
  Mode 0x037b: 1280x720 (+5120), 24 bits
  Mode 0x037c: 1920x1200 (+1920), 8 bits
  Mode 0x037d: 1920x1200 (+7680), 24 bits
  Config Status: cfg=new, avail=yes, need=no, active=unknown

поменял grub:

text
# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.

GRUB_DEFAULT=0 GRUB_TIMEOUT=3 GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian` GRUB_CMDLINE_LINUX_DEFAULT="" GRUB_CMDLINE_LINUX=""

# Uncomment to enable BadRAM filtering, modify to suit your needs # This works with Linux (no patch required) and with any kernel that obtains # the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...) #GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"

# Uncomment to disable graphical terminal (grub-pc only) #GRUB_TERMINAL=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=1280x1024x24 GRUB_GFXPAYLOAD_LINUX=keep

# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux #GRUB_DISABLE_LINUX_UUID=true

# Uncomment to disable generation of recovery mode menu entries #GRUB_DISABLE_LINUX_RECOVERY="true"

# Uncomment to get a beep at grub start #GRUB_INIT_TUNE="480 440 1"

не помогло

#260037

А просто:

text
GRUB_GFXMODE=1280x1024

без x24

#260038

Все так же

#260040

После изменения /boot/grub/grub.cfg

text
# update-grub

выполнить не забыл?

#260133

Нет. И даже grub-mkconfig)))

#260321

В общем проблема остается при откате до 640x400 - в этом случае после загрузки иксов и переключении обратно на tty виден только верхний кусок текста терминала внизу экрана. Проблема решается комментированием инструкции

text
#GRUB_GFXPAYLOAD_LINUX=keep

в /etc/default/grub но этим не решается моя проблема. При таком раскладе - расширение терминала остается 640x400 а мне нужно - 1280х1024. Когда я лазил в интернетах, в поисках инструкции для установки разрешения, я нашел подходящее решение, однако там предполагался запуск с опцией nomodprobe. При этом просто не грузились иксы. Есть идеи на этот счет?

#260337

MSUer, при загрузке, когда появляется меню Grub, нажимай "c", попадаешь в command line Grub'а, набираешь "vbeinfo" + Enter = смотришь режимы...
Вот еще тыц
Это на счет того что сейчас vga=XXX deprecated
Хотя например у меня нормально работает параметр vga=791

#260343

Да я это уже смотрел раньше - там почти тоже самое, что и в hwinfo, только еще 32хбитные видеорежимы есть (именно поэтому у меня в начале 10280х1024х32 было). Но я говорю о том, что это проблема проявляется независимо от видиорежима при наличии keep.
Хотя я Вас, наверное, не понял:

"newzenon" написал:
vga=XXX deprecated
это о чем?
#260346
"MSUer" написал:
это о чем?

О том что указание

text
GRUB_CMDLINE_LINUX_DEFAULT="vga=791"

в новых версиях Grub (начиная вроде с 1.99) устаревшее

#260348

Еще сейчас одна странность появилась. Указал опцию nomodprobe:

text
# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.

GRUB_DEFAULT=0 GRUB_TIMEOUT=3 GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian` GRUB_CMDLINE_LINUX_DEFAULT="quiet [b]nomodprobe[/b]" GRUB_CMDLINE_LINUX=""

# Uncomment to enable BadRAM filtering, modify to suit your needs # This works with Linux (no patch required) and with any kernel that obtains # the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...) #GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"

# Uncomment to disable graphical terminal (grub-pc only) #GRUB_TERMINAL=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=640x400 GRUB_GFXPAYLOAD_LINUX=keep

# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux #GRUB_DISABLE_LINUX_UUID=true

# Uncomment to disable generation of recovery mode menu entries #GRUB_DISABLE_LINUX_RECOVERY="true"

# Uncomment to get a beep at grub start #GRUB_INIT_TUNE="480 440 1"

в /etc/default/grub . Кеды запускаются нормально, но проблема остается. Предположительно, они раньше не запускались из-за наличия другого видеорежима.

#260352

nomodprobe это зря, кстати

text
GRUB_GFXMODE=640x400
GRUB_GFXPAYLOAD_LINUX=1024x768

разрешение указать например не пробовал?

#260359

Спасибо большое. Вот так вот работает все.

text
# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.

GRUB_DEFAULT=0 GRUB_TIMEOUT=3 GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian` GRUB_CMDLINE_LINUX_DEFAULT="quiet vga=795" GRUB_CMDLINE_LINUX=""

# Uncomment to enable BadRAM filtering, modify to suit your needs # This works with Linux (no patch required) and with any kernel that obtains # the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...) #GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"

# Uncomment to disable graphical terminal (grub-pc only) #GRUB_TERMINAL=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=1280x1024 GRUB_GFXPAYLOAD_LINUX=keep

# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux #GRUB_DISABLE_LINUX_UUID=true

# Uncomment to disable generation of recovery mode menu entries #GRUB_DISABLE_LINUX_RECOVERY="true"

# Uncomment to get a beep at grub start #GRUB_INIT_TUNE="480 440 1"

#261441

Да проблема с 1280х1024 решена. Однако я только что купил FullHD монитор 1920х1080 и возникла проблема, что ни grub, ни tty не устанавливаются в нужное разрешение. Максимум на что они способны - это 1280х1024 (такое выдает опция загрузки ядра vgahi, и GRUB_GFXMODE=1920x1080). Возможно, проблема где-то была уже решена но решения я не нашел.
Иксы работают в нужном режиме без проблем. вывод hwinfo --framebuffer не изменился:

text
02: None 00.0: 11001 VESA Framebuffer                           
  [Created at bios.464]
  Unique ID: rdCR.t6XA6qQU13C
  Hardware Class: framebuffer
  Model: "NVIDIA BIOS-P/N@N6069"
  Vendor: "NVIDIA Corporation"
  Device: "BIOS-P/N@N6069"
  SubVendor: "NVIDIA"
  SubDevice: 
  Revision: "GW-CLK@"
  Memory Size: 14 MB
  Memory Range: 0xfb000000-0xfbdfffff (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 0x0347: 1400x1050 (+1400), 8 bits                                                                                                                                                                                                                                                                                    
  Mode 0x0348: 1400x1050 (+2800), 16 bits                                                                                                                                                                                                                                                                                   
  Mode 0x0349: 1400x1050 (+5600), 24 bits                                                                                                                                                                                                                                                                                   
  Mode 0x034a: 1600x1200 (+6400), 24 bits                                                                                                                                                                                                                                                                                   
  Mode 0x0352: 2048x1536 (+8192), 24 bits                                                                                                                                                                                                                                                                                   
  Mode 0x0360: 1280x800 (+1280), 8 bits                                                                                                                                                                                                                                                                                     
  Mode 0x0361: 1280x800 (+5120), 24 bits                                                                                                                                                                                                                                                                                    
  Mode 0x0362: 768x480 (+768), 8 bits                                                                                                                                                                                                                                                                                       
  Mode 0x0364: 1440x900 (+1440), 8 bits                                                                                                                                                                                                                                                                                     
  Mode 0x0365: 1440x900 (+5760), 24 bits                                                                                                                                                                                                                                                                                    
  Mode 0x0368: 1680x1050 (+1680), 8 bits                                                                                                                                                                                                                                                                                    
  Mode 0x0369: 1680x1050 (+6720), 24 bits                                                                                                                                                                                                                                                                                   
  Mode 0x037b: 1280x720 (+5120), 24 bits                                                                                                                                                                                                                                                                                    
  Mode 0x037c: 1920x1200 (+1920), 8 bits                                                                                                                                                                                                                                                                                    
  Mode 0x037d: 1920x1200 (+7680), 24 bits                                                                                                                                                                                                                                                                                   
  Config Status: cfg=new, avail=yes, need=no, active=unknown 
#261456

Ядерный модуль vesafb не поддерживает разрешений с отношением сторон отличным от 3:4. Нужен либо модуль фреймбуффера специфичный для видеокарты, либо uvesafb. Как их ставить не скажу, ибо не дебианщик.

#261893

Попробовал воспользоваться вот этой инструкцией с разрешением 1600х1200 не помогло... все так же осталось 1280х1024 (( есть идеи?

Войдите или зарегистрируйтесь, чтобы ответить.