X 不会自动启动,startx 工作正常

X 不会自动启动,startx 工作正常

我已经使用lxdm很长时间了,但是今天升级manjaro后,x没有自动启动。

输出journalctl -u lxdm

-- Reboot --
Dec 22 10:16:35 localhost systemd[1]: Started LXDE Display Manager.

输出systemctl status lxdm

● lxdm.service - LXDE Display Manager
   Loaded: loaded (/usr/lib/systemd/system/lxdm.service; enabled; vendor preset: disabled)
   Active: active (running) since Thu 2016-12-22 10:16:35 WIB; 4min 19s ago
 Main PID: 565 (lxdm-binary)
    Tasks: 5 (limit: 4915)
   CGroup: /system.slice/lxdm.service
           ├─565 /usr/sbin/lxdm-binary
           └─574 /usr/lib/xorg-server/Xorg -background none :0 vt01 -nolisten tcp -novtswitch -auth /var/run/lxdm/lxdm-:0.auth

Dec 22 10:16:35 localhost systemd[1]: Started LXDE Display Manager.

配置/etc/lxdm/lxdm.conf从一开始就从未改变过

[base]
## uncomment and set autologin username to enable autologin
# autologin=dgod

## uncomment and set timeout to enable timeout autologin,
## the value should >=5
# timeout=10

## default session or desktop used when no systemwide config
session=/usr/bin/startxfce4

## uncomment and set to set numlock on your keyboard
# numlock=0

## set this if you don't want to put xauth file at ~/.Xauthority
# xauth_path=/tmp

# not ask password for users who have empty password
# skip_password=1

## greeter used to welcome the user
greeter=/usr/lib/lxdm/lxdm-greeter-gtk

[server]
## arg used to start xserver, not fully function
arg=/usr/bin/X -background vt1
# uncomment this if you really want xserver listen to tcp
# tcp_listen=1
# uncoment this if you want reset the xserver after logou
# reset=1

[display]
## gtk theme used by greeter
gtk_theme=Adwaita

## background of the greeter
# bg=/usr/share/backgrounds/default.png

## if show bottom pane
bottom_pane=1

## if show language select control
lang=1

## if show keyboard layout select control
keyboard=0

## the theme of greeter
theme=Industrial

[input]

[userlist]
## if disable the user list control at greeter
disable=0

## whitelist user
white=

## blacklist user
black=

可能出什么问题了?

答案1

取消注释lxdm.conf's 解决了这个问题,但这种方式仍然不太安全

autologin=yourusername

相关内容