LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
Linux - Laptop and Netbook Having a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).

Notices


Reply
  Search this Thread
Old 09-14-2009, 08:31 AM   #1
Majkl578
LQ Newbie
 
Registered: Sep 2009
Location: Czech Republic
Distribution: Debian
Posts: 4

Rep: Reputation: 0
Cloning screen to an external monitor using fglrx


Hello, it's the first time I'm writing here.

I'm having troubles with cloning my desktop on an external monitor.

I'm running Debian Lenny (sid updates) on kernel 2.6.30 and FGLRX installed via official installer (ati-driver-installer-9-3-x86.x86_64.run). Kernel module does not work (compilation failure), but it only disallows me to probe it and use OpenGL.
I've ASUS F3KE laptop with ATI Mobility Radeon X2300.

Now, I'm trying to clone (mirror) my desktop to an external monitor. I use 1280x800 as a resolution for my laptop. External monitor (in fact, it's NEC projector) has maximal resolution 1024x768. On MS Windows, it worked perfectly, it automatically resized output to fit there (with respect to 16:10). The problem is that resolution on external monitor is being set incorrectly.

I tried a lot of possibilities (amdcccle, xorg.conf modifications, etc) which I've found on internet, but none of them works...

Any suggestions how to make the output to behave and be resized correctly?

Last edited by Majkl578; 09-14-2009 at 08:36 AM.
 
Old 09-14-2009, 08:42 AM   #2
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
Quote:
FGLRX installed via official installer
Why not use the official lenny package. Be aware that the official installer has been known no hose systems, though not for a while.

Quote:
Kernel module does not work (compilation failure), but it only disallows me to probe it and use OpenGL.
That means it is not going.
You are probably still using a free software driver.
Verify by checking your xorg.conf

xrandr handles automagically cloning for external monitors - though often you find that the internal screen gets the lower resolution. Lenny should be set up for this already.

IIRC: glrx also has its own cloning method.
With this information, I will advise: uninstall the driver, restore the old xorg.conf then use the free software drivers to work out the cloning issues. If you still want 3D acceleration, install the lenny package with apt.

So, you are expecting 1024x768 - what are you getting?
 
Old 09-14-2009, 08:58 AM   #3
Majkl578
LQ Newbie
 
Registered: Sep 2009
Location: Czech Republic
Distribution: Debian
Posts: 4

Original Poster
Rep: Reputation: 0
Quote:
hy not use the official lenny package.
I tried official packages, but these are not working yet (there's a bug in kernel module). It also requires newer xserver which is not compatible with gsynaptics. :/

Quote:
Verify by checking your xorg.conf
My actual xorg.conf is here: http://lq.majkl578.cz/xorg.conf
I think it's correct - driver is fglrx

Quote:
So, you are expecting 1024x768 - what are you getting?
I'm expecting to have 1280x800 on my laptop and cramped version of it (with black zones on the top and bottom) on 1024x768 (as it is external monitor's maximum).
I'm getting incomplete desktop - when I move a cursor to different corner, it moves because 1280x800 is too large...
 
Old 09-14-2009, 09:20 AM   #4
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
Quote:
I think it's correct - driver is fglrx
... that cannot be correct because you do not have the fglrx driver installed.

Quote:
when I move a cursor to different corner, it moves because 1280x800 is too large...
Cool! I've not seen that before... it sounds like it is working then - though it's normally the other way round.

Here's what normally happens - on projector you get a full size desktop filling the screen (no black bits) at 1024x768, on your laptop, the screen resizes to 1024x768. It sounds like you have 1280x800 on both screens, and the whole desktop shifts with mouse movements - like it is zoomed, like super+mouse wheel in compiz.

I have seen this happen on a laptop screen when the external monitor has a higher resolution ... in which case the laptop gets the zoomed desktop.

So - resize your screen to 1024x768 when you do presentations.

I suspect you need to add modelines to the display sections of xorg.conf to make this work automatically.
But you really should get that driver compiled.

The most common compiler error is due to missing headers.

Last edited by Simon Bridge; 09-14-2009 at 09:22 AM.
 
Old 09-14-2009, 10:15 AM   #5
Majkl578
LQ Newbie
 
Registered: Sep 2009
Location: Czech Republic
Distribution: Debian
Posts: 4

Original Poster
Rep: Reputation: 0
Quote:
The most common compiler error is due to missing headers.
The problem is not in compiling the module, but in "modprobe fglrx", it can't allocate memory (dunno where the problem is).

