Thanks Gwenhael,
Looks like xrandr is the best choice now. I finally came up with
something that is reasonably good to to detect my HDMI connection.
Then I made a script in ~/.kde/env to call the script to detect it, so
the screen resizes before plasma is loaded, so it saves plasma from
resizing its widgets one more time.
This may cause some inefficiency but I don't think it's a very big
deal. It would be nice if I could tell xorg exactly what I wanted when
it starts though.
/usr/bin/extscreen-autodetect
------
#!/bin/bash
if xrandr -q | grep -q "HDMI1 connected"
then
xrandr --output HDMI1 --auto --output LVDS1 --off
echo hdmi
else
xrandr --output LVDS1 --auto --output HDMI1 --auto
echo lvds
fi
~/.kde/env/
------
#!/bin/bash
export screen-connection=`extscreen-autodetect`
--
Sent from my Lunix.
_______________________________________________
POST RULES : http://wiki.hanoilug.org/hanoilug:mailing_list_guidelines
_______________________________________________
HanoiLUG mailing lists: http://lists.hanoilug.org/
HanoiLUG wiki: http://wiki.hanoilug.org/
HanoiLUG blog: http://blog.hanoilug.org/