public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] Changing xorg.conf at runtime (nVidia cards)
@ 2009-07-28 14:35 Mike Mazur
  2009-07-29 14:27 ` bn
  2009-07-30 21:44 ` Fernando Antunes
  0 siblings, 2 replies; 7+ messages in thread
From: Mike Mazur @ 2009-07-28 14:35 UTC (permalink / raw
  To: gentoo-user

Hello,

I have an nVidia card, and I can use the NVIDIA X Server Settings app
to dynamically detect and configure displays I connect to my laptop.
When I'm done with the configuration, I simply apply it, and keep on
truckin' without having to restart X.

Doing this manually each time I connect/disconnect an external display
can get tiresome. I can generate an xorg.conf for each setup I
frequently use (ie: different monitors at work/home, no monitor on the
go), but that means restarting X when the display configuration
changes. This can be undesirable if I just want to move from my desk
to the living room.

I'd like to run a single command, passing it one of my xorg.conf files
(for instance), and have my screens configured on-the-fly. I looked at
the command-line options for nvidia-settings and nvidia-xconfig but
they don't seem to do what I want. I also looked at XRandR but I'm not
sure what's the best way forward.

Does anyone have something like this already set up? What did you use?
Will these nvidia tools do what I need or should I look to XRandR? How
do I get started with setting up XRandR?

Thanks!
Mike



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-user] Changing xorg.conf at runtime (nVidia cards)
  2009-07-28 14:35 [gentoo-user] Changing xorg.conf at runtime (nVidia cards) Mike Mazur
@ 2009-07-29 14:27 ` bn
  2009-07-30 21:44 ` Fernando Antunes
  1 sibling, 0 replies; 7+ messages in thread
From: bn @ 2009-07-29 14:27 UTC (permalink / raw
  To: gentoo-user

Mike Mazur ha scritto:
> I'd like to run a single command, passing it one of my xorg.conf files
> (for instance), and have my screens configured on-the-fly. I looked at
> the command-line options for nvidia-settings and nvidia-xconfig but
> they don't seem to do what I want. I also looked at XRandR but I'm not
> sure what's the best way forward.
> 
> Does anyone have something like this already set up? What did you use?
> Will these nvidia tools do what I need or should I look to XRandR? How
> do I get started with setting up XRandR?

+1.
If you get to know something about that, let me know!

m.



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-user] Changing xorg.conf at runtime (nVidia cards)
  2009-07-28 14:35 [gentoo-user] Changing xorg.conf at runtime (nVidia cards) Mike Mazur
  2009-07-29 14:27 ` bn
@ 2009-07-30 21:44 ` Fernando Antunes
  2009-07-31  2:34   ` Mike Mazur
  1 sibling, 1 reply; 7+ messages in thread
From: Fernando Antunes @ 2009-07-30 21:44 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 1878 bytes --]

On Tue, Jul 28, 2009 at 11:35 AM, Mike Mazur <mmazur@gmail.com> wrote:

> Hello,
>
Hi

>
> I have an nVidia card, and I can use the NVIDIA X Server Settings app
> to dynamically detect and configure displays I connect to my laptop.
> When I'm done with the configuration, I simply apply it, and keep on
> truckin' without having to restart X.
>

 I don't use xorg.conf in my notebook Lenovo T61, Intel 965GSM , xorg and
xfce ~x86, gentoo 2.6.30 with KMS, anymore.
  Both kernel and X switch to 1280x800 resolution automatically, xinerama is
disable.


> Doing this manually each time I connect/disconnect an external display
> can get tiresome. I can generate an xorg.conf for each setup I
> frequently use (ie: different monitors at work/home, no monitor on the
> go), but that means restarting X when the display configuration
> changes. This can be undesirable if I just want to move from my desk
> to the living room.
>

> I'd like to run a single command, passing it one of my xorg.conf files
> (for instance), and have my screens configured on-the-fly. I looked at
> the command-line options for nvidia-settings and nvidia-xconfig but
> they don't seem to do what I want. I also looked at XRandR but I'm not
> sure what's the best way forward.
>
> Does anyone have something like this already set up? What did you use?
> Will these nvidia tools do what I need or should I look to XRandR? How
> do I get started with setting up XRandR?
>

When I connect a external monitor, I just use this basic script to adjust my
external monitor to have a wide screen (VGA1)

xrandr --output LVDS1 --mode 1280x800
xrandr --output VGA1 --mode 1280x1024 --above LVDS1

To do this more useful, you can pass the resolution of VGA1 as a parameter.

To disable wide screen :

xrandr --output LVDS --mode 1280x800
xrandr --output VGA --mode 1024x1024 --same-as LVDS




>
> Thanks!
> Mike
>
>

[-- Attachment #2: Type: text/html, Size: 2935 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-user] Changing xorg.conf at runtime (nVidia cards)
  2009-07-30 21:44 ` Fernando Antunes
