Re: Automatic way to change nvidia display configuration
Many thanks for the answers,
Unfortunately I've tried the "nvidia-settings -tq ProbeDisplays" or the "nvidia-settings -q AssociatedDisplays" methods and they are not useful for what I'm trying to do. If I execute both commands with both display configurations (one with the internal monitor on and the external off and the other way around) I get the same hexadecimal code for both :-?
I'm going to try what NvFuchs suggested and try to use "disper".