summaryrefslogtreecommitdiff
path: root/src/linux/up-backend.c
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2014-05-07 09:27:24 +0200
committerBastien Nocera <hadess@hadess.net>2014-05-07 09:27:24 +0200
commit135339acc197f0d6a92b71c85048c5a7cb6ce9d6 (patch)
treea7fcbd66ffc496fb480c2dc4bcab29707a51dcdc /src/linux/up-backend.c
parentdbf7eb7e557674a9b888a088f1cae4f36b77e14d (diff)
downloadupower-135339acc197f0d6a92b71c85048c5a7cb6ce9d6.tar.gz
daemon: Deprecate "IsDocked" property
The IsDocked property has been incorrect for a number of laptops for a while, as it thought that laptops with hybrid graphics cards were always docked. The alternative would have been to use the platform/dock_station devices, but those are only exported for ACPI docking stations. Instead, whether an external display is attached (which isn't really docking) should be checked in the same place where the policy depending on the value should be applied, such as gnome-settings-daemon. https://bugs.freedesktop.org/show_bug.cgi?id=36818
Diffstat (limited to 'src/linux/up-backend.c')
-rw-r--r--src/linux/up-backend.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/linux/up-backend.c b/src/linux/up-backend.c
index bfecc8e..5e2b846 100644
--- a/src/linux/up-backend.c
+++ b/src/linux/up-backend.c
@@ -40,7 +40,6 @@
#include "up-device-wup.h"
#include "up-device-hid.h"
#include "up-input.h"
-#include "up-dock.h"
#include "up-config.h"
#ifdef HAVE_IDEVICE
#include "up-device-idevice.h"
@@ -65,7 +64,6 @@ struct UpBackendPrivate
UpDeviceList *device_list;
GUdevClient *gudev_client;
UpDeviceList *managed_devices;
- UpDock *dock;
UpConfig *config;
DBusConnection *connection;
GDBusProxy *logind_proxy;
@@ -316,7 +314,6 @@ up_backend_coldplug (UpBackend *backend, UpDaemon *daemon)
GList *devices;
GList *l;
guint i;
- gboolean ret;
const gchar *subsystems_wup[] = {"power_supply", "usb", "usbmisc", "tty", "input", "hid", NULL};
const gchar *subsystems[] = {"power_supply", "usb", "usbmisc", "input", "hid", NULL};
@@ -341,15 +338,6 @@ up_backend_coldplug (UpBackend *backend, UpDaemon *daemon)
g_list_free (devices);
}
- /* add dock update object */
- backend->priv->dock = up_dock_new ();
- ret = up_config_get_boolean (backend->priv->config, "PollDockDevices");
- g_debug ("Polling docks: %s", ret ? "YES" : "NO");
- up_dock_set_should_poll (backend->priv->dock, ret);
- ret = up_dock_coldplug (backend->priv->dock, daemon);
- if (!ret)
- g_warning ("failed to coldplug dock devices");
-
return TRUE;
}