You are not logged in.

#1 2022-01-15 18:23:15

kyomi
Member
From: Brazil
Registered: 2021-12-16
Posts: 14

[SOLVED] Windows and Linux are using different modelines

Hi!

I am using two operating systems on different HDs (Windows and Linux). When I boot into Windows, my monitor screen appears correctly, but when I boot into Linux, the screen slides a little to the left, making me have to use the AUTO button of my monitor to reset, and then when I boot again into Windows the screen is slid to the right (since I had adjusted for Linux), making me have to use the AUTO button on the monitor again, is there any way to leave the global position of the screen be the same for both systems?

My monitor: Samsung 933SN PLUS (1360x768 @ 60 Hz)
Xorg logs: https://mystb.in/AppearingReplyHereby.yaml
/etc/X11/xorg.conf.d/10-monitor.conf file: https://mystb.in/ToyotaVacuumCoins.apache

Last edited by kyomi (2022-01-15 23:49:39)


i like programming and pizza

Offline

#2 2022-01-15 19:59:10

seth
Member
Registered: 2012-09-03
Posts: 49,973

Re: [SOLVED] Windows and Linux are using different modelines

different HDs

irrelevant and regardless of the topic of the thread, make sure to have a look at the 3rd link below.

/etc/X11/xorg.conf.d/10-monitor.conf is a static server config generated by nvidia-settings, you don't want to do that but just

Section "Monitor"
    Identifier     "VGA-0" # use the output name as found in "xrandr -q", VGA-0 is a dummy! It is also NOT "CRT-1"
    VendorName     "Unknown"
    ModelName      "Unknown"
    Modeline       "1360x768"  84.75  1360 1432 1568 1776  768 771 776 798 +hsync +vsync
    Option         "PreferredMode" "1360x768" # this one's ignored, so you must add one modeline only per test
EndSection

Did you extract the modeline from windows?
It's almost the standard CVT, but the horizontal polarity is off (would be "-hsync")

Maybe windows uses reduced blanking?

% cvt12 1360 768 60
# 1360x768 @ 60.000 Hz (CVT) field rate 59.799 Hz; hsync: 47.720 kHz; pclk: 84.75 MHz
Modeline "1360x768_60.00"  84.75  1360 1432 1568 1776  768 771 776 798 -hsync +vsync
% cvt12 1360 768 60 -r
# 1360x768 @ 60.000 Hz Reduced Blank (CVT) field rate 59.960 Hz; hsync: 47.368 kHz; pclk: 72.00 MHz
Modeline "1360x768_60.00_rb1"  72.00  1360 1408 1440 1520  768 771 776 790 +hsync -vsync
% cvt12 1360 768 60 -b
# 1360x768 @ 60.000 Hz Reduced Blank (CVT) field rate 59.999 Hz; hsync: 47.399 kHz; pclk: 68.26 MHz
Modeline "1360x768_60.00_rb2"  68.26  1360 1368 1400 1440  768 776 784 790 +hsync -vsync

1st is default, 2nd is cvt1 reduced blanking and 3rd cvt12 reduced blanking.

Online

#3 2022-01-15 21:01:14

kyomi
Member
From: Brazil
Registered: 2021-12-16
Posts: 14

Re: [SOLVED] Windows and Linux are using different modelines

Hi! Thank you for the fast answer.

seth wrote:

irrelevant and regardless of the topic of the thread, make sure to have a look at the 3rd link below.

Sorry to introduce possibly irrelevant information, I'm a bit of a newbie to this particular part of Linux and wanted to be as detailed as possible.

seth wrote:

Did you extract the modeline from windows?

Sorry for my ignorance, I tried searching but didn't find much. How can I find the modeline I use on Windows?

seth wrote:

Maybe windows uses reduced blanking?

I just tested all three modelines and they all get a little stretched (a part of the screen was cut off).

I believe that if I use the same modeline that Windows uses, the problems should already be solved, I just need to know how to find it.

Last edited by kyomi (2022-01-15 22:31:09)


i like programming and pizza

Offline

#4 2022-01-15 21:16:06

progandy
Member
Registered: 2012-05-17
Posts: 5,184

Re: [SOLVED] Windows and Linux are using different modelines

Samsung has a driver for older windows versions, it contains these settings: "MODES\1360,768",Mode1,,"30-61,56-75,+,+"
So probably horizontal frequency 30-61 kHz, vertical rate 56-75 Hz, positive hsync, positive vsync.

If you cannot find the modeline windows uses, you could start with yours, import it in this calculator:
https://www.epanorama.net/faq/vga2rgb/calc.html
and then use the left/right/up/down buttons to slightly modify it, calculate the new modeline and test it.


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

#5 2022-01-15 21:19:02

seth
Member
Registered: 2012-09-03
Posts: 49,973

Re: [SOLVED] Windows and Linux are using different modelines

Sorry to introduce possibly irrelevant information

That's not the point - forum users just tend to think "oh, my windows is on another disk, there'll be no interference". So I wanted to point out that there will.

We actually had that monitor (noticed when googling the specs ;-)
https://bbs.archlinux.org/viewtopic.php?id=272229 where we figured that it actually requires the reverse horizontal polarity.

You can also try https://archlinux.org/packages/extra/x8 … -xvidtune/ to play w/ the linux modeline.

Online

#6 2022-01-15 22:12:37

kyomi
Member
From: Brazil
Registered: 2021-12-16
Posts: 14

Re: [SOLVED] Windows and Linux are using different modelines

seth wrote:

That's not the point - forum users just tend to think "oh, my windows is on another disk, there'll be no interference". So I wanted to point out that there will.

Oh so I understood otherwise. I said that because I just imagined that there might be some interference (contrary to what you thought, haha). Thanks for clarifying anyway.

seth wrote:

You can also try https://archlinux.org/packages/extra/x8 … -xvidtune/ to play w/ the linux modeline.

I'll try to use that first before messing with the progandy's suggestion. Thanks for your help and quick response from both of you.


i like programming and pizza

Offline

#7 2022-01-15 23:48:44

kyomi
Member
From: Brazil
Registered: 2021-12-16
Posts: 14

Re: [SOLVED] Windows and Linux are using different modelines

Yo! Coming back to say that I managed to solve the problem.
I ended up using a mix of the two solutions (I'm probably dumb and ended up doing it the hard way, thanks a lot to seth and progandy for their help, you guys are amazing). As xvidtune didn't allow me to apply the changes, I added and applied the changes manually with xrandr. It took a while but I finally found a modeline that fits the screen perfectly (and it's the same modeline that my Windows uses).

I'll finally be able to relax without any problems with the display on Linux. Marking this thread as solved.

Last edited by kyomi (2022-01-15 23:48:55)


i like programming and pizza

Offline

Board footer

Powered by FluxBB