LinuxQuestions.org
Visit the LQ Articles and Editorials section
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 12-29-2003, 02:20 PM   #1
rmcb
LQ Newbie
 
Registered: Dec 2003
Posts: 10

Rep: Reputation: 0
Monitor/desktop setup problem


At every boot, my desktop is slightly off towards the right of my monitor.
I can easily move it back with the buttons on the monitor but it is a bit of a pain.
I have not had this problem with Mandrake, Redhat, Fedora etc.
Is there a way to fix it?
Hp d1193a 17" monitor on nvida geforce mx/mx400 card.
Thanks
 
Old 12-29-2003, 02:28 PM   #2
darin3200
Guru
 
Registered: Dec 2002
Distribution: Gentoo!
Posts: 1,153

Rep: Reputation: 45
Log in as root, the go to /etc/X11 and modify your XF86Config file. Find a section that looks like this and try changing the horizontal sync range by slightly lowering both numbers and finding a place you are happy with.
Code:
# **********************************************************************
# Monitor section
# **********************************************************************

# Any number of monitor sections may be present

Section "Monitor"

    Identifier  "My Monitor"

# HorizSync is in kHz unless units are specified.
# HorizSync may be a comma separated list of discrete values, or a
# comma separated list of ranges of values.
# NOTE: THE VALUES HERE ARE EXAMPLES ONLY.  REFER TO YOUR MONITOR'S
# USER MANUAL FOR THE CORRECT NUMBERS.

    HorizSync   31.5 - 64.3

#    HorizSync	30-64         # multisync
#    HorizSync	31.5, 35.2    # multiple fixed sync frequencies
#    HorizSync	15-25, 30-50  # multiple ranges of sync frequencies

# VertRefresh is in Hz unless units are specified.
# VertRefresh may be a comma separated list of discrete values, or a
# comma separated list of ranges of values.
# NOTE: THE VALUES HERE ARE EXAMPLES ONLY.  REFER TO YOUR MONITOR'S
# USER MANUAL FOR THE CORRECT NUMBERS.

    VertRefresh 50-100

EndSection
 
Old 12-29-2003, 02:51 PM   #3
aaa
Guru
 
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194

Rep: Reputation: 46
The numbers shouldn't be changed, they are limits for x so it doesn't accidentally ruin your monitor. The position is determined by the Modeline. You may not see one in your XF86Config, because X has some builtin. Use the xf86cfg or xvidtune tool to easily edit/create modelines. All you have to do is press the arrow buttons to move your screen around (better than the monitor because it may not save your setting), and the tools will create a modeline for you. Note that xvidtune does not automatically save the modeline, click the 'Show' button and paste it from the terminal you launched it in to the XF86Config file. Search for exactly where to put it (search for posts with the XF86Config in them).
 
Old 12-29-2003, 03:48 PM   #4
darin3200
Guru
 
Registered: Dec 2002
Distribution: Gentoo!
Posts: 1,153

Rep: Reputation: 45
Oops, thanks for the other way. Its a lot easier.
 
Old 12-29-2003, 06:27 PM   #5
rmcb
LQ Newbie
 
Registered: Dec 2003
Posts: 10

Original Poster
Rep: Reputation: 0
Thanks for the replys guys. However I just get "command not found" for both of those.
I did a full install and I am root.
Cheers
 
Old 12-29-2003, 06:38 PM   #6
darin3200
Guru
 
Registered: Dec 2002
Distribution: Gentoo!
Posts: 1,153

Rep: Reputation: 45
try
locate xf86cfg
or
whereis xf86cfg
 
Old 12-30-2003, 12:46 AM   #7
rmcb
LQ Newbie
 
Registered: Dec 2003
Posts: 10

Original Poster
Rep: Reputation: 0
Weird.... Sometimes it will run xvidtune and sometimes not...
Anyway I found how to use it & these are the settings that centres things nicely.
Now just to find how to add them to my config file.....

rob@robs:~$ xvidtune
Vendor: Hewlett-Packard, Model: Ultra VGA 17 inch
Num hsync: 1, Num vsync: 1
hsync range 0: 30.00 - 64.00
vsync range 0: 50.00 - 90.00
"800x600" 60.75 800 884 948 1088 600 616 621 657 -hsync -vsync
 
Old 12-30-2003, 02:01 PM   #8
aaa
Guru
 
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194

Rep: Reputation: 46
*aaa digs up his XF86Config*
The last line is the 'modeline'. It's final form in the file should look like this:
Code:
ModeLine "800x600" 60.75 800 884 948 1088 600 616 621 657 -hsync -vsync
Here are some of mine. As you can see, they go in the 'Monitor' section. Open the file, search for 'Section "Monitor"'.
Code:
Section "Monitor"
	Identifier   "Compaq MV540"
	VendorName   "Compaq"
	ModelName    "MV540"
	HorizSync    31.5 - 54.0
	VertRefresh  50.0 - 120.0
	ModeLine     "1024x768"         65.0 1024 1028 1164 1300 768 779 785 802 -hsync -vsync
	ModeLine     "1024x768@62"      65.0 1024 1028 1164 1300 768 779 785 802 -hsync -vsync
	ModeLine     "800x600/72Hz"     50.0 800 856 976 1040 600 637 643 666 +hsync +vsync
EndSection
The example darin3200 posted didn't have any modelines because X can use it's builtin ones.
 
Old 12-30-2003, 08:08 PM   #9
rmcb
LQ Newbie
 
Registered: Dec 2003
Posts: 10

Original Poster
Rep: Reputation: 0
Thanks for the help people, got it working well now.
 
  


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
setup problem - cannot login/cannot load desktop eeee Linux - Newbie 3 10-27-2005 05:20 PM
Need a Desktop/Window Manager for multiple monitor setup. kierl Linux - Software 1 02-22-2005 02:00 AM
dual monitor setup problem using 2 cards steefje Linux - Hardware 2 11-17-2004 09:28 AM
NIS/graphical desktop setup problem pfaendtner Linux - Software 1 07-27-2004 04:12 PM
Monitor setup problem crucco Linux - Newbie 2 06-19-2003 04:33 PM


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

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