my ubuntu 12.4 do restart itself why

Dani AI

Generated

As asked for details and since says the laptop often reboots while browsing, here are focused, practical checks to narrow the cause (software vs hardware) and the exact bits of information to collect if help is still needed.

First look for recorded errors right after a reboot — kernel panics, OOM kills, X server crashes or driver errors. Run these on the machine after it comes back up and paste the relevant output:

sudo grep -i -E 'panic|oops|segfault|BUG|call trace|fatal|reboot' /var/log/syslog /var/log/kern.log /var/log/Xorg.0.log
dmesg -T | tail -n 200
ls -l /var/crash

If logs are empty and the machine powers off instantly (no messages), suspect hardware: overheating, bad battery/charger, or RAM. Boot the GRUB menu and run memtest86+ (select from GRUB), and monitor temps while reproducing the problem:

sudo apt-get update
sudo apt-get install lm-sensors
sudo sensors-detect
watch -n 2 sensors

Graphics drivers and browser hardware acceleration often trigger crashes while browsing. Test with a live USB (a recent Ubuntu) or a different browser; boot with failsafe/nomodeset or temporarily revert proprietary drivers to the open-source driver to see if the problem stops.

To help others diagnose, gather and post these outputs: uname -a, lspci -nnk | grep -i -A3 vga, free -m, and the last 200 lines of /var/log/syslog. Temporarily prevent automatic kernel reboots so you can read any panic message:

sudo sysctl -w kernel.panic=0

If tests show hardware faults (memtest errors, rising temps, instant power-off), address hardware first. If logs show kernel/X errors, paste them with the uname -a and GPU info. Upgrading from Ubuntu 12.04 to a supported release is also recommended when feasible.

Recommended Answers

All 2 Replies

Explain more about your situation. When does it reboot? What are you doing on your computer when it reboots itself?

At any time exspecially when ever i am busy using my laptop doing anything
eg. like when browsing

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.