lxrandr in voidlinux speichert leider meine Einstellungen nicht.
Um den Laptopmonitor auszuschalten und den externen Bildschirm anzuschalten (1600x1200), dachte ich an folgenden Eintrag (gemäss archlinux xrandr Wiki): https://wiki.archlinux.org/index.php/xrandr#Configuration
Habe das hier in Fett eingefügt: /etc/lxdm/Xsession. Klappt so weit, nur bleibt der Bildschirm schwarz, bis ich auf numlock drücke (?):
Edit: hat leider doch nicht funktioniert.
Alternative dazu wäre in ~/.config/lxsession/LXDE/autostart ohne Bedingung:
@lxpanel --profile LXDE
@pcmanfm --desktop --profile LXDE
@xscreensaver -no-splash
@xrandr --output HDMI2 --rotate left --mode 1200x1600 --output LVDS-1 --off
Grundsätzlich wäre mir die Bedingungsgeschichte lieber, wäre auch unabhängig vom user und vielleicht etwas schneller (?)
Um den Laptopmonitor auszuschalten und den externen Bildschirm anzuschalten (1600x1200), dachte ich an folgenden Eintrag (gemäss archlinux xrandr Wiki): https://wiki.archlinux.org/index.php/xrandr#Configuration
Habe das hier in Fett eingefügt: /etc/lxdm/Xsession. Klappt so weit, nur bleibt der Bildschirm schwarz, bis ich auf numlock drücke (?):
Edit: hat leider doch nicht funktioniert.
Code:
#!/bin/bash
# use bash for "exec -l", howto run login shell by /bin/sh ?
#!/bin/bash
intern=LVDS1
extern=HDMI2
if xrandr | grep "$extern connected"; then
xrandr --output "$extern" --rotate left --on --output "$intern" --off
else xrandr --output "$intern" --on --output "$extern" --off
fi
if [ $# -eq 1 -a -n "$1" ]; then
LXSESSION=$1
else
# default session
LXSESSION=/usr/bin/startlxde
fi
[ -f /etc/profile ] && . /etc/profile
[ -f ~/.profile ] && . ~/.profile
[ -f /etc/xprofile ] && . /etc/xprofile
[ -f ~/.xprofile ] && . ~/.xprofile
if [ -f /etc/X11/xinit/xinitrc-common ]; then
# fedora
. /etc/X11/xinit/xinitrc-common
exec -l bash -c "$LXSESSION"
elif [ -x /etc/X11/xinit/Xsession ]; then
# fedora
exec /etc/X11/xinit/Xsession "$LXSESSION"
elif [ -x /etc/X11/Xsession ]; then
# mandriva, debian, ubuntu
exec /etc/X11/Xsession "$LXSESSION"
elif [ -x /etc/X11/xinit/xinitrc ]; then
#suse
export WINDOWMANAGER=$LXSESSION
exec -l bash -c /etc/X11/xinit/xinitrc
else
# unknown, user should custom /etc/lxdm/xinitrc self
if [ -x /etc/lxdm/xinitrc ]; then
. /etc/lxdm/xinitrc "$LXSESSION"
fi
if [ -d /etc/X11/xinit/xinitrc.d ] ; then
for f in /etc/X11/xinit/xinitrc.d/* ; do
[ -x "$f" ] && . "$f"
done
unset f
fi
if which dbus-launch >/dev/null && test -z "$DBUS_SESSION_BUS_ADDRESS";
then
eval "$(dbus-launch --sh-syntax --exit-with-session)"
fi
exec -l bash -c "$LXSESSION"
fi
@lxpanel --profile LXDE
@pcmanfm --desktop --profile LXDE
@xscreensaver -no-splash
@xrandr --output HDMI2 --rotate left --mode 1200x1600 --output LVDS-1 --off
Grundsätzlich wäre mir die Bedingungsgeschichte lieber, wäre auch unabhängig vom user und vielleicht etwas schneller (?)
Zuletzt bearbeitet: