LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-12-2005, 04:56 AM   #1
uselpa
Senior Member
 
Registered: Oct 2004
Location: Luxemburg
Distribution: Slackware, OS X
Posts: 1,507

Rep: Reputation: 47
computer freezes when screen blanks


Hi All,

I have the following problem; in runlevels 1 and 3, after 15 minutes, the screen blanks (due to the setterm command in rc.M). But at the same time, the whole computer freezes, for example it stops responding to pings. No way to get it running again, and I have to press the power-off button for 4 secs in order to "shut down" the machine.

In runlevel 4, this does not happen.

If I shut down the machine in any runlevel before the freeze, the machines properly powers off, i.e. acpi seems to be operational and supported by the kernel and the bios.

Technical details: Slack10, bareacpi.i kernel, SiS651 chipset, sis display driver (the one coming with xorg).

Where should I start looking?
 
Old 01-12-2005, 05:09 AM   #2
qwijibow
LQ Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Rep: Reputation: 47
After a crash, boot a rescue CD or some sort, mount the crashed system's root partiton, and have a read at any relevant logs in /var/log

do the ends of any of these logs show any seriouse errors.

try de-activating ACPI with the "noacpi" kernel option.

always after 15 minutes... Do you have any cron jobs set to run 15 minutes after boot ?



and if all else fails, maybe try using the latest kernel.

unless the blocked pings are due to the firewall, then this surgests a seriouse kernel level fault.

what kernel version are you running ?
i remember when i was running slackware 10 (when it had just been released) i had to patch the 2.6 kernel againsed an exploit called "evil.c" that allows un-privilaged users to lock the kernel, could your system have been compromised ?
 
Old 01-12-2005, 07:09 AM   #3
uselpa
Senior Member
 
Registered: Oct 2004
Location: Luxemburg
Distribution: Slackware, OS X
Posts: 1,507

Original Poster
Rep: Reputation: 47
The system restarts normally, and my logs are not rotated. I did look into all the logs, but I found nothing at all.

I will try without ACPI.

The 15 min is the setterm command in rc.M, that is normal. I mean the delay, not the effect ;-)

There is a firewall on the machine, but it allows pings. They do work until the machine locks up.

Kernel is 2.4.26 from Slack-10-stable.

I don't think the system has been compromised. What I forgot to mention is that I use the vga=normal option in lilo. I'll try with a VESA framebuffer.
 
Old 01-12-2005, 10:33 AM   #4
qwijibow
LQ Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Rep: Reputation: 47
has this problem always existed, or has it just started with no explanation ?

if it has always happened since you installed slackware, try the 2.6 kernel.
 
Old 01-12-2005, 01:31 PM   #5
uselpa
Senior Member
 
Registered: Oct 2004
Location: Luxemburg
Distribution: Slackware, OS X
Posts: 1,507

Original Poster
Rep: Reputation: 47
As it is a workstation, I have always started up in runlevel 4, so I cannot really tell if it has always been this way. However, I am not keen on going for kernel 2.6.

But I have a few more test results:

- if in rc.M, I change "setterm -blank 15" to "setterm -blank 10", the computer freezes after 10 minutes instead of 15 minutes -> this is really what triggers the freeze

- the freeze happens if I have "vga=normal" in lilo.conf, but NOT if I put "vga=773"

- if at boot time I enter "linux noacpi" at the prompt, the computer also freezes.

I am going to investigate the BIOS settings now...
Any clues?
 
Old 01-12-2005, 03:00 PM   #6
qwijibow
LQ Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Rep: Reputation: 47
from the man pages...
Quote:
-blank [0-60] (virtual consoles only)
Sets the interval of inactivity, in minutes, after which the
screen will be automatically blanked (using APM if available).
Without an argument, defaults to 0 (disable console blanking).
1) The crash depends on how the Framebuffer is ebing used.. the framebuffer is entirely within the kernel.

2) setterm uses APM, again, screaming Kernel.

3) when it crashes, the system doesnt even reply to pings... in other words, the Kernel has frozen

All these signs are SCREAMING Kernel Bug to me.

you don like the 2.6 kernel ?
recently the 2.6 Tree's status was changed to "stable"
and the 2.4 tree to Obsolite.

there's no harm in trying the kernel, you dont have to delete your current kernel.

anyways, i would definatly, atleast try the 2.4.28 kernel.
 
Old 01-13-2005, 01:20 AM   #7
uselpa
Senior Member
 
Registered: Oct 2004
Location: Luxemburg
Distribution: Slackware, OS X
Posts: 1,507

Original Poster
Rep: Reputation: 47
I played with the BIOS settings but to no avail. I willl try to go for kernel 2.4.28. As I have never compiled a kernel, I'll have to go through some serious reading first.... OR is there an easy way to upgrade to the 2.4.28 kernel from Slackware-current?
 
Old 01-13-2005, 07:07 AM   #8
qwijibow
LQ Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Rep: Reputation: 47
for a new kernel, your options are....
1) use the 2.6 kernel from the slackware-10 install disks.
2) find a slackware package with a newer 2.4 kernel (i dont know where from)
3) compile yourself..

here's a a little guide on how to use your current kernel as a template for the new one, eliminating hours of configureing / reading.


in your /boot folder, is there a file with a name like "Config-version" ?

if yes, then this was the configureation file used to configure the kernel you are running, you can use it as a template to configure the new kenrel, and you might not have to do any reading.

download a kernel from kernel.org (click the "F" link to get Full source code instead of just a patch)

unpack the kernel somwhere... most people use /usr/src/
cd into the kernel kernel directory
copy the Config file from your /boot/ directory into the kernel directory.
rename the Config file to ".config" (dont miss the dot)
run "make oldconfig"

if any new features have been added to the 2.4.28 kernel since your current kernel, you will be asked if you want it, with the option (Yes/No/Module/H)
select H, read the help on it, and if needed, look it up on the internet.

however its quite likely that there are no new changes, maybe a few extra drivers, but they are easy (slect NO unless you have the hardware the driver is for)

after it has finished run "make menuconfig"
go into the Drivers/Filesystems menu, and make sure support for the file-system your root root partiton and boot partiton are compiled in (with the * symbol)
this eliminates the need to compile an initrd image.

you may also want to change some other things,,, for example in Processor type an features, you may want to choose your Own processor rather than the default 486.
but this is optional.

after, escape from the menu, selecting yes when it asks if you want to save.

now run
make deps
make bzImage
make modules
make modules_install

now copy ls /usr/src/linux/arch/i386/boot/bzImage to your /boot directory

and edit /boot/grub/menu.conf

add he lines a line

title Slackware (2.4.28)
kernel /boot/bzImage root=/dev/hda1

replace the root= with whatever your root partion is.
 
Old 01-14-2005, 02:06 PM   #9
uselpa
Senior Member
 
Registered: Oct 2004
Location: Luxemburg
Distribution: Slackware, OS X
Posts: 1,507

Original Poster
Rep: Reputation: 47
Rather than compiling from source, I put my faith once more into Pat's hands and took kernel 2.4.28 from Slackware-current. I just copied the precompiled bareacpi.i into /boot, modified lilo.conf and installed kernel-modules-2.4.28.tgz.

Still boots ;-)

However, it still freezes after 10 minutes.
 
Old 01-14-2005, 04:27 PM   #10
qwijibow
LQ Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Rep: Reputation: 47
maybe update setterm.

also,,, try 2.6 kernel. what do you have to loose, its not like a hashing out of a single line in lilo wont return it to normal.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
screen blanks during installation madvikas Linux - Hardware 3 06-21-2005 12:55 AM
Screen blanks after 10 mins longnam Slackware 1 03-31-2005 01:01 AM
Screen blanks every few moments regardless. TitaniumTaz SUSE / openSUSE 11 03-01-2005 06:38 AM
Screen blanks out after I log out simeandrews Slackware 1 06-08-2004 02:00 PM
screen blanks out on boot General Dude Debian 2 08-13-2003 02:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 10:00 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration