[OT] Re: Changing screens

2007-05-21 Thread Florian Kulzer
On Sun, May 20, 2007 at 13:56:16 -0700, Andrew Sackville-West wrote:
 On Sun, May 20, 2007 at 08:38:25PM +0200, Matthias Brennwald wrote:
  Dear all
  
  I've got a laptop (Apple PowerBook G4) that I use both at home and on 
  the road (with Debian Etch installed). At home, the laptop is connected 
  to an external screen, with the laptop closed (so, at home, I don't use 
  the laptops own screen). The two screens have different resolutions 
  (laptop screen: 1440 x 1024, external screen at home: 1280 x 1024).
  
  The problem is that Debian uses the same screen resolution for both 
  screens, wich I find annoying (it uses 1440 x 1024, which means that the 
  image is larger than what fits on my external screen). How can I make 
  Debain use the appropriate screen size? Do I have to set it manually or 
  is there a way to adjust the screen size automatically?
  
 
 If there is some surefire way to tell which monitor is connected, then
 it should be a simple matter to restart X with a script that checks
 which monitor you're using and points to the appropriate xorg.conf
 (or even changes the file directly (not recommened)). 

Something like

ddcprobe | egrep 'eisa|serial'

will probably give enough information as long as the monitor is DDC
capable. (ddcprobe is in package xresprobe)

 
 If monitor detection is not really possible (I personally wouldn't
 know how to do it) then a simple script could be used to change a
 symlink to point to the appropriate xorg.conf. then an /etc/init.d/*dm
 restart would fix you right up. 
 
 there are many solutions but essentially you have to set up some
 situation where you can put different xorg.conf's in place as needed. 

-- 
Regards,| http://users.icfo.es/Florian.Kulzer
  Florian   |


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: [OT] Re: Changing screens

2007-05-21 Thread Andrew Sackville-West
On Mon, May 21, 2007 at 11:55:37AM +0200, Florian Kulzer wrote:
 On Sun, May 20, 2007 at 13:56:16 -0700, Andrew Sackville-West wrote:
  On Sun, May 20, 2007 at 08:38:25PM +0200, Matthias Brennwald wrote:
   Dear all
   
   I've got a laptop (Apple PowerBook G4) that I use both at home and on 
   the road (with Debian Etch installed). At home, the laptop is connected 
   to an external screen, with the laptop closed (so, at home, I don't use 
   the laptops own screen). The two screens have different resolutions 
   (laptop screen: 1440 x 1024, external screen at home: 1280 x 1024).
   
   The problem is that Debian uses the same screen resolution for both 
   screens, wich I find annoying (it uses 1440 x 1024, which means that the 
   image is larger than what fits on my external screen). How can I make 
   Debain use the appropriate screen size? Do I have to set it manually or 
   is there a way to adjust the screen size automatically?
   
  
  If there is some surefire way to tell which monitor is connected, then
  it should be a simple matter to restart X with a script that checks
  which monitor you're using and points to the appropriate xorg.conf
  (or even changes the file directly (not recommened)). 
 
 Something like
 
 ddcprobe | egrep 'eisa|serial'

cool. thanks Florian

A


signature.asc
Description: Digital signature


Changing screens

2007-05-20 Thread Matthias Brennwald

Dear all

I've got a laptop (Apple PowerBook G4) that I use both at home and on 
the road (with Debian Etch installed). At home, the laptop is connected 
to an external screen, with the laptop closed (so, at home, I don't use 
the laptops own screen). The two screens have different resolutions 
(laptop screen: 1440 x 1024, external screen at home: 1280 x 1024).


The problem is that Debian uses the same screen resolution for both 
screens, wich I find annoying (it uses 1440 x 1024, which means that the 
image is larger than what fits on my external screen). How can I make 
Debain use the appropriate screen size? Do I have to set it manually or 
is there a way to adjust the screen size automatically?


Matthias


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: Changing screens

2007-05-20 Thread Mumia W..

On 05/20/2007 01:38 PM, Matthias Brennwald wrote:

Dear all

I've got a laptop (Apple PowerBook G4) that I use both at home and on 
the road (with Debian Etch installed). At home, the laptop is connected 
to an external screen, with the laptop closed (so, at home, I don't use 
the laptops own screen). The two screens have different resolutions 
(laptop screen: 1440 x 1024, external screen at home: 1280 x 1024).


The problem is that Debian uses the same screen resolution for both 
screens, wich I find annoying (it uses 1440 x 1024, which means that the 
image is larger than what fits on my external screen). How can I make 
Debain use the appropriate screen size? Do I have to set it manually or 
is there a way to adjust the screen size automatically?


Matthias




You can edit /etc/X11/xorg.conf so that X only knows about the 
resolution(s) you want to use. The resolution is controlled by both the 
display depth and the list of allowed modes.


First, shutdown X windows: log into a virtual console as root and type 
'/etc/init.d/gdm stop (assuming that your display manager is 
gdm--adjust to your environment). Copy your xorg.conf to a backup file, 
e.g. xorg.conf.bak.


Find your DefaultDepth in xorg.conf. Each display depth (8, 16, 24, 
...) has its own section in the configuration file. Find the section for 
your depth and edit the list of allowable modes so that only 1280x1024 
appears.


Save the modified xorg.conf and restart gdm (or kdm or xdm). The display 
should have the appropriate size.



Another option would be to have both 1440x1024 and 1280x1024 in the 
modes list and to use Control-Alt-Plus to switch between the modes.


I hope this helps.


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: Changing screens

2007-05-20 Thread Matthias Brennwald

[EMAIL PROTECTED] wrote:

Another option would be to have both 1440x1024 and 1280x1024 in the 
modes list 


What would this look like? Two 'Modes' lines? Or one line with two 
entries? How are they separated (space, comma, whatever)?



and to use Control-Alt-Plus to switch between the modes.


Control-Alt-Plus changes the font size in my mailtool...

Matthias


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: Changing screens

2007-05-20 Thread Andrew Sackville-West
On Sun, May 20, 2007 at 08:38:25PM +0200, Matthias Brennwald wrote:
 Dear all
 
 I've got a laptop (Apple PowerBook G4) that I use both at home and on 
 the road (with Debian Etch installed). At home, the laptop is connected 
 to an external screen, with the laptop closed (so, at home, I don't use 
 the laptops own screen). The two screens have different resolutions 
 (laptop screen: 1440 x 1024, external screen at home: 1280 x 1024).
 
 The problem is that Debian uses the same screen resolution for both 
 screens, wich I find annoying (it uses 1440 x 1024, which means that the 
 image is larger than what fits on my external screen). How can I make 
 Debain use the appropriate screen size? Do I have to set it manually or 
 is there a way to adjust the screen size automatically?
 

If there is some surefire way to tell which monitor is connected, then
it should be a simple matter to restart X with a script that checks
which monitor you're using and points to the appropriate xorg.conf
(or even changes the file directly (not recommened)). 

If monitor detection is not really possible (I personally wouldn't
know how to do it) then a simple script could be used to change a
symlink to point to the appropriate xorg.conf. then an /etc/init.d/*dm
restart would fix you right up. 

there are many solutions but essentially you have to set up some
situation where you can put different xorg.conf's in place as needed. 


A


signature.asc
Description: Digital signature


Re: Changing screens

2007-05-20 Thread Andrew Sackville-West
On Sun, May 20, 2007 at 10:34:07PM +0200, Matthias Brennwald wrote:
 [EMAIL PROTECTED] wrote:
 
 Another option would be to have both 1440x1024 and 1280x1024 in the 
 modes list 
 
 What would this look like? Two 'Modes' lines? Or one line with two 
 entries? How are they separated (space, comma, whatever)?
 
 and to use Control-Alt-Plus to switch between the modes.
 
 Control-Alt-Plus changes the font size in my mailtool...

keypad plus, or change focus away from your mua

A


signature.asc
Description: Digital signature


Re: Changing screens

2007-05-20 Thread Mumia W..

On 05/20/2007 03:34 PM, Matthias Brennwald wrote:

[EMAIL PROTECTED] wrote:

Another option would be to have both 1440x1024 and 1280x1024 in 
the modes list 


What would this look like? Two 'Modes' lines? Or one line with two 
entries? How are they separated (space, comma, whatever)?




They're on the same line separated by spaces:

Modes 1280x1024 1440x1024


and to use Control-Alt-Plus to switch between the modes.


Control-Alt-Plus changes the font size in my mailtool...

Matthias




I meant to use the keypad plus :-)



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: Changing screens

2007-05-20 Thread Tadeusz Bak



On Sun, 20 May 2007, Mumia W.. wrote:


On 05/20/2007 01:38 PM, Matthias Brennwald wrote:

[...]


Another option would be to have both 1440x1024 and 1280x1024 in the modes 
list and to use Control-Alt-Plus to switch between the modes.


You can also use the ServerLayout option to choose an appropriate mode, 
see the man page for server configuration file (XF86Config-4 on sarge, 
xorg.conf on etch).


Regards,
  Tad


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]