Results 1 to 1 of 1

Thread: Using knoppix 9.1 with cvt/xrandr to test monitors

  1. #1
    Member registered user
    Join Date
    Apr 2007
    Posts
    94

    Using knoppix 9.1 with cvt/xrandr to test monitors

    I like to try to find monitors that will support 15khz signals (like for the Amiga). So I try a bunch of different resolutions with cvt but it's really a pain to do it manually.

    So I resolved to find a better way to do it.

    I use a small ASUS laptop, an EEE pc 900A with Intel 945GM graphics that has a 4gb ssd with a "minimal version" 700Mb knoppix installed to the ssd, as the full 4.7gb knoppix won't fit on the ssd.

    This can also be worked around because the EEEpc can also boot from an SD card or a USB flash drive that is larger than 4.7gb by hitting ESC during the boot sequence.


    I wrote a small script that I call mycvt that uses cvt and xrandr to set the output resolution modeline.


    The asus eee pc has a VGA output called VGA1 by xrandr. If I don't specify a device to use, then it will default to using VGA1.

    You can set the device by running mycvt using source and a single parameter.

    "source ./mycvt HDMI-1; ./mycvt 1280 960" will set the xrandr device to HDMI-1 and then attempt to change the resolution to 1280 by 960

    A single dot is also an alias for source, you can do

    ". ./mycvt HDMI-1; ./mycvt 1280 960"

    You can also set the device by just using the environment variable d and export:

    "export d=HDMI-1; ./mycvt 1920 1080 -r"
    "export d=LVDS1; ./mycvt 1024 600"


    The bash script for mycvt, you will need to "chmod u+x" to make it executable.

    Code:
    #/bin/bash
    if [ $# -eq 1 ]
    then
    echo one parameter given, set device to $1
    declare -x d=$1
    printenv d
    #no, child cannot modify env vars of parent but you can run it as source ./mycvt and it will work
    #. ./mycvt VGA1 will also work as . is an alias for source
    else
    echo $*
    cvt $*
    echo d = $d
    if [ -z "$d" ]
    then
      d=VGA1
      echo no device specified, using $d
    fi
    a=`cvt $* | tail -1 | cut -d' ' -f2-`
    b=`cvt $* | tail -1 | cut -d' ' -f2`
    echo $a 
    echo $b
    echo xrandr --newmode $a
    echo xrandr --addmode $d $b
    echo xrandr --output $d --mode $b
    xrandr --newmode $a
    xrandr --addmode $d $b
    xrandr --output $d --mode $b
    fi

    So if you use a resolution that makes it invisible, there's lots of ways to recover:

    One way is to kill the x server with CTRL+ALT+Backspace, and it will relaunch X and use a ddc detected resolution.
    If you make it so that the terminal is launched with .config/autostart desktop entry, it's really convenient.

    If something goes awry, just kill the X server and you're back almost instantly.


    Another is to specify a normal resolution by blind typing "./mycvt 800 600" or "./mycvt 1024 768"


    Another method is to switch to a VT with CTRL+ALT+f4 to select VT4, then type
    "chvt 6; sleep 4; export DISPLAY=:0; sudo -u knoppix xrandr --output VGA1 --mode 1024x768"
    to set the VGA1 mode to 1024x768.


    Another is to have a couple of failsafe scripts like 800 or 1368 (using chmod u+x to make them executable)

    800:
    ./mycvt 800 600

    1368:
    ./mycvt 1368 768

    1920:
    ./mycvt 1920 1080 -r




    I like the ability of the asus 900A to have it's own screen active, so if I can't see what I'm typing, I'll type CTRL+L to clear the terminal so that I'm typing up at the top of the screen.


    So I can test a monitor if it can handle 15khz signals pretty quickly with a few scripts, I call 240 and 292:

    240:
    ./mycvt 720 240 60

    292:
    ./mycvt 720 292 50

    and then recover easily with ./800 if the signal is unsupported.

    There's basically a whole range of resolutions and refresh rates that you can try, it's really easy to experiment.

    For example, some video cards don't like to output any horizontal resolution lower than a certain value, so you can try different values:

    ./mycvt 720 240 60
    ./mycvt 960 240 60
    ./mycvt 1280 240 60
    ./mycvt 1440 240 60
    ./mycvt 1920 240 60
    Last edited by don999; 03-18-2023 at 06:10 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


CISCO UCSB-B200-M4 UCS BLADE SERVER UCS-SP-B200M4-S1 picture

CISCO UCSB-B200-M4 UCS BLADE SERVER UCS-SP-B200M4-S1

$175.00



SUN Blade X6250 Server 8GB RAM DUAL PROCESSORS 594-4531-01 picture

SUN Blade X6250 Server 8GB RAM DUAL PROCESSORS 594-4531-01

$109.99



Dell PowerEdge FX2 FX2S Enclosure - 4x PowerEdge FC640 w/ 8x Gold 6132 112C 1TB picture

Dell PowerEdge FX2 FX2S Enclosure - 4x PowerEdge FC640 w/ 8x Gold 6132 112C 1TB

$2699.99



SuperMicro X8DTT-HF+ WITH ONE XEON X5650 +24GB RAM FOR CSE-827HD-R1400B picture

SuperMicro X8DTT-HF+ WITH ONE XEON X5650 +24GB RAM FOR CSE-827HD-R1400B

$124.99



DELL M630 BLADE SERVER x2 XEON E5-2660V3 @ 2.6GH H730 PERC HDD CADDIES 16GB FC picture

DELL M630 BLADE SERVER x2 XEON E5-2660V3 @ 2.6GH H730 PERC HDD CADDIES 16GB FC

$50.00



Dell PowerEdge M630 Blade Server 1x Xeon E5-2630 v4 CPU / Motherboard P/N 0R10KG picture

Dell PowerEdge M630 Blade Server 1x Xeon E5-2630 v4 CPU / Motherboard P/N 0R10KG

$69.99



2 x HP ProLiant BL460c (447707-B21) Blade Servers No RAM No HDD picture

2 x HP ProLiant BL460c (447707-B21) Blade Servers No RAM No HDD

$30.00



Cisco UCSB-B200-M4 Blade Server Chassis 73-15862-06 with back No RAM and CPU picture

Cisco UCSB-B200-M4 Blade Server Chassis 73-15862-06 with back No RAM and CPU

$109.00



Cisco UCS 5108 Blade Server Chassis Enclosure N20-C6508 4x PSU 8x Fans 2x Fabric picture

Cisco UCS 5108 Blade Server Chassis Enclosure N20-C6508 4x PSU 8x Fans 2x Fabric

$139.99



Dell PowerEdge M620 Blade Server picture

Dell PowerEdge M620 Blade Server

$39.99