在/etc/default/halt 增加下面

INIT_HALT = POWEROFF

另一种方法:

I have the same problem and found a solution which worked out for me.

Type in terminal:

sudo -i (to get a root shell, sudo gedit is not recommended)
gedit /etc/default/grub
Find the line: GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
Change this to: GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi=force"
Save the file and close the file.
Finally, in terminal: update-grub
exit (to end the root shell)

写于: 2014年05月07日

更新于: 2015年03月23日

最新文章

  1. UNITY在VS中调试
  2. c++ std::string.c_str()
  3. [转]使用maven镜像
  4. leetcode 150. Evaluate Reverse Polish Notation ------ java
  5. c#中多线程访问winform控件的若干问题
  6. 使用bootstrapvalidator的remote验证经验
  7. 用JS计算预计时间与现在时间的差
  8. Java 多文件压缩成一个文件工具类
  9. mysql外键使用
  10. mysql中cast() 和convert()的用法讲解
  11. phpstorm自定义代码片段
  12. GIS入门基础知识点
  13. SSIS 连接数据
  14. chessboard
  15. js便签笔记(1)——说说HTMLCollection、NodeList以及NamedNodeMap
  16. hdu 5326
  17. (三)SpringBoot2.0基础篇- 持久层,jdbcTemplate和JpaRespository
  18. 一个最简单的JStorm例子
  19. Atitit.json类库的设计与实现 ati json lib
  20. 推荐20个非常有帮助的web前端开发教程

热门文章

  1. pytest文档53-命令行实时输出错误信息(pytest-instafail)
  2. swoft根据表创建实体
  3. ansible用authorized_key模块批量推送密钥到受控主机(免密登录)(ansible2.9.5)
  4. 第十二章 Linux三剑客之老三—grep
  5. Python之for循环和列表
  6. 异常java.lang.IllegalArgumentException: An invalid character [32] was present in the Cookie value
  7. .Net Core实现基于Quart.Net的任务管理
  8. nginx tp5配置
  9. 线程池FixedThreadPool
  10. 如何实现一个FormData