LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 04-04-2005, 01:36 PM   #1
iscurrah
Member
 
Registered: Jan 2005
Location: Szeged, Hungary
Distribution: Slackware 10
Posts: 35

Rep: Reputation: 15
Changing the Xorg virtual desktop resolution


Hi,

Over the past few weeks I changed from Slackware 10 to 10.1 (upgraded rather than reinstalled). I've only just noticed something that has gone wrong... My screen resolution is - as I usually want - 1600x1200. The virtual desktop size is exactly the same - a standard desktop.

If I try to change my resolution (actually I want to change the virtual desktop setting - but keep it 1:1 with the screen resolution) to anything else (800x600 for example) then the screen resolution stays the same at 1600x1200, but the virtual desktop is shrunk to 800x600 and fills only 1/4 of my screen.

I'm embarrased - I haven't found the reason for this, so please help put me out of my misery.

Oh, and the line in the Monitor section : 'Option "SyncOnGreen"' does what exactly ? I've added it only recently, but found that it changes nothing I can tell.

Thanks in advance,

Iain Scurrah.



/etc/X11/xorg.conf :

Section "Module"
Load "dbe" # Double buffer extension
SubSection "extmod"
Option "omit xfree86-dga" # don't initialise the DGA extension
EndSubSection
Load "type1"
Load "freetype"
Load "glx"
Load "dri"
EndSection

Section "Files"
RgbPath "/usr/X11R6/lib/X11/rgb"
FontPath "/usr/X11R6/lib/X11/fonts/local/"
FontPath "/usr/X11R6/lib/X11/fonts/misc/"
FontPath "/usr/X11R6/lib/X11/fonts/75dpi/:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/100dpi/:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/Type1/"
FontPath "/usr/X11R6/lib/X11/fonts/TTF/"
FontPath "/usr/X11R6/lib/X11/fonts/cyrillic/"
FontPath "/usr/X11R6/lib/X11/fonts/75dpi/"
FontPath "/usr/X11R6/lib/X11/fonts/100dpi/"
EndSection

Section "ServerFlags"
EndSection

Section "InputDevice"
Identifier "Keyboard1"
Driver "kbd"
Option "AutoRepeat" "500 30"
Option "XkbRules" "xorg"
Option "XkbModel" "pc105"
Option "XkbLayout" "hu"
EndSection

Section "InputDevice"
Identifier "Mouse1"
Driver "mouse"
Option "Protocol" "IMPS/2"
Option "Device" "/dev/mouse"
Option "ZAxisMapping" "4 5"
Option "Emulate3Buttons" "no"
EndSection

Section "Monitor"
Identifier "C993"
HorizSync 30-95
VertRefresh 50-160
Option "DPMS"
Option "SyncOnGreen"
EndSection

Section "Device"
Identifier "Standard VGA"
VendorName "Unknown"
BoardName "Unknown"
Driver "vga"
EndSection

Section "Device"
Identifier "Radeon"
Driver "radeon"
Option "AGPMode" "4"
Option "AGPFastWrite" "on"
Option "EnablePageFlip" "on"
EndSection

Section "Screen"
Identifier "Screen 1"
Device "Radeon"
Monitor "C993"
DefaultDepth 24
Subsection "Display"
Depth 8
Modes "1600x1200" "1280x1024" "1024x768" "800x600" "640x480"
ViewPort 0 0
EndSubsection
Subsection "Display"
Depth 16
Modes "1600x1200" "1280x1024" "1024x768" "800x600" "640x480"
ViewPort 0 0
EndSubsection
Subsection "Display"
Depth 24
Modes "1600x1200" "1280x1024" "1024x768" "800x600" "640x480"
ViewPort 0 0
EndSubsection
EndSection

Section "ServerLayout"
Identifier "Simple Layout"
Screen "Screen 1"
InputDevice "Mouse1" "CorePointer"
InputDevice "Keyboard1" "CoreKeyboard"
EndSection

Section "DRI"
Mode 0666
EndSection
 
Old 04-04-2005, 01:49 PM   #2
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
you could try to add the virtual line:

Depth 24
Modes "1600x1200" "1280x1024" "1024x768" "800x600" "640x480"
ViewPort 0 0
Virtual 800 600 (or whatever the new res is)
EndSubsection
 
Old 04-04-2005, 02:29 PM   #3
iscurrah
Member
 
Registered: Jan 2005
Location: Szeged, Hungary
Distribution: Slackware 10
Posts: 35

Original Poster
Rep: Reputation: 15
Cheers, but that would give me a fixed desktop resolution.

Normally - at least in my experience - if change the resolution within Xorg, without restarting the server, it will give the same desktop resolution as screen resolution. I.e. going from 1600x1200 to 800x600 should give physcally (cm) bigger icons and text. That's not happening for me. If I use <ctrl>+<alt>+<numeric +> then the desktop changes size, but the screen resolution remains at 1600x1200. The text and icons remain the same size, but a smaller portion of my screen real estate is used. At 800x600, only one quater of my screen is being used, the other three quarters is just black.

It is a bit like the first LCD screens, they could display at one resolution only, if you requested a smaller resolution, then the desktop would appear with a unused border around it ...
 
Old 04-04-2005, 02:42 PM   #4
chbin
Member
 
Registered: Mar 2005
Distribution: slackware-current
Posts: 379

Rep: Reputation: 31
I'm not quite sure what you are asking but I think you mean the DPI. When you change resolution things get to big or to small?

Anyway, you could set the DPI for you monitor to avoid this.

Just put the DisplaySize in the monitor section.

DisplaySize w_in_mm h_in_mm


You can either measure your screen or look it up at your monitors homepage, samsung or whatever. This will keep things the same size when you switch resolutions. Lots of people just pass dpi 96 to X, which is wrong becuase it assumes you monitor is a fixed dpi at any resolution.
 
Old 04-05-2005, 01:09 PM   #5
iscurrah
Member
 
Registered: Jan 2005
Location: Szeged, Hungary
Distribution: Slackware 10
Posts: 35

Original Poster
Rep: Reputation: 15
Hmmm, my explanations seem to be as clear as mud! Doctored screen shots would be great - but I'm not allowed to post attachments.

I have a 19" monitor that is capable of 1600x1200. This is the normal resolution that I work at. At 1600x1200, the entire screen (19") is filled.

Sometimes, I want to change to a lower resolution (800x600) - either via the ctrl+alt+'num+', or via the 'Screen Resize and Rotate' program. When I do this, I want the new resolution to be shown using the whole monitor, ie 19" diagonal. Sadly, it doesn't happen, the new display only fills a quarter of the 19" - ie it is just over 5" diagonally, and it is located at the top right of the monitor screen.

Remember when you could have a virtual desktop (e.g. 2048x2048) that was bigger than the resolution of your monitor (eg 1024x768) ? You could scroll around the desktop - but showing only only a certain portion of the desktop at one time. I've got the opposite problem - when my desktop resolution (and desired screen resolution) is smaller than my standard screen resolution. At this time, I get a tiny desktop (800x600), but my monitor resolution remains at 1600x1200.

Code:
My monitor at 1600x1200 :
XXXX
XXXX
XXXX
XXXX

X shows when the monitor displays a picture. O shows totally blank unusable screen real estate. At 800x600, I get :
XXOO
XXOO
OOOO
OOOO
If you still don't understand, please mail me - my linuxquestions username at hotmail dot com. I'll send two tiny examples.

Thanks in advance,

Iain Scurrah.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 screen resolution on Xorg Bopi Linux - General 5 11-26-2005 05:15 AM
Changing resolution on a Dell dimension 3000 desktop. rhcpbnl Linux - Newbie 6 09-28-2005 02:21 PM
Changing resolution in FC3. Which xorg.conf line do I edit? ColKurtz Linux - Newbie 2 02-18-2005 12:09 PM
changing the desktop resolution dmann304 Linux - General 10 11-18-2003 10:27 PM
Virtual Desktop vs. Resolution chiphart Linux - Hardware 8 07-16-2003 11:57 AM


All times are GMT -5. The time now is 08:05 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration