[Ubuntu-x-swat] [Bug 1501941] Re: Screen turned off after X server exits
** Changed in: xserver-xorg-video-intel Status: Incomplete => Invalid -- You received this bug notification because you are a member of Ubuntu-X, which is subscribed to xserver-xorg-video-intel in Ubuntu. https://bugs.launchpad.net/bugs/1501941 Title: Screen turned off after X server exits To manage notifications about this bug go to: https://bugs.launchpad.net/xserver-xorg-video-intel/+bug/1501941/+subscriptions ___ Mailing list: https://launchpad.net/~ubuntu-x-swat Post to : ubuntu-x-swat@lists.launchpad.net Unsubscribe : https://launchpad.net/~ubuntu-x-swat More help : https://help.launchpad.net/ListHelp
[Ubuntu-x-swat] [Bug 1501941] Re: Screen turned off after X server exits
** Changed in: xserver-xorg-video-intel Status: Confirmed => Incomplete -- You received this bug notification because you are a member of Ubuntu-X, which is subscribed to xserver-xorg-video-intel in Ubuntu. https://bugs.launchpad.net/bugs/1501941 Title: Screen turned off after X server exits To manage notifications about this bug go to: https://bugs.launchpad.net/xserver-xorg-video-intel/+bug/1501941/+subscriptions ___ Mailing list: https://launchpad.net/~ubuntu-x-swat Post to : ubuntu-x-swat@lists.launchpad.net Unsubscribe : https://launchpad.net/~ubuntu-x-swat More help : https://help.launchpad.net/ListHelp
[Ubuntu-x-swat] [Bug 1501941] Re: Screen turned off after X server exits
** Bug watch added: freedesktop.org Bugzilla #92457 https://bugs.freedesktop.org/show_bug.cgi?id=92457 ** Also affects: xserver-xorg-video-intel via https://bugs.freedesktop.org/show_bug.cgi?id=92457 Importance: Unknown Status: Unknown -- You received this bug notification because you are a member of Ubuntu-X, which is subscribed to xserver-xorg-video-intel in Ubuntu. https://bugs.launchpad.net/bugs/1501941 Title: Screen turned off after X server exits To manage notifications about this bug go to: https://bugs.launchpad.net/xserver-xorg-video-intel/+bug/1501941/+subscriptions ___ Mailing list: https://launchpad.net/~ubuntu-x-swat Post to : ubuntu-x-swat@lists.launchpad.net Unsubscribe : https://launchpad.net/~ubuntu-x-swat More help : https://help.launchpad.net/ListHelp
[Ubuntu-x-swat] [Bug 1501941] Re: Screen turned off after X server exits
Launchpad has imported 2 comments from the remote bug at https://bugs.freedesktop.org/show_bug.cgi?id=92457. If you reply to an imported comment from within Launchpad, your comment will be sent to the remote bug automatically. Read more about Launchpad's inter-bugtracker facilities at https://help.launchpad.net/InterBugTracking. On 2015-10-14T09:40:09+00:00 Robert Ancell wrote: On Intel systems when the X server exits the display is turned off and remains off. This is triggered when using LightDM and switching to a greeter (starts a second X server) then authenticating in that greeter and returning to the first X server (the greeter X server is stopped). The cause seems to be a DPMS change from bug 90179 (revision 7d9a74622e5a936e4860fcef8358619bf59adae8) that causes the driver to turn off the output if DPMS is not working. Tracked in Launchpad: https://bugs.launchpad.net/bugs/1501941 Reply at: https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-video- intel/+bug/1501941/comments/10 On 2015-10-14T09:40:40+00:00 Robert Ancell wrote: We are currently working around this issue in Ubuntu 15.04 by reverting that one commmit. Reply at: https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-video- intel/+bug/1501941/comments/11 ** Changed in: xserver-xorg-video-intel Status: Unknown => Confirmed ** Changed in: xserver-xorg-video-intel Importance: Unknown => Medium -- You received this bug notification because you are a member of Ubuntu-X, which is subscribed to xserver-xorg-video-intel in Ubuntu. https://bugs.launchpad.net/bugs/1501941 Title: Screen turned off after X server exits To manage notifications about this bug go to: https://bugs.launchpad.net/xserver-xorg-video-intel/+bug/1501941/+subscriptions ___ Mailing list: https://launchpad.net/~ubuntu-x-swat Post to : ubuntu-x-swat@lists.launchpad.net Unsubscribe : https://launchpad.net/~ubuntu-x-swat More help : https://help.launchpad.net/ListHelp
[Ubuntu-x-swat] [Bug 1501941] Re: Screen turned off after X server exits
I tried the patched version from the PPA and it fixes the problem for me. No more black screen after restarting lightdm -- You received this bug notification because you are a member of Ubuntu-X, which is subscribed to xserver-xorg-video-intel in Ubuntu. https://bugs.launchpad.net/bugs/1501941 Title: Screen turned off after X server exits To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-video-intel/+bug/1501941/+subscriptions ___ Mailing list: https://launchpad.net/~ubuntu-x-swat Post to : ubuntu-x-swat@lists.launchpad.net Unsubscribe : https://launchpad.net/~ubuntu-x-swat More help : https://help.launchpad.net/ListHelp
[Ubuntu-x-swat] [Bug 1501941] Re: Screen turned off after X server exits
I've uploaded this change to wily. There is a possibility that there might be a regression for some users with DPMS but I think that is less severe than the effect on those who are left with the screen off. We'll look at doing an update if upstream provides a fix. ** Changed in: xserver-xorg-video-intel (Ubuntu) Status: Triaged => Fix Committed -- You received this bug notification because you are a member of Ubuntu-X, which is subscribed to xserver-xorg-video-intel in Ubuntu. https://bugs.launchpad.net/bugs/1501941 Title: Screen turned off after X server exits To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-video-intel/+bug/1501941/+subscriptions ___ Mailing list: https://launchpad.net/~ubuntu-x-swat Post to : ubuntu-x-swat@lists.launchpad.net Unsubscribe : https://launchpad.net/~ubuntu-x-swat More help : https://help.launchpad.net/ListHelp
[Ubuntu-x-swat] [Bug 1501941] Re: Screen turned off after X server exits
This bug was fixed in the package xserver-xorg-video-intel - 2:2.99.917+git20150808-0ubuntu3 --- xserver-xorg-video-intel (2:2.99.917+git20150808-0ubuntu3) wily; urgency=medium * debian/patches/revert-dpms-fix.patch: - Revert a DPMS change that causes the screen to turn off when returning from a greeter (LP: #1501941) -- Robert AncellTue, 06 Oct 2015 14:25:00 +1300 ** Changed in: xserver-xorg-video-intel (Ubuntu) Status: Fix Committed => Fix Released -- You received this bug notification because you are a member of Ubuntu-X, which is subscribed to xserver-xorg-video-intel in Ubuntu. https://bugs.launchpad.net/bugs/1501941 Title: Screen turned off after X server exits To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-video-intel/+bug/1501941/+subscriptions ___ Mailing list: https://launchpad.net/~ubuntu-x-swat Post to : ubuntu-x-swat@lists.launchpad.net Unsubscribe : https://launchpad.net/~ubuntu-x-swat More help : https://help.launchpad.net/ListHelp
[Ubuntu-x-swat] [Bug 1501941] Re: Screen turned off after X server exits
Confirmed, this is the exact problem I'm having here. -- You received this bug notification because you are a member of Ubuntu-X, which is subscribed to xserver-xorg-video-intel in Ubuntu. https://bugs.launchpad.net/bugs/1501941 Title: Screen turned off after X server exits To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-video-intel/+bug/1501941/+subscriptions ___ Mailing list: https://launchpad.net/~ubuntu-x-swat Post to : ubuntu-x-swat@lists.launchpad.net Unsubscribe : https://launchpad.net/~ubuntu-x-swat More help : https://help.launchpad.net/ListHelp
[Ubuntu-x-swat] [Bug 1501941] Re: Screen turned off after X server exits
I am bisecting the problem... -- You received this bug notification because you are a member of Ubuntu-X, which is subscribed to xserver-xorg-video-intel in Ubuntu. https://bugs.launchpad.net/bugs/1501941 Title: Screen turned off after X server exits To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-video-intel/+bug/1501941/+subscriptions ___ Mailing list: https://launchpad.net/~ubuntu-x-swat Post to : ubuntu-x-swat@lists.launchpad.net Unsubscribe : https://launchpad.net/~ubuntu-x-swat More help : https://help.launchpad.net/ListHelp
[Ubuntu-x-swat] [Bug 1501941] Re: Screen turned off after X server exits
I first noticed this occuring sometime around the end of August. -- You received this bug notification because you are a member of Ubuntu-X, which is subscribed to xserver-xorg-video-intel in Ubuntu. https://bugs.launchpad.net/bugs/1501941 Title: Screen turned off after X server exits To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-video-intel/+bug/1501941/+subscriptions ___ Mailing list: https://launchpad.net/~ubuntu-x-swat Post to : ubuntu-x-swat@lists.launchpad.net Unsubscribe : https://launchpad.net/~ubuntu-x-swat More help : https://help.launchpad.net/ListHelp
[Ubuntu-x-swat] [Bug 1501941] Re: Screen turned off after X server exits
The issue is in git master and bisecting shows it to be this commit: commit 7d9a74622e5a936e4860fcef8358619bf59adae8 Author: Chris WilsonDate: Mon Jun 15 14:16:34 2015 +0100 sna: Be robust in handling DPMS failures If we fail to turn off an output via DPMS, disable the entire CRTC in order to blank the output and save the screeen/power. Reported-by: Lukas Hejtmanek References: https://bugs.freedesktop.org/show_bug.cgi?id=90179 Signed-off-by: Chris Wilson diff --git a/src/sna/sna_display.c b/src/sna/sna_display.c index f58eb8d..efc5fc9 100644 --- a/src/sna/sna_display.c +++ b/src/sna/sna_display.c @@ -213,7 +213,7 @@ struct sna_output { int panel_vdisplay; uint32_t dpms_id; - int dpms_mode; + uint8_t dpms_mode; struct backlight backlight; int backlight_active_level; @@ -251,6 +251,7 @@ enum { /* XXX copied from hw/xfree86/modes/xf86Crtc.c */ OPTION_DEFAULT_MODES, }; +static void __sna_output_dpms(xf86OutputPtr output, int dpms, int fixup); static void sna_crtc_disable_cursor(struct sna *sna, struct sna_crtc *crtc); static bool is_zaphod(ScrnInfoPtr scrn) @@ -936,7 +937,7 @@ sna_crtc_force_outputs_on(xf86CrtcPtr crtc) if (output->crtc != crtc) continue; - output->funcs->dpms(output, DPMSModeOn); + __sna_output_dpms(output, DPMSModeOn, false); } #if XF86_CRTC_VERSION >= 3 @@ -966,7 +967,7 @@ sna_crtc_force_outputs_off(xf86CrtcPtr crtc) if (output->crtc != crtc) continue; - output->funcs->dpms(output, DPMSModeOff); + __sna_output_dpms(output, DPMSModeOff, false); } } @@ -1099,7 +1100,7 @@ sna_crtc_apply(xf86CrtcPtr crtc) * and we lose track of the user settings. */ if (output->crtc == NULL) - output->funcs->dpms(output, DPMSModeOff); + __sna_output_dpms(output, DPMSModeOff, false); if (output->crtc != crtc) continue; @@ -3580,7 +3581,7 @@ sna_output_destroy(xf86OutputPtr output) } static void -sna_output_dpms(xf86OutputPtr output, int dpms) +__sna_output_dpms(xf86OutputPtr output, int dpms, int fixup) { struct sna *sna = to_sna(output->scrn); struct sna_output *sna_output = output->driver_private; @@ -3607,8 +3608,9 @@ sna_output_dpms(xf86OutputPtr output, int dpms) if (sna_output->backlight.iface && dpms != DPMSModeOn) { if (old_dpms == DPMSModeOn) { sna_output->backlight_active_level = sna_output_backlight_get(output); - DBG(("%s: saving current backlight %d\n", -__FUNCTION__, sna_output->backlight_active_level)); + DBG(("%s(%s:%d): saving current backlight %d\n", +__FUNCTION__, output->name, sna_output->id, +sna_output->backlight_active_level)); } sna_output->dpms_mode = dpms; sna_output_backlight_off(sna_output); @@ -3618,18 +3620,31 @@ sna_output_dpms(xf86OutputPtr output, int dpms) drmModeConnectorSetProperty(sna->kgem.fd, sna_output->id, sna_output->dpms_id, - dpms)) - dpms = old_dpms; + dpms)) { + DBG(("%s(%s:%d): failed to set DPMS to %d (fixup? %d)\n", +__FUNCTION__, output->name, sna_output->id, dpms, fixup)); + if (fixup) { + sna_crtc_disable(output->crtc, false); + return; + } + } if (sna_output->backlight.iface && dpms == DPMSModeOn) { - DBG(("%s: restoring previous backlight %d\n", -__FUNCTION__, sna_output->backlight_active_level)); + DBG(("%s(%d:%d: restoring previous backlight %d\n", +__FUNCTION__, output->name, sna_output->id, +sna_output->backlight_active_level)); sna_output_backlight_on(sna_output); } sna_output->dpms_mode = dpms; } +static void +sna_output_dpms(xf86OutputPtr output, int dpms) +{ + __sna_output_dpms(output, dpms, true); +} + static bool sna_property_ignore(drmModePropertyPtr prop) { @@ -4438,10 +4453,8 @@ reset: sna_output->dpms_mode = sna_output->prop_values[i]; DBG(("%s: found 'DPMS' (idx=%d, id=%d), initial value=%d\n", __FUNCTION__, i, sna_output->dpms_id, sna_output->dpms_mode)); - } else { - sna_output->dpms_id = -1; + } else
[Ubuntu-x-swat] [Bug 1501941] Re: Screen turned off after X server exits
** Changed in: xserver-xorg-video-intel (Ubuntu) Status: New => Triaged ** Changed in: xserver-xorg-video-intel (Ubuntu) Importance: Undecided => High ** Changed in: xserver-xorg-video-intel (Ubuntu) Assignee: (unassigned) => Robert Ancell (robert-ancell) -- You received this bug notification because you are a member of Ubuntu-X, which is subscribed to xserver-xorg-video-intel in Ubuntu. https://bugs.launchpad.net/bugs/1501941 Title: Screen turned off after X server exits To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-video-intel/+bug/1501941/+subscriptions ___ Mailing list: https://launchpad.net/~ubuntu-x-swat Post to : ubuntu-x-swat@lists.launchpad.net Unsubscribe : https://launchpad.net/~ubuntu-x-swat More help : https://help.launchpad.net/ListHelp
[Ubuntu-x-swat] [Bug 1501941] Re: Screen turned off after X server exits
I've put a patched version of the Intel driver in ppa:robert-ancell/xorg [1]. I think the change might cause a DPMS regression as described in the upstream bug so it probably should get some more testing before uploading. [1] https://launchpad.net/~robert-ancell/+archive/ubuntu/xorg -- You received this bug notification because you are a member of Ubuntu-X, which is subscribed to xserver-xorg-video-intel in Ubuntu. https://bugs.launchpad.net/bugs/1501941 Title: Screen turned off after X server exits To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-video-intel/+bug/1501941/+subscriptions ___ Mailing list: https://launchpad.net/~ubuntu-x-swat Post to : ubuntu-x-swat@lists.launchpad.net Unsubscribe : https://launchpad.net/~ubuntu-x-swat More help : https://help.launchpad.net/ListHelp
[Ubuntu-x-swat] [Bug 1501941] Re: Screen turned off after X server exits
https://bugs.freedesktop.org/show_bug.cgi?id=90179 was the reason for this commit. -- You received this bug notification because you are a member of Ubuntu-X, which is subscribed to xserver-xorg-video-intel in Ubuntu. https://bugs.launchpad.net/bugs/1501941 Title: Screen turned off after X server exits To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-video-intel/+bug/1501941/+subscriptions ___ Mailing list: https://launchpad.net/~ubuntu-x-swat Post to : ubuntu-x-swat@lists.launchpad.net Unsubscribe : https://launchpad.net/~ubuntu-x-swat More help : https://help.launchpad.net/ListHelp