diff options
author | Dave Airlie <airlied@redhat.com> | 2010-04-16 13:58:54 +1000 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2010-04-16 13:58:54 +1000 |
commit | a69e749d0562887af6bd236c38802472e54640c4 (patch) | |
tree | 2b2ddc0be5e2c10bc64d96ceff997caf06c5a705 /src/radeon_kms.c | |
parent | 22a46dddd375b2b9399e12fdf168fa5292ff17a4 (diff) |
kms: add uevent support.
When we get a hotplug event from the kernel we should notify the client side to reconfigure displays.
based on work by ajax in intel driver.
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'src/radeon_kms.c')
-rw-r--r-- | src/radeon_kms.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/radeon_kms.c b/src/radeon_kms.c index 15e5e3fa..e33c9eff 100644 --- a/src/radeon_kms.c +++ b/src/radeon_kms.c @@ -601,6 +601,7 @@ static Bool RADEONCloseScreen_KMS(int scrnIndex, ScreenPtr pScreen) xf86DrvMsgVerb(pScrn->scrnIndex, X_INFO, RADEON_LOGLEVEL_DEBUG, "RADEONCloseScreen\n"); + drmmode_uevent_fini(pScrn, &info->drmmode); if (info->cs) radeon_cs_flush_indirect(pScrn); @@ -866,6 +867,7 @@ Bool RADEONScreenInit_KMS(int scrnIndex, ScreenPtr pScreen, info->accel_state->XInited3D = FALSE; info->accel_state->engineMode = EXA_ENGINEMODE_UNKNOWN; + drmmode_uevent_init(pScrn, &info->drmmode); return TRUE; } |