How can we add modelines from xorg.conf on HaikuOS?

On GNU/Linux i use custom display resolutions a lot, added from xorg.conf modelines.
How can we add these resolution on HaikuOS as well? Is that a simple text file to edit (like /etc/X11/xorg.conf on GNU/Linux), or do we need a special tweak tool for that?

(these modelines can be obtained from http://arachnoid.com/modelines/ or http://xtiming.sourceforge.net/cgi-bin/xtiming.pl )

thanks in advance! :slight_smile:

The “screenmode” command line app can be used with modelines. Note that if you use the VESA driver, only the modes exposed by your BIOS can be used.

This could be added to the FAQ and the documentation :wink:

how can we use this modeline command?

i tried:
screenmode 1280 960 16 60 -m 101.25 1280 1360 1488 1696 960 963 967 996

which said “Unknown flag: 960”

and:
screenmode -m 101.25 1280 1360 1488 1696 960 963 967 996

which said “screenmode: Could not set screen mode 1024x768x32: General system error”

and:
screenmode 1280x960x16 -m 101.25 1280 1360 1488 1696 960 963 967 996

which said “screenmode: Could not set screen mode 1024x768x32: Invalid Argument”

and btw, how can we rotate the display, just like xrandr and arandr does on gnu/linux?

This works here:

screenmode -m 101.25 1280 1360 1488 1696 960 963 967 996

If it doesn't work for you, it probably means your video driver doesn't support mode setting (probably you are usign the VESA driver).