Skip to content

Instantly share code, notes, and snippets.

@jepler
Created May 4, 2020 15:28
Show Gist options
  • Save jepler/3304c863f042d6fe49287b519c4d8a1c to your computer and use it in GitHub Desktop.
Save jepler/3304c863f042d6fe49287b519c4d8a1c to your computer and use it in GitHub Desktop.
Description: Disable xfce manipulation of xrandr
This disables all(?) xfce manipulation of XRANDR settings. Instead,
the settings can be manipulated by commandline.
.
e.g.,
.
xrandr --output DisplayPort-0 --right-of HDMI-A-0 --fb 5120x1440
.
This is a heavy-handed approach but it fixes problems for me when
power-management causes monitors to "appear" and "disappear".
I only tested for a short time.
.
xfce4-settings (4.12.4-1.1) UNRELEASED; urgency=medium
.
* Non-maintainer upload.
* Disable setting screen size
Author: <jepler@unpythonic.net>
Last-Update: 2020-05-04
--- xfce4-settings-4.12.4.orig/xfsettingsd/displays.c
+++ xfce4-settings-4.12.4/xfsettingsd/displays.c
@@ -203,6 +203,11 @@ xfce_displays_helper_class_init (XfceDis
static void
xfce_displays_helper_init (XfceDisplaysHelper *helper)
{
+ g_critical ("RANDR disabled in source. Display settings won't be applied.",
+ gdk_display_get_name (helper->display));
+
+ return;
+
gint major = 0, minor = 0;
gint error_base, err;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment