お知らせ

  • 利用規約を守って投稿してください。また、よくある質問および投稿の手引きも参照してください。
  • メッセージの投稿にはアカウントが必要です。未登録の方は、ユーザ登録ページからアカウントを作成することができます。

#1 2012-12-10 06:54:43

wtz0
メンバ
登録日: 2012-01-11

lightdm が時々起動しない

ubuntu 12.04 が時々起動しないでコンソールログイン画面が立ち上がってしまうことがあります。
そこからログインして sudo lightdm で起動すれば立ち上がるのですが。
色々検索しましたが見当たりません。こちらログの見方とかログがどこにあるのかも知りません。
よろしくお願いします。

オフライン

 

#2 2012-12-10 12:55:53

si
メンバ
From: hokkaido kitami, jp
登録日: 2007-01-15

Re: lightdm が時々起動しない

私も、最近、一度だけ経験しました。
OS ubuntu 12.04 AMD64
PC:Intel i7 3770+intel Z77+DDR3-1600 16GB+SATA2 1TB HDD

他のPCや、32ビット版Ubuntuでは、まだ、経験していません。
私の印象ですが、起動の速くなった、先のバージョンあたりから、稀にではありますが、似たようなことを経験するようになったような気がします。

システム関連のログは ”/var/log” 以下に在ります。
lightdm 起動は、/var/log/boot.log で確認できます。

コード:

si@TH67:~$ cat /var/log/boot.log
fsck from util-linux 2.20.1
/dev/sda3: clean, 221510/10993664 files, 2121106/43945216 blocks
 * Starting mDNS/DNS-SD daemon                                           [ OK ]
Skipping profile in /etc/apparmor.d/disable: usr.bin.firefox
Skipping profile in /etc/apparmor.d/disable: usr.sbin.rsyslogd
 * Stopping Userspace bootsplash                                         [ OK ]
 * Starting AppArmor profiles                                                  [ OK ]
speech-dispatcher disabled; edit /etc/default/speech-dispatcher
saned disabled; edit /etc/default/saned
 * Stopping System V initialisation compatibility                        [ OK ]
 * Starting System V runlevel compatibility                              [ OK ]
 * Starting restore sound card(s') mixer state(s)                        [ OK ]
 * Starting save kernel messages                                         [ OK ]
 * Starting ACPI daemon                                                  [ OK ]
 * Starting anac(h)ronistic cron                                         [ OK ]
 * Starting LightDM Display Manager                                      [ OK ]
 * Starting CPU interrupts balancing daemon                              [ OK ]
 * Stopping restore sound card(s') mixer state(s)                        [ OK ]
 * Starting crash report submission daemon                               [ OK ]
 * Starting regular background program processing daemon                 [ OK ]
 * Starting deferred execution scheduler                                 [ OK ]
 * Starting automatic crash report generation                            [ OK ]

オフライン

 

#3 2012-12-10 20:19:48

wtz0
メンバ
登録日: 2012-01-11

Re: lightdm が時々起動しない

早速の回答、ありがとうございます。以下のような状態ですが、これで問題点はあるでしょうか?
----
wtz@ubuntu:~$ cat /var/log/boot.log
fsck from util-linux 2.20.1
/dev/sda3: clean, 290917/42475520 files, 5178324/169886827 blocks
Skipping profile in /etc/apparmor.d/disable: usr.bin.firefox
Skipping profile in /etc/apparmor.d/disable: usr.sbin.rsyslogd
* Starting mDNS/DNS-SD daemon                                                 [ OK ]
* Starting network connection manager                                         [ OK ]
* Starting AppArmor profiles                                                  [ OK ]
* Setting sensors limits                                                      [ OK ]
* Stopping System V initialisation compatibility                              [ OK ]
* Starting System V runlevel compatibility                                    [ OK ]
* Starting automatic crash report generation                                  [ OK ]
* Starting GNOME Display Manager                                              [ OK ]
* Starting LightDM Display Manager                                            [ OK ]
* Starting save kernel messages                                               [ OK ]
* Starting crash report submission daemon                                     [ OK ]
* Starting anac(h)ronistic cron                                               [ OK ]
* Starting ACPI daemon                                                        [ OK ]
* Starting regular background program processing daemon                       [ OK ]
* Starting deferred execution scheduler                                       [ OK ]
* Stopping CPU interrupts balancing daemon                                    [ OK ]
* Stopping GNOME Display Manager                                              [ OK ]
* Stopping save kernel messages                                               [ OK ]
----
なお、使用しているのは 86 モードです。

オフライン

 

#4 2012-12-11 06:33:50

wtz0
メンバ
登録日: 2012-01-11

Re: lightdm が時々起動しない

こちらが正常に起動した時のログです。
----
wtz@ubuntu:~$ cat /var/log/boot.log
fsck from util-linux 2.20.1
/dev/sda3: clean, 290930/42475520 files, 5178500/169886827 blocks
* Starting bluetooth daemon                                                   [ OK ]
* Stopping Flush boot log to disk                                             [ OK ]
Skipping profile in /etc/apparmor.d/disable: usr.bin.firefox
Skipping profile in /etc/apparmor.d/disable: usr.sbin.rsyslogd
* Starting AppArmor profiles                                                  [ OK ]
* Setting sensors limits                                                      [ OK ]
* Stopping System V initialisation compatibility                              [ OK ]
* Starting System V runlevel compatibility                                    [ OK ]
* Starting eCryptfs                                                           [ OK ]
* Starting restore sound card(s') mixer state(s)                              [ OK ]
* Starting GNOME Display Manager                                              [ OK ]
* Starting ACPI daemon                                                        [ OK ]
* Starting anac(h)ronistic cron                                               [ OK ]
* Starting save kernel messages                                               [ OK ]
* Stopping CPU interrupts balancing daemon                                    [ OK ]
* Starting crash report submission daemon                                     [ OK ]
* Stopping GNOME Display Manager                                              [ OK ]
* Starting automatic crash report generation                                  [ OK ]
* Starting regular background program processing daemon                       [ OK ]
* Starting deferred execution scheduler                                       [ OK ]
* Stopping eCryptfs                                                           [ OK ]
* Stopping restore sound card(s') mixer state(s)                              [ OK ]
* Starting LightDM Display Manager                                            [ OK ]
* Stopping save kernel messages                                               [ OK ]
* Starting ClamAV virus database updater freshclam                            [ OK ]
speech-dispatcher disabled; edit /etc/default/speech-dispatcher
wtz@ubuntu:~$

オフライン

 

#5 2012-12-11 11:31:54

si
メンバ
From: hokkaido kitami, jp
登録日: 2007-01-15

Re: lightdm が時々起動しない

bootログは、単に、lightdm の起動確認だけしかできないので、 /var/log/lightdm 以下に在るログを確認してみてください。
si@TH67:~$ ls -l /var/log/lightdm
合計 24
-rw------- 1 root root 3621 12月 11 10:02 lightdm.log
-rw------- 1 root root 6536 12月 11 10:02 x-0-greeter.log
-rw------- 1 root root 5314 12月 10 23:26 x-0-greeter.log.old
-rw------- 1 root root 1108 12月 11 09:47 x-0.log

ファイルは、root 所有で排他モードなので、
sudo cat /var/log/lightdm/lightdm.log
と、sudo を付けないと見れません。

オフライン

 

#6 2012-12-11 19:30:00

wtz0
メンバ
登録日: 2012-01-11

Re: lightdm が時々起動しない

今回はエラーにならなかったんで、とりあえずファイル名のみ。

----
wtz@ubuntu:/var/log/lightdm$ ls -l
合計 44
-rw------- 1 root root 2959 12月 11 19:13 lightdm.log
-rw------- 1 root root 6252 12月 11 19:13 x-0-greeter.log
-rw------- 1 root root 6247 12月 11 17:26 x-0-greeter.log.old
-rw------- 1 root root 1047 12月 11 19:12 x-0.log
-rw------- 1 root root 6247 12月  9 14:33 x-1-greeter.log
-rw------- 1 root root 6247 11月 26 10:11 x-1-greeter.log.old
-rw------- 1 root root 1128 12月  9 15:29 x-1.log

オフライン

 

#7 2012-12-11 20:26:51

ubuntu123
メンバ
登録日: 2007-10-21

Re: lightdm が時々起動しない

自分も12.10入れてからGUIが起動しない状態が、近頃多発していて。
面倒だったので gdm 入れて逃げました。

オフライン

 

#8 2012-12-11 21:00:41

wtz0
メンバ
登録日: 2012-01-11

Re: lightdm が時々起動しない

とりあえずエラー?が出たので lightdm.log を書いておきます。
----
wtz@ubuntu:/var/log/lightdm$ sudo cat lightdm.log
[+0.00s] DEBUG: Logging to /var/log/lightdm/lightdm.log
[+0.00s] DEBUG: Starting Light Display Manager 1.2.1, UID=0 PID=2020
[+0.00s] DEBUG: Loaded configuration from /etc/lightdm/lightdm.conf
[+0.00s] DEBUG: Using D-Bus name org.freedesktop.DisplayManager
[+0.00s] DEBUG: Registered seat module xlocal
[+0.00s] DEBUG: Registered seat module xremote
[+0.00s] DEBUG: Adding default seat
[+0.00s] DEBUG: Starting seat
[+0.00s] DEBUG: Starting new display for greeter
[+0.00s] DEBUG: Starting local X display
[+0.00s] DEBUG: Using VT 7
[+0.00s] DEBUG: Activating VT 7
[+0.00s] DEBUG: Logging to /var/log/lightdm/x-0.log
[+0.01s] DEBUG: Writing X server authority to /var/run/lightdm/root/:0
[+0.01s] DEBUG: Launching X Server
[+0.01s] DEBUG: Launching process 2024: /usr/bin/X :0 -auth /var/run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch
[+0.01s] DEBUG: Waiting for ready signal from X server :0
[+0.01s] DEBUG: Acquired bus name org.freedesktop.DisplayManager
[+0.01s] DEBUG: Registering seat with bus path /org/freedesktop/DisplayManager/Seat0
[+1.31s] DEBUG: Got signal 10 from process 2024
[+1.31s] DEBUG: Got signal from X server :0
[+1.31s] DEBUG: Connecting to XServer :0
[+1.31s] DEBUG: Starting greeter
[+1.31s] DEBUG: Started session 2032 with service 'lightdm', username 'lightdm'
[+1.48s] DEBUG: Session 2032 authentication complete with return value 0: Success
[+1.48s] DEBUG: Greeter authorized
[+1.48s] DEBUG: Logging to /var/log/lightdm/x-0-greeter.log
[+1.48s] DEBUG: Session 2032 running command /usr/lib/lightdm/lightdm-greeter-session /usr/sbin/unity-greeter
[+1.78s] DEBUG: Greeter connected version=1.2.1
[+1.78s] DEBUG: Greeter connected, display is ready
[+1.78s] DEBUG: New display ready, switching to it
[+1.78s] DEBUG: Activating VT 7
[+2.61s] DEBUG: Greeter start authentication for wtz
[+2.61s] DEBUG: Started session 2256 with service 'lightdm', username 'wtz'
[+2.64s] DEBUG: Session 2256 authentication complete with return value 0: Success
[+2.64s] DEBUG: Authenticate result for user wtz: Success
[+2.66s] DEBUG: User wtz authorized
[+7.59s] DEBUG: Greeter requests session ubuntu
[+7.59s] DEBUG: Using session ubuntu
[+7.59s] DEBUG: Stopping greeter
[+7.59s] DEBUG: Session 2032: Sending SIGTERM
[+7.68s] DEBUG: Session 2032 exited with return value 0
[+7.68s] DEBUG: Greeter quit
[+7.71s] DEBUG: Dropping privileges to uid 1000
[+7.71s] DEBUG: Restoring privileges
[+7.73s] DEBUG: Dropping privileges to uid 1000
[+7.73s] DEBUG: Writing /home/wtz/.dmrc
[+7.81s] DEBUG: Restoring privileges
[+7.87s] DEBUG: Starting session ubuntu as user wtz
[+7.87s] DEBUG: Session 2256 running command /usr/sbin/lightdm-session gnome-session --session=ubuntu
[+7.90s] DEBUG: Registering session with bus path /org/freedesktop/DisplayManager/Session0
[+7.90s] DEBUG: Greeter closed communication channel

オフライン

 

#9 2012-12-20 03:48:50

wtz0
メンバ
登録日: 2012-01-11

Re: lightdm が時々起動しない

間違えました。こちらが起動しなかった場合です。
----
[+0.00s] DEBUG: Logging to /var/log/lightdm/lightdm.log
[+0.00s] DEBUG: Starting Light Display Manager 1.2.1, UID=0 PID=1247
[+0.00s] DEBUG: Loaded configuration from /etc/lightdm/lightdm.conf
[+0.00s] DEBUG: Using D-Bus name org.freedesktop.DisplayManager
[+0.00s] DEBUG: Registered seat module xlocal
[+0.00s] DEBUG: Registered seat module xremote
[+0.00s] DEBUG: Adding default seat
[+0.00s] DEBUG: Starting seat
[+0.00s] DEBUG: Starting new display for greeter
[+0.00s] DEBUG: Starting local X display
[+0.00s] DEBUG: X server :0 will replace Plymouth
[+0.02s] DEBUG: Using VT 7
[+0.02s] DEBUG: Activating VT 7
[+0.02s] DEBUG: Logging to /var/log/lightdm/x-0.log
[+0.02s] DEBUG: Writing X server authority to /var/run/lightdm/root/:0
[+0.02s] DEBUG: Launching X Server
[+0.02s] DEBUG: Launching process 1271: /usr/bin/X :0 -auth /var/run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch -background none
[+0.03s] DEBUG: Waiting for ready signal from X server :0
[+0.03s] DEBUG: Acquired bus name org.freedesktop.DisplayManager
[+0.03s] DEBUG: Registering seat with bus path /org/freedesktop/DisplayManager/Seat0
[+0.21s] DEBUG: Process 1271 exited with return value 1
[+0.21s] DEBUG: X server stopped
[+0.21s] DEBUG: Removing X server authority /var/run/lightdm/root/:0
[+0.21s] DEBUG: Releasing VT 7
[+0.21s] DEBUG: Stopping Plymouth, X server failed to start
[+0.31s] DEBUG: Display server stopped
[+0.31s] DEBUG: Stopping display
[+0.31s] DEBUG: Display stopped
[+0.31s] DEBUG: Stopping X local seat, failed to start a display
[+0.31s] DEBUG: Stopping seat
[+0.31s] DEBUG: Seat stopped
[+0.31s] DEBUG: Required seat has stopped
[+0.31s] DEBUG: Stopping display manager
[+0.31s] DEBUG: Display manager stopped
[+0.31s] DEBUG: Stopping daemon
[+0.31s] DEBUG: Exiting with return value 1

オフライン

 

#10 2012-12-23 15:36:39

wtz0
メンバ
登録日: 2012-01-11

Re: lightdm が時々起動しない

GNOME Display Manager を起動して終了するのはどうしたらよくできるのでしょうか。

オフライン

 

#11 2012-12-23 15:38:16

wtz0
メンバ
登録日: 2012-01-11

Re: lightdm が時々起動しない

さっきのですが起動しないようにするのはどうしたらよいのか、という意味です。

オフライン

 

#12 2012-12-23 18:03:38

nagakazu
メンバ
登録日: 2012-06-04

Re: lightdm が時々起動しない

sysv-rc-conf
でできるかもしれません。

オフライン

 

#13 2012-12-24 06:23:38

wtz0
メンバ
登録日: 2012-01-11

Re: lightdm が時々起動しない

回答有難う御座いました。結論から言うとダメでした。 gdm のどれをチェックしたらいいのか、
わからないので全部つけたり消したり色々やってみましたが、ログにはちゃんと残っていました。
gdm をアンインストールしてもログには残っていました。

オフライン

 

#14 2012-12-25 07:28:20

wtz0
メンバ
登録日: 2012-01-11

Re: lightdm が時々起動しない

いろいろといじっているうちに必要なファイルを消してしまったようで、
再インストールしようと思います。回答して下っさたかたありがとうございました。

オフライン

 

#15 2013-03-17 07:58:21

wtz0
メンバ
登録日: 2012-01-11

Re: lightdm が時々起動しない

また最近 lightdm が起動せずにコンソール画面が立ち上がるようになりました。
siさんのログを見ると Starting GNOME Display Manager の一行がないようですが
これはどのように設定すればいいのでしょうか?
ubuntu 12.04 の起動時の定義ファイル?はどれなんでしょうか。どなたか教えてください。

オフライン

 

#16 2013-03-19 16:05:57

wtz0
メンバ
登録日: 2012-01-11

Re: lightdm が時々起動しない

wtz0 による投稿:

siさんのログを見ると Starting GNOME Display Manager の一行がないようですが
これはどのように設定すればいいのでしょうか?

とりあえず、sudo apt-get purge gdm としたら、上の一行はログに残らないようになりました。

オフライン

 

#17 2013-03-20 19:27:46

wtz0
メンバ
登録日: 2012-01-11

Re: lightdm が時々起動しない

いろいろといじってたら、結局起動しなくなって 11.04 から、またインストールし直しでした。

オフライン

 

Board footer

Powered by FluxBB