Comment 3 for bug 270980

Revision history for this message
Typhoe (spamistrash) wrote :

Hi Alberto,

that worked.

Test 1.
1. Xorg.conf already with the right virtual display setting (3600 1200) for me.
2. Edit file, remove section Display and virtual setting
3. Restart Xorg
4. Use screen-resolution-extra to activate extended screen (first screen in 1680x1050, change second to 1920x1200)
5. Check xorg.conf, Virtual is set to 3600 1200
=> OK

Test 2.
1. Xorg.conf already with the right virtual display setting (3600 1200) for me.
2. Edit file, remove section Display and virtual setting
3. Restart Xorg
4. Use screen-resolution-extra to activate extended screen (first screen in 1680x1050, leave second to default which is equal to the setting of first screen 1680x1050)
5. Check xorg.conf, Virtual is set to 3360 1050
3. Restart Xorg
4. Check display: First screen is in 1680x1050, second is in 1400x1050 (should be in 1680x1050, problem of my screen, not relevant).
5. Decide to put second display in its native resolution: 1920x1200, so launch again screen-resolution-extra, but second screen does not offer resolution above 1680x1050 anymore.
6. Try to disable extended display in screen-resolution-extra : no changes are done to the xorg.conf
=> NOK (not ok)
If we don't specify the max resolution of second display first time, we can't change the setting after to get an other resolution (greater) for the second screen in the app.

Test 3.
1. Change Xorg.conf with a lower virtual display setting (2400 1050) than twice the horizontal size of the primary screen.
2. Restart Xorg
3. Use screen-resolution-extra to activate extended screen (first screen in 1680x1050, the second can't be set to anything greater than 1680x1050)
4. Check xorg.conf, Virtual is set to 3360 1050
=> NOK
If we have a previous Virtual setting in the xorg.conf, we have same problem as in test 2.

So, the formula to calculate the Virtual setting should be:
(MAX Horizontal size of screen 1 + MAX Horizontal size of screen 2) BY (MAX vertical size screen 1 + MAX vertical size screen 2)

Hope these tests will help.

Best regards,
Typhoe