Bug 13021

Summary: [965GM] backlight goes off after VT switch
Product: xorg Reporter: joerg
Component: Driver/intelAssignee: Jesse Barnes <jbarnes>
Status: CLOSED FIXED QA Contact: Xorg Project Team <xorg-team>
Severity: normal    
Priority: medium    
Version: 7.2 (2007.02)   
Hardware: x86 (IA32)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Bug Depends on:    
Bug Blocks: 13027    
Attachments:
Description Flags
My xorg.conf
none
My xorg.0.log
none
Xorg.log from git build none

Description joerg 2007-10-31 02:38:12 UTC
Hello,

I am running debian testing (lenny) on a thinkpad t61. The builtin graphics chip is a 965GM. Strating X works propoerly, but when switch to a text console (e.G. CTrl-Alt-F1), the screen stays black, although keystrokes are recognized (I can type commands as well as switch back to X with Alt-F7). I'd aussume the backlight is off.

Strange enough, after a suspend (both s2ram or s2disk work), I can switch back and forth without the effect.

Side notes: What is the other device (PCI 0:2:1) for? And why does the chipset think TV-Out is connected, although it is not externally available to plug it to a TV?
Comment 1 joerg 2007-10-31 02:40:30 UTC
Created attachment 12271 [details]
My xorg.conf
Comment 2 joerg 2007-10-31 02:41:05 UTC
Created attachment 12272 [details]
My xorg.0.log
Comment 3 joerg 2007-10-31 02:42:53 UTC
For not having to skim through the attachments: xorg Version is 7.2, intel driver version 2.1.0
Comment 4 Jesse Barnes 2007-10-31 15:46:19 UTC
Can you try the latest git version of the driver to see if this still occurs?  Also, I recently posted a kernel DRM patch to dri-devel and lkml that may help suspend/resume on this machine if you're not using vbetool (though it sounds like it's working for you).

PCI 0:2.1 exists for Windows compatibility.  Old versions of Windows needed independent PCI devices to support multihead.  On recent versions of Windows and Linux it's just vestigal.
Comment 5 joerg 2007-11-01 09:02:00 UTC
I take this as a change to take a crash course in git and Xorg compilation.
Please be a bit patient.

For suspend/resume, my setup has no problems with that, on the contrary, it helps the problem to disappear.
Comment 6 joerg 2007-11-06 12:09:19 UTC
Intermediate result:
(EE) module ABI major version (3) doesn't match the server's version (1)
(EE) Failed to load module "intel" (module requirement mismatch, 0)
(EE) No drivers available.

I'll try the whole xorg server stuff tomorrow.

Sidenote: Sorting the dependencies, i.e. proper build order, seems the hardest part by now.
Comment 7 joerg 2007-11-07 10:01:25 UTC
Created attachment 12391 [details]
Xorg.log from git build
Comment 8 joerg 2007-11-07 10:09:20 UTC
With a git-of-this-morning-build it at least partly works. I cannot switch consoles with Ctrl-Alt-F1, but ending the X server otherwise (Ctrl-Alt-Backspace or logout of Gnome) switch back to a usable text console. 
I attached the Xorg.log from the session in case you can see something from it.

Sidenote this time: Many video drivers do not built. IMHO it has something to do with the way gcc version 4.2.3 20071014 (prerelease) (Debian 4.2.2-3) parses typedefs of anonymous structs.
Comment 9 joerg 2007-11-07 10:43:53 UTC
Another addendum: After having the git-build X server once, the distributionsupplied one leaves the backlight on when switchin back a the console.
Comment 10 Jesse Barnes 2007-11-12 13:26:24 UTC
Joerg, you should also be able to just rebuild the latest Intel git tree against your distribution supplied X server.  If it's working for you now, please just close this bug out.

Thanks,
Jesse
Comment 11 joerg 2007-11-13 05:52:59 UTC
I just found the necessary -dev packages.

autogen.sh  runs fine, the following make stops at 
In file included from i810_accel.c:55:
i810.h:63:23: error: GL/glxint.h: No such file or directory
IMHO a check for /usr/lib/pkgconfig/glproto.pc could help.
After installing this I managed to build the driver. I will test it when I am back in front of the machine.
Comment 12 joerg 2007-11-13 10:50:27 UTC
with the current driver version this bug is resolved.
Besides, the non-existant tv-out is ignored.

So, go for it, good work, just some effort to compile.

Comment 13 joerg 2007-11-13 10:51:10 UTC
works with git of today.
Comment 14 Jesse Barnes 2007-11-13 11:12:06 UTC
Thanks for filing the bug and testing the fix Joerg!

Jesse

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.