即使注销后,Debian 仍继续从 lxde 运行脚本

即使注销后,Debian 仍继续从 lxde 运行脚本

我正在尝试在 Steam 上玩一些游戏(特别是半条命2),但是在我的双显示器设置中启用 Xinerama 会导致臭名昭著的结果:

Could not find required OpenGL entry point 'glGetError'! Either your video card is unsupported, or your OpenGL driver needs to be updated.

我在以下位置找到了解决方案archlinux 论坛,但我无法使用 LXDE 将其实现到 shell 脚本中。

#!/usr/sh
pkill -SIGTERM -f xsession
startx -- -layout Steam

它成功地将我注销,pkill但随后我返回到控制台提示符并且startx从未执行。我在这里缺少什么?

user@home:~$ cat /etc/X11/xorg.conf.d/91-serverlayout-steam.conf
# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings:  version 340.46  (pbuilder@zam904)  Fri Oct 17 21:29:34 UTC 2014

Section "ServerLayout"
    Identifier     "Steam"
    Screen      0  "Screen0" 0 0
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
    Option         "Xinerama" "0"
EndSection

Section "Files"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/psaux"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Keyboard0"
    Driver         "kbd"
EndSection

Section "Monitor"
    # HorizSync source: edid, VertRefresh source: edid
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "Ancor Communications Inc VS248"
    HorizSync       30.0 - 83.0
    VertRefresh     50.0 - 76.0
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce GTX 460 v2"
    BusID          "PCI:6:0:0"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "Stereo" "0"
    Option         "nvidiaXineramaInfoOrder" "DFP-0"
    Option         "metamodes" "nvidia-auto-select +0+0"
    Option         "SLI" "Off"
    Option         "MultiGPU" "Off"
    Option         "BaseMosaic" "off"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

答案1

您是在 LXDE 中运行该脚本吗?

如果是这样,当您终止会话并且 LXDE 关闭时,该脚本及其子会话将被终止。

相关内容