Displaying 3 results from an estimated 3 matches for "udev_monitor".
2017 Mar 29
2
[PATCH xf86-video-nouveau] Do not register hotplug without RandR
...endif
+static bool has_randr(void)
+{
+#if HAS_DIXREGISTERPRIVATEKEY
+ return dixPrivateKeyRegistered(rrPrivKey);
+#else
+ return *rrPrivKey;
+#endif
+}
+
static void
drmmode_uevent_init(ScrnInfoPtr scrn)
{
@@ -1564,6 +1573,12 @@ drmmode_uevent_init(ScrnInfoPtr scrn)
struct udev *u;
struct udev_monitor *mon;
+ /* RandR will be disabled if Xinerama is active, and so generating
+ * RR hotplug events is then forbidden.
+ */
+ if (!has_randr())
+ return;
+
u = udev_new();
if (!u)
return;
--
2.11.0
2017 Mar 29
0
[PATCH xf86-video-nouveau] Do not register hotplug without RandR
...return dixPrivateKeyRegistered(rrPrivKey);
> +#else
> + return *rrPrivKey;
> +#endif
> +}
> +
> static void
> drmmode_uevent_init(ScrnInfoPtr scrn)
> {
> @@ -1564,6 +1573,12 @@ drmmode_uevent_init(ScrnInfoPtr scrn)
> struct udev *u;
> struct udev_monitor *mon;
>
> + /* RandR will be disabled if Xinerama is active, and so generating
> + * RR hotplug events is then forbidden.
> + */
> + if (!has_randr())
> + return;
> +
> u = udev_new();
> if (!u)
>...
2010 Aug 05
0
[PATCH] drmmode: Add backlight support
...in above table +
+ * '/' + "max_backlight" */
+#define BACKLIGHT_PATH_LEN 48
+/* Enough for 10 digits of backlight + '\n' + '\0' */
+#define BACKLIGHT_VALUE_LEN 12
+
typedef struct {
int fd;
uint32_t fb_id;
@@ -51,6 +68,7 @@ typedef struct {
struct udev_monitor *uevent_monitor;
InputHandlerProc uevent_handler;
#endif
+ Atom backlight_atom, backlight_deprecated_atom;
} drmmode_rec, *drmmode_ptr;
typedef struct {
@@ -81,6 +99,10 @@ typedef struct {
drmModePropertyBlobPtr edid_blob;
int num_props;
drmmode_prop_ptr props;
+ char...