Re: Laptop + VGA + X

2015-12-30 Thread tomas
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Tue, Dec 29, 2015 at 06:39:44PM -1000, Joel Roth wrote:
> Hudson Flavio Meneses Lacerda wrote:
> > Hi.
> > 
> > The monitor of my laptop is broken, thus the screen frequently becomes
> > white. Then, it is needed to turning off the energy and restart the laptop
> > (not always with success).
> > 
> > Therefore, I plugged a VGA monitor. However, the VGA monitor does not work
> > when X is active. (It works very fine with framebuffer, though.)
> > 
> > How to enable Xorg to use a VGA monitor plugged to a laptop?
>  
> I use a command like this:
> 
> xrandr --output LVDS1 --auto --output VGA1 --auto

Yes, thanks. To add some "recipe-y" ideas, at work I have a big external
monitor. I do this:

  xrandr --output VGA-0 --mode 1600x1200 \
 --output LVDS --mode 1366x768 --below VGA-0

And then I tell my Fvwm that there's more "room":

  cat <<__END | FvwmCommand -c
  XineramaSlsScreens 2 1600x1200+0+0 1366x768+0+1200
  XineramaSls On
  Xinerama On
  __END
  

(of course, the FvwmCommands module must be loaded for that). Hope that
inspires some desktop rebels out there ;-)

- -- t
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.12 (GNU/Linux)

iEYEARECAAYFAlaDoO0ACgkQBcgs9XrR2kbAOQCbBCFdaiYQHcKb+J6SkroGh1Aw
WgsAniUUF7hKRcyLFdwuljUG3D13OLRg
=8uMt
-END PGP SIGNATURE-



Re: Laptop + VGA + X

2015-12-30 Thread Hudson Flavio Meneses Lacerda

Hi, François.

Thank you for the input. Here is my other attempt, with the correct 
monitor identifiers:


hudson@musix:~$ xrandr --output LVDS-1 --auto --output VGA-1 --auto
hudson@musix:~$
hudson@musix:~$ xrandr
Screen 0: minimum 320 x 200, current 1280 x 800, maximum 2047 x 2047
LVDS-1 connected 1280x800+0+0 (normal left inverted right x axis y axis) 
303mm x 190mm

   1280x800  59.91*+
VGA-1 disconnected (normal left inverted right x axis y axis)


As you see, the extern monitor remains considered disconnected. (It 
behaves like in standby state, as it takes a little time to display the 
screen when I switch to the framebuffer terminal.)



Hudson



franc...@avalenn.eu wrote:

On Wed, Dec 30, 2015 at 10:05:22AM -0200, Hudson Flavio Meneses Lacerda wrote:

Joel Roth wrote:

Hudson Flavio Meneses Lacerda wrote:



How to enable Xorg to use a VGA monitor plugged to a laptop?


I use a command like this:

xrandr --output LVDS1 --auto --output VGA1 --auto



I just tried your suggestion, but got this message:

hudson@musix:tmp$ xrandr --output LVDS1 --auto --output VGA1 --auto
warning: output LVDS1 not found; ignoring
warning: output VGA1 not found; ignoring
hudson@musix:tmp$


Your monitor names are probably a little bit different.
Typing "xrandr" with no option will allow you to list the monitors
actually seen by X. For example I have eDP1, VGA1 and HDMI1 as
possible names for my current configuration :

$ xrandr
Screen 0: minimum 320 x 200, current 1366 x 768, maximum 8192 x 8192
eDP1 connected 1366x768+0+0 (normal left inverted right x axis y axis) 344mm x 
194mm
1366x768  60.03*+  40.01
1360x768  59.8059.96
VGA1 disconnected (normal left inverted right x axis y axis)
HDMI1 disconnected (normal left inverted right x axis y axis)


francois




--
Hudson Lacerda - www.hudsonlacerda.com
--

- Venha para a Diaspora* - uma rede social livre e descentralizada
https://diasporafoundation.org
https://diasporabr.com.br

- Como vendemos nossas almas --e mais-- aos gigantes da internet

