Closed WolleTD closed 2 years ago
Ok, it's a little more complicated (isn't it always?). I got around hacking into the code and apparently, the monitor is missing the is-preferred
property entirely and is-current
only when 1920x1080@144 is selected – which it was.
So after I plugged something like here into get_scaled_geometry
, I was able to open the display panel, but when I selected 144Hz, the configuration wasn't applied and the monitor shown as inactive again.
After selecting 60Hz, I finally got my desktop back in a working state and 1920x1080@60 has is-current
set. But still no is-preferred
anywhere.
According to xrandr
, both 60Hz and 144Hz are preferred, so probably it's the same issue for both properties. But if I'm correct, that issue isn't in this repository.
Hi, can you paste the output (preferably in a file) from the following commands:
gdbus call --session --dest org.cinnamon.Muffin.DisplayConfig --object-path /org/cinnamon/Muffin/DisplayConfig --method org.cinnamon.Muffin.DisplayConfig.GetCurrentState
and
gdbus call --session --dest org.cinnamon.Muffin.DisplayConfig --object-path /org/cinnamon/Muffin/DisplayConfig --method org.cinnamon.Muffin.DisplayConfig.GetResources
Maybe I can match what's missing to where this data is being gathered in muffin.
Issue
I just updated from cinnamon 5.2 to cinnamon 5.4 and my monitor configuration broke. Trying to open the display settings results in a segmentation fault. I tracked that down to this line: https://github.com/linuxmint/cinnamon-control-center/blob/52220ec0c7cad82a6f52d711fa7dc39eb19067ee/panels/display/cc-display-arrangement.c#L116
where
cc_display_monitor_get_preferred_mode (output)
returns null becausepreferred_mode
isn't set on that specificCcDisplayMonitorDBus
struct.Debug output (the scaled geometry line was added by me, right before above mentioned L116):
I also printed monitor names to addresses and ran this multiple times, it seems the AOC 24G2W1G4 receives no preferred mode for some reason:
Were "We are actually here" was printed in
cc_display_monitor_get_preferred_mode_dbus
.Steps to reproduce
cinnamon-settings display
in the terminal yields a segmentation faultExpected behaviour
No segmentation fault and working display settings.
Other information
While
xrandr
reports the AOC monitor as primary, cinnamon puts the taskbar on the Dell. When trying to maximize a window on the AOC, it's move to the other screen. Placing unmaximized windows there works.