Debian
即使在註銷後,Debian 仍繼續從 lxde 執行腳本
我正在嘗試在 Steam 上玩一些遊戲(特別是Half-Life 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 forums找到了一個解決方案,但是我在使用 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
您是否在 LXDE 中執行該腳本?
如果是這樣,當你終止會話並且 LXDE 關閉時,腳本將終止,它也是 LXDE 會話的子程序。