You are not logged in.
Hi. I'm a new CB fan from Spain, trying to give new live to my acer one with the broken screen.... I've been using ubuntu for about 2 years now, but I'm still in the "google for the command everytime you need to change permissions" phase (I'm not very clever). Anyway, I'd like to know how to modify autostart.sh (or whatever i have to modify) to boot with the laptop screen turned off and the external working in the native resolution...
So, can anybody help me with that?
Thanks in advance and sorry for my english...
Last edited by brunomalone (2009-10-22 09:24:29)
Offline
short answer
1) adjust virtual size in /etc/X11/xorg.conf
2) use xrandr to define your monitors config
I will explain how to put the external monitor on the left:
1) adjust virtual size
internal monitor is 1024x600 and external monitor is 1980x1020.
so the total sreen size is (1024 + 1980) x 1020
open /etc/X11/xorg.conf and add the SubSection "Display"
Section "Screen"
Identifier "Default Screen"
Monitor "Configured Monitor"
Device "Configured Video Device"
SubSection "Display"
Virtual 3004 1020
EndSubSection
EndSection
2) use xrandr after login (or added command in autostart.sh)
xrandr --output VGA --mode 1980x1020
xrandr --output LVDS --left-of VGA
'VGA' and 'LVDS' are the name of your card.
use xrandr -q to check your own hardware.
Offline
Thanks for the reply, thil77 but I think that probably I didn't explain my problem properly: When I boot the computer with both monitors (The broken one in the laptop and the external one) I have to go to the menu-> System -> Display Settings -> Adjust with lxrardr, and then choose the option: "Use the external monitor and turn the laptop screen off (o something like that, I'm in the office now)" . After that I have to restart conky because it stays in the middle of the screen... That's all.
What I'd like is to do all this process automatically every time I boot adding a couple of lines in the autostart.sh
I guess your solution is useful if you want to use both screens at the same time... Thanks again.
Offline
A crude way would be to unplug the display connector on the motherboard for the internal screen. Normally, this is accessible underneath the cover below the screen, above the keyboard. On some laptops removing the keyboard gives access to this cable.
Offline
xrandr --output VGA --mode 1980x1020
xrandr --output LVDS --off
in your autostart.sh (before running conky command). that's all.
xrandr is a tool to manage monitors (mode, position, on/off, ...).
Last edited by thil77 (2009-10-21 17:39:36)
Offline
Thank you both... Your solution worked, thil77, but not completely. The new resolution is there and the broken laptop screen is off, but I just can use the left up corner of the monitor, like you can see in this image:
Any ideas?
Markofealing, thank you too, but I think this "xrandr --output LVDS --off is more elegant 
Offline
After some disorganized testing finally I managed. This is the order that did the trick in the autostart.sh:
# Launch panel
tint2 &
# Launch conky
(sleep 2s && conky -q) &
# Apaga el monitor del acer one
xrandr --output LVDS --off &
# Fija la resolucion del monitor externo
xrandr --output VGA --mode 1920x1080 &
# Set desktop wallpaper
nitrogen --restore &
# Start volume control system tray applet
volwheel &Thanks for everything...
Offline
Sorry. I just realized that the problem wasnt the order, the problem was the compositing enabled, once you disable it, everything works... I just tried disabling compositing with the combination I pasted above....:rolleyes:
Offline
Just about anything that burns excess clock cycles can really get in the way on LPIA netbooks. I'm glad you figured out your eye candy was causing your headaches! Hopefully your experience will help other netbook users keep their systems lean & mean. 
Offline
Hi
I do have a similar problem. But my situation is i little bit different ;-)
When travelling i use the internal screen of my FSC S7110 - resolution 1024x768.
When in the office i plug the laptop onto the docking station and it's connected via
DVI to an external LCD - resolution 1680x1050.
Right now i always have to fire up lxandr - turn the internal monitor off, select the
external monitor, adjust the resolution and finally retart conky to get the display right.
Therefor a solution in autostart.sh like described above is not feasable - i want to use
both monitors of course w/o manual adjustments when docked.
Any ideas? Thanks.
Offline
^ Why not a two-line shell script?
#!/bin/sh
xrandr --output VGA --mode 1680x1050 --output LVDS --off
conkywonkyIf I'm not mistaken, running a similar script to turn off the external monitor and reactivate the internal monitor will force X11 to restart to the GDM prompt, but the above script should at least help automate your docked setup.
Offline
Hi
May i kindly request the "reverse-action-script" as well? I just don't wanna get stuck when not docked ...
This script thing is still a little bit awkward to me - i had hoped for some built-in "intelligence" when docked/undocked
similar to w*****s.:)
Offline
Should be
#!/bin/sh
xrandr --output LVDS --mode 1024x768 --output VGA --off
conkywonkybut like I said, you'll probably find yourself looking at the GDM login when you run it.
(LVDS is your internal monitor. It's probably best to run `xrandr` without arguments to verify its name.)
Offline
Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.