You are not logged in.
Hello
i have an T420 ThinkPad which is connectet at home with a docking station per displayport. The display from the laptop is closed all the time all works well only when i not start X server the resolution is not set right here is what i mean. When starting X the resolution is ok.
this is my .xinitrc
#!/bin/sh
#
# ~/.xinitrc
#
# Executed by startx (run your window manager from here)
#virtual desktop:
#xrandr --output LVDS1 --auto --output DP2 --auto --right-of LVDS1
#when not docked:
#xrandr --output LVDS1 --auto --output DP2 --off
#docked with NEC:
xrandr --output DP2 --auto --output LVDS1 --off
#when not docked:
#xrandr --output LVDS1 --auto --DP2 --off
if [ -d /etc/X11/xinit/xinitrc.d ]; then
for f in /etc/X11/xinit/xinitrc.d/*; do
[ -x "$f" ] && . "$f"
done
unset f
fi
sh ~/.fehbg &
conky &
# exec gnome-session
# exec startkde
# exec startxfce4
# ...or the Window Manager of your choice
exec openbox-session
The reason is i will when i not start X start ncmpcpp on vc1 but as you can see on the pictures they take the resolution from my laptop
How can i fix this is it possible?
ps;on my .xinitrc i have this 2 times what of them is the right? or are both the same?
#when not docked:
#xrandr --output LVDS1 --auto --output DP2 --off
#when not docked:
#xrandr --output LVDS1 --auto --DP2 --off
Offline