1 |
On Mon, Jan 25, 2010 at 4:10 PM, Nikos Chantziaras <realnc@×××××.de> wrote: |
2 |
> On 01/26/2010 01:20 AM, Mark Knecht wrote: |
3 |
>> |
4 |
>> Hi, |
5 |
>> I've been working on trying to get this new machine to run X. So |
6 |
>> far no luck but I'm learning so it's interesting. |
7 |
>> |
8 |
>> My quick question goes like this - if I boot with no drivers I get |
9 |
>> a VGA console. If I modprobe a frame buffer driver at boot time then I |
10 |
>> get a nice looking but slow frame buffer console. All good so far. |
11 |
>> However my graphics adapter is supposed to use the i915 driver and |
12 |
>> when I modprobe that - either in auto-load or at the command like |
13 |
>> after logging in - my screen goes 'black'. I'm wondering what I do - |
14 |
>> other than look at what's in dmesg - to figure out what state the |
15 |
>> machine is in. Is the screen turned off? Is the driver running and |
16 |
>> putting out 'black'? |
17 |
> |
18 |
> I might be wrong, but it sounds like the driver tries to use KMS (kernel |
19 |
> mode setting) which conflicts with other framebuffer drivers (KMS provides a |
20 |
> fast framebuffer console on its own). |
21 |
> |
22 |
> So two things to try here: |
23 |
> |
24 |
> A. Completely disable the vesafb driver. |
25 |
> B. Disable KMS in the i915 driver: |
26 |
> . When built as a module, use the "modeset=0" parameter |
27 |
> . When built in the kernel, use "i915.modeset=0" in Grub |
28 |
> |
29 |
> Of course this assumes that KMS is indeed the problem. |
30 |
|
31 |
First - answering Bob - I don't *think* the monitor is being driven |
32 |
beyond spec because at least in the past when I did that the monitor |
33 |
pops up a display that says the input is out of spec. Still, I'll keep |
34 |
it in mind. |
35 |
|
36 |
OK, so for A I think the frame buffer is turned off, but if there |
37 |
something more I need to do let me know. IIRC the few that are modular |
38 |
are GPL stuff being selected by either the Intel DRM or i915 driver, |
39 |
but I'll double check. |
40 |
|
41 |
firefly linux # cat .config | grep FRAMEBUFFER |
42 |
# CONFIG_FRAMEBUFFER_CONSOLE is not set |
43 |
firefly linux # cat .config | grep FB |
44 |
CONFIG_FB=m |
45 |
# CONFIG_FB_DDC is not set |
46 |
# CONFIG_FB_BOOT_VESA_SUPPORT is not set |
47 |
CONFIG_FB_CFB_FILLRECT=m |
48 |
CONFIG_FB_CFB_COPYAREA=m |
49 |
CONFIG_FB_CFB_IMAGEBLIT=m |
50 |
# CONFIG_FB_CFB_REV_PIXELS_IN_BYTE is not set |
51 |
# CONFIG_FB_SYS_FILLRECT is not set |
52 |
# CONFIG_FB_SYS_COPYAREA is not set |
53 |
# CONFIG_FB_SYS_IMAGEBLIT is not set |
54 |
# CONFIG_FB_FOREIGN_ENDIAN is not set |
55 |
# CONFIG_FB_SYS_FOPS is not set |
56 |
# CONFIG_FB_SVGALIB is not set |
57 |
# CONFIG_FB_MACMODES is not set |
58 |
# CONFIG_FB_BACKLIGHT is not set |
59 |
CONFIG_FB_MODE_HELPERS=y |
60 |
# CONFIG_FB_TILEBLITTING is not set |
61 |
# CONFIG_FB_CIRRUS is not set |
62 |
# CONFIG_FB_PM2 is not set |
63 |
# CONFIG_FB_CYBER2000 is not set |
64 |
# CONFIG_FB_ARC is not set |
65 |
# CONFIG_FB_VGA16 is not set |
66 |
# CONFIG_FB_N411 is not set |
67 |
# CONFIG_FB_HGA is not set |
68 |
# CONFIG_FB_S1D13XXX is not set |
69 |
# CONFIG_FB_NVIDIA is not set |
70 |
# CONFIG_FB_RIVA is not set |
71 |
# CONFIG_FB_LE80578 is not set |
72 |
# CONFIG_FB_INTEL is not set |
73 |
# CONFIG_FB_MATROX is not set |
74 |
# CONFIG_FB_RADEON is not set |
75 |
# CONFIG_FB_ATY128 is not set |
76 |
# CONFIG_FB_ATY is not set |
77 |
# CONFIG_FB_S3 is not set |
78 |
# CONFIG_FB_SAVAGE is not set |
79 |
# CONFIG_FB_SIS is not set |
80 |
# CONFIG_FB_VIA is not set |
81 |
# CONFIG_FB_NEOMAGIC is not set |
82 |
# CONFIG_FB_KYRO is not set |
83 |
# CONFIG_FB_3DFX is not set |
84 |
# CONFIG_FB_VOODOO1 is not set |
85 |
# CONFIG_FB_VT8623 is not set |
86 |
# CONFIG_FB_TRIDENT is not set |
87 |
# CONFIG_FB_ARK is not set |
88 |
# CONFIG_FB_PM3 is not set |
89 |
# CONFIG_FB_CARMINE is not set |
90 |
# CONFIG_FB_GEODE is not set |
91 |
# CONFIG_FB_VIRTUAL is not set |
92 |
# CONFIG_FB_METRONOME is not set |
93 |
# CONFIG_FB_MB862XX is not set |
94 |
# CONFIG_FB_BROADSHEET is not set |
95 |
firefly linux # cat .config | grep VESAFB |
96 |
firefly linux # cat .config | grep VESA |
97 |
# CONFIG_FB_BOOT_VESA_SUPPORT is not set |
98 |
firefly linux # |
99 |
|
100 |
As for B, it's modular overall but already turned off for the i915: |
101 |
|
102 |
|
103 |
firefly linux # cat .config | grep KMS |
104 |
CONFIG_DRM_KMS_HELPER=m |
105 |
# CONFIG_DRM_I915_KMS is not set |
106 |
firefly linux # |
107 |
|
108 |
Is there an app that can query what resolution and frequency the |
109 |
system thinks it's driving the monitor? |
110 |
|
111 |
Again, this isn't X - it's just the driver getting loaded. |
112 |
|
113 |
None the less I have LOTS of data from running drm.debug=0x06. If |
114 |
there's a way to use it more intelligently I'd love to learn. |
115 |
|
116 |
I'll go back and check whether this was with frame buffer turned on. |
117 |
See the very last couple of lines as to why. But mostly the modeline |
118 |
suff is interesting as I think those really are the two monitors that |
119 |
are attached. I've got a 17" 1280x1024 on the VGA port and a 1680x1050 |
120 |
on the digital port. I'm not using HDMI is the part that concerns me |
121 |
unless the HDMI and the new, rectangular digital VGA are really one in |
122 |
the same. Anyway, there's lots of data there, and as I said earlier, I |
123 |
can run console mode frame buffer which may be where some of this data |
124 |
came from. |
125 |
|
126 |
|
127 |
i915 0000:00:02.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16 |
128 |
i915 0000:00:02.0: setting latency timer to 64 |
129 |
mtrr: type mismatch for c0000000,10000000 old: write-back new: write-combining |
130 |
[drm] MTRR allocation failed. Graphics performance may suffer. |
131 |
[drm] set up 31M of stolen space |
132 |
[drm:intel_dp_i2c_init], i2c_init DPDDC-C |
133 |
[drm:intel_dp_i2c_init], i2c_init DPDDC-D |
134 |
[drm:drm_helper_probe_single_connector_modes], VGA-1 |
135 |
[drm:drm_helper_probe_single_connector_modes], Probed modes for VGA-1 |
136 |
[drm:drm_mode_debug_printmodeline], Modeline 39:"1280x1024" 60 108000 |
137 |
1280 1328 1440 1688 1024 1025 1028 1066 0x48 0x5 |
138 |
[drm:drm_mode_debug_printmodeline], Modeline 35:"1280x1024" 75 135000 |
139 |
1280 1296 1440 1688 1024 1025 1028 1066 0x40 0x5 |
140 |
[drm:drm_mode_debug_printmodeline], Modeline 30:"1152x864" 75 108000 |
141 |
1152 1216 1344 1600 864 865 868 900 0x40 0x5 |
142 |
[drm:drm_mode_debug_printmodeline], Modeline 24:"1024x768" 75 78800 |
143 |
1024 1040 1136 1312 768 769 772 800 0x40 0x5 |
144 |
[drm:drm_mode_debug_printmodeline], Modeline 36:"1024x768" 75 78750 |
145 |
1024 1040 1136 1312 768 769 772 800 0x40 0x5 |
146 |
[drm:drm_mode_debug_printmodeline], Modeline 25:"1024x768" 70 75000 |
147 |
1024 1048 1184 1328 768 771 777 806 0x40 0xa |
148 |
[drm:drm_mode_debug_printmodeline], Modeline 32:"1024x768" 60 65000 |
149 |
1024 1048 1184 1344 768 771 777 806 0x40 0xa |
150 |
[drm:drm_mode_debug_printmodeline], Modeline 27:"832x624" 75 57284 832 |
151 |
864 928 1152 624 625 628 667 0x40 0xa |
152 |
[drm:drm_mode_debug_printmodeline], Modeline 29:"800x600" 72 50000 800 |
153 |
856 976 1040 600 637 643 666 0x40 0x5 |
154 |
[drm:drm_mode_debug_printmodeline], Modeline 37:"800x600" 75 49500 800 |
155 |
816 896 1056 600 601 604 625 0x40 0x5 |
156 |
[drm:drm_mode_debug_printmodeline], Modeline 33:"800x600" 60 40000 800 |
157 |
840 968 1056 600 601 605 628 0x40 0x5 |
158 |
[drm:drm_mode_debug_printmodeline], Modeline 17:"800x600" 56 36000 800 |
159 |
824 896 1024 600 601 603 625 0x40 0x5 |
160 |
[drm:drm_mode_debug_printmodeline], Modeline 38:"640x480" 75 31500 640 |
161 |
656 720 840 480 481 484 500 0x40 0xa |
162 |
[drm:drm_mode_debug_printmodeline], Modeline 19:"640x480" 73 31500 640 |
163 |
664 704 832 480 489 491 520 0x40 0xa |
164 |
[drm:drm_mode_debug_printmodeline], Modeline 20:"640x480" 67 30240 640 |
165 |
704 768 864 480 483 486 525 0x40 0xa |
166 |
[drm:drm_mode_debug_printmodeline], Modeline 21:"640x480" 60 25200 640 |
167 |
656 752 800 480 490 492 525 0x40 0xa |
168 |
[drm:drm_mode_debug_printmodeline], Modeline 34:"640x480" 60 25175 640 |
169 |
656 752 800 480 489 492 525 0x40 0xa |
170 |
[drm:drm_mode_debug_printmodeline], Modeline 22:"720x400" 70 28320 720 |
171 |
738 846 900 400 412 414 449 0x40 0x6 |
172 |
[drm:drm_helper_probe_single_connector_modes], HDMI Type A-1 |
173 |
[drm:drm_helper_probe_single_connector_modes], HDMI Type A-1 is disconnected |
174 |
[drm:drm_helper_probe_single_connector_modes], HDMI Type A-2 |
175 |
usb 1-1: new high speed USB device using ehci_hcd and address 2 |
176 |
[drm:drm_helper_probe_single_connector_modes], Probed modes for HDMI Type A-2 |
177 |
[drm:drm_mode_debug_printmodeline], Modeline 54:"1680x1050" 60 119000 |
178 |
1680 1728 1760 1840 1050 1053 1059 1080 0x48 0x9 |
179 |
[drm:drm_mode_debug_printmodeline], Modeline 50:"1680x1050" 60 146250 |
180 |
1680 1784 1960 2240 1050 1053 1059 1089 0x40 0x6 |
181 |
[drm:drm_mode_debug_printmodeline], Modeline 42:"1280x1024" 75 135000 |
182 |
1280 1296 1440 1688 1024 1025 1028 1066 0x40 0x5 |
183 |
[drm:drm_mode_debug_printmodeline], Modeline 51:"1280x1024" 60 108000 |
184 |
1280 1328 1440 1688 1024 1025 1028 1066 0x40 0x5 |
185 |
[drm:drm_mode_debug_printmodeline], Modeline 52:"1280x960" 60 108000 |
186 |
1280 1376 1488 1800 960 961 964 1000 0x40 0x5 |
187 |
[drm:drm_mode_debug_printmodeline], Modeline 53:"1152x864" 75 108000 |
188 |
1152 1216 1344 1600 864 865 868 900 0x40 0x5 |
189 |
[drm:drm_mode_debug_printmodeline], Modeline 43:"1024x768" 75 78800 |
190 |
1024 1040 1136 1312 768 769 772 800 0x40 0x5 |
191 |
[drm:drm_mode_debug_printmodeline], Modeline 44:"1024x768" 70 75000 |
192 |
1024 1048 1184 1328 768 771 777 806 0x40 0xa |
193 |
[drm:drm_mode_debug_printmodeline], Modeline 45:"1024x768" 60 65000 |
194 |
1024 1048 1184 1344 768 771 777 806 0x40 0xa |
195 |
[drm:drm_mode_debug_printmodeline], Modeline 46:"832x624" 75 57284 832 |
196 |
864 928 1152 624 625 628 667 0x40 0xa |
197 |
[drm:drm_mode_debug_printmodeline], Modeline 48:"800x600" 72 50000 800 |
198 |
856 976 1040 600 637 643 666 0x40 0x5 |
199 |
[drm:drm_mode_debug_printmodeline], Modeline 47:"800x600" 75 49500 800 |
200 |
816 896 1056 600 601 604 625 0x40 0x5 |
201 |
[drm:drm_mode_debug_printmodeline], Modeline 18:"800x600" 60 40000 800 |
202 |
840 968 1056 600 601 605 628 0x40 0x5 |
203 |
[drm:drm_mode_debug_printmodeline], Modeline 23:"800x600" 56 36000 800 |
204 |
824 896 1024 600 601 603 625 0x40 0x5 |
205 |
[drm:drm_mode_debug_printmodeline], Modeline 28:"640x480" 73 31500 640 |
206 |
664 704 832 480 489 491 520 0x40 0xa |
207 |
[drm:drm_mode_debug_printmodeline], Modeline 26:"640x480" 75 31500 640 |
208 |
656 720 840 480 481 484 500 0x40 0xa |
209 |
[drm:drm_mode_debug_printmodeline], Modeline 31:"640x480" 67 30240 640 |
210 |
704 768 864 480 483 486 525 0x40 0xa |
211 |
[drm:drm_mode_debug_printmodeline], Modeline 40:"640x480" 60 25200 640 |
212 |
656 752 800 480 490 492 525 0x40 0xa |
213 |
[drm:drm_mode_debug_printmodeline], Modeline 41:"720x400" 70 28320 720 |
214 |
738 846 900 400 412 414 449 0x40 0x6 |
215 |
[drm:drm_helper_probe_single_connector_modes], DisplayPort-1 |
216 |
[drm:drm_helper_probe_single_connector_modes], DisplayPort-1 is disconnected |
217 |
[drm:drm_helper_probe_single_connector_modes], DisplayPort-2 |
218 |
[drm:drm_helper_probe_single_connector_modes], DisplayPort-2 is disconnected |
219 |
[drm:drm_setup_crtcs], |
220 |
[drm:drm_enable_connectors], connector 5 enabled? yes |
221 |
[drm:drm_enable_connectors], connector 7 enabled? no |
222 |
[drm:drm_enable_connectors], connector 9 enabled? yes |
223 |
[drm:drm_enable_connectors], connector 11 enabled? no |
224 |
[drm:drm_enable_connectors], connector 13 enabled? no |
225 |
[drm:drm_target_preferred], looking for cmdline mode on connector 5 |
226 |
[drm:drm_target_preferred], looking for preferred mode on connector 5 |
227 |
[drm:drm_target_preferred], found mode 1280x1024 |
228 |
[drm:drm_target_preferred], looking for cmdline mode on connector 9 |
229 |
[drm:drm_target_preferred], looking for preferred mode on connector 9 |
230 |
[drm:drm_target_preferred], found mode 1680x1050 |
231 |
[drm:drm_setup_crtcs], picking CRTCs for 8192x8192 config |
232 |
[drm:drm_setup_crtcs], desired mode 1280x1024 set on crtc 3 |
233 |
[drm:drm_setup_crtcs], desired mode 1680x1050 set on crtc 4 |
234 |
fb0: inteldrmfb frame buffer device |
235 |
registered panic notifier |
236 |
[drm] Initialized i915 1.6.0 20080730 for 0000:00:02.0 on minor 0 |
237 |
|
238 |
|
239 |
Thanks! |
240 |
|
241 |
Cheers, |
242 |
Mark |