- Test environment.
- Hardware
- Monitor: Samsung SyncMaster 959NF
- Test display resolution:
1024 * 768 @ 100 Hz
- Test display resolution:
- Video card: based on Nvidia GeForce2 MX400
$ lspci | grep -i nvidia 01:00.0 VGA compatible controller: NVIDIA Corporation NV11 [GeForce2 MX/MX 400] (rev b2)
- CPU: x86-compatible (some old AMD Athlon one)
- Monitor: Samsung SyncMaster 959NF
- Software
- OS: Debian GNU/Linux 7.0 "Wheezy" / i386
- Video driver: nouveau
- Hardware
-
X11 graphical mode configuration.
- Use
cvt
utility to generate a modeline for X11:
$ cvt 1024 768 100 # 1024x768 99.97 Hz (CVT) hsync: 81.58 kHz; pclk: 112.25 MHz Modeline "1024x768_100.00" 112.25 1024 1096 1200 1376 768 771 775 816 -hsync +vsync
If CVT timings don't work for some ancient monitor, you can also try to usegtf
utility to generate somewhat older GTF timings:
$ gtf 1024 768 100 # 1024x768 @ 100.00 Hz (GTF) hsync: 81.40 kHz; pclk: 113.31 MHz Modeline "1024x768_100.00" 113.31 1024 1096 1208 1392 768 769 772 814 -HSync +Vsync
cvt
>f
utilities are part ofxserver-xorg-core
Debian package. - Change X11 settings by putting the generated modeline into the proper section of the
/etc/X11/xorg.conf
file:
Section "Monitor" Identifier "Monitor0" VendorName "Samsung" ModelName "SyncMaster" HorizSync 30.0 - 110.0 VertRefresh 50.0 - 160.0 Option "DPMS" "true" Modeline "1024x768_100.00" 112.25 1024 1096 1200 1376 768 771 775 816 -hsync +vsync EndSection Section "Screen" Identifier "Screen0" Monitor "Monitor0" DefaultDepth 24 SubSection "Display" Depth 24 Modes "1024x768_100.00" EndSubSection EndSection
- Restart the X server for updated configuration to take effect.
- Use
-
Here are the sample settings for non-X11 user interfaces, put into
/etc/default/grub
(the GRUB2 config).
For modified settings to make effect, don't forget to executeupdate-grub2
as superuser and then reboot.
... GRUB_CMDLINE_LINUX="video=VGA-1:1024x768M@100" ... # 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=1024x768 ...
- The Linux command line option mentioned aboves allows to set a desirable video mode for virtual console using kernel mode setting (KMS).
There's more info about KMS settings on nouveau Wiki. - Display refresh rate doesn't seem to be specifiable for GRUB bootloader graphical mode. This initial graphic mode depends heavily on VBE.
- Other caveats: video play in console framebuffer (i. e., using
mplayer
) has not seemed to work for me in this test setup.
- The Linux command line option mentioned aboves allows to set a desirable video mode for virtual console using kernel mode setting (KMS).
See also:
No comments:
Post a Comment