Preferred display mode not working on Xorg

Discussion in 'UDOO BOLT' started by xkrys, Sep 27, 2022.

  1. xkrys

    xkrys UDOOer

    Joined:
    Oct 31, 2019
    Messages:
    3
    Likes Received:
    0
    Hi,

    I'm trying to set a mode with xrandr for my screen but it fails and return this error:

    Code:
    xrandr: Configure crtc 0 failed
    The mode I'm trying to set is the preferred one detected for that screen:

    Code:
    HDMI-A-0 connected primary (normal left inverted right x axis y axis)
        Identifier: 0x52
        Timestamp:  2486686
        Subpixel:   unknown
        Clones:   
        CRTCs:      0 1 2 3
        Transform:  1.000000 0.000000 0.000000
                    0.000000 1.000000 0.000000
                    0.000000 0.000000 1.000000
                   filter: 
        EDID: 
            00ffffffffffff003354010000000000
            0c1b0103800000780a07f59a564e8626
            1e505400000000000000000000000000
            000000000000bc4da069500008a03c0a
            41005aa000000018000000fc004c5330
            36305231535830312020000000ff0030
            303030303030302020202020000000fd
            00174b0ff01e000a20202020202001a0
            02031774470000000000000023097f07
            66030c00300080bc4da069500008a03c
            0a41005aa000000018bc4da069500008
            a03c0a41005aa000000018bc4da06950
            0008a03c0a41005aa000000018bc4da0
            69500008a03c0a41005aa000000018bc
            4da069500008a03c0a41005aa0000000
            18000000000000000000000000000023
        GAMMA_LUT_SIZE: 4096 
            range: (0, -1)
        DEGAMMA_LUT_SIZE: 4096 
            range: (0, -1)
        GAMMA_LUT: 0 
            range: (0, 65535)
        CTM: 0 
        DEGAMMA_LUT: 0 
            range: (0, 65535)
        TearFree: auto 
            supported: off, on, auto
        HDCP Content Type: HDCP Type0 
            supported: HDCP Type0, HDCP Type1
        Content Protection: Undesired 
            supported: Undesired, Desired, Enabled
        vrr_capable: 0 
            range: (0, 1)
        max bpc: 8 
            range: (8, 16)
        underscan vborder: 0 
            range: (0, 128)
        underscan hborder: 0 
            range: (0, 128)
        underscan: off 
            supported: off, on, auto
        scaling mode: None 
            supported: None, Full, Center, Full aspect
        link-status: Good 
            supported: Good, Bad
        CONNECTOR_ID: 78 
            supported: 78
        non-desktop: 0 
            range: (0, 1)
      1440x2560 (0x6b0) 199.000MHz -HSync -VSync +preferred
            h: width  1440 start 1500 end 1510 total 1545 skew    0 clock 128.80KHz
            v: height 2560 start 2564 end 2565 total 2568           clock  50.16Hz
      1280x1024 (0x6b1) 199.000MHz -HSync -VSync
            h: width  1280 start 1500 end 1510 total 1545 skew    0 clock 128.80KHz
            v: height 1024 start 2564 end 2565 total 2568           clock  50.16Hz
      1440x900 (0x6b2) 199.000MHz -HSync -VSync
            h: width  1440 start 1500 end 1510 total 1545 skew    0 clock 128.80KHz
            v: height  900 start 2564 end 2565 total 2568           clock  50.16Hz
      1280x800 (0x6b3) 199.000MHz -HSync -VSync
            h: width  1280 start 1500 end 1510 total 1545 skew    0 clock 128.80KHz
            v: height  800 start 2564 end 2565 total 2568           clock  50.16Hz
      1280x720 (0x6b4) 199.000MHz -HSync -VSync
            h: width  1280 start 1500 end 1510 total 1545 skew    0 clock 128.80KHz
            v: height  720 start 2564 end 2565 total 2568           clock  50.16Hz
      1024x768 (0x6b5) 199.000MHz -HSync -VSync
            h: width  1024 start 1500 end 1510 total 1545 skew    0 clock 128.80KHz
            v: height  768 start 2564 end 2565 total 2568           clock  50.16Hz
      800x600 (0x6b6) 199.000MHz -HSync -VSync
            h: width   800 start 1500 end 1510 total 1545 skew    0 clock 128.80KHz
            v: height  600 start 2564 end 2565 total 2568           clock  50.16Hz
      640x480 (0x6b7) 199.000MHz -HSync -VSync
            h: width   640 start 1500 end 1510 total 1545 skew    0 clock 128.80KHz
            v: height  480 start 2564 end 2565 total 2568           clock  50.16Hz
    
    
    Same screen on another machine (udoo ultra or PC) works good and preferred mode is set as current when plugged.

    Spec:
    Code:
    System:
      Kernel: 5.15.0-48-generic x86_64 bits: 64 Desktop: Weston
        Distro: Ubuntu 22.04.1 LTS (Jammy Jellyfish)
    Machine:
      Type: Desktop Mobo: Seco model: C40 v: C serial: <superuser required> UEFI: American Megatrends
        v: 1.08 date: 04/23/2020
    Graphics:
      Device-1: AMD Raven Ridge [Radeon Vega Series / Radeon Mobile Series] driver: amdgpu v: kernel
      Display: wayland server: X.org v: 1.21.1.3 compositor: Weston driver: X:
        loaded: amdgpu,ati,fbdev,modesetting,vesa gpu: amdgpu resolution: 1440x2560
      Message: No GL data found on this system.
    
     
  2. EasyIP2023

    EasyIP2023 UDOOer

    Joined:
    Aug 19, 2022
    Messages:
    5
    Likes Received:
    0
    Are you sure the proper Xorg driver installed?

    https://gitlab.freedesktop.org/xorg/driver/xf86-video-amdgpu

    What does bellow display?

    Code:
    cat < /var/log/Xorg.0.log | grep amdgpu
    
    Code:
    # Make sure amdgpu DRM diver if built as a kernel module
    # As it requires firmware from linux-firmware-amdgpu
    # From above looks like it's loaded
    $ lsmod | grep amdgpu
    $ modprobe drm amdgpu
    
    Just realized you are using weston (Wayland). Think xrandr is Xorg specific.
    Will probably need to utilized another program.

    Maybe try

    Code:
    $ apt-file search wlr-randr
    $ sudo apt install wlr-randr
    # I haven't used weston on Ubuntu, but you may or may not run into bellow
    # compositor doesn't support wlr-output-management-unstable-v1
    # The version of weston you are using may support the interface
    
    Sure there's some project out there.
     

Share This Page