I tried switching my external hdmi monitor to ‘primary’. Now I have no desktop on my laptop screen and can do almost nothing. I do have a root shell, but not sure what to change. How can I switch laptop screen back to ‘primary’ to get back normal desktop? If I knew the command name of the app to config displays, that might do it.
Even with the external monitor disconnected, I get no desktop stuff on the native screen.
Please help, I"m dead in the water. I don’t want to have to wipe and reinstall linux just because of experimenting with display configs.
One possibility is through the terminal. Can you run and post your output:
$ xrandr
Then you could try to us xrandr to define which monitor is what. Supposing your laptop is eDP-1 and the external monitor HDMI-1, you could try this:
xrandr --output eDP-1 --auto
to activate your laptop screen. It is also possible to use xrandr to define the position of the external monitor relative to the laptop monitor and define resolution etc… but easier to use your system settings what DE are you using?
More infos about xrandr in the Arch wiki… somehow I cannot post the link because I am a new forum user since a couple of minutes ago.
Ok, it is odd because xrandr does not show any HDMI connection, I see only your laptop assuming that you have a high dpi screen 3840x2160.
normally the xrandr command should set your laptop screen in your session and no reboot would be necessary. There are ways to save xrandr configuration using autorandr but I do not think we need to go into this for this thread.
Reboot or logout/in doesn’t hurt to try. Also disconnecting/connecting the external hdmi may help.
OK, reboot put things back somewhat, although I seem to have lost some of my very hard fought config of DPI and scaling. Anyway, thank you very very much for saving me! I’ll just leave the external display disconnected for the time being.
Ok, sorry to hear that. Perhaps if you indicate which desktop you use, kde, cinnamon or else someone could help you. I played around a lot with monitors and trying to fix high dpi screen on laptop vs. lower resolution on external monitor. My conclusion is that cinnamon seems to work best out of the box. In the start menu, I just type “display”. Then I select “normal” and 200% for the high dpi and 100% for external monitor. Also note that connecting/disconnecting your hdmi cable with an external monitor should not break your distro. Good luck!
I’m using kde, though I’m by no means wedded to it. I’ve had a great deal of grief trying to get mandaro kde to behave well with my HiDPI display. Then, sometimes I need to temporarily add my remote hdmi screen, which is moderate DPI, mirroring. Thus the nightmare. I’ve shied away from cinnamon, since I’m not fond of apple interfaces, but I might try it if it has easy support for HiDPI.
Kde is great! For sure it’s difficult, to my knowledge either gnome with wayland or cinnamon are the only DE who can do per screen scaling that works with high dpi and non high dpi screens. I tried fiddling with icon and font scaling but its not satisfying. Wayland with nvidia cards does not seem to work well, therefore cinnamon is my best option.
Gnome is more apple like, cinnamon is more traditional desktop (modern windows xp or 7 like?like)
I tried assigning the external monitor as primary and it worked. When unplugging the hdmi it should automatically switch back to your laptop as primary screen. Perhaps it depends on your hardware and whether you use hybrid intel/nvidia grafics. Just make sure to have the right drivers installed to have a smooth experience. Manjaro makes our life easier, click on start, manjaro settings and there should be a hardware option that shows which graphics drivers are installed (open source or proprietary).