Ubuntu 18.04.1 LTS - 2番目のxsessionを起動できませんでした

Ubuntu 18.04.1 LTS - 2番目のxsessionを起動できませんでした

Ubuntu 18.04.1 LTSで2番目のxsessionを起動しようとしています。 tty3に切り替えます。Ctrl+Alt+F3次に、次のコマンドを実行します。

export DISPLAY=:2
startx -- :2

しかし、それは失敗しました。丸太。何が問題なの? Ubuntu 16.04.5 LTSでも同じ方法がうまく機能します。

ベストアンサー1

あなたのDISPLAY =:2テクノロジは私のコンピュータで動作し、2つのXserverを同時に実行しています。私のXserverは1.20.3なので、バージョン1.19.6でも動作し続けます。私のコンピュータはIntel iGPUを搭載しています。また、私はUbuntuがなく、systemdなしでLinux distを使用しているので、これは異なる場合があります。

あなたのログを見たところ、キーボード部分の後にXserverが終了することを確認しました。キーボードの混乱があったかどうかを調べるために、Xorg.2.logと比較してみました。 xorg confファイルのキーボードセクションに以下を追加してみてください。

MatchProduct "Logitech HID compliant keyboard"

たとえば、これにより、Xserverが電源ボタンとスリープボタンを操作するのを防ぐことができます。たとえば、ログファイルのキーボードモデルとレイアウトメッセージは、電源ボタンとスリープボタンのマイログファイルには表示されません。ここで、キーボードはキーボード、ポインタ、マウスとして認識されます。

[    42.146] (II) event4  - Logitech HID compliant keyboard: is tagged by udev as: Keyboard Mouse Joystick

おそらく、 libinput の「重複無視」部分がキーボード/PixArt マウスを取り外すこともあります。また、ここでsystemdからメッセージが表示されることを確認しました。

[    42.153] (II) systemd-logind: returning pre-existing fd for /dev/input/event4 13:68

これは答えではなく、ただいくつかの手がかりです。 Xserverは入力デバイスなしで終了する予定ですが、重複のために削除されたようです。

編集:これは私の/etc/X11/xorg.conf.d/50-keyboard.confです。

Section "InputClass"
  Identifier "ASUS laptop keyboard"
  MatchIsKeyboard "on"
  MatchProduct "AT Translated Set 2"
  Option "XkbModel" "asus_laptop"
  Option "XkbLayout" "us"
  Option "XkbOptions" "caps:none,terminate:ctrl_alt_bksp"
EndSection

編集2:これで、タッチパッドの重複項目が無視されることを確認しました。したがって、マウスが異なる場合があります。あなたのMatchIsKeyboardはまだ電源ボタンとスリープボタンと一致するので、それは良いことではありません。問題を把握できることを願っています。キーボード以外のログの残りの部分は、DISPLAY = : 2を使用して私のログに似ています。

EDIT3:Xorg.2.logにはまだこれらのエントリが含まれていますか?

[    42.142] (II) XINPUT: Adding extended input device "Sleep Button" (type: KEYBOARD, id 8)
[    42.142] (**) Option "xkb_model" "pc105"
[    42.142] (**) Option "xkb_layout" "pl"
[    42.143] (II) event1  - Sleep Button: is tagged by udev as: Keyboard
[    42.143] (II) event1  - Sleep Button: device is a keyboard

これは私のXorg.2.logファイルには表示されません。 libinputキーボードドライバは多くのことを処理するので、/usr/share/X11/xorg.conf.dでファイルを編集すると正しく動作しない可能性があり、パッケージがアップグレードされると置き換えられます。

ログファイルを確認し、キーボードが一致していることを確認してください。 MatchProductは単なる部分文字列であるため、「互換キーボード」が一致しない場合は、「Logitech」が優れている可能性があります。

編集4:/usr/share/X11/xorg.conf.d/ファイルはシステムファイルです。 /etc/X11/xorg.conf.d に独自の構成ファイルを置く必要があります。そのディレクトリが存在しない場合は、作成してください。このディレクトリ。

正常なstartxが正しく機能している場合、これがDISPLAY =:2の問題の原因であるかどうかはわかりません。 Xorgサーバーが正しく構成されておらず、同時に2つのサーバーを実行している場合にのみ問題が発生しているようです。開始されない場合,Xorg.2.log情報で間違った点が見つかりませんでした。

編集5:

これで、同じ設定で実行されている4つのXserverがあり、ctrl-alt F7 F8 F9またはF10を使用して切り替えることができます。次の設定以外に、それぞれが異なる設定を実行するのに役立つ可能性があるかどうかわかりません。おそらくこれらの設定を試してみると、複数のXserverも実行できます。

use: X [:<display>] [option]
-a #                   default pointer acceleration (factor)
-ac                    disable access control restrictions
-audit int             set audit trail level
-auth file             select authorization file
-br                    create root window with black background
+bs                    enable any backing store support
-bs                    disable any backing store support
-c                     turns off key-click
c #                    key-click volume (0-100)
-cc int                default color visual class
-nocursor              disable the cursor
-core                  generate core dump on fatal error
-displayfd fd          file descriptor to write display number to when ready to connect
-dpi int               screen resolution in dots per inch
-dpms                  disables VESA DPMS monitor control
-deferglyphs [none|all|16] defer loading of [no|all|16-bit] glyphs
-f #                   bell base (0-100)
-fc string             cursor font
-fn string             default font name
-fp string             default font path
-help                  prints message with these options
+iglx                  Allow creating indirect GLX contexts
-iglx                  Prohibit creating indirect GLX contexts (default)
-I                     ignore all remaining arguments
-ld int                limit data space to N Kb
-lf int                limit number of open files to N
-ls int                limit stack space to N Kb
-nolock                disable the locking mechanism
-maxclients n          set maximum number of clients (power of two)
-nolisten string       don't listen on protocol
-listen string         listen on protocol
-noreset               don't reset after last client exists
-background [none]     create root window with no background
-reset                 reset after last client exists
-p #                   screen-saver pattern duration (minutes)
-pn                    accept failure to listen on all ports
-nopn                  reject failure to listen on all ports
-r                     turns off auto-repeat
r                      turns on auto-repeat 
-render [default|mono|gray|color] set render color alloc policy
-retro                 start with classic stipple and cursor
-s #                   screen-saver timeout (minutes)
-seat string           seat to run on
-t #                   default pointer threshold (pixels/t)
-terminate             terminate at server reset
-to #                  connection time out
-tst                   disable testing extensions
ttyxx                  server started from init on /dev/ttyxx
v                      video blanking for screen-saver
-v                     screen-saver without video blanking
-wm                    WhenMapped default backing-store
-wr                    create root window with white background
-maxbigreqsize         set maximal bigrequest size 
+xinerama              Enable XINERAMA extension
-xinerama              Disable XINERAMA extension
-dumbSched             Disable smart scheduling and threaded input, enable old behavior
-schedInterval int     Set scheduler interval in msec
-sigstop               Enable SIGSTOP based startup
+extension name        Enable extension
-extension name        Disable extension
-query host-name       contact named host for XDMCP
-broadcast             broadcast for XDMCP
-multicast [addr [hops]] IPv6 multicast for XDMCP
-indirect host-name    contact named host for indirect XDMCP
-port port-num         UDP port number to send messages to
-from local-address    specify the local address to connect from
-once                  Terminate server after one session
-class display-class   specify display class to send in manage
-cookie xdm-auth-bits  specify the magic cookie for XDMCP
-displayID display-id  manufacturer display ID for request [+-]accessx [ timeout [ timeout_mask [ feedback [ options_mask] ] ] ] enable/disable accessx key sequences
-ardelay               set XKB autorepeat delay
-arinterval            set XKB autorepeat interval


Device Dependent Usage
-config file           specify a configuration file, relative to the xorg.conf search path, only root can use absolute
-configdir dir         specify a configuration directory, relative to the xorg.conf.d search path, only root can use absolute
-verbose [n]           verbose startup messages
-logverbose [n]        verbose log messages
-quiet                 minimal startup messages
-fbbpp n               set bpp for the framebuffer. Default: 8
-depth n               set colour depth. Default: 8
-gamma f               set gamma value (0.1 < f < 10.0) Default: 1.0
-rgamma f              set gamma value for red phase
-ggamma f              set gamma value for green phase
-bgamma f              set gamma value for blue phase
-weight nnn            set RGB weighting at 16 bpp.  Default: 565
-layout name           specify the ServerLayout section name
-screen name           specify the Screen section name
-keyboard name         specify the core keyboard InputDevice name
-pointer name          specify the core pointer InputDevice name
-nosilk                disable Silken Mouse
-flipPixels            swap default black/white Pixel values
-disableVidMode        disable mode adjustments with xvidtune
-allowNonLocalXvidtune allow xvidtune to be run as a non-local client
-allowMouseOpenFail    start server even if the mouse can't be initialized
-ignoreABI             make module ABI mismatches non-fatal
-isolateDevice bus_id  restrict device resets to bus_id (PCI only)
-version               show the server version
-showDefaultModulePath show the server default module path
-showDefaultLibPath    show the server default library path
-novtswitch            don't automatically switch VT at reset & exit
-sharevts              share VTs with another X server
vtXX                   use the specified VT number
-keeptty               don't detach controlling tty (for debugging only)
-masterfd <fd>         use the specified fd as the DRM master fd (not if setuid/gid)

おすすめ記事