@ 2009-07-31  2:34   ` Mike Mazur
  2009-07-31  3:23     ` Dale
  0 siblings, 1 reply; 7+ messages in thread
From: Mike Mazur @ 2009-07-31  2:34 UTC (permalink / raw
  To: gentoo-user

Hi,

On Fri, Jul 31, 2009 at 05:44, Fernando Antunes<fs.antunes@gmail.com> wrote:
>  I don't use xorg.conf in my notebook Lenovo T61, Intel 965GSM , xorg and
> xfce ~x86, gentoo 2.6.30 with KMS, anymore.
>   Both kernel and X switch to 1280x800 resolution automatically, xinerama is
> disable.

Interesting, so you don't have /etc/X11/xorg.conf file at all?

> When I connect a external monitor, I just use this basic script to adjust my
> external monitor to have a wide screen (VGA1)
>
> xrandr --output LVDS1 --mode 1280x800
> xrandr --output VGA1 --mode 1280x1024 --above LVDS1
>
> To do this more useful, you can pass the resolution of VGA1 as a parameter.
>
> To disable wide screen :
>
> xrandr --output LVDS --mode 1280x800
> xrandr --output VGA --mode 1024x1024 --same-as LVDS

I have seen examples like this, but they all start with "execute
`xrandr -q` to see which displays are connected" which in my case
doesn't work. I only see something like this:

$ xrandr -q
Screen 0: minimum 2560 x 1024, current 2560 x 1024, maximum 2560 x 1024
default connected 2560x1024+0+0 0mm x 0mm
   2560x1024      50.0*

I think this may be because I'm using the xorg.conf files as generated
by the nvidia-settings tool. I'll try starting X without an xorg.conf
file to see if this has any effect.

Thanks,
Mike



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-user] Changing xorg.conf at runtime (nVidia cards)
  2009-07-31  2:34   ` Mike Mazur
@ 2009-07-31  3:23     ` Dale
  2009-07-31 14:28       ` Mike Mazur
  0 siblings, 1 reply; 7+ messages in thread
From: Dale @ 2009-07-31  3:23 UTC (permalink / raw
  To: gentoo-user

Mike Mazur wrote:
> Hi,
>
> On Fri, Jul 31, 2009 at 05:44, Fernando Antunes<fs.antunes@gmail.com> wrote:
>   
>>  I don't use xorg.conf in my notebook Lenovo T61, Intel 965GSM , xorg and
>> xfce ~x86, gentoo 2.6.30 with KMS, anymore.
>>   Both kernel and X switch to 1280x800 resolution automatically, xinerama is
>> disable.
>>     
>
> Interesting, so you don't have /etc/X11/xorg.conf file at all?
>
>   
> Thanks,
> Mike
>
>
>   

If you have hal enabled and xorg-server-1.5 or higher, then you don't
have to have a xorg.conf file.  This is from what I have read.  I have
yet to get that hal thing to work here.

If you are still on the old xorg-server then you have to have a
xorg.conf file.

Dale

:-)  :-) 



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-user] Changing xorg.conf at runtime (nVidia cards)
  2009-07-31  3:23     ` Dale
@ 2009-07-31 14:28       ` Mike Mazur
  2009-07-31 16:48         ` Fernando Antunes
  0 siblings, 1 reply; 7+ messages in thread
From: Mike Mazur @ 2009-07-31 14:28 UTC (permalink / raw
  To: gentoo-user

Hi,

On Fri, Jul 31, 2009 at 11:23, Dale<rdalek1967@gmail.com> wrote:
> Mike Mazur wrote:
>> On Fri, Jul 31, 2009 at 05:44, Fernando Antunes<fs.antunes@gmail.com> wrote:
>>>  I don't use xorg.conf in my notebook Lenovo T61, Intel 965GSM , xorg and
>>> xfce ~x86, gentoo 2.6.30 with KMS, anymore.
>>>   Both kernel and X switch to 1280x800 resolution automatically, xinerama is
>>> disable.
>>>
>> Interesting, so you don't have /etc/X11/xorg.conf file at all?
>>
> If you have hal enabled and xorg-server-1.5 or higher, then you don't
> have to have a xorg.conf file.  This is from what I have read.  I have
> yet to get that hal thing to work here.
>
> If you are still on the old xorg-server then you have to have a
> xorg.conf file.

I tried this earlier, running startx without an /etc/X11/xorg.conf in
place, but X didn't start. The error message was something along the
lines of "No screen found."

I'm running:
- x11-base/xorg-server-1.5.3-r6
- x11-base/xorg-x11-7.2
- sys-apps/hal-0.5.11-r9

Mike



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-user] Changing xorg.conf at runtime (nVidia cards)
  2009-07-31 14:28       ` Mike Mazur
@ 2009-07-31 16:48         ` Fernando Antunes
  0 siblings, 0 replies; 7+ messages in thread
From: Fernando Antunes @ 2009-07-31 16:48 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 1318 bytes --]

On Fri, Jul 31, 2009 at 11:28 AM, Mike Mazur <mmazur@gmail.com> wrote:

> Hi,
>
> On Fri, Jul 31, 2009 at 11:23, Dale<rdalek1967@gmail.com> wrote:
> > Mike Mazur wrote:
> >> On Fri, Jul 31, 2009 at 05:44, Fernando Antunes<fs.antunes@gmail.com>
> wrote:
> >>>  I don't use xorg.conf in my notebook Lenovo T61, Intel 965GSM , xorg
> and
> >>> xfce ~x86, gentoo 2.6.30 with KMS, anymore.
> >>>   Both kernel and X switch to 1280x800 resolution automatically,
> xinerama is
> >>> disable.
> >>>
> >> Interesting, so you don't have /etc/X11/xorg.conf file at all?
> >>
> > If you have hal enabled and xorg-server-1.5 or higher, then you don't
> > have to have a xorg.conf file.  This is from what I have read.  I have
> > yet to get that hal thing to work here.
> >
> > If you are still on the old xorg-server then you have to have a
> > xorg.conf file.
>
> I tried this earlier, running startx without an /etc/X11/xorg.conf in
> place, but X didn't start. The error message was something along the
> lines of "No screen found."
>
> I'm running:
> - x11-base/xorg-server-1.5.3-r6
> - x11-base/xorg-x11-7.2
> - sys-apps/hal-0.5.11-r9
>

Iḿ running :

xorg-server :  1.6.2-r1
x11 :  7.4
hal :  0.5.13-r2
kernel : 2.6.30-gentoo-r4
x11-video-intel :  2.8.0





>
> Mike
>
>

[-- Attachment #2: Type: text/html, Size: 2123 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2009-07-31 16:48 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-28 14:35 [gentoo-user] Changing xorg.conf at runtime (nVidia cards) Mike Mazur
2009-07-29 14:27 ` bn
2009-07-30 21:44 ` Fernando Antunes
2009-07-31  2:34   ` Mike Mazur
2009-07-31  3:23     ` Dale
2009-07-31 14:28       ` Mike Mazur
2009-07-31 16:48         ` Fernando Antunes

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox