Knowledge (XXG)

XFree86 Modeline

Source 📝

493: 675: 345: 428: 370:
or frame rate of the display can be determined by dividing the pixel clock frequency by the product of the horizontal and vertical field lengths. In this case, the display is operating at
245: 1264: 1203: 629: 438:
Optionally, extra parameters for controlling the polarity of the horizontal and vertical sync pulses can be added. There are also options for
101:
Each modeline has ten parameters, beginning with a label for the resolution being specified. The second parameter specifies the rate of the
498: 664: 612: 565: 477:, it will be necessary to create a modeline to get the setting right. The EDID information can be obtained by using the command " 949: 908: 251: 1208: 638: 729: 960: 928: 375: 67: 473:
EDID is not always completely accurate, and for some situations such as older or unusual display hardware or many
178: 1061: 71: 1285: 1139: 1086: 993: 1003: 649: 1131: 933: 913: 898: 719: 704: 605: 1213: 1154: 1066: 1036: 876: 694: 530: 1149: 903: 754: 454:
Modelines may no longer be necessary in XFree86 versions 4 and higher, since for many monitors and
749: 644: 102: 63: 47: 983: 890: 886: 724: 689: 363: 355: 27: 943: 598: 439: 55: 1218: 744: 709: 654: 621: 575: 545: 780: 659: 51: 351:
For interlace mode, (frame rate)=(field rate)/2, otherwise (frame rate)=(field rate).
1279: 550: 1116: 789: 367: 1244: 570: 506: 443: 86: 580: 511: 488: 359: 113:-resolution (width) and related parameters, and four numbers that specify the 59: 1159: 1111: 1016: 462:
other, more generic and intuitive, settings in the server configuration file
129:+HSync, -HSync, +VSync, -VSync, Interlace, DoubleScan, CSync, +CSync, -CSync 106: 40: 585: 1026: 978: 850: 795: 759: 458:
they are now calculated by the X server at startup based on two factors:
1174: 1076: 1041: 918: 845: 815: 810: 800: 714: 555: 123:
pclk hdisp hsyncstart hsyncend htotal vdisp vsyncstart vsyncend vtotal
82: 44: 560: 153:
Or, the modeline can be split into multiple lines for greater clarity
1239: 1179: 1169: 968: 840: 139:"1600x1200" 155 1600 1656 1776 2048 1200 1202 1205 1263 1259: 1254: 1249: 1234: 1096: 1056: 1021: 820: 734: 699: 590: 432: 142:# (Label) (clk) (x-resolution) (y-resolution) 23: 354:
The numbers after the width and height are used to determine the
1164: 1106: 1081: 1071: 1051: 1046: 1031: 1011: 988: 973: 923: 866: 830: 825: 805: 474: 466: 455: 90: 75: 594: 1144: 1121: 1101: 1091: 871: 835: 739: 674: 172:
The horizontal and vertical frequencies can be calculated by:
30:
editors that provides information about the file and modes.
531:
XFree86 Video Timings HOWTO: 2. Why This HOWTO Is Obsolete
109:. Then follow four numbers that together specify the 446:
modes. In most situations they will not be required.
378: 340:{\displaystyle \mathrm {Vfreq=pclk/(htotal*vtotal)} } 254: 181: 1227: 1196: 1130: 1002: 959: 942: 885: 859: 779: 768: 682: 628: 478: 422: 339: 239: 161:"1600x1200" 155 1600 1656 1776 2048 50:(XF86Config) that provides information to the 606: 423:{\displaystyle 155,000,000/(2048*1263)=59.92} 8: 561:Online Modeline generator (with Ruby source) 240:{\displaystyle \mathrm {Hfreq=pclk/htotal} } 956: 776: 613: 599: 591: 481:" and looking at /var/log/XFree86.0.log. 394: 377: 286: 255: 253: 213: 182: 180: 523: 89:still allow them to be set should the 465:monitor capabilities acquired via an 7: 556:Modeline generator in C for download 499:Free and open-source software portal 148:# (pixel clock in MHz) 81:Modelines are now rarely used, but 62:and how to drive it at a specified 720:X Display Manager Control Protocol 581:MythTV Wiki Working With Modelines 330: 327: 324: 321: 318: 315: 309: 306: 303: 300: 297: 294: 283: 280: 277: 274: 268: 265: 262: 259: 256: 233: 230: 227: 224: 221: 218: 210: 207: 204: 201: 195: 192: 189: 186: 183: 14: 1265:Desktop environments (comparison) 22:may also refer to a line for the 673: 491: 66:. The Modeline is based on the 566:Colas XFree Modeline Generator 551:The XFree86 Modeline Generator 411: 399: 333: 291: 1: 730:X-Video Motion Compensation 546:XFree86 Video Timings HOWTO 93:information be inadequate. 39:is a configuration line in 1302: 68:Generalized Timing Formula 671: 72:Coordinated Video Timings 586:LCD/TV Modeline Database 155: 133: 715:Shared memory extension 479:startx -- -logverbose 6 366:timings. The resulting 145:# | 650:X Window authorization 424: 341: 241: 117:-resolution (height). 74:standards produced by 705:X Rendering Extension 425: 342: 242: 877:X Toolkit Intrinsics 695:X keyboard extension 576:Video Timing Details 571:Online Modeline Tool 376: 252: 179: 755:Composite Extension 750:Display PostScript 645:X Window selection 420: 337: 237: 127:Flags (optional): 64:display resolution 54:about a connected 48:configuration file 1273: 1272: 1192: 1191: 1188: 1187: 953: 725:X video extension 690:X Image Extension 121:Modeline syntax: 1293: 957: 947: 891:Session managers 887:Display managers 860:Client libraries 777: 677: 615: 608: 601: 592: 533: 528: 501: 496: 495: 494: 480: 431: 429: 427: 426: 421: 398: 346: 344: 343: 338: 336: 290: 246: 244: 243: 238: 236: 217: 168: 165: 162: 159: 149: 146: 143: 140: 137: 130: 124: 56:computer monitor 1301: 1300: 1296: 1295: 1294: 1292: 1291: 1290: 1286:X Window System 1276: 1275: 1274: 1269: 1223: 1219:freedesktop.org 1184: 1126: 998: 946: 944:Window managers 938: 889: 881: 855: 781:Display servers 773:implementations 772: 770: 764: 745:Multi-Pointer X 710:Shape extension 678: 669: 655:X11 color names 624: 622:X Window System 619: 542: 537: 536: 529: 525: 520: 497: 492: 490: 487: 452: 374: 373: 371: 250: 249: 177: 176: 170: 169: 166: 163: 160: 157: 151: 150: 147: 144: 141: 138: 135: 128: 122: 99: 12: 11: 5: 1299: 1297: 1289: 1288: 1278: 1277: 1271: 1270: 1268: 1267: 1262: 1257: 1252: 1247: 1242: 1237: 1231: 1229: 1225: 1224: 1222: 1221: 1216: 1211: 1206: 1200: 1198: 1194: 1193: 1190: 1189: 1186: 1185: 1183: 1182: 1177: 1172: 1167: 1162: 1157: 1152: 1147: 1142: 1136: 1134: 1128: 1127: 1125: 1124: 1119: 1114: 1109: 1104: 1099: 1094: 1089: 1084: 1079: 1074: 1069: 1064: 1059: 1054: 1049: 1044: 1039: 1034: 1029: 1024: 1019: 1014: 1008: 1006: 1000: 999: 997: 996: 991: 986: 981: 976: 971: 965: 963: 954: 940: 939: 937: 936: 931: 926: 921: 916: 911: 906: 901: 895: 893: 883: 882: 880: 879: 874: 869: 863: 861: 857: 856: 854: 853: 848: 843: 838: 833: 828: 823: 818: 813: 808: 803: 798: 793: 785: 783: 774: 766: 765: 763: 762: 757: 752: 747: 742: 737: 732: 727: 722: 717: 712: 707: 702: 697: 692: 686: 684: 680: 679: 672: 670: 668: 667: 662: 660:X Input Method 657: 652: 647: 642: 634: 632: 626: 625: 620: 618: 617: 610: 603: 595: 589: 588: 583: 578: 573: 568: 563: 558: 553: 548: 541: 540:External links 538: 535: 534: 522: 521: 519: 516: 515: 514: 509: 503: 502: 486: 483: 471: 470: 463: 451: 448: 419: 416: 413: 410: 407: 404: 401: 397: 393: 390: 387: 384: 381: 349: 348: 335: 332: 329: 326: 323: 320: 317: 314: 311: 308: 305: 302: 299: 296: 293: 289: 285: 282: 279: 276: 273: 270: 267: 264: 261: 258: 247: 235: 232: 229: 226: 223: 220: 216: 212: 209: 206: 203: 200: 197: 194: 191: 188: 185: 167:1202 1205 1263 156: 134: 132: 131: 125: 98: 95: 52:display server 33: 32: 13: 10: 9: 6: 4: 3: 2: 1298: 1287: 1284: 1283: 1281: 1266: 1263: 1261: 1258: 1256: 1253: 1251: 1248: 1246: 1243: 1241: 1238: 1236: 1233: 1232: 1230: 1226: 1220: 1217: 1215: 1212: 1210: 1207: 1205: 1202: 1201: 1199: 1195: 1181: 1178: 1176: 1173: 1171: 1168: 1166: 1163: 1161: 1158: 1156: 1153: 1151: 1148: 1146: 1143: 1141: 1138: 1137: 1135: 1133: 1129: 1123: 1120: 1118: 1115: 1113: 1110: 1108: 1105: 1103: 1100: 1098: 1095: 1093: 1090: 1088: 1085: 1083: 1080: 1078: 1075: 1073: 1070: 1068: 1065: 1063: 1060: 1058: 1055: 1053: 1050: 1048: 1045: 1043: 1040: 1038: 1035: 1033: 1030: 1028: 1025: 1023: 1020: 1018: 1015: 1013: 1010: 1009: 1007: 1005: 1001: 995: 994:Enlightenment 992: 990: 987: 985: 982: 980: 977: 975: 972: 970: 967: 966: 964: 962: 958: 955: 951: 945: 941: 935: 932: 930: 927: 925: 922: 920: 917: 915: 912: 910: 907: 905: 902: 900: 897: 896: 894: 892: 888: 884: 878: 875: 873: 870: 868: 865: 864: 862: 858: 852: 849: 847: 844: 842: 839: 837: 834: 832: 829: 827: 824: 822: 819: 817: 814: 812: 809: 807: 804: 802: 799: 797: 794: 792: 791: 787: 786: 784: 782: 778: 775: 767: 761: 758: 756: 753: 751: 748: 746: 743: 741: 738: 736: 733: 731: 728: 726: 723: 721: 718: 716: 713: 711: 708: 706: 703: 701: 698: 696: 693: 691: 688: 687: 685: 681: 676: 666: 663: 661: 658: 656: 653: 651: 648: 646: 643: 641: 640: 639:Core protocol 636: 635: 633: 631: 627: 623: 616: 611: 609: 604: 602: 597: 596: 593: 587: 584: 582: 579: 577: 574: 572: 569: 567: 564: 562: 559: 557: 554: 552: 549: 547: 544: 543: 539: 532: 527: 524: 517: 513: 510: 508: 505: 504: 500: 489: 484: 482: 476: 468: 464: 461: 460: 459: 457: 449: 447: 445: 441: 436: 434: 417: 414: 408: 405: 402: 395: 391: 388: 385: 382: 379: 369: 365: 361: 357: 352: 312: 287: 271: 248: 214: 198: 175: 174: 173: 154: 126: 120: 119: 118: 116: 112: 108: 104: 96: 94: 92: 88: 84: 79: 77: 73: 69: 65: 61: 57: 53: 49: 46: 42: 38: 31: 29: 25: 21: 16: 15: 1228:Applications 1117:Window Maker 790:X.Org Server 788: 637: 630:Architecture 526: 472: 453: 450:Obsolescence 437: 368:refresh rate 353: 350: 347:(field rate) 171: 152: 114: 110: 100: 80: 36: 34: 19: 17: 961:Compositing 771:and notable 507:Raster scan 444:double scan 356:front porch 103:pixel clock 87:Xorg Server 950:comparison 769:Components 683:Extensions 518:References 512:Sync pulse 440:interlaced 364:back porch 360:sync pulse 60:television 1197:Standards 1160:ratpoison 1112:WindowLab 1017:AfterStep 406:∗ 313:∗ 107:megahertz 41:xorg.conf 20:mode line 1280:Category 1062:Matchbox 1027:Blackbox 1004:Stacking 979:Metacity 929:Entrance 851:XWayland 796:Cygwin/X 760:Xinerama 485:See also 158:Modeline 136:Modeline 85:and the 37:modeline 1175:StumpWM 1140:awesome 1087:Sawfish 1077:Openbox 1042:Fluxbox 919:LightDM 846:XQuartz 816:XDarwin 811:XFree86 801:X-Win32 665:Wayland 430:⁠ 372:⁠ 83:XFree86 70:or the 45:XFree86 43:or the 1240:xclock 1180:larswm 1170:xmonad 1132:Tiling 984:Mutter 969:Compiz 841:Xephyr 362:, and 97:Syntax 1260:xeyes 1255:xterm 1250:xload 1245:xedit 1235:xcalc 1204:ICCCM 1097:tvtwm 1057:IceWM 1022:amiwm 821:Xming 735:AIGLX 700:RandR 475:HDTVs 469:query 456:HDTVs 418:59.92 24:Emacs 1209:EWMH 1165:wmii 1107:vtwm 1082:Qvwm 1072:olwm 1052:FVWM 1047:FLWM 1032:CTWM 1012:4Dwm 989:Xfwm 974:KWin 924:LXDM 909:SDDM 867:Xlib 831:Xsun 826:Xsgi 806:X386 467:EDID 442:and 409:1263 403:2048 164:1200 91:EDID 76:VESA 26:and 1214:XDS 1155:Ion 1145:dwm 1122:wm2 1102:twm 1092:swm 1067:mwm 1037:cwm 934:WDM 914:XDM 904:KDM 899:GDM 872:XCB 836:Xgl 740:GLX 392:000 386:000 380:155 105:in 58:or 28:Vim 1282:: 1150:i3 435:. 433:Hz 358:, 78:. 35:A 18:A 952:) 948:( 614:e 607:t 600:v 415:= 412:) 400:( 396:/ 389:, 383:, 334:) 331:l 328:a 325:t 322:o 319:t 316:v 310:l 307:a 304:t 301:o 298:t 295:h 292:( 288:/ 284:k 281:l 278:c 275:p 272:= 269:q 266:e 263:r 260:f 257:V 234:l 231:a 228:t 225:o 222:t 219:h 215:/ 211:k 208:l 205:c 202:p 199:= 196:q 193:e 190:r 187:f 184:H 115:y 111:x

Index

Emacs
Vim
xorg.conf
XFree86
configuration file
display server
computer monitor
television
display resolution
Generalized Timing Formula
Coordinated Video Timings
VESA
XFree86
Xorg Server
EDID
pixel clock
megahertz
front porch
sync pulse
back porch
refresh rate
Hz
interlaced
double scan
HDTVs
EDID
HDTVs
Free and open-source software portal
Raster scan
Sync pulse

Text is available under the Creative Commons Attribution-ShareAlike License. Additional terms may apply.