Autor Tópico: Não consigo desligar o computador! [Resolvido]  (Lida 14868 vezes)

Offline fmaneiras

  • Usuário Ubuntu
  • *
  • Mensagens: 20
    • Ver perfil
Não consigo desligar o computador! [Resolvido]
« Online: 06 de Maio de 2009, 18:22 »
 Eu clico em desligar ele sai do sistema e aparece a seguinte mensagem na tela escura:

 [ 142.814157] system halted

 E o computador não deliga mais. Quem sabe a solução deste problema? Eu agradeço. ???
« Última modificação: 08 de Maio de 2009, 09:50 por fmaneiras »

Offline ubu4ever

  • Usuário Ubuntu
  • *
  • Mensagens: 695
    • Ver perfil
Re: Não consigo desligar o computador! [atualizado]
« Resposta #1 Online: 06 de Maio de 2009, 21:22 »
Adicione a linha:

apm power_off=1

no final do arquivo /etc/modules

Se não funcionar, adicione a linha:

acpi=force ou (acpi=off)

na linha do kernel no arquivo /boot/grub/menu.lst
« Última modificação: 08 de Maio de 2009, 09:05 por gcclt »

Offline fmaneiras

  • Usuário Ubuntu
  • *
  • Mensagens: 20
    • Ver perfil
Re: Não consigo desligar o computador!
« Resposta #2 Online: 06 de Maio de 2009, 22:21 »
gcclt eu sou novato no SO linux, então, como eu encontro esses arquivos e qual é procedimento p/ adicinar a linha?
Obrigado!

Offline ubu4ever

  • Usuário Ubuntu
  • *
  • Mensagens: 695
    • Ver perfil
Re: Não consigo desligar o computador! [atualizado]
« Resposta #3 Online: 06 de Maio de 2009, 22:45 »
Vá em:

Aplicativos>>Acessórios>>Terminal (ou Consola)

digite

sudo gedit /etc/modules (quando pedir a senha, digite sua senha de usuário)

e adicione a linha abaixo no final do arquivo

apm power_off=1

Se não funcionar, digite:

sudo gedit /boot/grub/menu.lst (quando pedir a senha, digite sua senha de usuário)

e adicione os comandos em vermelho abaixo, no final da linha do kernel, exemplo:

kernel /boot/vmlinuz-2.6.22-14-generic acpi=off apm=power_off
« Última modificação: 08 de Maio de 2009, 09:06 por gcclt »

Offline fmaneiras

  • Usuário Ubuntu
  • *
  • Mensagens: 20
    • Ver perfil
Re: Não consigo desligar o computador!
« Resposta #4 Online: 07 de Maio de 2009, 10:51 »
Valeu amigo por sua mão, que você receba mil vezes mais, vou fazer isso e depois posto aqui o resultado. ;)

Offline fmaneiras

  • Usuário Ubuntu
  • *
  • Mensagens: 20
    • Ver perfil
Re: Não consigo desligar o computador!
« Resposta #5 Online: 07 de Maio de 2009, 11:34 »
Consegui com sudo getit/boot/grub/menu.lst
linha de arquivo acpi=force
valeu sifu!
Mas acho fiz uma trapalhada no arquivo sudo gedit /etc/modules
é que tinha uma linha que eu acho que estava escrito  sl  e eu apaguei, será que vai interferir em alguma coisa?

Offline ubu4ever

  • Usuário Ubuntu
  • *
  • Mensagens: 695
    • Ver perfil
Re: Não consigo desligar o computador!
« Resposta #6 Online: 07 de Maio de 2009, 11:47 »
Não tenho certeza mas acho que sim.

Acho que a linha era lp

No meu arquivo /etc/modules tem uma linha com lp. Se não me engano ela serve para habilitar a porta paralela.

Obs.: Nunca delete algo que vc não saiba para que serve.
« Última modificação: 07 de Maio de 2009, 11:51 por gcclt »

Offline kaotik

  • Usuário Ubuntu
  • *
  • Mensagens: 18
    • Ver perfil
Re: Não consigo desligar o computador!
« Resposta #7 Online: 07 de Maio de 2009, 11:50 »
Eu tinha o mesmo problema e bastou o acpi=force na linha do grub para ele desligar direitinho

Offline fmaneiras

  • Usuário Ubuntu
  • *
  • Mensagens: 20
    • Ver perfil
Re: Não consigo desligar o computador!
« Resposta #8 Online: 07 de Maio de 2009, 22:55 »
 Pensei ter resolvido o problema com ajuda aqui do tópico mas o problema retornou a primeira vez ele desligou sem problemas mas agora não quer desligar, o que eu faço?
« Última modificação: 07 de Maio de 2009, 22:57 por fmaneiras »

Offline ubu4ever

  • Usuário Ubuntu
  • *
  • Mensagens: 695
    • Ver perfil
Re: Não consigo desligar o computador!
« Resposta #9 Online: 07 de Maio de 2009, 23:00 »
Poste o conteúdo dos arquivos

sudo gedit /etc/modules (quando pedir a senha, digite sua senha de usuário)

e

sudo gedit /boot/grub/menu.lst (quando pedir a senha, digite sua senha de usuário)

aqui no fórum.

Offline fmaneiras

  • Usuário Ubuntu
  • *
  • Mensagens: 20
    • Ver perfil
Re: Não consigo desligar o computador!
« Resposta #10 Online: 07 de Maio de 2009, 23:35 »
# /etc/modules: kernel modules to load at boot time.
#
# This file contains the names of kernel modules that should be loaded
# at boot time, one per line. Lines beginning with "#" are ignored.

sl

# menu.lst - See: grub(8), info grub, update-grub(8)
#            grub-install(8), grub-floppy(8),
#            grub-md5-crypt, /usr/share/doc/grub
#            and /usr/share/doc/grub-doc/.

## default num
# Set the default entry to the entry number NUM. Numbering starts from 0, and
# the entry number 0 is the default if the command is not used.
#
# You can specify 'saved' instead of a number. In this case, the default entry
# is the entry saved with the command 'savedefault'.
# WARNING: If you are using dmraid do not use 'savedefault' or your
# array will desync and will not let you boot your system.
default      0

## timeout sec
# Set a timeout, in SEC seconds, before automatically booting the default entry
# (normally the first entry defined).
timeout      3

## hiddenmenu
# Hides the menu by default (press ESC to see the menu)
hiddenmenu

# Pretty colours
#color cyan/blue white/blue

## password ['--md5'] passwd
# If used in the first section of a menu file, disable all interactive editing
# control (menu entry editor and command-line)  and entries protected by the
# command 'lock'
# e.g. password topsecret
#      password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
# password topsecret

#
# examples
#
# title      Windows 95/98/NT/2000
# root      (hd0,0)
# makeactive
# chainloader   +1
#
# title      Linux
# root      (hd0,1)
# kernel   /vmlinuz root=/dev/hda2 ro
#

#
# Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST

### BEGIN AUTOMAGIC KERNELS LIST
## lines between the AUTOMAGIC KERNELS LIST markers will be modified
## by the debian update-grub script except for the default options below

## DO NOT UNCOMMENT THEM, Just edit them to your needs

## ## Start Default Options ##
## default kernel options
## default kernel options for automagic boot options
## If you want special options for specific kernels use kopt_x_y_z
## where x.y.z is kernel version. Minor versions can be omitted.
## e.g. kopt=root=/dev/hda1 ro
##      kopt_2_6_8=root=/dev/hdc1 ro
##      kopt_2_6_8_2_686=root=/dev/hdc2 ro
# kopt=root=UUID=7414BD2C14BCF1EA loop=/ubuntu/disks/root.disk ro

## default grub root device
## e.g. groot=(hd0,0)
# groot=()/ubuntu/disks

## should update-grub create alternative automagic boot options
## e.g. alternative=true
##      alternative=false
# alternative=true

## should update-grub lock alternative automagic boot options
## e.g. lockalternative=true
##      lockalternative=false
# lockalternative=false

## additional options to use with the default boot option, but not with the
## alternatives
## e.g. defoptions=vga=791 resume=/dev/hda5
# defoptions=quiet splash

## should update-grub lock old automagic boot options
## e.g. lockold=false
##      lockold=true
# lockold=false

## Xen hypervisor options to use with the default Xen boot option
# xenhopt=

## Xen Linux kernel options to use with the default Xen boot option
# xenkopt=console=tty0

## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
##      altoptions=(recovery) single
# altoptions=(recovery mode) single

## controls how many kernels should be put into the menu.lst
## only counts the first occurence of a kernel, not the
## alternative kernel options
## e.g. howmany=all
##      howmany=7
# howmany=all

## specify if running in Xen domU or have grub detect automatically
## update-grub will ignore non-xen kernels when running in domU and vice versa
## e.g. indomU=detect
##      indomU=true
##      indomU=false
# indomU=detect

## should update-grub create memtest86 boot option
## e.g. memtest86=true
##      memtest86=false
# memtest86=true

## should update-grub adjust the value of the default booted system
## can be true or false
# updatedefaultentry=false

## should update-grub add savedefault to the default options
## can be true or false
# savedefault=false

## ## End Default Options ##

title      Ubuntu 9.04, kernel 2.6.28-11-generic
root      ()/ubuntu/disks
kernel      /boot/vmlinuz-2.6.28-11-generic root=UUID=7414BD2C14BCF1EA loop=/ubuntu/disks/root.disk ro quiet splash
initrd      /boot/initrd.img-2.6.28-11-generic

title      Ubuntu 9.04, kernel 2.6.28-11-generic (recovery mode)
root      ()/ubuntu/disks
kernel      /boot/vmlinuz-2.6.28-11-generic root=UUID=7414BD2C14BCF1EA loop=/ubuntu/disks/root.disk ro  single
initrd      /boot/initrd.img-2.6.28-11-generic

title      Ubuntu 9.04, memtest86+
root      ()/ubuntu/disks
kernel      /boot/memtest86+.bin

### END DEBIAN AUTOMAGIC KERNELS LIST

# This is a divider, added to separate the menu items below from the Debian
# ones.
title      Other operating systems:
root


# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda1
title      Microsoft Windows XP Professional
rootnoverify   (hd0,0)
savedefault
chainloader   +1
acpi=force

Offline ubu4ever

  • Usuário Ubuntu
  • *
  • Mensagens: 695
    • Ver perfil
Re: Não consigo desligar o computador! [atualizado]
« Resposta #11 Online: 07 de Maio de 2009, 23:44 »
# /etc/modules: kernel modules to load at boot time.
#
# This file contains the names of kernel modules that should be loaded
# at boot time, one per line. Lines beginning with "#" are ignored.

sl (o correto é lp - essa foi a linha que vc alterou sem saber)
apm power_off=1 (acrescente este comando aqui)

# menu.lst - See: grub(8), info grub, update-grub(8)
#            grub-install(8), grub-floppy(8),
#            grub-md5-crypt, /usr/share/doc/grub
#            and /usr/share/doc/grub-doc/.

## default num
# Set the default entry to the entry number NUM. Numbering starts from 0, and
# the entry number 0 is the default if the command is not used.
#
# You can specify 'saved' instead of a number. In this case, the default entry
# is the entry saved with the command 'savedefault'.
# WARNING: If you are using dmraid do not use 'savedefault' or your
# array will desync and will not let you boot your system.
default      0

## timeout sec
# Set a timeout, in SEC seconds, before automatically booting the default entry
# (normally the first entry defined).
timeout      3

## hiddenmenu
# Hides the menu by default (press ESC to see the menu)
hiddenmenu

# Pretty colours
#color cyan/blue white/blue

## password ['--md5'] passwd
# If used in the first section of a menu file, disable all interactive editing
# control (menu entry editor and command-line)  and entries protected by the
# command 'lock'
# e.g. password topsecret
#      password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
# password topsecret

#
# examples
#
# title      Windows 95/98/NT/2000
# root      (hd0,0)
# makeactive
# chainloader   +1
#
# title      Linux
# root      (hd0,1)
# kernel   /vmlinuz root=/dev/hda2 ro
#

#
# Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST

### BEGIN AUTOMAGIC KERNELS LIST
## lines between the AUTOMAGIC KERNELS LIST markers will be modified
## by the debian update-grub script except for the default options below

## DO NOT UNCOMMENT THEM, Just edit them to your needs

## ## Start Default Options ##
## default kernel options
## default kernel options for automagic boot options
## If you want special options for specific kernels use kopt_x_y_z
## where x.y.z is kernel version. Minor versions can be omitted.
## e.g. kopt=root=/dev/hda1 ro
##      kopt_2_6_8=root=/dev/hdc1 ro
##      kopt_2_6_8_2_686=root=/dev/hdc2 ro
# kopt=root=UUID=7414BD2C14BCF1EA loop=/ubuntu/disks/root.disk ro

## default grub root device
## e.g. groot=(hd0,0)
# groot=()/ubuntu/disks

## should update-grub create alternative automagic boot options
## e.g. alternative=true
##      alternative=false
# alternative=true

## should update-grub lock alternative automagic boot options
## e.g. lockalternative=true
##      lockalternative=false
# lockalternative=false

## additional options to use with the default boot option, but not with the
## alternatives
## e.g. defoptions=vga=791 resume=/dev/hda5
# defoptions=quiet splash

## should update-grub lock old automagic boot options
## e.g. lockold=false
##      lockold=true
# lockold=false

## Xen hypervisor options to use with the default Xen boot option
# xenhopt=

## Xen Linux kernel options to use with the default Xen boot option
# xenkopt=console=tty0

## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
##      altoptions=(recovery) single
# altoptions=(recovery mode) single

## controls how many kernels should be put into the menu.lst
## only counts the first occurence of a kernel, not the
## alternative kernel options
## e.g. howmany=all
##      howmany=7
# howmany=all

## specify if running in Xen domU or have grub detect automatically
## update-grub will ignore non-xen kernels when running in domU and vice versa
## e.g. indomU=detect
##      indomU=true
##      indomU=false
# indomU=detect

## should update-grub create memtest86 boot option
## e.g. memtest86=true
##      memtest86=false
# memtest86=true

## should update-grub adjust the value of the default booted system
## can be true or false
# updatedefaultentry=false

## should update-grub add savedefault to the default options
## can be true or false
# savedefault=false

## ## End Default Options ##

title      Ubuntu 9.04, kernel 2.6.28-11-generic
root      ()/ubuntu/disks
kernel      /boot/vmlinuz-2.6.28-11-generic root=UUID=7414BD2C14BCF1EA loop=/ubuntu/disks/root.disk ro quiet splash acpi=off apm=power_off (acrescente o comando aqui) 
initrd      /boot/initrd.img-2.6.28-11-generic

title      Ubuntu 9.04, kernel 2.6.28-11-generic (recovery mode)
root      ()/ubuntu/disks
kernel      /boot/vmlinuz-2.6.28-11-generic root=UUID=7414BD2C14BCF1EA loop=/ubuntu/disks/root.disk ro  single
initrd      /boot/initrd.img-2.6.28-11-generic

title      Ubuntu 9.04, memtest86+
root      ()/ubuntu/disks
kernel      /boot/memtest86+.bin

### END DEBIAN AUTOMAGIC KERNELS LIST

# This is a divider, added to separate the menu items below from the Debian
# ones.
title      Other operating systems:
root


# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda1
title      Microsoft Windows XP Professional
rootnoverify   (hd0,0)
savedefault
chainloader   +1
acpi=force (retire esta linha)


Faça as modificações no arquivo descritas em vermelho na citação acima.

Depois faça o teste e verifique se funcionou.
« Última modificação: 08 de Maio de 2009, 09:10 por gcclt »

Offline fmaneiras

  • Usuário Ubuntu
  • *
  • Mensagens: 20
    • Ver perfil
Re: Não consigo desligar o computador!
« Resposta #12 Online: 08 de Maio de 2009, 02:13 »
 Fiquei com uma dúvida porque o l minúsculo e o i maiúsculo aqui no forum são iguais pode me esclarecer qual letra se trata naquela parte que eu deletei sem saber?

Offline ubu4ever

  • Usuário Ubuntu
  • *
  • Mensagens: 695
    • Ver perfil
Re: Não consigo desligar o computador!
« Resposta #13 Online: 08 de Maio de 2009, 08:47 »
Fiquei com uma dúvida porque o l minúsculo e o i maiúsculo aqui no forum são iguais pode me esclarecer qual letra se trata naquela parte que eu deletei sem saber?

o comando que vc deletou sem saber é "LP" (tudo minúsculo - L de lâmpada e P de pato).

Offline ubu4ever

  • Usuário Ubuntu
  • *
  • Mensagens: 695
    • Ver perfil
Re: Não consigo desligar o computador!
« Resposta #14 Online: 08 de Maio de 2009, 09:33 »
Consegui agora desligar duas vezes pelo sistema. Tenho uma outra questão, é que tenho que digitar toda vez sudo pon dsl-provider para me conectar isso é assim mesmo?

Antes de postar, sempre procure no fórum.

Eu procurei e pelo que eu vi, sim, está correto (Eu uso NET - que é cable modem e não adsl - e meu ubuntu reconhece a conexão automaticamente no boot. Por isso eu não sabia e tive que procurar).

Você tem que digitar:

sudo pon dsl-provider para conectar
sudo poff dsl-provider para desconectar

No entanto, existe uma maneira de dar o boot e já iniciar conectado. Veja alguns links que encontrei.

http://wiki.ubuntu-br.org/ADSLPPPoE
http://ubuntuforum-pt.org/index.php?topic=2217
« Última modificação: 08 de Maio de 2009, 09:36 por gcclt »