[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Display resolution 3840x2160@24rb stopped working after Upgrade from Stretch to Buster



On Thu 12 Sep 2019 at 06:23:04 (+0000), Jan Michael Greiner wrote:
> On Monday, September 9, 2019, 1:55:06 PM GMT+2, Charles Curley wrote:
> >> On Mon, 9 Sep 2019 10:20:37+0000 (UTC) Jan Michael Greiner wrote:
> >> With Debian Stretch (9.8) I had the display running with 3840x2160
> >> resolution at 24Hz reduced blank.
> 
> >> [What worked with Debian Stretch (9.9)]
> >> export modename="3840x2160_24.00_rb"
>  >> xrandr --newmode $modename 209.75 3840 3888 3920 4000 2160 2163 2168 2185 +HSync -Vsync
>  >> xrandr --addmode HDMI-1 $modename
>  >> xrandr --output HDMI-1 --mode $modename
> 
>  >> [Problem with Debian Buster (10.1)]
>  >> xrandr --output XWAYLAND1 --mode $modename
>  >> xrandr: Configure crtc0 failed
> 
>  >And I take it you want to reproduce that on Debian 10 (buster). I
>  > suggest you:
>  > * Install arandr.
>  >[...]
> 
>  Thank you for making me aware of arandr. However, from what I learned:
> 
> - arandr is merely a graphical tool for xrandr, so if something does not work with xrandr, arandr will not be able to help 
> 
> - I did not see any option in the arandr gui to add a non yet existing resolution (and I would like to add a 24Hz reduced blank resolution)
> 
>  To rephrase my question: How can I enable a custom screen resolution and refresh rate (with my specific modeline) with Debian Buster (Wayland)?

I can't speak for Wayland. When I plug my laptop into a TV¹, I run a
function that sets up the video and sound, which starts:

my-hdmi is a function
my-hdmi () 
{ 
    [ -z "$DISPLAY" ] && printf '%s\n' "No display as not running X$DISPLAY" && return 1;
    local Hdmi="$(-gethdminame)";
    xrandr --addmode "$Hdmi" 1600x900;
    xrandr --output "$Hdmi" --mode 1600x900;
    …

where

-gethdminame is a function
-gethdminame () 
{ 
    [ -n "$DISPLAY" ] && printf '%s\n' "$(xrandr | sed -e '/^HDMI/!d;s/ .*//;')"
}

(Sometimes it seems to be HDMI-1, sometimes HDMI1.)

For some reason, our US-bought Samsung TV is coy about revealing its
video modes when compared with the same model in its UK incarnation.

Cheers,
David.


Reply to: