6

I'm building a utility that simplifies the complexities of defining and adding/removing custom resolutions with cvt and xrandr down to at least 2 command inputs.

The idea is to enter a custom resolution and frame rate (similar to how you'd do with cvt) on a specific port if using multiple, and see if your monitor on said port can display it.
The 2nd command is a simple y or n entry if your screen isn't black.

here's where the trick comes in, and the problem I'm running into...

If you enter n on the validation prompt, the screen should be reset to the previous resolution, which also includes the current resolution upon startup.

The problem I'm facing is it doesn't seem possible to obtain the current modeline upon startup of the utility.

Does anyone know of a way to obtain the EXACT modeline for xrandr --output ##### --mode <mode> or is that not a possibility??

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.