Score:0

`xrandr` lost ability to position external monitor with high resolution

vn flag

TLDR

How can I understand and overcome xrandr errors such as

X Error of failed request:  BadMatch (invalid parameter attributes)
  Major opcode of failed request:  140 (RANDR)
  Minor opcode of failed request:  7 (RRSetScreenSize)
  Serial number of failed request:  39
  Current serial number in output stream:  40

?

How I got there

I'm trying to use a television as an external monitor. Yesterday, when I first connected the TV and tried to use arandr to place it logically to the right of my laptop screen with resolution 3840x2160, an error occurred. But I noticed that a resolution of 4096x2160 was available, so I tried that, it worked, and I got on with my life.

The next time I tried to use it, after turning the TV on, it was not detecting any signal on the HDMI1 input that I had used before, so I tried to elicit some reaction by changing a setting in arandr: I switched to the 3840x2160 resolution (which did not work earlier), and this time it worked.

The next time I came back, once again no input detected on HDMI1, but this time both the 3840x2160 and 4096x2160 modes gave errors in arandr. However, after plugging the cable into HDMI2, the 3840x2160 mode worked.

This time, rather than getting on with my life, I tried to understand what was going on so I did some experiments, and am now completely unable to add the TV as a second monitor with both

  • high resolution
  • no overlap between laptop screen and TV

The current state of play

Using xrandr rather than arandr, variations on the theme of both high resolution and non-overlapping screen:

xrandr --output DP-4 --primary --mode 2560x1440 --pos 0x0 --output HDMI-0 --mode 3840x2160 --pos 2560x0

always fail (on any of the three physical HDMI sockets the TV has), with the error message shown at the top of this post.

OTOH variations on the them of hi-res + overlap:

xrandr --output DP-4 --primary --mode 2560x1440 --pos 0x0 --output HDMI-0 --mode 3840x2160 --pos 0x0

work fine, as do variations on the theme of lo-res + non-overlap:

xrandr --output DP-4 --primary --mode 2560x1440 --pos 0x0 --output HDMI-0 --mode 1920x1080 --pos 2560x0

For example, the same error occurs when using --right-of instead of --pos 2560x0.

Can xrandr be reset without restarting X?

It seems that some state has accumulated somewhere, as things which definitely worked earlier, have ceased to work.

I'm reluctant to try experiments which require restarting the X server, as I have many virtual screens with a large number of active tasks, which I really don't want to have to set up again.

I have reset the TV to factory settings, and it doesn't appear to have changed anything.

Score:-1
lk flag

Seems like you've stumbled upon some perplexing hurdles while attempting to use xrandr for your external monitor setup. The glitches you're facing are genuinely enigmatic, creating a puzzling situation with the TV connection and xrandr configurations tangled in a web of complexities.

It's like the TV and xrandr got caught up in a whirlwind of uncertainties. Sometimes, tech behaves in the most bewildering ways, and pinpointing the root cause becomes an intricate task.

Restarting the X server is a daunting proposition with all your active tasks and virtual screens in play. Who needs that extra hassle? Alas, xrandr doesn't have an easy-peasy reset button for you to hit.

However, here's a crafty workaround you could attempt before going all-in on an X restart. Give disconnecting the TV a shot—yes, completely! Then, reset xrandr back to the default settings and reunite the TV, reconfiguring everything from scratch. A shot in the dark, perhaps, but these quirky tricks sometimes work magic in clearing up bizarre issues.

jp flag
this answer smells of something.
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.