LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Ubuntu Laptop Randomly Shuts Off. (https://www.linuxquestions.org/questions/linux-newbie-8/ubuntu-laptop-randomly-shuts-off-908027/)

JoeyArnold 10-13-2011 03:47 PM

Ubuntu Laptop Randomly Shuts Off.
 
My Ubuntu Laptop Randomly Shuts Off every hour or so now.

Quote:

Originally Posted by ktat (Post 4497810)
Have you checked your power source, how old is the battery?

My laptop is plugged into a power strip. The TV is plugged in there, too. But the TV doesn't shut off randomly. But my laptop still randomly shuts off every hour or more.

The laptop turns off and restarts itself, while it is plugged in.





Quote:

Originally Posted by theNbomr (Post 4497927)
Some laptops (Toshiba, especially) don't properly control the fan(s) under Linux, and this can lead to spontaneous shutdown due to overheating.
--- rod.

MY LAPTOP IS HP
Intel Core 2 Duo (Centrino) CPU T7300 @ 2.00 GHZ
120 GBs
92.7 GBs free space
961.4 MiB memory
Ubuntu 11.04 (Natty)
Kernal Linux 2.6.38-12-generic
GNOME 2.32.1

ktat 10-13-2011 04:07 PM

Have you checked your power source, how old is the battery?

JoeyArnold 10-13-2011 04:17 PM

Quote:

Originally Posted by ktat (Post 4497810)
Have you checked your power source, how old is the battery?


My laptop is plugged into a power strip. The TV is plugged in there, too. But the TV doesn't shut off randomly. But my laptop still randomly shuts off every hour or more.

The laptop turns off and restarts itself, while it is plugged in.

Jenni 10-13-2011 04:40 PM

By shutting off, do you mean an actual reboot/shutdown, where it closes all your programs logs you out then turns off the power, or do you mean it just stops - screen goes blank, lights go out, no warning or shut-down sequence at all?

If the latter then it's probably your laptops power source, it might not be the power strip it's plugged into but something on the laptops side of things, or the power cord, or the AC adapter.

gqdabien 10-13-2011 04:53 PM

Perhaps check the power settings in Ubuntu? I remember it had settings for power saving after a certain amount of time.

theNbomr 10-13-2011 07:15 PM

Some laptops (Toshiba, especially) don't properly control the fan(s) under Linux, and this can lead to spontaneous shutdown due to overheating.
--- rod.

corp769 10-13-2011 07:46 PM

Quote:

Originally Posted by theNbomr (Post 4497927)
Some laptops (Toshiba, especially) don't properly control the fan(s) under Linux, and this can lead to spontaneous shutdown due to overheating.
--- rod.

I was thinking the same thing. You can install lm-sensors, and run "sensors" to have a good visual on your temperatures.

JoeyArnold 10-13-2011 08:56 PM

Quote:

Originally Posted by Jenni (Post 4497832)
By shutting off, do you mean an actual reboot/shutdown, where it closes all your programs logs you out then turns off the power, or do you mean it just stops - screen goes blank, lights go out, no warning or shut-down sequence at all?

If the latter then it's probably your laptops power source, it might not be the power strip it's plugged into but something on the laptops side of things, or the power cord, or the AC adapter.


It turns totally off in about two seconds or less. So it's not a proper reboot. It does reboot.

So it might be a laptop or power cord problem, like you are saying.

Quote:

Originally Posted by gqdabien (Post 4497843)
Perhaps check the power settings in Ubuntu? I remember it had settings for power saving after a certain amount of time.

But I did set the power preferences on to stay on, both for when it is running off the battery and when it is plugged in. And I keep my laptop plugged in.


Quote:

Originally Posted by theNbomr (Post 4497927)
Some laptops (Toshiba, especially) don't properly control the fan(s) under Linux, and this can lead to spontaneous shutdown due to overheating.
--- rod.


You might be right.

MY LAPTOP IS HP
Intel Core 2 Duo (Centrino) CPU T7300 @ 2.00 GHZ
120 GBs
92.7 GBs free space
961.4 MiB memory
Ubuntu 11.04 (Natty)
Kernal Linux 2.6.38-12-generic
GNOME 2.32.1


Quote:

Originally Posted by corp769 (Post 4497944)
I was thinking the same thing. You can install lm-sensors, and run "sensors" to have a good visual on your temperatures.


Are there Ubuntu PC-temperature-programs I could get ?

thezerodragon 10-13-2011 11:11 PM

lm_sensors worked for me, but I am using Fedora. tell us if
Code:

sudo apt-get install lm_sensors
works.

JoeyArnold 10-14-2011 01:21 AM

Quote:

Originally Posted by thezerodragon (Post 4498049)
lm_sensors worked for me, but I am using Fedora. tell us if
Code:

sudo apt-get install lm_sensors
works.



Code:

o@o-HP-Compaq-6910p-GH715AW-ABA:~$ sudo apt-get install lm_sensors
[sudo] password for o:
Reading package lists... Done
Building dependency tree     
Reading state information... Done
E: Unable to locate package lm_sensors
o@o-HP-Compaq-6910p-GH715AW-ABA:~$ ^C
o@o-HP-Compaq-6910p-GH715AW-ABA:~$


corp769 10-14-2011 01:47 AM

For you, using ubuntu, it will be "lm-sensors" and not "lm_sensors" (Note the underscore). After you install it, run the following:
Code:

sudo sensors-detect
The config will ask you questions; Say yes to all of them so you have it detect as many devices as it can. After you save the config, run the following:
Code:

sudo /etc/init.d/module-init-tools restart
Then, you can run "sensors" and see all of your temperatures.

Cheers,

Josh

JoeyArnold 10-14-2011 04:53 AM

Quote:

Originally Posted by corp769 (Post 4498138)
For you, using ubuntu, it will be "lm-sensors" and not "lm_sensors" (Note the underscore). After you install it, run the following:
Code:

sudo sensors-detect

Code:

o@o-HP-Compaq-6910p-GH715AW-ABA:~$ sudo sensors-detect
# sensors-detect revision 5861 (2010-09-21 17:21:05 +0200)
# System: Hewlett-Packard HP Compaq 6910p (GH715AW#ABA) (laptop)
# Board: Hewlett-Packard 30BE

This program will help you determine which kernel modules you need
to load to use lm_sensors most effectively. It is generally safe
and recommended to accept the default answers to all questions,
unless you know what you're doing.

Some south bridges, CPUs or memory controllers contain embedded sensors.
Do you want to scan for them? This is totally safe. (YES/no):

I went through all of that.




The config will ask you questions; Say yes to all of them so you have it detect as many devices as it can. After you save the config, run the following:
Code:

sudo /etc/init.d/module-init-tools restart
Then, you can run "sensors" and see all of your temperatures.

Cheers,

Josh


Code:

o@o-HP-Compaq-6910p-GH715AW-ABA:~$ sudo /etc/init.d/module-init-tools restart
Rather than invoking init scripts through /etc/init.d, use the service(8)
utility, e.g. service module-init-tools restart

Since the script you are attempting to invoke has been converted to an
Upstart job, you may also use the stop(8) and then start(8) utilities,
e.g. stop module-init-tools ; start module-init-tools. The restart(8) utility is also available.
module-init-tools stop/waiting


corp769 10-14-2011 08:06 AM

Unless I am completely misreading this, your last post just has the output of the last command to run. Are you having issues?

JoeyArnold 10-14-2011 06:50 PM

Quote:

Originally Posted by corp769 (Post 4498356)
Unless I am completely misreading this, your last post just has the output of the last command to run. Are you having issues?

The output said I couldn't fully install it: or that it won't work yet:
Code:

o@o-HP-Compaq-6910p-GH715AW-ABA:~$ sudo /etc/init.d/module-init-tools restart
Rather than invoking init scripts through /etc/init.d, use the service(8)
utility, e.g. service module-init-tools restart

Since the script you are attempting to invoke has been converted to an
Upstart job, you may also use the stop(8) and then start(8) utilities,
e.g. stop module-init-tools ; start module-init-tools. The restart(8) utility is also available.
module-init-tools stop/waiting

It says to use service module-init-tools restart: but how do I do that ?

theNbomr 10-14-2011 06:53 PM

I think it just wants you to do (as root, probably):
Code:

service module-init-tools restart
--- rod.


All times are GMT -5. The time now is 03:29 AM.