Új hozzászólás Aktív témák

  • soldi3r

    veterán

    Hello'sztok! Akadt egy kis problemam.
    Levaltottam a Debian 8-as 9-re. GUI nelkuli telepites egy kijelzo nelkuli noti alapra. Elobbin az LVDS kimenet tiltasa egyszeru volt:
    $ apt-get install x11-xserver-utils
    $ xrandr --current
    $ xrandr --auto && xrandr --output LVDS-0 –off

    Viszont a 9-es verzio n valamit elrontok. SSH-n erem csak el. Feltettem az x11-xserver-utils-t, addig meg nem okozott problemat, azok utana kezdodtek. Mar a xrandr -q parancsra is Can't open display valasz erkezik. Szoval gondolom mar a bootolasnal kellene tiltanom az LVDS-t, amit a kovetkezokepp probaltam terminalbol:
    nano /etc/systemd/system/rc-local.service
    Tartalma:
    [Unit]
    Description=/etc/rc.local
    ConditionPathExists=/etc/rc.local
    [Service]
    Type=forking
    ExecStart=/etc/rc.local start
    TimeoutSec=0
    StandardOutput=tty
    RemainAfterExit=yes
    SysVStartPriority=99
    [Install]
    WantedBy=multi-user.target

    nano /etc/rc.local
    Tartalma:
    #!/bin/sh -e
    # rc.local
    # This script is executed at the end of each multiuser runlevel.
    # Make sure that the script will "exit 0" on success or any other
    # value on error.
    # In order to enable or disable this script just change the execution
    # bits.
    # By default this script does nothing.
    exit 0

    Majd jott nehany parancs:
    chmod +x /etc/rc.local
    systemctl enable rc-local
    systemctl start rc-local.service
    systemctl status rc-local.service

    Aztan meg egy fajl:
    nano /etc/init.d/lvdsdisable.sh
    A tartalma, ami mukodott a 8-on.
    xrandr --current
    xrandr --auto
    xrandr --output LVDS-0 --off

    Most meg hozzateszem az LVDS-1, LVDS0, LVDS1 sorokat probakepp. Van erre masik megoldas? Vagy igazabol mit rontok el?

    update:
    Az /etc/rc.local fajlt kiegeszitettem egy sorral, majd volt restart is:
    /etc/init.d/lvdsdisable.sh || exit 1

Új hozzászólás Aktív témák