Quote:
So - resize your screen to 1024x768 when you do presentations
If this is the only one solution, I've no other choice...
But I'm used to have a comfort from windows.. - 1280x800 on my laptop and resized 1280x800 on external 1024x768 monitor...

Finally I removed ATI proprietary, updated xserver to 7.4 (with its subcomponents like drivers) and got X working thru free driver.

But the point of this topic has not been solved yet. :/
 
Old 09-14-2009, 10:51 AM   #6
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
You have two issues -

1. installing fglrx. Lets deal with that later.
2. external monitor resolution - you want external monitor to have correct resolution - you are prepared to allow the internal to be lower for the presentation?

The workaround suggested is resizing the resolution to 1024x768 for presentations. This is easiest but uncomfortable, especially if you do a lot of presentations.

The next thing you did not mention trying was adding modes to xorg.conf display subsection so X does not have to guess the correct resolution. Have you tried that?

I'm guessing your xorg.conf is different now.

Next time you have the external plugged in, open a terminal and try:

$ sudo dpkg-reconfigure -phigh xserver-xorg
Then check your xorg.conf to see if extra entries have been added.

xrandr

this should give you a list of monitors (by output) and resolutions. If vga is not connected to anything it will just say so.

xrandr --output VGA --mode 1024x768

should do the trick - provided VGA is the external of course.
If you are using the radeon driver, then that will be vga-0

BUT, this is the same as adding modes to xorg.conf

How about:

xrandr --output VGA --right-of LVDS

Now it's dual head.

xrandr --output LVDS --rotate left



A decent guide for configuring xorg.conf for xrandr - see
http://www.thinkwiki.org/wiki/Xorg_RandR_1.2#xorg.conf

Last edited by Simon Bridge; 09-14-2009 at 10:52 AM.
 
Old 09-14-2009, 12:17 PM   #7
Majkl578
LQ Newbie
 
Registered: Sep 2009
Location: Czech Republic
Distribution: Debian
Posts: 4

Original Poster
Rep: Reputation: 0
Quote:
installing fglrx. Lets deal with that later.
I am not able to use fglrx until the bug will be fixed.

Quote:
I'm guessing your xorg.conf is different now.
here it is: http://lq.majkl578.cz/xorg.conf~2

Quote:
$ sudo dpkg-reconfigure -phigh xserver-xorg
Then check your xorg.conf to see if extra entries have been added.
there is no difference after running this command.

Quote:
xrandr

this should give you a list of monitors (by output) and resolutions. If vga is not connected to anything it will just say so.
yep, output is:
Code:
Screen 0: minimum 320 x 200, current 1280 x 800, maximum 1280 x 1280
VGA-0 connected (normal left inverted right x axis y axis)
   800x600        60.3 +   85.1     72.2     75.0     60.3     56.2  
   1024x768       85.0     75.0     70.1     60.0  
   832x624        74.6  
   640x480        85.0     75.0     72.8     66.7     59.9  
   720x400        70.1  
LVDS connected 1280x800+0+0 (normal left inverted right x axis y axis) 0mm x 0mm
   1280x800       60.0*+
   1280x720       59.9  
   1152x768       59.8  
   1024x768       60.0     59.9  
   800x600        60.3     59.9  
   640x480        59.9     59.4  
DVI-0 disconnected (normal left inverted right x axis y axis)
Quote:
xrandr --output VGA --mode 1024x768

should do the trick - provided VGA is the external of course.
If you are using the radeon driver, then that will be vga-0
this does what I want, but the problem with different resolution persists (using 1280x800 ).

Quote:
How about:

xrandr --output VGA --right-of LVDS

Now it's dual head.

xrandr --output LVDS --rotate left
Well I think this isn't what I want to do. This does not clone the laptop's desktop, but extends it to an external monitor.

So, I see there is probably no other possibility how to do it without changing notebook's resolution (maybe fglrx can do it, but can't try it)....
 
  


Reply

Tags
clone, external, laptop, monitor



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
changing the screen resolution of the external monitor using IBM thinkpad X61s and ub chKhurum Linux - Newbie 0 10-16-2008 12:09 PM
External monitor different from notebook screen dougnc Linux - Laptop and Netbook 0 02-25-2008 03:27 PM
Cloning monitor screen/nVidia/X-server problem stoppage Linux - Newbie 4 02-02-2008 03:38 PM
External monitor picture displays incorrectly across screen Laen Linux - Laptop and Netbook 5 12-03-2007 02:02 PM
External Monitor with VGA cable to Laptop --->Blue Screen alpharm Linux - Laptop and Netbook 2 11-02-2006 11:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook

All times are GMT -5. The time now is 11:48 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration