首页 > 系统相关 >解决 ubuntu 无法关机 Dell Studio 1569 Cannot Shutdown in Ubuntu 11.10 or 12.04

解决 ubuntu 无法关机 Dell Studio 1569 Cannot Shutdown in Ubuntu 11.10 or 12.04

时间:2023-04-03 23:34:14浏览次数:35  
标签:Shutdown sudo Dell Ubuntu computer command shutdown ubuntu your


Shutdown computer using terminal in Ubuntu

f you want to shutdown your computer what do you do ? Simply go to shutdown button and click shutdown isn’t?

 

Have you ever wondered how would you shutdown your pc if your gdm (Graphical User Interface) is not working. Or you are only working in command line mood or running a computer user account with ssh(secured shell) ??

 

Shutdown command

The command used in ubuntu to shutdown is shutdown.

If you want to shutdown your computer right now enter the command below


$ sudo shutdown -h now

 

or


$ sudo shutdown -h 0

 

Shutdown computer at a scheduled time

if you want to shutdown command at a scheduled time enter the following command


$ sudo shutdown -h 12:00 "System is shutting down"

 

This will shutdown your computer on 12pm with sending this message to all user.

You can also use power off or halt command to do this.


$sudo halt

 

or


$sudo poweroff

 

Reboot computer

Use any of this following command


$ sudo reboot

 

or


$ sudo shutdown -r 0

解决 ubuntu 无法关机

 

1. Type in terminal:


sudo gedit /etc/default/grub

 

2. Find the line: GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

3. Change this to: GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi=force"

4. Save the file and close the file.

 

5. Finally, in terminal:


sudo update-grub

 

 

I found it here: Dell Studio 1569 Cannot Shutdown in Ubuntu 11.10 or 12.04

 

 

Entering BIOS usually by pressing Del button when computer starting. Go to Advanced Settings and make sure APM is Enabled.

 

If you have installed Windows Operating System, and you succeed to shutdown your computer on Windows, it means your APM is Enabled.

 

If it still don’t fix your problem, try it in terminal,


$ sudo gedit /etc/init.d/alsa-utils

 


Change gedit with your favorite text editor. This will open alsa-utils or if it doesn’t exist, create new one.

Type,


ifconfig wlan0 down ifconfig eth0 down EXITSTATUS=0

 


Save file, and try to shutdown Ubuntu.

 

 

 

标签:Shutdown,sudo,Dell,Ubuntu,computer,command,shutdown,ubuntu,your
From: https://blog.51cto.com/u_8895844/6167723

相关文章

  • The Vim commands cheat sheet (ubuntu) vi编辑器常用的命令及快捷键
    HowtoExit :q[uit]QuitVim.Thisfailswhenchangeshavebeenmade.:q[uit]!Quitwithoutwriting.:cq[uit]Quitalways,withoutwriting.:wqWritethecurrentfileandexit.:wq!Writethecurrentfileandexitalways.:wq{file}Writeto{file}.Exitifnotedi......
  • Multimedia (MP3, MPEG-4, AVI, DiVX, etc.) support in Ubuntu 12.04 (Precise)
    Whydoesn’tUbuntusupportMP3‘outofthebox’?UbuntucannotincludesupportforMP3orDVDvideoplaybackorrecording.MP3formatsarepatented,andthepatentholdershavenotprovidedthenecessarylicenses.Ubuntualsoexcludesothermultimediasof......
  • Select all in address bar of firefox (Ubuntu, Linux Mint) with a single click
    Toomanythingstomodifyafterinstallingubuntuorlinuxmint.OneoftheannoyingthingisClickingtheaddressbaronFirefox(providedwithUbuntu,linuxmint)doesn’tselectthewholetextinit.Itsaverysmallproblem.Butitssoannoyingthat,t......
  • ubuntu eclipse 下驚醒GTK的配置(全)
    偶然的想法想玩玩GTK,因为Qt就是对gtk的C++封装,想着gtk应该比qt更高的执行效率吧,下面分享下自己搭建的过程。 1、我的ubuntu虚拟机是安装了eclipse+cdt的,如果是安装了eclipse没有安装CDT,则要安装CDT:     .可以在Eclipseupdate中输入以下地址来安装:http://download.eclipse......
  • Ubuntu22 kettle
     https://www.jianshu.com/p/446506134564cat/etc/apt/sources.listdebhttp://cz.archive.ubuntu.com/ubuntubionicmainuniverseapt-keyadv--keyserverkeyserver.ubuntu.com--recv-keys3B4FE6ACC0B21F32apt-getinstalllibwebkitgtk-1.0-0[root@kettl......
  • Ubuntu 17.04 将取消 Swap 分区?
    Canonical的软件工程师DimitriJohnLedkov最近宣布即将发布的Ubuntu Linux 系统安装时将丢弃Swap分区方式,改为交换文件方式。对我们中的大多数使用带SSD或NVMe闪盘及内存充足的人来说,这不是什么大新闻。不过那些想要将Ubuntu后续版本安装在10多年前PC......
  • Ubuntu 17.04 将取消 Swap 分区?
    Canonical的软件工程师DimitriJohnLedkov最近宣布即将发布的Ubuntu Linux 系统安装时将丢弃Swap分区方式,改为交换文件方式。对我们中的大多数使用带SSD或NVMe闪盘及内存充足的人来说,这不是什么大新闻。不过那些想要将Ubuntu后续版本安装在10多年前PC......
  • ubuntu下配置supervisor 运行golang打包后的可执行文件
    aptupdateaptinstallsupervisorvim/etc/supervisor/supervisord.conf添加如下配置:command配置成可执行文件的路径,directory为文件所在目录[program:tempupService]command=/data/goServicedirectory=/dataautostart=trueautorestart=truestartsecs=10stdout_lo......
  • 在Ubuntu21.04上安装Redmine出现的一些问题
    安装参考文章:https://blog.csdn.net/q544344318/article/details/129118703前置条件:mysql#创建独立的用户,我使用root无法连接!!!CREATEUSER'redmine'@'localhost'IDENTIFIEDBY'password';#创建数据库,你也可以把redmine_development,redmine_test#创建出来,我三个都创建了......
  • A卡配置sovits4.0(AI配音/翻唱)详细步骤参考(Ubuntu20.04)
    之前用A卡配置过AI绘画,最近发现AI配音/翻唱挺火的,这里也来尝试一下。(N卡用户直接使用整合包就行,别来凑热闹)一、基础环境配置最开始的步骤还是一样,安装双系统、显卡驱动、ROCm,步骤和之前一样,就不重复写了,可以去看我之前Novel的文章https://www.cnblogs.com/strawberryPuddin......