LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 01-18-2007, 11:52 AM   #1
Bonzo105
LQ Newbie
 
Registered: Jan 2007
Location: South America
Distribution: Slackware 11
Posts: 4

Rep: Reputation: 0
Screen resolution on Fluxbox


hi, i need help.

How can i change the screen resolution on fluxbox?

I wanna be in 800x600 (yes ugly, but i need it), now im in 1024x764, i just edit the
xorg.conf, but the virtual screen is bigger than the screen, i change the HoriSync and VertSync and nothing, in kde i do it well with the control panel but in fluxbox i dont know how to do it.
 
Old 01-18-2007, 02:53 PM   #2
ramram29
Member
 
Registered: Jul 2003
Location: Miami, Florida, USA
Distribution: Debian
Posts: 848
Blog Entries: 1

Rep: Reputation: 47
All you need to do is specify "800x600" as the first and default resolution in xorg.conf. Print out your xorg.conf.
 
Old 01-20-2007, 08:56 AM   #3
Bonzo105
LQ Newbie
 
Registered: Jan 2007
Location: South America
Distribution: Slackware 11
Posts: 4

Original Poster
Rep: Reputation: 0
yes, i did it, and i get 800x600 but the screen is bigger than the physical screen, i have to move the mouse to see the rest of the window. Now i use xrandr to set 800x600 and looks good, yes i can add "xranrd -s 3" in the fluxbox init, but is not a good practice i wanna know: why if i set "800x600" as first end default option in xorg.conf i dont get a 800x600 that can fit in my physical screen.



here goes my xorg.conf:

Section "ServerLayout"
Identifier "X.org Configured"
Screen 0 "Screen0" 0 0
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
RgbPath "/usr/X11R6/lib/X11/rgb"
ModulePath "/usr/X11R6/lib/modules"
FontPath "/usr/X11R6/lib/X11/fonts/misc/"
FontPath "/usr/X11R6/lib/X11/fonts/TTF/"
FontPath "/usr/X11R6/lib/X11/fonts/Type1/"
FontPath "/usr/X11R6/lib/X11/fonts/CID/"
FontPath "/usr/X11R6/lib/X11/fonts/75dpi/"
FontPath "/usr/X11R6/lib/X11/fonts/100dpi/"
EndSection

Section "Module"
Load "glx"
Load "extmod"
Load "xtrap"
Load "record"
Load "dbe"
Load "dri"
Load "freetype"
Load "type1"
EndSection

Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
Option "XkbModel" "pc102"
Option "XkbLayout" "es"
EndSection

Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/mouse"
Option "ZAxisMapping" "4 5 6 7"
EndSection

Section "Monitor"
#DisplaySize 280 210 # mm
Identifier "Monitor0"
VendorName "DWE"
ModelName "518X"
### Comment all HorizSync and VertSync values to use DDC:
HorizSync 30.0 - 54.0
VertRefresh 50.0 - 120.0
Option "DPMS"
EndSection

Section "Device"
### Available Driver options are:-
### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
### [arg]: arg optional
#Option "slow_edodram" # [<bool>]
#Option "slow_dram" # [<bool>]
#Option "fast_dram" # [<bool>]
#Option "fpm_vram" # [<bool>]
#Option "pci_burst" # [<bool>]
#Option "fifo_conservative" # [<bool>]
#Option "fifo_moderate" # [<bool>]
#Option "fifo_aggressive" # [<bool>]
#Option "pci_retry" # [<bool>]
#Option "NoAccel" # [<bool>]
#Option "early_ras_precharge" # [<bool>]
#Option "late_ras_precharge" # [<bool>]
#Option "lcd_center" # [<bool>]
#Option "set_lcdclk" # <i>
#Option "set_mclk" # <freq>
#Option "set_refclk" # <freq>
#Option "show_cache" # [<bool>]
#Option "HWCursor" # [<bool>]
#Option "SWCursor" # [<bool>]
#Option "ShadowFB" # [<bool>]
#Option "Rotate" # [<str>]
#Option "UseFB" # [<bool>]
#Option "mxcr3afix" # [<bool>]
#Option "XVideo" # [<bool>]
Identifier "Card0"
Driver "s3virge"
VendorName "S3 Inc."
BoardName "Trio 64 3D"
BusID "PCI:1:1:0"
EndSection

Section "Screen"
Identifier "Screen0"
Device "Card0"
Monitor "Monitor0"
DefaultDepth 16
SubSection "Display"
Viewport 0 0
Depth 1
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 4
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 8
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 15
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 16
Modes "800x600" "1600x1200" "1280x1024" "1024x768" "640x480"
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 24
EndSubSection
EndSection
 
Old 01-22-2007, 07:56 AM   #4
ramram29
Member
 
Registered: Jul 2003
Location: Miami, Florida, USA
Distribution: Debian
Posts: 848
Blog Entries: 1

Rep: Reputation: 47
Everything looks good. You will need to setup the Horizontal and Vertial Sync.

Download and install the package hwinfo, then run:

hwinfo | less

In Debian you can run "apt-get install hwinfo". In Fedora I think you can run "yum install hwinfo".

It may take a while for the screen to show the results. Search for the section "Vert. Sync". It will be in vi mode so type /Vert. Sync

Look at the sections "Vert. Sync" and right below it "Hor. Sync" and notate them.

Edit /etc/X11/xorg.conf and make the changes in the corresponding settings.

Let me know if it worked.
 
Old 01-29-2007, 09:16 AM   #5
Bonzo105
LQ Newbie
 
Registered: Jan 2007
Location: South America
Distribution: Slackware 11
Posts: 4

Original Poster
Rep: Reputation: 0
it works fine, thanks
 
Old 01-29-2007, 03:06 PM   #6
ramram29
Member
 
Registered: Jul 2003
Location: Miami, Florida, USA
Distribution: Debian
Posts: 848
Blog Entries: 1

Rep: Reputation: 47
I'm glad. The only other thing I like to tweak after my fluxbox install is the TrueType fonts. You may want to google for instructions. But basically you can copy the TTF files to a directory and then specify them in /etc/sysconfig or something like that, then you have to edit the beginning of xorg.conf. You'll like the way the fonts come out much clearer and crisp.

That's basically the basics you need to setup X really nice: resolution, fonts, (maybe the touchpad mouse). Good luck.
 
  


Reply



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
I messed with the screen resolution and now Redhat will boot into a black screen! Mr. Hill Linux - Newbie 29 05-04-2009 11:52 AM
How do i fix screen resolution / monitor choice while screen is pretty much unreadabl tinkerdog Fedora 2 09-08-2006 03:53 AM
default screen resolution smaller than max. resolution ?? Thoddy Linux - General 2 11-10-2005 01:33 AM
How to change the screen resolution in Fluxbox madiyaan Linux - Newbie 1 11-27-2004 06:18 PM
Unable to configure screen resolution for 15.2" LCD screen in Fedore Core 1 schu Linux - Newbie 3 01-02-2004 05:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

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

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