LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 05-17-2010, 10:39 AM   #1
yuchankit
Member
 
Registered: Apr 2008
Distribution: Slackware 13.1 ,slackware-current
Posts: 143

Rep: Reputation: 22
Screen not useable after laptop lid closed


I'm using Slackware 13.1 RC1,gm45 GPU.

After I closed the laptop lid and opened in again,the screen is blank and I could only see the pointer,but nothing else.

Any idea on this problem?Thanks for your immediate attention
 
Old 05-17-2010, 10:44 AM   #2
sahko
Senior Member
 
Registered: Sep 2008
Distribution: Slackware
Posts: 1,041

Rep: Reputation: Disabled
Did you try to move the pointer? I get that too in my netbook but when i move the pointer i get the KDE login dialogue.
 
Old 05-17-2010, 11:05 AM   #3
brixtoncalling
Member
 
Registered: Jul 2008
Location: British Columbia
Distribution: Slackware current
Posts: 403

Rep: Reputation: 67
I've occasionally had this problem a couple of times when returning from suspend-to-ram. What I've done is switch to tt6 (alt-ctl-f6), log in as user, run:
Code:
DISPLAY=:0 kwin --replace
Not pretty but it works. I've yet to figure out what causes this to happen since it doesn't happen every time I resume.
 
Old 05-17-2010, 08:21 PM   #4
yuchankit
Member
 
Registered: Apr 2008
Distribution: Slackware 13.1 ,slackware-current
Posts: 143

Original Poster
Rep: Reputation: 22
@Sahko:I did move the pointer,but I can only see the pointer moving.

@brixtoncalling:I will try that.Thanks.
 
Old 05-18-2010, 09:03 AM   #5
allend
Senior Member
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware-current
Posts: 3,408

Rep: Reputation: 834Reputation: 834Reputation: 834Reputation: 834Reputation: 834Reputation: 834Reputation: 834
This bug is discussed here. https://bugs.launchpad.net/ubuntu/lu...ux/+bug/535640
A fix is shown here. http://kernel.ubuntu.com/git?p=ubunt...23d2c7117bfcc4
 
Old 05-18-2010, 10:15 PM   #6
yuchankit
Member
 
Registered: Apr 2008
Distribution: Slackware 13.1 ,slackware-current
Posts: 143

Original Poster
Rep: Reputation: 22
Quote:
When we get a CRTC to use for load detection, we restore its DPMS state

if needed. We shouldn't, however, change the DRM configuration by

calling drm_helper_disable_unused_functions when we release the CRTC.

Doing so can cause problems with resume, since at suspend or lid close

time, X may choose to probe outputs. If it doesn't re-probe them at

open or resume time, LVDS won't be restored, since

drm_helper_disable_unused_functions will have turned it off, preventing

the mode set at lid open from restoring it.
Does it suggest me not to call drm_helper_disable_unused_functions?If so,how I can disable it?
 
Old 05-19-2010, 11:38 AM   #7
allend
Senior Member
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware-current
Posts: 3,408

Rep: Reputation: 834Reputation: 834Reputation: 834Reputation: 834Reputation: 834Reputation: 834Reputation: 834
To try the fix you will need to compile and install a new i915.ko kernel module.
To do this (I am assuming you have the 2.6.33.4 kernel source installed), log in as root and:
1. Edit /usr/src/linux/drivers/gpu/drm/i915/intel_display.c and comment out the relevant lines
Line 3745
Quote:
/* struct drm_device *dev = encoder->dev; */
Line 3755
Quote:
/* drm_helper_disable_unused_functions(dev);*/
2. 'cd /usr/src/linux' to change to the top of the kernel source tree
3. 'cp .config .config.orig' to keep a backup of the original .config
4. 'make mrproper' to clean the source tree. Can be omitted if you have a pristine source tree.
5. 'cp .config.orig .config' to recover the original .config file
6. 'make oldconfig'
7. 'make prepare'
8. 'make modules_prepare' to prepare the source tree.
9. 'make M=drivers/gpu/drm/i915' to compile the patched kernel module.
10. 'cp /lib/modules/$(uname -r)/kernel/drivers/gpu/drm/i915/i915.ko /tmp' to keep a copy of the original
11. 'cp ./drivers/gpu/drm/i915/i915.ko /lib/modules/$(uname -r)/kernel/drivers/gpu/drm/i915/i915.ko' to update to the patched kernel module.
12. 'shutdown -r now' to reboot and try the patch!

I wish you good luck with this.

Last edited by allend; 05-20-2010 at 10:32 AM. Reason: Changed from Line 3666 to Line 3745
 
Old 05-20-2010, 02:10 AM   #8
yuchankit
Member
 
Registered: Apr 2008
Distribution: Slackware 13.1 ,slackware-current
Posts: 143

Original Poster
Rep: Reputation: 22
Unfortunately,I'm using kernel 2.6.33.3.

root@root:/usr/src/linux# make M=drivers/gpu/drm/i915

WARNING: Symbol version dump /usr/src/linux-2.6.33.3/Module.symvers
is missing; modules will have no dependencies and modversions.

CC [M] drivers/gpu/drm/i915/intel_display.o
drivers/gpu/drm/i915/intel_display.c: In function 'intel_get_load_detect_pipe':
drivers/gpu/drm/i915/intel_display.c:3713: error: 'c' undeclared (first use in this function)
drivers/gpu/drm/i915/intel_display.c:3713: error: (Each undeclared identifier is reported only once
drivers/gpu/drm/i915/intel_display.c:3713: error: for each function it appears in.)
drivers/gpu/drm/i915/intel_display.c:3713: error: expected ';' before '}' token
make[1]: *** [drivers/gpu/drm/i915/intel_display.o] Error 1
make: *** [_module_drivers/gpu/drm/i915] Error 2
 
Old 05-20-2010, 10:33 AM   #9
allend
Senior Member
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware-current
Posts: 3,408

Rep: Reputation: 834Reputation: 834Reputation: 834Reputation: 834Reputation: 834Reputation: 834Reputation: 834
I beg your pardon, I made a mistake in the first line number. I have edited my post #7 with the update.
The patched module now compiles for me.
 
Old 09-29-2010, 04:36 AM   #10
yuchankit
Member
 
Registered: Apr 2008
Distribution: Slackware 13.1 ,slackware-current
Posts: 143

Original Poster
Rep: Reputation: 22
Sorry to dig this old thread up.I was quite busy and therefore I had no time to try out the solution until recently.

Unfortunately,that approach did not work as well and I still suffer from the same problem even after upgrading to xorg-server 1.9.1 and intel driver 2.12 .

For anyone who has the almost the same (intel card) setup as mine and does not suffer the same problem,can you post your xorg-server version,intel driver version as well as the kernel version?I really appreciate it.

Here's my research.

Allend's approach is correct, but the bug should have been fixed from kernel version 2.6.32-18 onwards.There's also another solution but I'm still a novice and I don't know how to apply the theory in slackware since the solution above is arch-linux specific.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Docking Station + External Monitor with Laptop Lid Closed 0ddba11 Linux - Hardware 6 05-26-2010 04:56 PM
Ubuntu Server Wakeonlan Not Working When Laptop Lid Closed D11011101 Linux - Laptop and Netbook 1 03-27-2009 02:41 PM
screen resolution changes when laptop lid opens jaymoney Ubuntu 1 08-04-2008 02:32 PM
Standby on laptop when lid closed LDJ Linux - Newbie 5 01-16-2007 06:08 PM
laptop lid won't shut off when closed houler Slackware 32 08-27-2005 11:59 PM


All times are GMT -5. The time now is 04:26 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration