Re: how to run root cmds when starting xorg?

2007-02-27 Thread Kirk Strauser
On Saturday 24 February 2007 17:24, [EMAIL PROTECTED] wrote:
> how do i exec a kldload script when starting ttyv8 kdm (or xorg) ?

Another idea not yet mentioned is to create two wrapper scripts like so:

$ cat /usr/local/bin/loadsound
#!/bin/sh
kldload whatever.ko
$ cat /usr/local/bin/unloadsound
#!/bin/sh
kldunload whatever.ko

and the install sudo and configure it to give your user the ability to run 
those two commands without entering your password.  Finally, add "sudo 
loadsound" and "sudo unloadsound" to your startup and exit scripts.
-- 
Kirk Strauser


pgpWUVdbZQYd0.pgp
Description: PGP signature


Re: how to run root cmds when starting xorg?

2007-02-25 Thread Tore Lund
Tore Lund wrote:
> The startup script is /usr/X11R6/lib/X11/xdm/Xsetup_0.  You may also
> want to have a look at /usr/X11R6/lib/X11/xdm/Xsession.  This latter
> file will call up ~/.xsession, which is where we normally put commands
> at the beginning of an X session called up through xdm.  What I do in
> that file is to call nvidia-settings and display a background image.  I
> guess ~/.xsession is the right place to put a kldload - this file may be
> simply a symlink to .xinitrc (if the setup you want is in this file).

Correction:  The file where I call nvidia-settings and display a
background image is /usr/X11R6/lib/X11/xdm/Xsetup_0.
-- 
Tore

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: how to run root cmds when starting xorg?

2007-02-25 Thread Tore Lund
"[EMAIL PROTECTED] wrote:
> Norberto Meijome wrote:
>> On Sun, 25 Feb 2007 00:24:49 +0100
>> [EMAIL PROTECTED] wrote:
>>
>>> From: [EMAIL PROTECTED]
>>> To: freebsd-questions@freebsd.org
>>> Subject: how to run root cmds when starting xorg?
>>> Date: Sun, 25 Feb 2007 00:24:49 +0100
>>> Sender: [EMAIL PROTECTED]
>>> User-Agent: Thunderbird 1.5.0.9 (Windows/20061207)
>>>
>>> how do i exec a kldload script when starting ttyv8 kdm (or xorg) ?
>> modify the xorg or kdm  startup script? 
> 
> Xorg's xinitrc is a user script. Or does one of the X server or client thing 
> start as root? If so, which script runs? xinitrc didnt work..
> "./kdm -nodaemon": exactly which one (if any) executed as root?

The startup script is /usr/X11R6/lib/X11/xdm/Xsetup_0.  You may also
want to have a look at /usr/X11R6/lib/X11/xdm/Xsession.  This latter
file will call up ~/.xsession, which is where we normally put commands
at the beginning of an X session called up through xdm.  What I do in
that file is to call nvidia-settings and display a background image.  I
guess ~/.xsession is the right place to put a kldload - this file may be
simply a symlink to .xinitrc (if the setup you want is in this file).

>> why do you need such thing?
> 
> I want to load sound support only when in a desktop environment, and 
> auto-disable it when moving back to a console. That is, I need a script that 
> loads sound when starting, and unloads when exiting kdm.

Okay, when you revert to the console, /usr/X11R6/lib/X11/xdm/Xreset may
be the right place to put a kldunload.  Or maybe you could use
GiveConsole and TakeConsole (in the same directory) to accomplish these
tasks.  I hope more expert users will chime in with more information
about the difference between these various command files.

Have a look at "man xdm" as well as /usr/X11R6/lib/X11/xdm/xdm-config.

For some reason, not many users appear to use xdm.  The majority
apparently prefer kdm or gdm or just .xinitrc.  I find that odd myself.
-- 
Tore


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: how to run root cmds when starting xorg?

2007-02-25 Thread deeptech71

Norberto Meijome wrote:

On Sun, 25 Feb 2007 00:24:49 +0100
[EMAIL PROTECTED] wrote:


From: [EMAIL PROTECTED]
To: freebsd-questions@freebsd.org
Subject: how to run root cmds when starting xorg?
Date: Sun, 25 Feb 2007 00:24:49 +0100
Sender: [EMAIL PROTECTED]
User-Agent: Thunderbird 1.5.0.9 (Windows/20061207)

how do i exec a kldload script when starting ttyv8 kdm (or xorg) ?


modify the xorg or kdm  startup script? 


Xorg's xinitrc is a user script. Or does one of the X server or client thing 
start as root? If so, which script runs? xinitrc didnt work..

"./kdm -nodaemon": exactly which one (if any) executed as root?


why do you need such thing?


I want to load sound support only when in a desktop environment, and 
auto-disable it when moving back to a console. That is, I need a script that 
loads sound when starting, and unloads when exiting kdm.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: how to run root cmds when starting xorg?

2007-02-25 Thread Norberto Meijome
On Sun, 25 Feb 2007 00:24:49 +0100
[EMAIL PROTECTED] wrote:

> From: [EMAIL PROTECTED]
> To: freebsd-questions@freebsd.org
> Subject: how to run root cmds when starting xorg?
> Date: Sun, 25 Feb 2007 00:24:49 +0100
> Sender: [EMAIL PROTECTED]
> User-Agent: Thunderbird 1.5.0.9 (Windows/20061207)
> 
> how do i exec a kldload script when starting ttyv8 kdm (or xorg) ?

modify the xorg or kdm  startup script? 

why do you need such thing?

_
{Beto|Norberto|Numard} Meijome

"The greater danger for most of us is not that our aim is too high and we miss
it. But that it is too low... and we reach it."
   Michelangelo (1475-1564)

I speak for myself, not my employer. Contents may be hot. Slippery when wet.
Reading disclaimers makes you go blind. Writing them is worse. You have been
Warned.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


how to run root cmds when starting xorg?

2007-02-24 Thread deeptech71

how do i exec a kldload script when starting ttyv8 kdm (or xorg) ?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: "Out of range" starting Xorg on dual display

2005-11-10 Thread Garrett Cooper

On Nov 10, 2005, at 1:38 PM, Pat Maddox wrote:


On 11/10/05, Garrett Cooper <[EMAIL PROTECTED]> wrote:


On Nov 10, 2005, at 11:07 AM, Pat Maddox wrote:


On 11/10/05, Garrett Cooper <[EMAIL PROTECTED]> wrote:

On Nov 10, 2005, at 3:10 AM, Pat Maddox wrote:


I've got a dual display setup, and it had been working fine once I
finally got the config done.  They're two displays running off one
graphics card, one through the DVI output and one through the D- 
SUB.
Today I had to switch the inputs that the monitors use, and it  
just
doesn't work anymore.  I get a message on my left display that  
says
"Out of range."  This isn't an Xorg or FreeBSD error, it's a  
message
from the displays built-in HUD.  This doesn't make any sense  
because
as far as Xorg is concerned, there shouldn't be any  
difference.  The

D-SUB display should be on the left, and the DVI one should be on
the
right.  I really don't understand what could be causing a
problem, but
for what it's worth, the display now connected to the D-SUB has
always
been more finicky than my other display.  They're a ViewSonic  
vp201

(D-SUB) and Dell 2001fp (DVI).  Here's my config:


Section "ServerLayout"
  Identifier "Dual Head"
  Screen  0  "Screen0" 0 0
  Screen  1  "Screen1" RightOf "Screen0"
  InputDevice"Mouse0" "CorePointer"
  InputDevice"Keyboard0" "CoreKeyboard"

  Option "Xinerama" "true"
  Option "Clone" "off"
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  "dbe"
  #Load  "dri"
  Load  "extmod"
  Load  "glx"
  Load  "record"
  Load  "xtrap"
  Load  "freetype"
  Load  "type1"
EndSection

Section "InputDevice"
  Identifier  "Keyboard0"
  Driver  "kbd"
EndSection

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

Section "Monitor"
  Identifier  "Monitor0"
  VendorName  "Vendor Name"
  ModelName   "Model Name"
EndSection

Section "Device"
  Identifier "Card0"
  Driver "nvidia"
  VendorName "nVidia Corporation"
  BoardName "NV25 [GeForce4 Ti 4600]"
  BusID "PCI:1:0:0"
  Screen 0
  Option "RenderAccel" "true"
  Option "AllowGLXWithComposite" "true"
EndSection

Section "Device"
  Identifier "Card1"
  Driver "nvidia"
  VendorName "nVidia Corporation"
  BoardName "NV25 [GeForce4 Ti 4600]"
  BusID "PCI:1:0:0"
  Screen 1
  Option "RenderAccel" "true"
  Option "AllowGLXWithComposite" "true"
EndSection

Section "Screen"
  Identifier "Screen0"
  Device "Card0"
  Monitor"Monitor0"
  DefaultDepth 24

  SubSection "Display"
  Viewport 0 0
  Depth 24
  Modes   "1600x1200"
  EndSubSection
EndSection

Section "Screen"
  Identifier "Screen1"
  Device "Card1"
  Monitor "Monitor0"
  DefaultDepth 24

  SubSection "Display"
  Viewport 0 0
  Depth 24
  EndSubSection
EndSection


The issue is with your refresh rates on one of the
monitors is out
of range. So what you need to do is go online, search for the  
maximum
resolution for your monitors, and match it with the maximum  
supported
resolution for your card along with the individual monitor's  
maximum

resolution.
-Garrett



Thanks for the reply.

I checked out what refresh rates they're using in Windows, and both
monitors are set to 60.  The finicky monitor apparently can run  
at 60,

70, or 72.

I set the VertRefresh to 60, start up Xorg, and now I'm not getting
the error, but it's really flickery.  Really, it's more like a bunch
of lines are scrolling down very quickly, it's not flicker, so
something definitely isn't right.  If I set the VertRefresh to a
range, like 60-72, I still get that Out of Range error.  I haven't
been able to find out exactly what refresh rates to use, because  
these

are LCDs and the refresh rates given in ms, not Hertz.  Not really
sure what that means.

Thanks for the reply, seems like I'm getting closer...I'd appreciate
any more help you can give me.

Pat


Pat,
That's not the actual refresh range for the monitor, it's  
just the

currently used range.
What you want to do is search for "{maker} {model} horizontal
refresh" in google; the pages which come up are the ones you want to
refer to for your xorg.conf configuration.
Also, just as a sidenote, setting the refresh rate of the  
mon

Re: "Out of range" starting Xorg on dual display

2005-11-10 Thread Pat Maddox
On 11/10/05, Garrett Cooper <[EMAIL PROTECTED]> wrote:
>
> On Nov 10, 2005, at 11:07 AM, Pat Maddox wrote:
>
> > On 11/10/05, Garrett Cooper <[EMAIL PROTECTED]> wrote:
> >> On Nov 10, 2005, at 3:10 AM, Pat Maddox wrote:
> >>
> >>> I've got a dual display setup, and it had been working fine once I
> >>> finally got the config done.  They're two displays running off one
> >>> graphics card, one through the DVI output and one through the D-SUB.
> >>> Today I had to switch the inputs that the monitors use, and it just
> >>> doesn't work anymore.  I get a message on my left display that says
> >>> "Out of range."  This isn't an Xorg or FreeBSD error, it's a message
> >>> from the displays built-in HUD.  This doesn't make any sense because
> >>> as far as Xorg is concerned, there shouldn't be any difference.  The
> >>> D-SUB display should be on the left, and the DVI one should be on
> >>> the
> >>> right.  I really don't understand what could be causing a
> >>> problem, but
> >>> for what it's worth, the display now connected to the D-SUB has
> >>> always
> >>> been more finicky than my other display.  They're a ViewSonic vp201
> >>> (D-SUB) and Dell 2001fp (DVI).  Here's my config:
> >>>
> >>>
> >>> Section "ServerLayout"
> >>>   Identifier "Dual Head"
> >>>   Screen  0  "Screen0" 0 0
> >>>   Screen  1  "Screen1" RightOf "Screen0"
> >>>   InputDevice"Mouse0" "CorePointer"
> >>>   InputDevice"Keyboard0" "CoreKeyboard"
> >>>
> >>>   Option "Xinerama" "true"
> >>>   Option "Clone" "off"
> >>> 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  "dbe"
> >>>   #Load  "dri"
> >>>   Load  "extmod"
> >>>   Load  "glx"
> >>>   Load  "record"
> >>>   Load  "xtrap"
> >>>   Load  "freetype"
> >>>   Load  "type1"
> >>> EndSection
> >>>
> >>> Section "InputDevice"
> >>>   Identifier  "Keyboard0"
> >>>   Driver  "kbd"
> >>> EndSection
> >>>
> >>> Section "InputDevice"
> >>>   Identifier  "Mouse0"
> >>>   Driver  "mouse"
> >>>   Option  "Protocol" "auto"
> >>>   Option  "Device" "/dev/sysmouse"
> >>>   Option  "ZAxisMapping"  "4 5"
> >>> EndSection
> >>>
> >>> Section "Monitor"
> >>>   Identifier  "Monitor0"
> >>>   VendorName  "Vendor Name"
> >>>   ModelName   "Model Name"
> >>> EndSection
> >>>
> >>> Section "Device"
> >>>   Identifier "Card0"
> >>>   Driver "nvidia"
> >>>   VendorName "nVidia Corporation"
> >>>   BoardName "NV25 [GeForce4 Ti 4600]"
> >>>   BusID "PCI:1:0:0"
> >>>   Screen 0
> >>>   Option "RenderAccel" "true"
> >>>   Option "AllowGLXWithComposite" "true"
> >>> EndSection
> >>>
> >>> Section "Device"
> >>>   Identifier "Card1"
> >>>   Driver "nvidia"
> >>>   VendorName "nVidia Corporation"
> >>>   BoardName "NV25 [GeForce4 Ti 4600]"
> >>>   BusID "PCI:1:0:0"
> >>>   Screen 1
> >>>   Option "RenderAccel" "true"
> >>>   Option "AllowGLXWithComposite" "true"
> >>> EndSection
> >>>
> >>> Section "Screen"
> >>>   Identifier "Screen0"
> >>>   Device "Card0"
> >>>   Monitor"Monitor0"
> >>>   DefaultDepth 24
> >>>
> >>>   SubSection "Display"
> >>>   Viewport 0 0
> >>>   Depth 24
> >>>   Modes   "1600x1200"
> >>>   EndSubSection
> >>> EndSection
> >>>
> >>> Section "Screen"
> >>>   Identifier "Screen1"
> >>>   Device "Card1"
> >>>   Monitor "Monitor0"
> >>>   DefaultDepth 24
> >>>
> >>>   SubSection "Display"
> >>>   Viewport 0 0
> >>>   Depth 24
> >>>   EndSubSection
> >>> EndSection
> >>
> >> The issue is with your refresh rates on one of the
> >> monitors is out
> >> of range. So what you need to do is go online, search for the maximum
> >> resolution for your monitors, and match it with the maximum supported
> >> resolution for your card along with the individual monitor's maximum
> >> resolution.
> >> -Garrett
> >>
> >
> > Thanks for the reply.
> >
> > I checked out what refresh rates they're using in Windows, and both
> > monitors are set to 60.  The finicky monitor apparently can run at 60,
> > 70, or 72.
> >
> > I set the VertRefresh to 60, start up Xorg, and now I'm not getting
> > the error, but it's really flickery.  Really, it's more like a bunch
> > of lines are scrolling down very quickly, it's not flicker, so
> > something definitely isn't right.  If I set the VertRefresh 

Re: "Out of range" starting Xorg on dual display

2005-11-10 Thread Greg Barniskis

Garrett Cooper wrote:


Pat,
That's not the actual refresh range for the monitor, it's just the  
currently used range.
What you want to do is search for "{maker} {model} horizontal  
refresh" in google; the pages which come up are the ones you want to  
refer to for your xorg.conf configuration.


If the maker was tremendously foresighted, the information you need 
may appear in the small print on the back or bottom of the monitor 
itself.


If not, you may find it handy to inscribe the H and V rate ranges 
there with a Sharpie marker once you find it. I've been through this 
particular annoyance a couple of times now, that's now my standard 
practice upon taking a new monitor out of the shipping carton. 
Finding the information on the web (or even in the product manual) 
is not always easy, and the xorg automated config tools can't always 
guess right.



--
Greg Barniskis, Computer Systems Integrator
South Central Library System (SCLS)
Library Interchange Network (LINK)
, (608) 266-6348
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: "Out of range" starting Xorg on dual display

2005-11-10 Thread Garrett Cooper


On Nov 10, 2005, at 11:07 AM, Pat Maddox wrote:


On 11/10/05, Garrett Cooper <[EMAIL PROTECTED]> wrote:

On Nov 10, 2005, at 3:10 AM, Pat Maddox wrote:


I've got a dual display setup, and it had been working fine once I
finally got the config done.  They're two displays running off one
graphics card, one through the DVI output and one through the D-SUB.
Today I had to switch the inputs that the monitors use, and it just
doesn't work anymore.  I get a message on my left display that says
"Out of range."  This isn't an Xorg or FreeBSD error, it's a message
from the displays built-in HUD.  This doesn't make any sense because
as far as Xorg is concerned, there shouldn't be any difference.  The
D-SUB display should be on the left, and the DVI one should be on  
the
right.  I really don't understand what could be causing a  
problem, but
for what it's worth, the display now connected to the D-SUB has  
always

been more finicky than my other display.  They're a ViewSonic vp201
(D-SUB) and Dell 2001fp (DVI).  Here's my config:


Section "ServerLayout"
  Identifier "Dual Head"
  Screen  0  "Screen0" 0 0
  Screen  1  "Screen1" RightOf "Screen0"
  InputDevice"Mouse0" "CorePointer"
  InputDevice"Keyboard0" "CoreKeyboard"

  Option "Xinerama" "true"
  Option "Clone" "off"
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  "dbe"
  #Load  "dri"
  Load  "extmod"
  Load  "glx"
  Load  "record"
  Load  "xtrap"
  Load  "freetype"
  Load  "type1"
EndSection

Section "InputDevice"
  Identifier  "Keyboard0"
  Driver  "kbd"
EndSection

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

Section "Monitor"
  Identifier  "Monitor0"
  VendorName  "Vendor Name"
  ModelName   "Model Name"
EndSection

Section "Device"
  Identifier "Card0"
  Driver "nvidia"
  VendorName "nVidia Corporation"
  BoardName "NV25 [GeForce4 Ti 4600]"
  BusID "PCI:1:0:0"
  Screen 0
  Option "RenderAccel" "true"
  Option "AllowGLXWithComposite" "true"
EndSection

Section "Device"
  Identifier "Card1"
  Driver "nvidia"
  VendorName "nVidia Corporation"
  BoardName "NV25 [GeForce4 Ti 4600]"
  BusID "PCI:1:0:0"
  Screen 1
  Option "RenderAccel" "true"
  Option "AllowGLXWithComposite" "true"
EndSection

Section "Screen"
  Identifier "Screen0"
  Device "Card0"
  Monitor"Monitor0"
  DefaultDepth 24

  SubSection "Display"
  Viewport 0 0
  Depth 24
  Modes   "1600x1200"
  EndSubSection
EndSection

Section "Screen"
  Identifier "Screen1"
  Device "Card1"
  Monitor "Monitor0"
  DefaultDepth 24

  SubSection "Display"
  Viewport 0 0
  Depth 24
  EndSubSection
EndSection


The issue is with your refresh rates on one of the  
monitors is out

of range. So what you need to do is go online, search for the maximum
resolution for your monitors, and match it with the maximum supported
resolution for your card along with the individual monitor's maximum
resolution.
-Garrett



Thanks for the reply.

I checked out what refresh rates they're using in Windows, and both
monitors are set to 60.  The finicky monitor apparently can run at 60,
70, or 72.

I set the VertRefresh to 60, start up Xorg, and now I'm not getting
the error, but it's really flickery.  Really, it's more like a bunch
of lines are scrolling down very quickly, it's not flicker, so
something definitely isn't right.  If I set the VertRefresh to a
range, like 60-72, I still get that Out of Range error.  I haven't
been able to find out exactly what refresh rates to use, because these
are LCDs and the refresh rates given in ms, not Hertz.  Not really
sure what that means.

Thanks for the reply, seems like I'm getting closer...I'd appreciate
any more help you can give me.

Pat


Pat,
	That's not the actual refresh range for the monitor, it's just the  
currently used range.
	What you want to do is search for "{maker} {model} horizontal  
refresh" in google; the pages which come up are the ones you want to  
refer to for your xorg.conf configuration.
	Also, just as a sidenote, setting the refresh rate of the monitor to  
the highest possible range will help your eyes as they are accustomed  
to a higher refresh rate than 60 Hz

-Garrett

Re: "Out of range" starting Xorg on dual display

2005-11-10 Thread Pat Maddox
On 11/10/05, Garrett Cooper <[EMAIL PROTECTED]> wrote:
> On Nov 10, 2005, at 3:10 AM, Pat Maddox wrote:
>
> > I've got a dual display setup, and it had been working fine once I
> > finally got the config done.  They're two displays running off one
> > graphics card, one through the DVI output and one through the D-SUB.
> > Today I had to switch the inputs that the monitors use, and it just
> > doesn't work anymore.  I get a message on my left display that says
> > "Out of range."  This isn't an Xorg or FreeBSD error, it's a message
> > from the displays built-in HUD.  This doesn't make any sense because
> > as far as Xorg is concerned, there shouldn't be any difference.  The
> > D-SUB display should be on the left, and the DVI one should be on the
> > right.  I really don't understand what could be causing a problem, but
> > for what it's worth, the display now connected to the D-SUB has always
> > been more finicky than my other display.  They're a ViewSonic vp201
> > (D-SUB) and Dell 2001fp (DVI).  Here's my config:
> >
> >
> > Section "ServerLayout"
> >   Identifier "Dual Head"
> >   Screen  0  "Screen0" 0 0
> >   Screen  1  "Screen1" RightOf "Screen0"
> >   InputDevice"Mouse0" "CorePointer"
> >   InputDevice"Keyboard0" "CoreKeyboard"
> >
> >   Option "Xinerama" "true"
> >   Option "Clone" "off"
> > 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  "dbe"
> >   #Load  "dri"
> >   Load  "extmod"
> >   Load  "glx"
> >   Load  "record"
> >   Load  "xtrap"
> >   Load  "freetype"
> >   Load  "type1"
> > EndSection
> >
> > Section "InputDevice"
> >   Identifier  "Keyboard0"
> >   Driver  "kbd"
> > EndSection
> >
> > Section "InputDevice"
> >   Identifier  "Mouse0"
> >   Driver  "mouse"
> >   Option  "Protocol" "auto"
> >   Option  "Device" "/dev/sysmouse"
> >   Option  "ZAxisMapping"  "4 5"
> > EndSection
> >
> > Section "Monitor"
> >   Identifier  "Monitor0"
> >   VendorName  "Vendor Name"
> >   ModelName   "Model Name"
> > EndSection
> >
> > Section "Device"
> >   Identifier "Card0"
> >   Driver "nvidia"
> >   VendorName "nVidia Corporation"
> >   BoardName "NV25 [GeForce4 Ti 4600]"
> >   BusID "PCI:1:0:0"
> >   Screen 0
> >   Option "RenderAccel" "true"
> >   Option "AllowGLXWithComposite" "true"
> > EndSection
> >
> > Section "Device"
> >   Identifier "Card1"
> >   Driver "nvidia"
> >   VendorName "nVidia Corporation"
> >   BoardName "NV25 [GeForce4 Ti 4600]"
> >   BusID "PCI:1:0:0"
> >   Screen 1
> >   Option "RenderAccel" "true"
> >   Option "AllowGLXWithComposite" "true"
> > EndSection
> >
> > Section "Screen"
> >   Identifier "Screen0"
> >   Device "Card0"
> >   Monitor"Monitor0"
> >   DefaultDepth 24
> >
> >   SubSection "Display"
> >   Viewport 0 0
> >   Depth 24
> >   Modes   "1600x1200"
> >   EndSubSection
> > EndSection
> >
> > Section "Screen"
> >   Identifier "Screen1"
> >   Device "Card1"
> >   Monitor "Monitor0"
> >   DefaultDepth 24
> >
> >   SubSection "Display"
> >   Viewport 0 0
> >   Depth 24
> >   EndSubSection
> > EndSection
>
> The issue is with your refresh rates on one of the monitors is out
> of range. So what you need to do is go online, search for the maximum
> resolution for your monitors, and match it with the maximum supported
> resolution for your card along with the individual monitor's maximum
> resolution.
> -Garrett
>

Thanks for the reply.

I checked out what refresh rates they're using in Windows, and both
monitors are set to 60.  The finicky monitor apparently can run at 60,
70, or 72.

I set the VertRefresh to 60, start up Xorg, and now I'm not getting
the error, but it's really flickery.  Really, it's more like a bunch
of lines are scrolling down very quickly, it's not flicker, so
something definitely isn't right.  If I set the VertRefresh to a
range, like 60-72, I still get that Out of Range error.  I haven't
been able to find out exactly what refresh rates to use, because these
are LCDs and the refresh rates given in ms, not Hertz.  Not really
sure what that means.

Thanks for the reply, seems like I'm getting closer...I'd appreciate
any more help you can give me.

Pat
___
freebsd-questions@freebsd.org mailing list
http

Re: "Out of range" starting Xorg on dual display

2005-11-10 Thread Garrett Cooper

On Nov 10, 2005, at 3:10 AM, Pat Maddox wrote:



I've got a dual display setup, and it had been working fine once I
finally got the config done.  They're two displays running off one
graphics card, one through the DVI output and one through the D-SUB.
Today I had to switch the inputs that the monitors use, and it just
doesn't work anymore.  I get a message on my left display that says
"Out of range."  This isn't an Xorg or FreeBSD error, it's a message
from the displays built-in HUD.  This doesn't make any sense because
as far as Xorg is concerned, there shouldn't be any difference.  The
D-SUB display should be on the left, and the DVI one should be on the
right.  I really don't understand what could be causing a problem, but
for what it's worth, the display now connected to the D-SUB has always
been more finicky than my other display.  They're a ViewSonic vp201
(D-SUB) and Dell 2001fp (DVI).  Here's my config:


Section "ServerLayout"
Identifier "Dual Head"
Screen  0  "Screen0" 0 0
Screen  1  "Screen1" RightOf "Screen0"
InputDevice"Mouse0" "CorePointer"
InputDevice"Keyboard0" "CoreKeyboard"

Option "Xinerama" "true"
Option "Clone" "off"
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  "dbe"
#Load  "dri"
Load  "extmod"
Load  "glx"
Load  "record"
Load  "xtrap"
Load  "freetype"
Load  "type1"
EndSection

Section "InputDevice"
Identifier  "Keyboard0"
Driver  "kbd"
EndSection

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

Section "Monitor"
Identifier  "Monitor0"
VendorName  "Vendor Name"
ModelName   "Model Name"
EndSection

Section "Device"
Identifier "Card0"
Driver "nvidia"
VendorName "nVidia Corporation"
BoardName "NV25 [GeForce4 Ti 4600]"
BusID "PCI:1:0:0"
Screen 0
Option "RenderAccel" "true"
Option "AllowGLXWithComposite" "true"
EndSection

Section "Device"
Identifier "Card1"
Driver "nvidia"
VendorName "nVidia Corporation"
BoardName "NV25 [GeForce4 Ti 4600]"
BusID "PCI:1:0:0"
Screen 1
Option "RenderAccel" "true"
Option "AllowGLXWithComposite" "true"
EndSection

Section "Screen"
Identifier "Screen0"
Device "Card0"
Monitor"Monitor0"
DefaultDepth 24

SubSection "Display"
Viewport 0 0
Depth 24
Modes   "1600x1200"
EndSubSection
EndSection

Section "Screen"
Identifier "Screen1"
Device "Card1"
Monitor "Monitor0"
DefaultDepth 24

SubSection "Display"
Viewport 0 0
Depth 24
EndSubSection
EndSection



	The issue is with your refresh rates on one of the monitors is out  
of range. So what you need to do is go online, search for the maximum  
resolution for your monitors, and match it with the maximum supported  
resolution for your card along with the individual monitor's maximum  
resolution.

-Garrett

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


"Out of range" starting Xorg on dual display

2005-11-10 Thread Pat Maddox
I've got a dual display setup, and it had been working fine once I
finally got the config done.  They're two displays running off one
graphics card, one through the DVI output and one through the D-SUB. 
Today I had to switch the inputs that the monitors use, and it just
doesn't work anymore.  I get a message on my left display that says
"Out of range."  This isn't an Xorg or FreeBSD error, it's a message
from the displays built-in HUD.  This doesn't make any sense because
as far as Xorg is concerned, there shouldn't be any difference.  The
D-SUB display should be on the left, and the DVI one should be on the
right.  I really don't understand what could be causing a problem, but
for what it's worth, the display now connected to the D-SUB has always
been more finicky than my other display.  They're a ViewSonic vp201
(D-SUB) and Dell 2001fp (DVI).  Here's my config:


Section "ServerLayout"
Identifier "Dual Head"
Screen  0  "Screen0" 0 0
Screen  1  "Screen1" RightOf "Screen0"
InputDevice"Mouse0" "CorePointer"
InputDevice"Keyboard0" "CoreKeyboard"

Option "Xinerama" "true"
Option "Clone" "off"
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  "dbe"
#Load  "dri"
Load  "extmod"
Load  "glx"
Load  "record"
Load  "xtrap"
Load  "freetype"
Load  "type1"
EndSection

Section "InputDevice"
Identifier  "Keyboard0"
Driver  "kbd"
EndSection

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

Section "Monitor"
Identifier  "Monitor0"
VendorName  "Vendor Name"
ModelName   "Model Name"
EndSection

Section "Device"
Identifier "Card0"
Driver "nvidia"
VendorName "nVidia Corporation"
BoardName "NV25 [GeForce4 Ti 4600]"
BusID "PCI:1:0:0"
Screen 0
Option "RenderAccel" "true"
Option "AllowGLXWithComposite" "true"
EndSection

Section "Device"
Identifier "Card1"
Driver "nvidia"
VendorName "nVidia Corporation"
BoardName "NV25 [GeForce4 Ti 4600]"
BusID "PCI:1:0:0"
Screen 1
Option "RenderAccel" "true"
Option "AllowGLXWithComposite" "true"
EndSection

Section "Screen"
Identifier "Screen0"
Device "Card0"
Monitor"Monitor0"
DefaultDepth 24

SubSection "Display"
Viewport 0 0
Depth 24
Modes   "1600x1200"
EndSubSection
EndSection

Section "Screen"
Identifier "Screen1"
Device "Card1"
Monitor "Monitor0"
DefaultDepth 24

SubSection "Display"
Viewport 0 0
Depth 24
EndSubSection
EndSection
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: starting xorg

2005-05-24 Thread Andrew L. Gould
On Tuesday 24 May 2005 04:06 pm, Paul Blake wrote:
> i have read thru the help pages and can not find the command (or way)
> to start xorg please respond. thanks
>
> [EMAIL PROTECTED]

If you want to start xorg from the command line, execute 'startx'.  You 
can select your default window manager/desktop environment by 
configuring ~/.xinitrc.  To start KDE, put 'exec startkde' in your 
~/.xinitrc file.  Execute 'man startx' for more information.

If you want the computer to boot to a GUI, you'll have to configure xdm, 
kdm or gdm.  You can find more information about these in the handbook:

http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/x-xdm.html

Best of luck,

Andrew Gould
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: starting xorg

2005-05-24 Thread Glenn Mawby
Hello,

You need to generate an xorg.conf as described in the
handbook, then move it to /etc/X11/xorg.conf

You can then type startx from the command line If you
want to use a desktop, again the handbook contains
instructions.

See sections5.4.2 and the command Xorg -configure.

Glenn.
Sydney.


--- Paul Blake <[EMAIL PROTECTED]> wrote:
> i have read thru the help pages and can not find the
> command (or way) to start xorg please respond.
> thanks
> 
> [EMAIL PROTECTED]
> ___
> freebsd-questions@freebsd.org mailing list
>
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
> "[EMAIL PROTECTED]"
> 

Find local movie times and trailers on Yahoo! Movies.
http://au.movies.yahoo.com
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


starting xorg

2005-05-24 Thread Paul Blake
i have read thru the help pages and can not find the command (or way) to start 
xorg please respond.
thanks

[EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"