Hello,
I’m on Fedora 42 KDE using X11 session.
I have some problems with external monitors, I’m really new to Linux, I solved almost all of the issue with some Google and some ChatGTP but I cannot solve those…
When I wake up my pc after sleep almost everytime the panels are moved to the monitor of the notebook and the primary monitor is totally black. I can move windows on the screen but, for example, I cannot right click on desktop.
This is my setup.
Sometime, when I reboot the 3rd monitor starts with a low resolution and I cannot set the 2560x1440 resolution, also in this case I have to reboot (this is not a big problem to me cause I have just turned on the pc, the first issue is more annoying because I have a lot of opened programs…)
Primary monitor is connected to the notebook’s hdmi port, the 3rd one is connected to an USB-C adapter…
Are there “easy” things I can do to find a solution?
Ok, I found a solution, more a workaround than a solution.
Obviously with “I” I mean ChatGTP…
When this problem happens I run this script:
#!/bin/bash
# Ensure we talk to the right X11 session (needed when launched by systemd --user)
export DISPLAY=:0
export XAUTHORITY=/home/asdy/.Xauthority
# Wait until plasmashell exposes its D-Bus name (up to 10 seconds)
# This prevents running too early during login.
for i in {1..10}; do
if qdbus org.kde.plasmashell >/dev/null 2>&1; then
break
fi
sleep 1
done
# Apply a generic display re-probe (often re-enables preferred modes)
xrandr --auto
# Cleanly stop plasmashell, give it a brief moment to exit, then start it again
kquitapp6 plasmashell
sleep 1
kstart5 plasmashell
And to run the script after every login post sleep I created the service fix-plasma.sh that run the script.
At the moment it seems to work, I also add a shortcut in the settings to run the script if the service does not work so I type CTRL+META+ALT+5 and the system launch the script.
I hope this can be useful to someone and if some other have suggestions about a better script they are welcome…
Still, please avoid using LLM-G_AI at all. They ALL just steal the text from the first 12 google results and then hallucinate 3/5 of what they say. THIS ALSO MEANS THAT IF “MR NOBODY SAYS SOMETHING WRONG” THE LLM-G_AI WILL COPY THAT GUY’S SENTENCE AND EXPRESS IT AS OBJECTIVE FACT.
I’m aware of hallucinations, but I really was not able to find a solution not in Google or in this forum.
I tried searching in many ways but first of all I have not a good English do maybe I search with the wrong terms and then I don’t have the knowledge to understand which article could be the solution. Many articles or videos are for people who understand what they are reading or have a basic Linux technical knowledge, I do not have this.
Asking ChatGPT allowed me to get an explanation of what could be the issue caused from and I got a script to test…
It’s absolutely normal to not know how all of this works under the hood.
You just have to know this:
X11 is already deprecated on Fedora, and sooner or later, in one of the next releases, it will completely lose support (you will have to use Wayland, watch the whole video I linked before).
There will always be smaller Distros for older machines running X11, but you won’t be able to run the newer stuff.
Regardless of that, please run inxi -Fzxx and post the results here with this.
That way I can tell you if your PC is capable of supporting Wayland (GPU stuff) and if you need to get an update (you need to only if you work with special programs, or if you want to game).
Also, if your problem is solved, please select a message as “Solution”.
I would use Wayland, but I can’t because unfortunately RustDesk does not support Wayland if you want to enable unattended access… this is the only reason I do not use Wayland…
Sorry to say, but sooner or later you will have to use Wayland if you want to keep using any modern Linux Distro. Even Mint is doing the switch.
IF your software doesn’t need updates then you can have either a separate computer or a separate install of Fedora, kept on V42 with Xorg, and use that, while using a newer Fedora with Wayland for other stuff (as main OS).