Ковыряясь в commit-логах драйвера ati, обнаружил вот такое от атишного разработчика
Cортировка дека по-кетайски:
@@ -4224,6 +4362,29 @@ static Bool RADEONPreInitModes(ScrnInfoP
}
}
+ /* Sort the modes, retain the first */
+ if (pScrn->modes && (start = pScrn->modes->next)) {
+ for (mp = start; mp->next != pScrn->modes; mp = mp->next) {
+ DisplayModePtr new = NULL;
+
+ new = xnfcalloc(1, sizeof (DisplayModeRec));
+ memcpy(new, mp, sizeof (DisplayModeRec));
+ new->name = strdup(mp->name);
+ RADEONSortModes(&new, &first, &last);
+ }
+
+ if (last && first) {
+ pScrn->modes->next = first;
+ pScrn->modes->prev = last;
+ first->prev = pScrn->modes;
+ /* Make the list circular */
+ last->next = pScrn->modes;
+
+ for (mp = start; mp->next != pScrn->modes; mp = mp->next)
+ xf86DeleteMode(&start, mp);
+ }
+ }
+
pScrn->currentMode = pScrn->modes;
if(info->MergedFB) {
xf86DrvMsg(pScrn->scrnIndex, X_INFO,
PS: вы всё ещё пользуетесь fglrx?