! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Screen remains blank after lid open event
Status:
RESOLVED: FIXED
Product:
Xfce4-power-manager
Component:
General

Comments

Description Adam 2009-10-19 08:00:07 CEST
When the lid is closed the screen is turned off by xfce4-power-manager. The problem is that when the lid is opened the backlight turns on but the display remains  blank and you have to press a key or move the cursor before the xfce desktop is displayed again.

A while ago I came up with a acpi script to switch off and on the monitor when the lid was closed or opened and I came across the same issue with the screen being blank after opening the lid.

To solve the problem I issued the commands.
xset dpms force on
followed by:
xset s reset

Without the "xset s reset" line the screen would remain blank.

If someone can take a look at this issue it would be appreciated.
Comment 1 Adam 2009-10-19 10:12:12 CEST
The distribution is Arch Linux running xorg-server-1.6.3.901
Comment 2 Ali Abdallah editbugs 2009-10-19 10:16:31 CEST
(In reply to comment #1)
> The distribution is Arch Linux running xorg-server-1.6.3.901

I'm also running Arch on my laptop with this xorg version, i have no problem regarding this.

Did you try to do the following?

xset dpms force off && sleep 4 && xset dpms force on

Is your screen remains blank after that?
Comment 3 Adam 2009-10-19 10:19:08 CEST
(In reply to comment #2)
> (In reply to comment #1)
> > The distribution is Arch Linux running xorg-server-1.6.3.901
> 
> I'm also running Arch on my laptop with this xorg version, i have no problem
> regarding this.
> 
> Did you try to do the following?
> 
> xset dpms force off && sleep 4 && xset dpms force on
> 
> Is your screen remains blank after that?

Yes, the screen still remains blank.
Comment 4 Ali Abdallah editbugs 2009-10-19 10:23:59 CEST
(In reply to comment #3)
> (In reply to comment #2)
> > (In reply to comment #1)
> > > The distribution is Arch Linux running xorg-server-1.6.3.901
> > 
> > I'm also running Arch on my laptop with this xorg version, i have no problem
> > regarding this.
> > 
> > Did you try to do the following?
> > 
> > xset dpms force off && sleep 4 && xset dpms force on
> > 
> > Is your screen remains blank after that?
> 
> Yes, the screen still remains blank.

Another question, do you have the same VGA+Xorg version for Gentoo and Arch setups?
Comment 5 Adam 2009-10-19 10:31:55 CEST
(In reply to comment #4)
> (In reply to comment #3)
> > (In reply to comment #2)
> > > (In reply to comment #1)
> > > > The distribution is Arch Linux running xorg-server-1.6.3.901
> > > 
> > > I'm also running Arch on my laptop with this xorg version, i have no problem
> > > regarding this.
> > > 
> > > Did you try to do the following?
> > > 
> > > xset dpms force off && sleep 4 && xset dpms force on
> > > 
> > > Is your screen remains blank after that?
> > 
> > Yes, the screen still remains blank.
> 
> Another question, do you have the same VGA+Xorg version for Gentoo and Arch
> setups?

Well, gentoo has xorg-server-1.6.3.901-r2 and arch linux has xorg-server-1.6.3.901-1.

They are both using the nvidia driver. Is that what you mean by VGA version?
Comment 6 Ali Abdallah editbugs 2009-10-19 10:36:11 CEST
(In reply to comment #5)
> Well, gentoo has xorg-server-1.6.3.901-r2 and arch linux has
> xorg-server-1.6.3.901-1.
> 
> They are both using the nvidia driver. Is that what you mean by VGA version?

So this is something already, yes i mean that, BTW you are speaking about the closed source nvidia driver right?

I have arch running on a desktop system with nvidia driver at home, so i can test it this evening when i go back home, try to use "nv" in the device section instead of "nvidia", you know this will make use of the opensource driver so will see if this makes any difference.
Comment 7 Adam 2009-10-19 11:11:13 CEST
(In reply to comment #6)
> (In reply to comment #5)
> > Well, gentoo has xorg-server-1.6.3.901-r2 and arch linux has
> > xorg-server-1.6.3.901-1.
> > 
> > They are both using the nvidia driver. Is that what you mean by VGA version?
> 
> So this is something already, yes i mean that, BTW you are speaking about the
> closed source nvidia driver right?
> 
> I have arch running on a desktop system with nvidia driver at home, so i can
> test it this evening when i go back home, try to use "nv" in the device section
> instead of "nvidia", you know this will make use of the opensource driver so
> will see if this makes any difference.

I couldn't find where to install the nv driver, but I installed the nouveau driver. This driver seems to have fixed the problem. At least running "xset dpms force on" actually turns on the screen properly.

I'm not entirely sure that I'll stick with the open source nvidia driver though. It seems to have a few quirks, and I also want vdpau support provided by the closed source drive. 

If the dpms issue is caused by the nvidia drivers (and I'm just speculating because I have absolutely no idea how the nvidia drivers and xorg interact) then wouldn't it be reasonable to use the function to disable the screensaver given it's a workaround which solves the issue?
Comment 8 Ali Abdallah editbugs 2009-10-19 12:16:19 CEST
Created attachment 2617 
Reset Screen Saver on lid event

Well sound like a reasonable solution, i will add this work around for 0.8.4.1 since it is completely harmless, and well probably it is better to reset the screen saver counter when lid is open to start a new screen saver time period, but in the other hand i would try to contact the nvidia guys and Xorg to figure out a proper fix for this.

for the moment try the above patch and let me know if this fixes the problem for you with nvidia driver.

For the open source driver, yes isn't a good idea to use it, it has a lot of other problems.
Comment 9 Adam 2009-10-19 13:28:39 CEST
(In reply to comment #8)
> Created an attachment (id=2617) [details]
> Reset Screen Saver on lid event
> 
> Well sound like a reasonable solution, i will add this work around for 0.8.4.1
> since it is completely harmless, and well probably it is better to reset the
> screen saver counter when lid is open to start a new screen saver time period,
> but in the other hand i would try to contact the nvidia guys and Xorg to figure
> out a proper fix for this.
> 
> for the moment try the above patch and let me know if this fixes the problem
> for you with nvidia driver.
> 
> For the open source driver, yes isn't a good idea to use it, it has a lot of
> other problems.

Thanks, that has fixed the issue.
Comment 10 Adam 2009-11-20 23:01:17 CET
> Well sound like a reasonable solution, i will add this work around for 0.8.4.1

Hey Ali,
I've got 0.8.4.1-1 installed, but my screen is still blank when I open the lid. Has the patch been applied to this version?

Cheers,

Adam
Comment 11 Ali Abdallah editbugs 2009-11-20 23:09:45 CET
(In reply to comment #10)
> > Well sound like a reasonable solution, i will add this work around for 0.8.4.1
> 
> Hey Ali,
> I've got 0.8.4.1-1 installed, but my screen is still blank when I open the lid.
> Has the patch been applied to this version?
> 
> Cheers,
> 
> Adam

I'm sorry, i don't know why i lost this patch, anyway a new version should go out this week-end, i applied the patch so now it will go for sure.
Comment 12 Adam 2009-11-22 10:34:29 CET
Thank you very much Ali. Works perfectly on my Dell laptop.

Bug #5886

Reported by:
Adam
Reported on: 2009-10-19
Last modified on: 2009-11-22

People

Assignee:
Ali Abdallah
CC List:
0 users

Version

Attachments

Reset Screen Saver on lid event (373 bytes, patch)
2009-10-19 12:16 CEST , Ali Abdallah
no flags

Additional information