I have a laptop with a broken monitor which is of 1366x768 resolution and I want to use 1144x728 of its right-down corner of its normal part.I used to use lubuntu (sddm and lxde) and porteus (might be sddm? and cinnamon), and I can use following codes to handle it: xrandr --setmonitor bm 1144/344x728/183+222+40 eDP-1. However, it is not working in fedora cinnamon environment.
Are you sure you’re using X11 and not Wayland? xrandr doesn’t work in Wayland. The way to tell is, in a terminal type
and look at the result. it should say either X11 or Wayland. In Gnome, the default is Wayland, not sure about CInnamon. But in Gnome, after you click your user,name, when you’re on the screen where you enter your password, there’s a little gear icon on the lower right, which enables you to choose Gnome, or Gnome on X11. That may be he problem. There is a wlr-randr package for Wayland, though I don’t know how well it works.
This is all, of course, assuming that it turns out you are using Wayland rather than X11.
Thanks! I believe I have seen it, and it should be Wayland, and thus, that is the point! However, it is midnight here, I will try tomorrow. Thank you very much for the package name wlr-randr! Not sure if cinnamon have X11 version, maybe not as I know. Thanks again!
Here, on Fedora 38 Workstation, xrandr clearly indicates when it is running under wayland:
% echo $XDG_SESSION_TYPE
Screen 0: minimum 16 x 16, current 2560 x 1440, maximum 32767 x 32767
XWAYLAND0 connected primary 2560x1440+0+0 (normal left inverted right x axis y axis) 600mm x 340mm
Thanks, I’m not really sure. For my own knowledge, and, I guess that of the OP,if you have time, would you test that xrandr can, indeed change the monitor and/or resolution in Wayland? I feel as if I read somewhere that it didn’t work, though as you show us (and thanks for that) it does work on Wayland. So it may have been that it had limitations, or, that I read it a long time ago and things have changed. Again, only if you have time and inclination.
I found it is cinnamon’s problem, since Mint Cinnamon does not work as well.
I have finally found out that due to my hardware, i3wm is more suitable for me and I have used it for about 3 days, feeling very good.
Whatever, thank you very much again! At least I learnt many things about xrandr and x11 things!
A bit more detail could be helpful if someone else has this problem. The only time I needed to to use xrandr to shrink a screen was years ago for some DOS Hercules graphics application that was ported to unix but only supported a fixed screen size.
Do you just arrange windows to avoid the bad section of your screen? Does wlr-randr work with i3?