Score:1

How can I send commands to a remote X11 session?

cn flag

I have a remote Raspberry Pi connected to an old display. The Raspberry Pi is not configured correctly to display to this old display (it is basically sending the wrong resolution signal to the display). I need to troubleshoot this while the old display is connected to the Raspberry Pi.

To do this, I have connected via SSH (with X11 forwarding enabled) to the Raspberry Pi. I now need to send xrandr (and similar commands) to the Raspberry Pi and to have those commands apply to the remote X11 session running on the Raspberry Pi, as opposed to the X11 session running on my local computer.

When I run xrandr -q, xrandr -s 640x480 etc. in the terminal while connected via SSH to the Raspberry Pi, the commands apply to the local X11 session when I need them to apply to the remote X11 session. How can I do this?

muru avatar
us flag
Try the other way - *disable* X11 forwarding, and set `DISPLAY` to whatever it is when logged in directly to the Pi's GUI (`:0`, probably)
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.