diff options
author | Nicolás Reynolds <fauno@endefensadelsl.org> | 2013-12-27 23:55:53 +0000 |
---|---|---|
committer | Nicolás Reynolds <fauno@endefensadelsl.org> | 2013-12-27 23:55:53 +0000 |
commit | 65eeff79fff8a1bfdf67ca51d147384f46f4d5c0 (patch) | |
tree | fbfdff322b28d9a3c37e6e31c94caf1d8e48dac1 /extra/mutter-wayland | |
parent | d53c44f055929b18d7d1b25f8367ee5836c435fc (diff) |
Fri Dec 27 23:54:04 UTC 2013
Diffstat (limited to 'extra/mutter-wayland')
-rw-r--r-- | extra/mutter-wayland/0001-monitor-expose-min-backlight-step.patch | 29 | ||||
-rw-r--r-- | extra/mutter-wayland/PKGBUILD | 13 |
2 files changed, 38 insertions, 4 deletions
diff --git a/extra/mutter-wayland/0001-monitor-expose-min-backlight-step.patch b/extra/mutter-wayland/0001-monitor-expose-min-backlight-step.patch new file mode 100644 index 000000000..0d6d7424f --- /dev/null +++ b/extra/mutter-wayland/0001-monitor-expose-min-backlight-step.patch @@ -0,0 +1,29 @@ +From 6b150b3e9f1d16e6c374e178107ab490a18346dd Mon Sep 17 00:00:00 2001 +From: Asad Mehmood <asad78611@googlemail.com> +Date: Thu, 17 Oct 2013 16:05:59 +0100 +Subject: [PATCH] monitor: expose min-backlight-step + +Expose min-backlight-step so that gnome-settings-daemon can +support backlights with less than 10 steps without mutter +normalizing the brightness back to its original value +--- + src/core/monitor.c | 3 +++ + 1 file changed, 3 insertions(+) + +diff --git a/src/core/monitor.c b/src/core/monitor.c +index 9ec0c2a..6d65f9e 100644 +--- a/src/core/monitor.c ++++ b/src/core/monitor.c +@@ -806,6 +806,9 @@ meta_monitor_manager_handle_get_resources (MetaDBusDisplayConfig *skeleton, + g_variant_new_take_string (make_display_name (manager, output))); + g_variant_builder_add (&properties, "{sv}", "backlight", + g_variant_new_int32 (output->backlight)); ++ g_variant_builder_add (&properties, "{sv}", "min-backlight-step", ++ g_variant_new_int32 ((output->backlight_max - output->backlight_min) ? ++ 100 / (output->backlight_max - output->backlight_min) : -1)); + g_variant_builder_add (&properties, "{sv}", "primary", + g_variant_new_boolean (output->is_primary)); + g_variant_builder_add (&properties, "{sv}", "presentation", +-- +1.8.4.1 + diff --git a/extra/mutter-wayland/PKGBUILD b/extra/mutter-wayland/PKGBUILD index 1547fc910..cb61970d4 100644 --- a/extra/mutter-wayland/PKGBUILD +++ b/extra/mutter-wayland/PKGBUILD @@ -1,9 +1,9 @@ -# $Id: PKGBUILD 198333 2013-10-30 14:13:43Z allan $ +# $Id: PKGBUILD 199788 2013-11-16 12:17:37Z heftig $ # Maintainer: Jan Alexander Steffens (heftig) <jan.steffens@gmail.com> pkgname=mutter-wayland pkgver=3.10.1 -pkgrel=1 +pkgrel=2 pkgdesc="A Wayland compositor for GNOME" arch=(i686 x86_64) license=(GPL) @@ -13,9 +13,11 @@ url="http://www.gnome.org" options=('!emptydirs') install=mutter-wayland.install source=(http://ftp.gnome.org/pub/gnome/sources/$pkgname/${pkgver:0:4}/$pkgname-$pkgver.tar.xz - mutter-wayland-3.10.0.1-logfile.patch) + mutter-wayland-3.10.0.1-logfile.patch + 0001-monitor-expose-min-backlight-step.patch) sha256sums=('bdb6bcc25791309256b09ec9aa7e0be311ef311778450aafccb86caf2753b6b4' - 'b79866b6b3fa6029b35ef2b5c5d0cb92886ec2ed0173f780c4d46a5b8d9a1644') + 'b79866b6b3fa6029b35ef2b5c5d0cb92886ec2ed0173f780c4d46a5b8d9a1644' + 'f1ef173d96ac27abdcf765972d2ac434f63bf4629b8bd51c177e8963d07f5eb7') prepare() { @@ -23,6 +25,9 @@ prepare() { # From Fedora: Don't try to redirect the logfile. It won't work. patch -Np1 -i ../mutter-wayland-3.10.0.1-logfile.patch + + # FS#37224 + patch -Np1 -i ../0001-monitor-expose-min-backlight-step.patch } build() { |