Bug 23016 - [915GM] desktop resolution ends up being 1024x768 and it cannot be changed using xrandr
Summary: [915GM] desktop resolution ends up being 1024x768 and it cannot be changed us...
Status: CLOSED WORKSFORME
Alias: None
Product: DRI
Classification: Unclassified
Component: DRM/Intel (show other bugs)
Version: XOrg git
Hardware: x86 (IA32) Linux (All)
: medium normal
Assignee: ykzhao
QA Contact:
URL:
Whiteboard:
Keywords: NEEDINFO
: 22976 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-07-29 01:59 UTC by Juho-Mikko Pellinen
Modified: 2017-07-24 23:09 UTC (History)
3 users (show)

See Also:
i915 platform:
i915 features:


Attachments
Log with Dell plugged in to VGA from the start (30.16 KB, text/plain)
2009-07-29 01:59 UTC, Juho-Mikko Pellinen
no flags Details
Log when VGA is not connnected to anything (21.22 KB, text/plain)
2009-07-29 02:01 UTC, Juho-Mikko Pellinen
no flags Details
xorg.conf in use. (4.03 KB, text/plain)
2009-07-29 02:02 UTC, Juho-Mikko Pellinen
no flags Details
Xorg log of Karmic Koala Alpha3 (147.29 KB, text/x-log)
2009-08-10 09:16 UTC, Juho-Mikko Pellinen
no flags Details
dmesg of Karmic Koala Alpha3 (44.52 KB, application/octet-stream)
2009-08-10 09:19 UTC, Juho-Mikko Pellinen
no flags Details

Description Juho-Mikko Pellinen 2009-07-29 01:59:58 UTC
Created attachment 28145 [details]
Log with Dell plugged in to VGA from the start

I get drm/dri-errors to X-log when starting my computer with external display plugged in. The desktop resolution ends up being 1024x768 and it cannot be changed.

System info:
Chipset in use:
915GM (Laptop: Acer Travelmate 4101WLMi, Centrino with Pentium-M)
uname - m: i686
xf86-video-intel-2.8.0
x11-base/xorg-server-1.6.2-r1
media-libs/mesa-7.5-r2 "Mesa: Mesa 7.5 DEBUG build Jul 27 2009 20:39:10"
x11-libs/libdrm-2.4.11
kernel: 2.6.30-gentoo-r4
Linux distribution: Gentoo
Machine or mobo model: Acer Travelmate 4010WLMi
Display connectors: in use: VGA, LVDS; not used currently TV-out (S-video)
VGA: Dell 2007FP, 1600x1200 4:3 display.
LVDS: 1280x800 laptop panel

Reproduce steps:
Plug in external display (VGA).
Reboot the computer (cold/warm reboot, restarting X is not enough)
The computer starts in 1024x786-mode and it cannot be changed with xrandr.
The screen flashes every time xrandr is run though and xrandr reports correct detected resolution.

How to use "normally":
Unplug VGA connector, reboot and let X start up fully, connect external display to VGA (it is automatically in clone mode). Use xrandr to shut off LVDS and change VGA to 1600x1200.

PS. I have access to Dell 1503FP (1024x786) if this is thought to be a problem with this particular display.
Comment 1 Juho-Mikko Pellinen 2009-07-29 02:01:01 UTC
Created attachment 28146 [details]
Log when VGA is not connnected to anything
Comment 2 Juho-Mikko Pellinen 2009-07-29 02:02:39 UTC
Created attachment 28147 [details]
xorg.conf in use.

This (xorg.conf) is quite empty currently and even without config the situation stays the same.
Comment 3 Juho-Mikko Pellinen 2009-07-29 02:03:29 UTC
Errors in short:
~ $ grep EE Xorg.0.log.withDellPluggedAndOn 
Current Operating System: Linux pallokala 2.6.30-gentoo-r4 #2 PREEMPT Wed Jul 29 09:05:55 EEST 2009 i686
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(II) Loading extension MIT-SCREEN-SAVER
(EE) intel(0): [drm] Failed to open DRM device for : No such file or directory
(EE) intel(0): Failed to become DRM master.
(EE) intel(0): Failed to initialize kernel memory manager
Comment 4 Michael Fu 2009-07-30 00:09:16 UTC
are you using a prestine gentoo build? if so, please tell us where can we download it. And, have you tried LiveCD from other distros?
Comment 5 Juho-Mikko Pellinen 2009-07-30 06:26:55 UTC
I'm using pristine ebuild from portage: http://packages.gentoo.org/package/x11-drivers/xf86-video-intel
The ebuild is here if you need it:
http://viewcvs.gentoo.org/viewcvs.py/gentoo-x86/x11-drivers/xf86-video-intel/xf86-video-intel-2.8.0.ebuild?rev=1.1&view=markup
AFAIK there are no patches yet added to 2.8.0.

I haven't tried this with any other liveCD, but I saw similar problems with both 2.7.99.901 and .902. And most probably with 2.7.1.
I can try Ubuntu 9.04 tonight/tomorrow.
Comment 6 Michael Fu 2009-08-04 18:03:08 UTC
ping~. Better to try Karmic Alpha3, if you choose Ubuntu ...
Comment 7 Michael Fu 2009-08-06 02:11:08 UTC
ping~
Comment 8 Juho-Mikko Pellinen 2009-08-09 22:29:48 UTC
I'm currently downloading Karmic Koala Alpha3 and will test it tonight.
The Alpha4 is released in three days so I can also try it this week.
Comment 9 Juho-Mikko Pellinen 2009-08-10 09:15:10 UTC
I'm currently running Ubuntu Karmix Koala Alpha3 and xrandr seems to be working.
I booted up and the display was 1024x768, but I could change the resolution to 1600x1200 and turn the LVDS-panel off with commands:
ubuntu@ubuntu:~$ xrandr --output LVDS1 --off
ubuntu@ubuntu:~$ xrandr --output VGA1 --mode 1600x1200

Before this was not possible when external display was plugged in.

The only major difference with this (Ubuntu) compared to my system is the kernel version. Mine is 2.6.30-gentoo-r4 while Alpha3 has 2.6.31-3. I didn't find any other major differences.

DRM-settings show up in log successfully like:
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is 8, (OK)
drmOpenByBusid: Searching for BusID pci:0000:00:02.0
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is 8, (OK)
drmOpenByBusid: drmOpenMinor returns 8
drmOpenByBusid: drmGetBusid reports pci:0000:00:02.0

Next thing I will do is to upgrade my kernel to 2.6.31-something and see if this problem goes away.
Comment 10 Juho-Mikko Pellinen 2009-08-10 09:16:56 UTC
Created attachment 28486 [details]
Xorg log of Karmic Koala Alpha3

This is the Xorg.0.log of Ubuntu Karmic Koala Alpha3.
Comment 11 Juho-Mikko Pellinen 2009-08-10 09:19:04 UTC
Created attachment 28487 [details]
dmesg of Karmic Koala Alpha3

dmesg of Ubuntu Karmic Koala Alpha3 booting up with Dell plugged in.
Comment 12 Juho-Mikko Pellinen 2009-08-10 10:49:20 UTC
I just emerged and compiled the most recent vanilla kernel 2.6.31-rc5 and now everything is working as it should.

The X.log has the following lines:
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is 9, (OK)
drmOpenByBusid: Searching for BusID pci:0000:00:02.0
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is 9, (OK)
drmOpenByBusid: drmOpenMinor returns 9
drmOpenByBusid: drmGetBusid reports pci:0000:00:02.0

I think this bug can be closed now, because new kernel fixes this problem.

On the other hand glxgears reports now:
~ $ glxgears 
Mesa: Mesa 7.5 DEBUG build Jul 27 2009 20:39:10
Mesa warning: couldn't open libtxc_dxtn.so, software DXTn compression/decompression unavailable
4271 frames in 5.0 seconds = 854.177 FPS

Not Karmic Koala and neither the earlier 2.6.30 displayed that error IIRC.
But it is in no means fatal.

Other interesting point is that the Karmic Koala reported 4200fps while I get only 800fps, but it is probably because my system has a lot more background programs running.

Thanks for your time.
:)
Comment 13 Michael Fu 2009-08-10 17:40:48 UTC
*** Bug 22976 has been marked as a duplicate of this bug. ***


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.