[Desktop-packages] [Bug 1577170] Re: [solved] screen cannot be turned back on after being switched off after some time of inactivity
I just attached the two gdb backtraces from when it hangs. I must add that during the "make" process of the newly patched radeon driver, I get this warning : radeon_drm_queue.c: In function ‘radeon_drm_queue_alloc’: radeon_drm_queue.c:95:9: warning: return makes integer from pointer without a cast [-Wint-conversion] return NULL; Maybe that explains why the monitor never wakes up after being turned off with the newly patched driver ? -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to xserver-xorg-video-ati in Ubuntu. https://bugs.launchpad.net/bugs/1577170 Title: [solved] screen cannot be turned back on after being switched off after some time of inactivity Status in xserver-xorg-driver-ati: New Status in xserver-xorg-video-ati package in Ubuntu: New Bug description: I did a fresh install of ubuntu 16.04 on my old dell computer in which there is an ati radeon X1300 graphics card. Whenever the screen turns off due to inactivity, it cannot be woken up by moving the mouse or by hitting a key. When I kill the Xorg process via ssh with another computer, the screen then comes to life again and I can log back in. When I remove the graphic card from the computer and use the built in graphic card instead, the bug doesn't occur. So I guess it is related to the radeon driver. Oddly enough, there is no problem waking the screen when I type "xset -display :0.0 dpms force off" in a terminal. Moreover typing gnome- screensaver-command -a in a terminal turns my screen off and after typing this line, the screen can be woken up by moving the mouse or by hitting a key. I'm confused. To manage notifications about this bug go to: https://bugs.launchpad.net/xserver-xorg-driver-ati/+bug/1577170/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : desktop-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp
[Desktop-packages] [Bug 1577170] Re: [solved] screen cannot be turned back on after being switched off after some time of inactivity
** Attachment added: "gdb output with "old" patch and 2 screens on" https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-video-ati/+bug/1577170/+attachment/4676221/+files/gdb_old_patch_2_screens.txt -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to xserver-xorg-video-ati in Ubuntu. https://bugs.launchpad.net/bugs/1577170 Title: [solved] screen cannot be turned back on after being switched off after some time of inactivity Status in xserver-xorg-driver-ati: New Status in xserver-xorg-video-ati package in Ubuntu: New Bug description: I did a fresh install of ubuntu 16.04 on my old dell computer in which there is an ati radeon X1300 graphics card. Whenever the screen turns off due to inactivity, it cannot be woken up by moving the mouse or by hitting a key. When I kill the Xorg process via ssh with another computer, the screen then comes to life again and I can log back in. When I remove the graphic card from the computer and use the built in graphic card instead, the bug doesn't occur. So I guess it is related to the radeon driver. Oddly enough, there is no problem waking the screen when I type "xset -display :0.0 dpms force off" in a terminal. Moreover typing gnome- screensaver-command -a in a terminal turns my screen off and after typing this line, the screen can be woken up by moving the mouse or by hitting a key. I'm confused. To manage notifications about this bug go to: https://bugs.launchpad.net/xserver-xorg-driver-ati/+bug/1577170/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : desktop-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp
[Desktop-packages] [Bug 1577170] Re: [solved] screen cannot be turned back on after being switched off after some time of inactivity
** Attachment added: "gdb output with "new" patch and 1 screen on" https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-video-ati/+bug/1577170/+attachment/4676222/+files/gdb_new_patch_1_screen.txt -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to xserver-xorg-video-ati in Ubuntu. https://bugs.launchpad.net/bugs/1577170 Title: [solved] screen cannot be turned back on after being switched off after some time of inactivity Status in xserver-xorg-driver-ati: New Status in xserver-xorg-video-ati package in Ubuntu: New Bug description: I did a fresh install of ubuntu 16.04 on my old dell computer in which there is an ati radeon X1300 graphics card. Whenever the screen turns off due to inactivity, it cannot be woken up by moving the mouse or by hitting a key. When I kill the Xorg process via ssh with another computer, the screen then comes to life again and I can log back in. When I remove the graphic card from the computer and use the built in graphic card instead, the bug doesn't occur. So I guess it is related to the radeon driver. Oddly enough, there is no problem waking the screen when I type "xset -display :0.0 dpms force off" in a terminal. Moreover typing gnome- screensaver-command -a in a terminal turns my screen off and after typing this line, the screen can be woken up by moving the mouse or by hitting a key. I'm confused. To manage notifications about this bug go to: https://bugs.launchpad.net/xserver-xorg-driver-ati/+bug/1577170/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : desktop-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp
[Desktop-packages] [Bug 1577170] Re: [solved] screen cannot be turned back on after being switched off after some time of inactivity
Can you get new gdb backtraces from when it hangs with the old fix with two monitors and when it hangs with the new fix? -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to xserver-xorg-video-ati in Ubuntu. https://bugs.launchpad.net/bugs/1577170 Title: [solved] screen cannot be turned back on after being switched off after some time of inactivity Status in xserver-xorg-driver-ati: New Status in xserver-xorg-video-ati package in Ubuntu: New Bug description: I did a fresh install of ubuntu 16.04 on my old dell computer in which there is an ati radeon X1300 graphics card. Whenever the screen turns off due to inactivity, it cannot be woken up by moving the mouse or by hitting a key. When I kill the Xorg process via ssh with another computer, the screen then comes to life again and I can log back in. When I remove the graphic card from the computer and use the built in graphic card instead, the bug doesn't occur. So I guess it is related to the radeon driver. Oddly enough, there is no problem waking the screen when I type "xset -display :0.0 dpms force off" in a terminal. Moreover typing gnome- screensaver-command -a in a terminal turns my screen off and after typing this line, the screen can be woken up by moving the mouse or by hitting a key. I'm confused. To manage notifications about this bug go to: https://bugs.launchpad.net/xserver-xorg-driver-ati/+bug/1577170/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : desktop-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp
[Desktop-packages] [Bug 1577170] Re: [solved] screen cannot be turned back on after being switched off after some time of inactivity
What I have noticed is that when two screens are plugged in the graphic card, and the desktop appears on both screen, and when I then choose to only use the dvi-connected screen via the "display" menu in ubuntu, the vga-connected screen goes off, and the dvi-connected screen only show the mouse on a black screen. To see the desktop again, I have to switch to tty1 (ctrl alt F1) and then ctrl alt F7. I don't know if this could be related to the problem. -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to xserver-xorg-video-ati in Ubuntu. https://bugs.launchpad.net/bugs/1577170 Title: [solved] screen cannot be turned back on after being switched off after some time of inactivity Status in xserver-xorg-driver-ati: New Status in xserver-xorg-video-ati package in Ubuntu: New Bug description: I did a fresh install of ubuntu 16.04 on my old dell computer in which there is an ati radeon X1300 graphics card. Whenever the screen turns off due to inactivity, it cannot be woken up by moving the mouse or by hitting a key. When I kill the Xorg process via ssh with another computer, the screen then comes to life again and I can log back in. When I remove the graphic card from the computer and use the built in graphic card instead, the bug doesn't occur. So I guess it is related to the radeon driver. Oddly enough, there is no problem waking the screen when I type "xset -display :0.0 dpms force off" in a terminal. Moreover typing gnome- screensaver-command -a in a terminal turns my screen off and after typing this line, the screen can be woken up by moving the mouse or by hitting a key. I'm confused. To manage notifications about this bug go to: https://bugs.launchpad.net/xserver-xorg-driver-ati/+bug/1577170/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : desktop-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp
[Desktop-packages] [Bug 1577170] Re: [solved] screen cannot be turned back on after being switched off after some time of inactivity
Thank you Michel for this new fix. Unfortunately, this one does not work on my computer at all. With the previous patch, the problem seemed to have been fixed, but wasn't completely fixed as my computer couldn't be woken up when two screens were used on my radeon card (it works so far with only one screen connected). With the newest patch, even when only one screen is connected to the graphics card, the computer cannot be woken up anymore after the screen goes to sleep. Are those patches so different ? -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to xserver-xorg-video-ati in Ubuntu. https://bugs.launchpad.net/bugs/1577170 Title: [solved] screen cannot be turned back on after being switched off after some time of inactivity Status in xserver-xorg-driver-ati: New Status in xserver-xorg-video-ati package in Ubuntu: New Bug description: I did a fresh install of ubuntu 16.04 on my old dell computer in which there is an ati radeon X1300 graphics card. Whenever the screen turns off due to inactivity, it cannot be woken up by moving the mouse or by hitting a key. When I kill the Xorg process via ssh with another computer, the screen then comes to life again and I can log back in. When I remove the graphic card from the computer and use the built in graphic card instead, the bug doesn't occur. So I guess it is related to the radeon driver. Oddly enough, there is no problem waking the screen when I type "xset -display :0.0 dpms force off" in a terminal. Moreover typing gnome- screensaver-command -a in a terminal turns my screen off and after typing this line, the screen can be woken up by moving the mouse or by hitting a key. I'm confused. To manage notifications about this bug go to: https://bugs.launchpad.net/xserver-xorg-driver-ati/+bug/1577170/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : desktop-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp
[Desktop-packages] [Bug 1577170] Re: [solved] screen cannot be turned back on after being switched off after some time of inactivity
The attachment "Wait for pending flips to complete before turning off a CRTC" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team. [This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.] ** Tags added: patch -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to xserver-xorg-video-ati in Ubuntu. https://bugs.launchpad.net/bugs/1577170 Title: [solved] screen cannot be turned back on after being switched off after some time of inactivity Status in xserver-xorg-driver-ati: New Status in xserver-xorg-video-ati package in Ubuntu: New Bug description: I did a fresh install of ubuntu 16.04 on my old dell computer in which there is an ati radeon X1300 graphics card. Whenever the screen turns off due to inactivity, it cannot be woken up by moving the mouse or by hitting a key. When I kill the Xorg process via ssh with another computer, the screen then comes to life again and I can log back in. When I remove the graphic card from the computer and use the built in graphic card instead, the bug doesn't occur. So I guess it is related to the radeon driver. Oddly enough, there is no problem waking the screen when I type "xset -display :0.0 dpms force off" in a terminal. Moreover typing gnome- screensaver-command -a in a terminal turns my screen off and after typing this line, the screen can be woken up by moving the mouse or by hitting a key. I'm confused. To manage notifications about this bug go to: https://bugs.launchpad.net/xserver-xorg-driver-ati/+bug/1577170/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : desktop-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp
[Desktop-packages] [Bug 1577170] Re: [solved] screen cannot be turned back on after being switched off after some time of inactivity
This should be a better fix. Does it fix the problem? ** Also affects: xserver-xorg-driver-ati Importance: Undecided Status: New ** Patch added: "Wait for pending flips to complete before turning off a CRTC" https://bugs.launchpad.net/xserver-xorg-driver-ati/+bug/1577170/+attachment/4669987/+files/0001-Wait-for-pending-flips-to-complete-before-turning-of.patch -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to xserver-xorg-video-ati in Ubuntu. https://bugs.launchpad.net/bugs/1577170 Title: [solved] screen cannot be turned back on after being switched off after some time of inactivity Status in xserver-xorg-driver-ati: New Status in xserver-xorg-video-ati package in Ubuntu: New Bug description: I did a fresh install of ubuntu 16.04 on my old dell computer in which there is an ati radeon X1300 graphics card. Whenever the screen turns off due to inactivity, it cannot be woken up by moving the mouse or by hitting a key. When I kill the Xorg process via ssh with another computer, the screen then comes to life again and I can log back in. When I remove the graphic card from the computer and use the built in graphic card instead, the bug doesn't occur. So I guess it is related to the radeon driver. Oddly enough, there is no problem waking the screen when I type "xset -display :0.0 dpms force off" in a terminal. Moreover typing gnome- screensaver-command -a in a terminal turns my screen off and after typing this line, the screen can be woken up by moving the mouse or by hitting a key. I'm confused. To manage notifications about this bug go to: https://bugs.launchpad.net/xserver-xorg-driver-ati/+bug/1577170/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : desktop-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp
[Desktop-packages] [Bug 1577170] Re: [solved] screen cannot be turned back on after being switched off after some time of inactivity
Strange, as with the patched driver, the problem reappeared today. -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to xserver-xorg-video-ati in Ubuntu. https://bugs.launchpad.net/bugs/1577170 Title: [solved] screen cannot be turned back on after being switched off after some time of inactivity Status in xserver-xorg-video-ati package in Ubuntu: New Bug description: I did a fresh install of ubuntu 16.04 on my old dell computer in which there is an ati radeon X1300 graphics card. Whenever the screen turns off due to inactivity, it cannot be woken up by moving the mouse or by hitting a key. When I kill the Xorg process via ssh with another computer, the screen then comes to life again and I can log back in. When I remove the graphic card from the computer and use the built in graphic card instead, the bug doesn't occur. So I guess it is related to the radeon driver. Oddly enough, there is no problem waking the screen when I type "xset -display :0.0 dpms force off" in a terminal. Moreover typing gnome- screensaver-command -a in a terminal turns my screen off and after typing this line, the screen can be woken up by moving the mouse or by hitting a key. I'm confused. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-video-ati/+bug/1577170/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : desktop-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp
[Desktop-packages] [Bug 1577170] Re: [solved] screen cannot be turned back on after being switched off after some time of inactivity
this is the patch in the link above: diff --git a/src/drmmode_display.c b/src/drmmode_display.c index 4c66ca7..a848345 100644 --- a/src/drmmode_display.c +++ b/src/drmmode_display.c @@ -288,6 +288,7 @@ static void drmmode_do_crtc_dpms(xf86CrtcPtr crtc, int mode) { drmmode_crtc_private_ptr drmmode_crtc = crtc->driver_private; + drmmode_ptr drmmode = drmmode_crtc->drmmode; ScrnInfoPtr scrn = crtc->scrn; RADEONInfoPtr info = RADEONPTR(scrn); CARD64 ust; @@ -296,6 +297,11 @@ drmmode_do_crtc_dpms(xf86CrtcPtr crtc, int mode) if (drmmode_crtc->dpms_mode == DPMSModeOn && mode != DPMSModeOn) { drmVBlank vbl; + /* Wait for any pending flip to finish */ + do {} while (drmmode_crtc->flip_pending && +drmHandleEvent(drmmode->fd, + &drmmode->event_context) > 0); + /* * On->Off transition: record the last vblank time, * sequence number and frame period. -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to xserver-xorg-video-ati in Ubuntu. https://bugs.launchpad.net/bugs/1577170 Title: [solved] screen cannot be turned back on after being switched off after some time of inactivity Status in xserver-xorg-video-ati package in Ubuntu: New Bug description: I did a fresh install of ubuntu 16.04 on my old dell computer in which there is an ati radeon X1300 graphics card. Whenever the screen turns off due to inactivity, it cannot be woken up by moving the mouse or by hitting a key. When I kill the Xorg process via ssh with another computer, the screen then comes to life again and I can log back in. When I remove the graphic card from the computer and use the built in graphic card instead, the bug doesn't occur. So I guess it is related to the radeon driver. Oddly enough, there is no problem waking the screen when I type "xset -display :0.0 dpms force off" in a terminal. Moreover typing gnome- screensaver-command -a in a terminal turns my screen off and after typing this line, the screen can be woken up by moving the mouse or by hitting a key. I'm confused. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-video-ati/+bug/1577170/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : desktop-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp
[Desktop-packages] [Bug 1577170] Re: [solved] screen cannot be turned back on after being switched off after some time of inactivity
tabs were lost in translation. -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to xserver-xorg-video-ati in Ubuntu. https://bugs.launchpad.net/bugs/1577170 Title: [solved] screen cannot be turned back on after being switched off after some time of inactivity Status in xserver-xorg-video-ati package in Ubuntu: New Bug description: I did a fresh install of ubuntu 16.04 on my old dell computer in which there is an ati radeon X1300 graphics card. Whenever the screen turns off due to inactivity, it cannot be woken up by moving the mouse or by hitting a key. When I kill the Xorg process via ssh with another computer, the screen then comes to life again and I can log back in. When I remove the graphic card from the computer and use the built in graphic card instead, the bug doesn't occur. So I guess it is related to the radeon driver. Oddly enough, there is no problem waking the screen when I type "xset -display :0.0 dpms force off" in a terminal. Moreover typing gnome- screensaver-command -a in a terminal turns my screen off and after typing this line, the screen can be woken up by moving the mouse or by hitting a key. I'm confused. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-video-ati/+bug/1577170/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : desktop-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp