Random computer freezes with Arch, unsure of cause or solution. Anyone think they can help?
On my laptop, an Asus G73jh, I'm using Arch (2.6.36-ARCH) with Gnome, compiz-fusion, and emerald as my window manager. The laptop has an ATI Radeon 5870 video card, which I'm using the latest Catalyst drivers for from the AUR.
The problem is that the entire system occasionally and randomly just freezes. The entire computer. No mouse, no keyboard movement, nothing happening on screen; even trying to kill the X server with CTRL+ALT+Backspace doesn't work. I want to assume it has something to do with Catalyst, but I can't be sure. It happens randomly, and nothing in particular seems to cause it. Sometimes I'm just redditing on Firefox, sometimes playing Minecraft, sometimes doing nothing at all (I'll close the lid and come back in an hour or two to find an unresponsive computer). Because of this, I can't narrow it down definitively to know what the problem is, but my intuition says it could be a misconfigured xorg.conf or something related to the drivers.
If you need more details, logs, etc. comment and I will update this post. I'm going to post my xorg.conf, rc.conf, and my xorg log for now. If any other information or logs are required, request them. If anyone can help, I would greatly appreciate it, as this is very annoying.
(On a side note, if anyone can help me get TF2 running with this graphics card, that would be awesome, too. It goes black on the loading screen and in the main menu the graphics are fuzzy and miscolored, so you can't see anything. OpenGL is functional, however.)
EDIT: Thanks for all the suggestions, everyone. I'm going to bed now, but in the morning I'm going to use all of your suggestions to see if I can solve my problem, or at the very least narrow the cause down a bit. Thanks everyone!
EDIT2: Due to my little mistake, I'm going to have to reinstall Arch. I'm going to do that tomorrow and try to narrow the problem down a bit. For example, I will start with the open source drivers, use them for a while, switch to Catalyst, and see if my system starts freezing after that. If so, it's something to do with Catalyst. I refuse to believe the issue can't be resolved, as the Catalyst drivers have worked flawlessly for me on other distros with similar setups, so why wouldn't they on Arch? I'll try to have some new information to post tomorrow sometime as I will hopefully be able to narrow down the problem. Again, thanks for the help, everyone!
EDIT3: Big thanks to NihilisticAbandon, who has been privately messaging me with advice over the last couple of days. I believe the problem has been resolved - I haven't had the laptop freeze in a while. I'm afraid to say definitively that the problem is gone, however, but in all cases it seems to be. If anyone else has any problems similar to mine, I'm afraid I can't tell you what I did to solve this problem; making a stupid mistake and wiping my hard drive (see Edit2, above), I had to reformat Arch. Other than the annoyance of having to redo everything, not only on Arch but on Windows as well, everything seems to be working much better than before, and I'm not sure why. It's the magic of reformatting, I guess. * shrugs * I do regret not learning much from this experience, as it doesn't give me any advice to pass along to fellow Linux users who may encounter a problem similar to mine, but I'm glad that it seems to be resolved. Hopefully there will not need to be an edit4 because the problem came back. :D
If the problem is solved, as I believe it to be, thank you for all your help, to everyone who responded. This is why reddit is the best website on the Internet!
About this post
- Posted
- Archived
- Score
- 9 · 100% up
- Kind
- Text
- ID
- f3k29
54 comments
Try running memtest86 and make sure your memory is still good. I've had similar issues when memory was bad.
memtest86 doesn't report any errors.
how long did you run it? i usually leave it going for about a day or more
It's a fairly new laptop, so I would doubt that's the issue. And I don't have any issues like this with any other OS's (Windows 7 and several other Linux distros I've tried). Regardless, I'll try anything at this point!
Just because it's new is not a guarantee that the chips don't have a bad area; I've had several a few new chips immediately fail memtest...
Does the freezing still happen using a less intensive setup, like CLI only or X with twm?
You answered your own question. Go back to xf86-video-radeon.
For one, you're always using OpenGL rendering with your silly little compiz-fusion stuff, so "when you're doing nothing" catalyst is still having to shit itself randomly because the drivers are crud. There's a reason that catalyst is in AUR and no longer the main repository.
xf86-video-radeon can play neverball reasonably, and minecraft is choppy but playable (though buggy, because notch can't code), and such. That's about all you need 3D for anyways.
You can try SSHing in and seeing if that works, but I'm fairly certain the drivers are causing kernel panics.
TF2 would make my kernel panic when I ran catalyst, and the performance made it unplayable, anyways. Don't even bother. Trust me on this, you'll just get your hopes up once you get rid of that weird looking jaggy main menu, only to have a hard lockup.
I was able to play games like Psychonauts for hours on end under catalyst until an eventual hard-lockup, though. If you want "good enough' performance with catalyst get rid of compiz-fusion and go to something like XFCE, saving 3D to when you want to play games.
P.S. don't waste time looking up a cause or a workaround, you'll never be satisfied. just accept its limitations as a joke of a driver.
Catalyst works flawlessly for me...
This is why I want catalyst to work. Procyon12's comment above actually seems the most plausible, so I'm going to take his advice first. If that doesn't seem to affect anything, I'll switch to xf86-video-radeon to see if the freezing persists.
EDIT: I don't see why you dislike the Catalyst driver so much. I've been using it for a long time in a couple of other distributions, and it worked fine. Worked amazingly, actually. On par with nvidia. I finally broke down and installed Arch, which I've been using on two desktops for months now, on my laptop as well. Using Catalyst in Arch is causing problems for me. If Catalyst is what's responsible for my lockups, I've never experienced it using the driver on any other distribution.
Regardless, thanks for trying to help.
It probably won't help, but add "nomodeset" to your kernel options.
If you want to be cute, type "startx -- :1" in an xterm and see if it crashes.
The catalyst drivers cover a number of cards -- I assume support is fairly variable. I've used radeons even since ~2003 and they've always been hell under linux -- at least the modern, open source drivers work well in 2D.
With catalyst, creating another X session = hard lockup. Using 3D = hard lockup. Dual-head: garbled mouse pointer on second screen (lol). Edit something in amdccle? X crashes. A complete joke.
I'm aware of the pros and cons of the drivers, but stability usually matters most.
Does Alt-PrtSc-REISUB work? Has firefox been running every time it happened?
Rare Enigmatic Instruction—System Utterly Borked!
Really, Eddie Izzard Sent Us Borscht?
Retarded Ewoks In Space Use Borax
...I just don't understand why the Raising Elephants mnemonic stuck when there are so many better ways to remember REISUB. Say it with me, people:
Raw keyboard mode
Send SIGTERM to all processes
Send SIGKILL to all processes
Sync all disks
Unmount all disks
ReBoot
Raising Elephants Is So Utterly Boring!
I believe magic keys are disabled by default in Arch. You can check by catting /proc/sys/kernel/sysrq. This can be changed in /etc/sysctl.conf if you want to permanently enable.
Hmm, I don't even know what this does, so I haven't tried it. I'm about to go to bed, so I'll report back with the results the next time I get a lockup (it's random, so I can't know when the next time it will occur).
And yes, I usually keep firefox open all the time, regardless of whether I'm using it or not. That and thunderbird.
Wait in-between each keypress. It's bad to hit the sequence off without a pause. Here's more information.
Just so you know, this won't work by default. You need to enable this by default.
Can you switch to a virtual terminal when this happens? (CTRL+ALT+F1)
Yes, I know. It is enabled. Any other time I can CTRL+ALT+Backspace to kill X.
And no, I can't switch to a virtual terminal. It is almost exactly like the BSOD from the Windows 95/98 days, only the image on the screen is frozen instead of displaying an error message.
Can you SSH into the machine when it freezes?
When it locks up, I would try to ssh into your box and then kill X. You can also look at the log then.
If that works, Alt+SystRQ k would also work.
I somehow suspect a graphics issue also... I would try either using a non compositing window manager or trying the radeon open-source drivers. Even if dont want to use these in the long run, it may help narrow down your issue so you can find more focused help.
That's a kicking machine for a laptop. That proc and video card are going to be putting out a whole lot of heat. My money would be that you have not properly configured your ACPI thermal regulation to cut out the 3D graphics and regulate proc speed when your temperature reaches critical. You probably have variable fan speeds to configure also.
In an overheating situation, the chips are just going to start spitting out corruption until the OS crashes hard.
Please... he's using catalyst, that's occam's razor right there. Regardless, I believe modern laptops have sensors on them to shut-off overheating laptops regardless of OS settings.
I've got a core-2 asus with a heavy video card (Z96j IIRC) that will overheat enough to lock up the OS without some thermal tweaking when I was running Gentoo on it. The hardware cutoffs were set at a threshold to keep the machine from damaging itself, but were way above the point that the machine would suffer from instability.
I haven't configured anything like that. I use Arch on my desktop and server box, but never experienced any lockups. I guess I just assumed this thing is handled without user-input, like on many other Linux distros.
It very well could be overheating. It's well ventilated, but I'd be foolhardy to rule that out as a possibility. I'm assuming there's an article on the Arch Wiki?
(And yes, it is an awesome laptop. Abysmally short battery life, though.)
I had an asus with an nvidia card a couple years back that ran gentoo. The hardware had an auto shutoff, so it wouldn't catch fire or anything, but that threshold was way above where the lockups would happen. IIRC it was a bunch of ACPI thermal settings. It wasn't tough to configure them, mostly just tying the cpu govener to your temp thresholds to get your proc to step down when it get's hotter then you want, and another for the video.
And mine was abysmally short battery life too. I ended up getting a netbook in the end, as I like the long battery life more than the speed.
Since backtracking to xf86-video-radeon is cheap and easy, I'm gonna go to catalyst and see if I can help you out more. I'd like for catalyst to work flawlessly for me, as well, so...
I do run a 4870hd in this box, so the hardware is a bit different -- and I think the biggest problem with catalyst drivers (other than being shit in general) is variable stability in different radeon cards.
Okay, I just installed these retard-o drivers, and noticed a few things:
You apparently do require an xorg.conf for these drivers, and the open source drivers package name is really xf86-video-ati, not radeon. Fail on my part from earlier.
With my dual head display, the immediate stench of feces is evident when I move my mouse to the other display and notice it's garbled, as if the mouse was from an NES game that began glitching. I swear, AMD/ATI's programmers were probably hired straight from a rice farming village. Here's someone with the same problem as I: https://bbs.archlinux.org/viewtopic.php?id=106383
Every time I run amdcccle this shit crashes my X server. Deleting /etc/ati/amdshitdb doesn't help, even if i do it with the X server down. These drivers are just shit, complete shit, the smell of butthole reeks in here now.EDIT: Turns out this one is actually an Xorg bug with QT applications while xinerama is enabled. I still blame AMD for making me turn xinerama on in an attempt to fix my mouse problem, so I blame them.
Apparently, it no longer crashes the computer when I try to run a second X session. We will see, though. I doubt this thing up and went stable on me by any means.
I'll add more to this shitheap as I play around with these so-called drivers.
Do you have xinerama enabled in amdcccle (AMD's Crappy Control Center Landmine of Excrement)? Looks like it in the logs, but I'm guessing that's for TV-out support or somesuch.
Yes, it's for tv-out through the HDMI port.
I've been having intermittent (once every three days) kernel panics and occasional kernel panics at boot. (both the caps lock and scroll lock lights flash in sync, other than that it just freezes). Last time I got "error_code+0x67/0x6c"
Possible related threads:
https://bbs.archlinux.org/viewtopic.php?id=111197
https://bugs.archlinux.org/task/22343
Page two of the first link suggests a kernel bug. I'm happy waiting as I know it will be fixed soon, but you could downgrade in the meantime or apply the patch they talk about.
He should probably confirm it's not catalyst before trying that. But that's damn interesting, never got that problem. Even so, wouldn't he be getting crashes at boot time during udev events?
Does syslog reveal anything after a reboot?
You know, did you ever try putting "nomodeset" in the grub kernel line?
Doubt it will help, but it's worth trying at least once.
I believe the ati drivers are incompatible with kernel mode setting, which is defaulted with arch's kernels and might potentially cause problems.
Why are you running hald?
Also, you may just want to rely on xrandr instead of xorg.conf... nowadays xorg.conf really isn't needed and it makes more sense for the user to be able to switch video modes without requiring root, anyways. KDE, Gnome, and XFCE all do this in their settings for you.
I thought I mentioned this already, but nomodeset is in the grub kernel line.
Ah, alright. Any chance you can post your dmesg?
I used to have exactly the same problem, especially with minecraft. Turns out my motherboard is crap and won't run my RAM at full speed without becoming unstable under even the smallest load. Try lowering your RAM speed/increasing RAM latencies if you have options like that.
I had a similar experience with a desktop: Win 7 was error free but Ubuntu froze randomly with no option other than to hard reboot. I reseated the RAM and all is well since. It was explained to me that the two systems use/allocate memory differently and that was why Win 7 worked despite the seating problem. Good luck.
Once your system is up, I would really suggest that you upgrade to kernel 2.6.38. They apparently made a ton of improvements in that one.
I had a similar problem in the past and it was the bluetooth. In fact, the system appeared to be freezing as no input was available but in fact it was still responsive via ssh. Try that.
Paste results in a paste website and put link here.