https://amusicadehudsonlacerda.wordpress.com/2015/09/07/como-vendemos-nossas-almas-e-mais-aos-gigantes-da-internet-bruce-schneier/

- Vamos falar sobre privacidade?

https://amusicadehudsonlacerda.wordpress.com/2015/07/29/vamos-falar-sobre-privacidade/




Re: Laptop + VGA + X

2015-12-30 Thread francois
On Wed, Dec 30, 2015 at 11:28:52AM -0200, Hudson Flavio Meneses Lacerda wrote:
> Thank you for the input. Here is my other attempt, with the correct monitor
> identifiers:
> 
> hudson@musix:~$ xrandr --output LVDS-1 --auto --output VGA-1 --auto
> hudson@musix:~$
> hudson@musix:~$ xrandr
> Screen 0: minimum 320 x 200, current 1280 x 800, maximum 2047 x 2047
> LVDS-1 connected 1280x800+0+0 (normal left inverted right x axis y axis)
> 303mm x 190mm
>1280x800  59.91*+
> VGA-1 disconnected (normal left inverted right x axis y axis)
> 
> 
> As you see, the extern monitor remains considered disconnected. (It behaves
> like in standby state, as it takes a little time to display the screen when
> I switch to the framebuffer terminal.)

This is how "--auto" works. As the man page says :

   --auto For connected but disabled outputs, this will enable
  them using their first preferred mode (or, something
  close to 96dpi if they have no preferred mode). For
  disconnected but enabled outputs, this will disable
  them.
 
It seems that something like this could work : 

$ xrandr --addmode VGA1 1024x768
$ xrandr --output VGA1 --mode 1024x768 

(See 
http://askubuntu.com/questions/150879/can-i-force-vga-signal-output-even-when-xrandr-shows-disconnected
for my source)
  



Re: Re: Laptop + VGA + X

2015-12-30 Thread tomas
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Wed, Dec 30, 2015 at 10:05:22AM -0200, Hudson Flavio Meneses Lacerda wrote:
> Joel Roth wrote:
> >Hudson Flavio Meneses Lacerda wrote:
> >>Hi.
> >>
> >>The monitor of my laptop is broken, thus the screen frequently becomes
> >>white. Then, it is needed to turning off the energy and restart the laptop
> >>(not always with success).
> >>
> >>Therefore, I plugged a VGA monitor. However, the VGA monitor does not work
> >>when X is active. (It works very fine with framebuffer, though.)
> >>
> >>How to enable Xorg to use a VGA monitor plugged to a laptop?
> >
> >I use a command like this:
> >
> >xrandr --output LVDS1 --auto --output VGA1 --auto
> 
> Hi Joel.
> 
> I just tried your suggestion, but got this message:
> 
> hudson@musix:tmp$ xrandr --output LVDS1 --auto --output VGA1 --auto
> warning: output LVDS1 not found; ignoring
> warning: output VGA1 not found; ignoring
> hudson@musix:tmp$

Ah -- LVDS1 is just one of the possible names for the laptop's display.
To find out how yours are called (and what resolutions they report as
available), just try (best with second monitor attached, so you can
get a complete list):

  xrandr

(My laptop's internal monitor, for example, is called just "LVDS", not
"LVDS1").

HTH
- -- tomás
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.12 (GNU/Linux)

iEYEARECAAYFAlaDz8oACgkQBcgs9XrR2kY3bwCdGsFon0Zg5KO0L3ntwD45Ut9b
nnsAniDH4Ynz57/nOa2yCKwJJLi0TVbc
=E45y
-END PGP SIGNATURE-



Re: Re: Laptop + VGA + X

2015-12-30 Thread francois
On Wed, Dec 30, 2015 at 10:05:22AM -0200, Hudson Flavio Meneses Lacerda wrote:
> Joel Roth wrote:
> >Hudson Flavio Meneses Lacerda wrote:

> >>How to enable Xorg to use a VGA monitor plugged to a laptop?
> >
> >I use a command like this:
> >
> >xrandr --output LVDS1 --auto --output VGA1 --auto

