[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

X: set resolution in Squeeze on a Macbook



Hi all,

I've just installed Squeeze on a Macbook (2,1) and I'm wondering how I
can get X to display at the native 1280x800 resolution.  I've searched
the Web and Debian list archives, but nothing seems to turn up
quite the information I need.

I am using stumpwm, and not a desktop environment that would provide me
with a GUI for setting the resolution.  Thus, my question *may* boil
down to:

1) how can I set the resolution from the command line?

But there are a few things I don't understand.

The background: this Macbook has an Intel graphics card.  lspci says it
is a "Mobile 945GM/GMS, 943/940GM Express Integrated Graphics
Controller."    

In the past, running X on this machine at the native resolution has
required the 915resolution package.  But sources on the Web tell me that
is no longer necessary in Squeeze, because there is better support in
the kernel for this graphics chipset, and indeed the 915resolution
package no longer even seems to exist.  

Curious to me also is the fact that xorg.conf no longer exists.  Again,
sources on the Web tell me that this is because X now auto-configures
itself, so a static configuration file is not necessary (though it will
be used if provided).

So this brings me to my puzzle.  Normally, I would look to set the
available resolutions in xorg.conf.  But since there is no xorg.conf,
I'm not sure where to go.  I can see at least one option:

2) provide an xorg.conf that will set the native resolution.  

I'm not sure exactly how to do this.  I read that Xorg -config can dump
X's auto-detected configuration, which I could then tweak, but I am not
sure exactly what command I would use to do this ("Xorg -config" alone
yields "Required argument to -config not specified").

However, I suspect that there is deeper trouble afoot than simply a
missing resolution in my X configuration.  When I start X, there is a
brief moment of onscreen garbage (randomly colored bars, etc.) before
the screen goes blank and stumpwm starts (in a lower resolution).  This
leads me to believe that something in the auto-detection is failing and
X is falling back to some default settings.  Unfortunately, I don't see
anything in /var/log/Xorg.0.log that would indicate this (is there
another log I should check?).

Any advice as to how to proceed here would be greatly appreciated!  If
anyone has a working configuration of X, with native resolution, on a
Macbook with an Intel card, in Squeeze, I'd be happy to hear about it.

Thanks!

Richard




Reply to: