系统配置:
OS: Ubuntu 16.04 xenial
Kernel: x86_64 Linux 4.4.0-51-generic
Uptime: 12m
Packages: 1644
Shell: bash 4.3.46
Resolution: 1366x768
DE: XFCE
WM: Xfwm4
WM Theme: Greybird
Greybird [GTK2]
Icon Theme: elementary-xfce-darker
Font: Noto Sans 9
CPU: Intel Core i3-2310M CPU @ 2.1GHz
GPU: GeForce GT 520M
RAM: 857MiB / 3801MiB
首先各种关机方法都使用过,点击关机按钮, shudown -h now,poweroff,init 0,systemctl poweroff,halt等等均没有作用,卡在logo显示画面,不过系统服务感觉应该是关闭的,但是电源无法关闭,每次只能手动按电源键关机,特烦。
我试着将系统自带的noveau显卡换成专有的Nvidia显卡,还是无法彻底关机,一样。
最后试着添加内核参数,一个个测试,不断关机重启,还是没用,感觉崩溃了,ubuntu怎么正常关机都行,以前的14.04也遇到过这种问题,通过添加内核参数可以解决,我感觉ubuntu就是小毛病不断,虽然无伤大雅,但是对于强迫症的我来说,真想砸电脑,ubuntu什么时候出台专门定制ubuntu的笔记本,这样就不会因为各种软硬件问题了,尤其是驱动和电源方面,真是一言难尽。
我把内核参数quiet,splash删除,不显示logo,只显示字符界面,这是在tty上关闭笔记本最后卡住页面的信息,一直显示的都是OK,最后一行是Reached target shutdown,但明明电源还未关,我都以为电脑坏了,不过另有个win7是可以彻底关掉的。
求大神指点!!!!!!!!!
xubuntu16.04无法正常关机
-
- 帖子: 34
- 注册时间: 2014-03-03 19:34
- 系统: ubuntu
-
- 论坛版主
- 帖子: 18279
- 注册时间: 2009-08-04 16:33
Re: xubuntu16.04无法正常关机
把下面指令 複製 貼進終端機 執行OS: Ubuntu 16.04 xenial
sudo journalctl -b -1 --no-pager
把結果直接 選取/複製/貼上來
-
- 帖子: 34
- 注册时间: 2014-03-03 19:34
- 系统: ubuntu
Re: xubuntu16.04无法正常关机
poloshiao 写了:把下面指令 複制 贴进终端机 执行OS: Ubuntu 16.04 xenial
sudo journalctl -b -1 --no-pager
把结果直接 选取/複制/贴上来
代码: 全选
ljhui@gateway:~$ sudo journalctl -b -1 --no-pager
Specifying boot ID has no effect, no persistent journal was found
https://paste.ubuntu.com/23582308/
-
- 论坛版主
- 帖子: 18279
- 注册时间: 2009-08-04 16:33
Re: xubuntu16.04无法正常关机
1. 重開機以後 要查上一次 開機的記錄 (包含最後關機以前的記錄)xubuntu16.04无法正常关机
2. 這是 當次開機的記錄 所以可能沒有 當次無法關機的記錄不过sudo journalctl -b -0 --no-pager的结果在下面链接
https://paste.ubuntu.com/23582308/
3. 需要修改設定 永久保存 每次開機的記錄
3-1. 以 root 權限 使用 文字編輯工具 打開
/etc/systemd/journald.conf
3-2. 把這一行
#Storage=persistent
改為
Storage=persistent
3-3. 讓新設定生效
sudo systemctl restart systemd-journald
or
sudo systemctl reboot
3-4. 記住關機時間點
sudo systemctl reboot
or
sudo systemctl poweroff
3-5. 重新開機登入桌面
查上一次 開機的記錄
sudo journalctl -b -1 --no-pager
核對上次關機的時間點 把它複製貼上來
3-6. 如果沒有上次關機的時間點
重新記住關機時間點
重新下達關機指令
重來一次開機看看
sudo journalctl -b -1 --no-pager
再查關機時間點
...
4. 為了避免記錄檔越來越大 所以不用時 建議把
/etc/systemd/journald.conf
Storage=persistent
改回
#Storage=persistent
-
- 帖子: 34
- 注册时间: 2014-03-03 19:34
- 系统: ubuntu
Re: xubuntu16.04无法正常关机
附件是几个关机记录,close1,2,3都是直接按系统按钮关机的,其他的是使用init 0,shutdown -h now,systemctl poweroff等命令关机的记录,所有关机都是卡住后按电源键关闭的,希望能分析出原因。poloshiao 写了:1. 重开机以后 要查上一次 开机的记录 (包含最后关机以前的记录)xubuntu16.04无法正常关机
- 附件
-
- shutdown.txt
- (19.52 KiB) 已下载 85 次
-
- poweroff.txt
- (21.88 KiB) 已下载 80 次
-
- init.txt
- (19.21 KiB) 已下载 76 次
-
- close3.txt
- (19.21 KiB) 已下载 79 次
-
- close2.txt
- (19.04 KiB) 已下载 69 次
-
- close1.txt
- (19.29 KiB) 已下载 79 次
-
- 论坛版主
- 帖子: 18279
- 注册时间: 2009-08-04 16:33
Re: xubuntu16.04无法正常关机
1. 使用 failed 關鍵字搜尋
最後面兩個 failed 都與 swap 有關
1-1. sudo swapon -s
看看 共有幾個 swap 作用中
1-2. 使用 swapoff 把它全部關閉
2. 確認 都已關閉
再使用各種指令 關閉看看 有沒有改善
3. 使用其它關鍵字 例如 error 關鍵字搜尋
按向上箭頭 從後面開始向上搜尋
3-1. 在六個檔案都出現的搜尋結果 列入懷疑名單的 優先網路搜尋看看
4. 補充
4-1. init.txt
4-2. 其它五個檔案 都是
4-3. 看看 是不是 /dev/sda4
4-3-1. 以上是無法關閉 swap 的分割區
最後面兩個 failed 都與 swap 有關
1-1. sudo swapon -s
看看 共有幾個 swap 作用中
1-2. 使用 swapoff 把它全部關閉
2. 確認 都已關閉
再使用各種指令 關閉看看 有沒有改善
3. 使用其它關鍵字 例如 error 關鍵字搜尋
按向上箭頭 從後面開始向上搜尋
3-1. 在六個檔案都出現的搜尋結果 列入懷疑名單的 優先網路搜尋看看
4. 補充
4-1. init.txt
代码: 全选
Dec 06 01:34:19 gateway swapoff[2088]: swapoff: /dev/sda4: swapoff failed: Invalid argument
代码: 全选
Dec 06 01:44:01 gateway swapoff[2131]: swapoff: /dev/disk/by-uuid/28b45f14-57ee-4a2e-8131-4ff4c661d4d3: swapoff failed: Invalid argument
代码: 全选
sudo ls -al /dev/disk/by-uuid | grep 28b45f14-57ee-4a2e-8131-4ff4c661d4d3
-
- 帖子: 34
- 注册时间: 2014-03-03 19:34
- 系统: ubuntu
Re: xubuntu16.04无法正常关机
还是无法关机,关闭swap后关机不出现有关swap的错误信息,没改善,这是截取的关机日志
https://paste.ubuntu.com/23589150/
https://paste.ubuntu.com/23589150/
- 附件
-
- test.txt
- (17.42 KiB) 已下载 80 次
-
- 论坛版主
- 帖子: 18279
- 注册时间: 2009-08-04 16:33
Re: xubuntu16.04无法正常关机
1. 使用 ubuntu 16.04 Sending SIGTERM to remaining processes exiting on receipt of SIGTERMhttps://paste.ubuntu.com/23589150/
最後三行
Dec 06 23:45:38 gateway systemd-shutdown[1]: Sending SIGTERM to remaining processes...
Dec 06 23:45:38 gateway dnsmasq[1099]: exiting on receipt of SIGTERM
Dec 06 23:45:38 gateway systemd-journald[234]: Journal stopped
google 搜尋 得到
1-1. http://askubuntu.com/questions/786375/u ... n-shutdown
Ubuntu is not sending SIGTERM on shutdown
1-2. http://askubuntu.com/questions/819730/n ... -04/819768
No SIGTERM before SIGKILL/shutdown with systemd on Ubuntu 16.04
1-3. https://bugs.launchpad.net/ubuntu/+sour ... ug/1438612
remote file systems hang on shutdown, D-BUS stops too early
1-4. 你可以參閱上述三個網頁 看看哪個跟你的情況接近
2. 使用 error 搜尋 得到
2-1. Dec 06 23:45:36 gateway NetworkManager[741]: <warn> [1481039136.4723] error requesting auth for org.freedesktop.NetworkManager.wifi.share.open: Authorization check failed: Message recipient disconnected from message bus without replying
2-2. Dec 06 23:45:36 gateway NetworkManager[741]: <warn> [1481039136.4724] error requesting auth for org.freedesktop.NetworkManager.wifi.share.protected: Authorization check failed: Message recipient disconnected from message bus without replying
2-3. Dec 06 23:45:36 gateway NetworkManager[741]: <warn> [1481039136.6514] error requesting auth for org.freedesktop.NetworkManager.wifi.share.protected: Authorization check failed: Refusing activation, D-Bus is shutting down.
2-4. Dec 06 23:45:36 gateway NetworkManager[741]: <warn> [1481039136.6514] error requesting auth for org.freedesktop.NetworkManager.wifi.share.open: Authorization check failed: Refusing activation, D-Bus is shutting down.
2-5. Dec 06 23:45:37 gateway lightdm[880]: update-alternatives: error: no alternatives for x86_64-linux-gnu_gfxcore_conf
3. 使用 failed 搜尋得到
3-1. Dec 06 23:45:36 gateway NetworkManager[741]: <warn> [1481039136.4723] error requesting auth for org.freedesktop.NetworkManager.wifi.share.open: Authorization check failed: Message recipient disconnected from message bus without replying
3-2. Dec 06 23:45:36 gateway NetworkManager[741]: <warn> [1481039136.4724] error requesting auth for org.freedesktop.NetworkManager.wifi.share.protected: Authorization check failed: Message recipient disconnected from message bus without replying
3-3. Dec 06 23:45:36 gateway dbus[733]: [system] Activation via systemd failed for unit 'polkitd.service': Refusing activation, D-Bus is shutting down.
4. 發現 D-Bus 是共同關鍵字
猜測是 D-Bus 太早關閉了 (參見 1-3)
導致 systemd 發出關機通知 無法順利被接收 系統耗住了
5. 使用 fixed 關鍵字 搜尋
https://bugs.launchpad.net/ubuntu/+sour ... ug/1438612
remote file systems hang on shutdown, D-BUS stops too early
可以找到好幾篇貼文 介紹解決方案
試試看 有沒有效
6. 補充
上面的搜尋結果 都有 NetworkManager 的影子
有興趣 也使用 NetworkManager 關鍵字 搜尋
https://paste.ubuntu.com/23589150/
看看 有沒有 什麼新發現