> I just tried your suggestion, but got this message:
> 
> hudson@musix:tmp$ xrandr --output LVDS1 --auto --output VGA1 --auto
> warning: output LVDS1 not found; ignoring
> warning: output VGA1 not found; ignoring
> hudson@musix:tmp$

Your monitor names are probably a little bit different.
Typing "xrandr" with no option will allow you to list the monitors
actually seen by X. For example I have eDP1, VGA1 and HDMI1 as
possible names for my current configuration :

$ xrandr 
Screen 0: minimum 320 x 200, current 1366 x 768, maximum 8192 x 8192
eDP1 connected 1366x768+0+0 (normal left inverted right x axis y axis) 344mm x 
194mm
   1366x768  60.03*+  40.01  
   1360x768  59.8059.96  
VGA1 disconnected (normal left inverted right x axis y axis)
HDMI1 disconnected (normal left inverted right x axis y axis)


francois



Re: Re: Laptop + VGA + X

2015-12-30 Thread Hudson Flavio Meneses Lacerda

Joel Roth wrote:

Hudson Flavio Meneses Lacerda wrote:

Hi.

The monitor of my laptop is broken, thus the screen frequently becomes
white. Then, it is needed to turning off the energy and restart the laptop
(not always with success).

Therefore, I plugged a VGA monitor. However, the VGA monitor does not work
when X is active. (It works very fine with framebuffer, though.)

How to enable Xorg to use a VGA monitor plugged to a laptop?


I use a command like this:

xrandr --output LVDS1 --auto --output VGA1 --auto


Hi Joel.

I just tried your suggestion, but got this message:

hudson@musix:tmp$ xrandr --output LVDS1 --auto --output VGA1 --auto
warning: output LVDS1 not found; ignoring
warning: output VGA1 not found; ignoring
hudson@musix:tmp$

Thanks.
Hudson

P.S.: The desktop manager I am using is Fluxbox (1.3.5-2).



Re: Re: Laptop + VGA + X

2015-12-30 Thread Hudson Flavio Meneses Lacerda

Gary Dale wrote:

On 29/12/15 07:00 PM, Hudson Flavio Meneses Lacerda wrote:

Hi.

The monitor of my laptop is broken, thus the screen frequently becomes
white. Then, it is needed to turning off the energy and restart the
laptop (not always with success).

Therefore, I plugged a VGA monitor. However, the VGA monitor does not
work when X is active. (It works very fine with framebuffer, though.)

How to enable Xorg to use a VGA monitor plugged to a laptop?

Thanks.
Hudson Lacerda


Which desktop manager are you using? Usually they have graphical tools
to detect the monitors and switch between them, use them both with the
same output or use them as an extra-large single display. It's pretty
rare these days to need to fiddle with config files for this.


Hi.

I am using Fluxbox 1.3.5-2 (very basic setup, with just the main bar and 
gkrellm, no "desktop" icons or other plugins).


When I used this laptop for presentations (connected to data 
projectors), I sometimes needed to use the framebuffer and tools like 
fbgs, fbi, gpm, etc.


May that be a hardware limitation? Is not X not compatible with old CRT 
monitors anymore?


Thanks.

--
Hudson Lacerda - www.hudsonlacerda.com
--

- Venha para a Diaspora* - uma rede social livre e descentralizada
https://diasporafoundation.org
https://diasporabr.com.br

- Mantenha o controle de sua computação, senão ela vai controlar você!
https://www.gnu.org/philosophy/keep-control-of-your-computing.html

- O modelo das urnas eletrônicas brasileiras é o mais antiquado e
  obscuro em uso no mundo.
http://votoseguro.org



Re: Laptop + VGA + X

2015-12-30 Thread Hudson Flavio Meneses Lacerda

Hi, François.

Eventually this worked:

 xrandr --addmode VGA-1 1280x800
 xrandr --output VGA-1 --mode 1280x800 --same-as LVDS-1

I cannot the the entire screen on the CRT(VGA-1) monitor, but I will try 
to configure the monitor to display as much as possible (or the left 
side, at least).


Thanks to all you that helped me!
Cheers!

Hudson Lacerda
https://aMusicaDeHudsonLacerda.wordpress.com


P.S.: Interestingly, the output still is shown as "disconnected", 
although it is working!:



$ xrandr
Screen 0: minimum 320 x 200, current 1280 x 800, maximum 2047 x 2047
LVDS-1 connected 1280x800+0+0 (normal left inverted right x axis y axis) 
303mm x 190mm

   1280x800  59.91*+
VGA-1 disconnected 1280x800+0+0 (normal left inverted right x axis y 
axis) 0mm x 0mm

   1280x800  59.91*



Re: Laptop + VGA + X

2015-12-29 Thread Gary Dale

On 29/12/15 07:00 PM, Hudson Flavio Meneses Lacerda wrote:

Hi.

The monitor of my laptop is broken, thus the screen frequently becomes 
white. Then, it is needed to turning off the energy and restart the 
laptop (not always with success).


Therefore, I plugged a VGA monitor. However, the VGA monitor does not 
work when X is active. (It works very fine with framebuffer, though.)


How to enable Xorg to use a VGA monitor plugged to a laptop?

Thanks.
Hudson Lacerda


Which desktop manager are you using? Usually they have graphical tools 
to detect the monitors and switch between them, use them both with the 
same output or use them as an extra-large single display. It's pretty 
rare these days to need to fiddle with config files for this.




Re: Laptop + VGA + X

2015-12-29 Thread Joel Roth
Hudson Flavio Meneses Lacerda wrote:
> Hi.
> 
> The monitor of my laptop is broken, thus the screen frequently becomes
> white. Then, it is needed to turning off the energy and restart the laptop
> (not always with success).
> 
> Therefore, I plugged a VGA monitor. However, the VGA monitor does not work
> when X is active. (It works very fine with framebuffer, though.)
> 
> How to enable Xorg to use a VGA monitor plugged to a laptop?
 
I use a command like this:

xrandr --output LVDS1 --auto --output VGA1 --auto

> Thanks.
> Hudson Lacerda
> 
> 
> 
> 
> 
> hudson@musix:tmp$ xrandr
> Screen 0: minimum 320 x 200, current 1280 x 800, maximum 2047 x 2047
> LVDS-1 connected 1280x800+0+0 (normal left inverted right x axis y axis)
> 303mm x 190mm
>1280x800  59.91*+
> VGA-1 disconnected (normal left inverted right x axis y axis)
> 
> 
> Debian 8.2
> 
> 
> X.Org X Server 1.16.4
> Release Date: 2014-12-20
> X Protocol Version 11, Revision 0
> Build Operating System: Linux 3.2.0-4-amd64 i686 Debian
> Current Operating System: Linux musix 3.16.0-4-686-pae #1 SMP Debian
> 3.16.7-ckt20-1+deb8u1 (2015-12-14) i686
> Kernel command line: BOOT_IMAGE=/boot/vmlinuz-3.16.0-4-686-pae
> root=UUID=05...fb1 ro lang=pt_BR vga=789 quiet
> Build Date: 11 February 2015  01:14:26AM
> xorg-server 2:1.16.4-1 (http://www.debian.org/support)
> Current version of pixman: 0.32.6
> 
> 
> 
> xrandr program version   1.4.2
> Server reports RandR version 1.4
> 
> 
> 
> 
> 
> -- 
> Hudson Lacerda - www.hudsonlacerda.com
> --
> 
> - Venha para a Diaspora* - uma rede social livre e descentralizada
>   https://diasporafoundation.org
>   https://diasporabr.com.br
> 
> - Mantenha o controle de sua computação, senão ela vai controlar você!
>   https://www.gnu.org/philosophy/keep-control-of-your-computing.html
> 
> - O modelo das urnas eletrônicas brasileiras é o mais antiquado e
>   obscuro em uso no mundo.
>   http://votoseguro.org
> 

-- 
Joel Roth