You are not logged in.

#1 2009-12-04 12:12:36

Chiefcooker
Member
Registered: 2006-02-14
Posts: 29

extern monitor only when connected?

hi, i have a big problem, i have a macbook pro 3,1 running arch with nvidia driver, and i have an extern monitior, which i want to use, if plugged in on dvi.
i want to use the extern monitor only, no macbook screen, i know i can enable the monitor with nvidia-settings, but when i shutdown, disconnect the monitor, and for example have a journey with the train, then my macbook cannot be used, because the configured screen is the extern monitor, and the macbook screen is black. no hotplugging here sad

if theres no clean solution for this problem, maybe there is a cmd to switch to external monitor only, which i can enter manually every time i need the extern screen, and after reboot it switches back to macbook screen?

i hope someone can help me....

regards chief

Offline

#2 2009-12-04 13:02:04

Wittfella
Member
From: Australia
Registered: 2008-05-27
Posts: 462

Re: extern monitor only when connected?

You can try something like this in your .xinitrc

xrandr | grep DVI | grep " connected "
if [ $? -eq 0 ]; then
    xrandr --output LVDS1 --off
    xrandr --output DVI --auto
fi

Offline

Board footer

Powered by FluxBB