Bug 253734

Summary: x11/cinnamon (4.8.6) unable to change screen resolution
Product: Ports & Packages Reporter: Usama Khan <usama.cit>
Component: Individual Port(s)Assignee: freebsd-gnome (Nobody) <gnome>
Status: Open ---    
Severity: Affects Many People CC: dufresnep, gnome, tara, vishwin
Priority: --- Flags: vishwin: maintainer-feedback+
Version: Latest   
Hardware: amd64   
OS: Any   

Description Usama Khan 2021-02-21 05:33:44 UTC
Unable to change screen resolution in Cinnamon Desktop (4.8.6) under VirtualBox.

Steps to reproduce:
1. Install FreeBSD in VirtualBox.
2. Install Cinnamon Desktop (4.8.6) and enable DUBS (and HALD) in "rc.conf".
3. Go to System Settings > Display, and try to change resolution.
Cinnamon Desktop will give following error:
GDBus.Error:org.gtk.GDBus.UnmappedGError.Quark._gnome_2drr_2derror_2dquark.Code2: could not set the configuration for CRTC 1310

PS: virtualbox-ose-additions is installed
PS: Further details at:
https://forums.freebsd.org/threads/cinnamon-desktop-cannot-change-resultion.78962/
Comment 1 Tara Stella 2023-02-20 13:46:03 UTC
I am affected by the very same problem under VMWare Fusion. 
Mate is working as expected.
Let me know if I can collect some logs for you.
Thanks
Comment 2 Paul Dufresne 2023-02-21 13:48:31 UTC
Under real hardware (UHD 630, i3-8100)... it mostly works for me.
Using "modesetting" X11 driver.

Seen a message at some point saying this was experimental.
Sometime the screen is set upside-down, if auto rotation is enabled.

Also found similar issues when Googling:
https://askubuntu.com/questions/557835/dual-screen-error-gdbus-errororg-gtk-gdbus-unmappedgerror-quark-gnome-2drr-2e

https://ubuntuforums.org/showthread.php?t=2096289&s=8411d383cd8f526c648d30830ca8c816&p=12491251#post12491251
Comment 3 Paul Dufresne 2023-02-21 13:55:09 UTC
Also https://www.reddit.com/r/linuxmint/comments/p6u78v/virtual_box_instance_broken_with_latest_updates/

https://bugs.launchpad.net/ubuntu/+source/xorg/+bug/1409166

https://davidleudolph.ch/en/author/admin/
which says: 
[drm:drm_crtc_helper_set_config [drm_kms_helper]] *ERROR* failed to set mode on [CRTC:29:crtc-0]
(Possible) Solution
Allocate more video memory to the guest system in the VirtualBox settings.
Comment 4 Charlie Li freebsd_committer freebsd_triage 2023-02-25 19:32:57 UTC
See if Cinnamon 5.4 works any better. In review D37917, though lang/cjs may fail to compile in -CURRENT with the new clang 15.
Comment 5 Charlie Li freebsd_committer freebsd_triage 2023-02-25 20:54:16 UTC
…and committed, with lang/cjs build fixed.