Bug 8394 - Xvnc doesn't generate correct randr modelines
Summary: Xvnc doesn't generate correct randr modelines
Status: NEW
Alias: None
Product: ThinLinc
Classification: Unclassified
Component: VNC (show other bugs)
Version: trunk
Hardware: PC Unknown
: P2 Normal
Target Milestone: LowPrio
Assignee: Bugzilla mail exporter
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-07-23 16:03 CEST by Pierre Ossman
Modified: 2024-08-13 13:13 CEST (History)
0 users

See Also:
Acceptance Criteria:


Attachments

Description Pierre Ossman cendio 2024-07-23 16:03:45 CEST
Xvnc needs to generate fake CRT modelines as that is the only way you can configure which resolution to use. We've mostly¹ left the fields empty, as we are really only interested in the pixel width and height.

Xwayland, however, tries to fully fake everything. There might be some applications that get confused by the absurd data.

This is what Xvnc currently shows:

> $ xrandr --verbose
> ...
>   1024x768 (0x46) 47.186MHz *current +preferred
>         h: width  1024 start    0 end    0 total 1024 skew    0 clock  46.08KHz
>         v: height  768 start    0 end    0 total  768           clock  60.00Hz
> ...

And this is what a real modeline would look like:

> $ xrandr --verbose
> ...
>   1024x768 (0x47) 63.500MHz -HSync +VSync *current +preferred
>         h: width  1024 start 1072 end 1176 total 1328 skew    0 clock  47.82KHz
>         v: height  768 start  771 end  775 total  798           clock  59.92Hz
> ...

¹ We fill out some extra fields, though, for unknown reasons

Note You need to log in before you can comment on or make changes to this bug.