LinuxQuestions.org
Help answer threads with 0 replies.
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 04-20-2009, 11:46 AM   #1
lchxr
Member
 
Registered: Mar 2006
Posts: 42

Rep: Reputation: 15
Slackware 12.2 won't power off after recompiling kernel


I want to recompile the kernel to enable high-resolution timer. What I did are
Code:
$ su
# cd /usr/src/linux
# make mrproper
# cp /boot/config-generic-smp-2.6.27.7-smp .config
# make menuconfig #     <---enable high-resolution timer and filesystems here
# make 
# make modules_install
# cp arch/i386/boot/bzImage /boot/bzImage-2.6.27.7-smp
# vi /etc/lilo.conf #    <---change image here
# lilo -v
# reboot
Everything went well after recompiling the kernel except for 'shutdown'. When I type shutdown -h now, it went through the normal shutdown process. However, it stops at some point (see below) and the machine is dead. I need to power off by pressing the button. One more thing to mention: reboot works perfectly.
Code:
...
/dev/sda1 unmount
/dev/sda8 unmount
/dev/sda7 unmount
/dev/sda6 unmount
/dev/sda5 unmount
usbfs unmount
/dev/root unmount
Remounting root filesystem read-only.
/dev/sda1 on / type ext3 (ro)
md: stooping all md devices
sd 3:0:0:0: [sdb] Synchronizing SCSI cache
sd 3:0:0:0: [sdb] Stopping disk
sd 2:0:0:0: [sda] Synchronizing SCSI cache
sd 2:0:0:0: [sda] Stopping disk
e1000e 0000:02:00.0: PCI INT A disabled
ACPI: preparing to enter system sleep state S5
Disabling non-boot CPUs ...
The machine stops here.

It seems that ACPI caused the problem. Does anyone tell me what options I need to setup?

Last edited by lchxr; 04-20-2009 at 12:54 PM.
 
Old 04-20-2009, 12:59 PM   #2
Jeebizz
Senior Member
 
Registered: May 2004
Distribution: Slackware15.0 64-Bit Desktop, Debian 11 non-free Toshiba Satellite Notebook
Posts: 4,252

Rep: Reputation: 1403Reputation: 1403Reputation: 1403Reputation: 1403Reputation: 1403Reputation: 1403Reputation: 1403Reputation: 1403Reputation: 1403Reputation: 1403
Was ACPI compiled into the kernel, or as a module? Or was it even compiled at all? Check your kernel configuration, and also try lsmod to see if ACPI is loaded.
 
Old 04-20-2009, 04:37 PM   #3
gegechris99
Senior Member
 
Registered: Oct 2005
Location: France
Distribution: Slackware 15.0 64bit
Posts: 1,172
Blog Entries: 5

Rep: Reputation: 409Reputation: 409Reputation: 409Reputation: 409Reputation: 409
Hello,

Check if /etc/rc.d/rc.acpid is executable? If not run as root:

Code:
chmod +x /etc/rc.d/rc.acpid
 
Old 04-21-2009, 01:20 AM   #4
lchxr
Member
 
Registered: Mar 2006
Posts: 42

Original Poster
Rep: Reputation: 15
Yes, ACPI was compiled into kernel and /etc/rc.d/rc.acpid is executable.
 
Old 04-21-2009, 04:13 AM   #5
gegechris99
Senior Member
 
Registered: Oct 2005
Location: France
Distribution: Slackware 15.0 64bit
Posts: 1,172
Blog Entries: 5

Rep: Reputation: 409Reputation: 409Reputation: 409Reputation: 409Reputation: 409
Try to force acpi at boot time by adding the following to /etc/lilo.conf:

Code:
append=" acpi=force"
Example of where to put the additional line:

Code:
image=/boot/vmlinuz
label="linux"
root=/dev/hda5
initrd=/boot/initrd.img
append=" acpi=force"
Do not forget to run /sbin/lilo after modifying the lilo.conf file.
 
Old 04-21-2009, 07:46 AM   #6
lchxr
Member
 
Registered: Mar 2006
Posts: 42

Original Poster
Rep: Reputation: 15
Problem updates.

In kernel-2.6.27.7 shipped with Slackware 12.2, if the high-resolution-timer is disabled, everything goes well. However, if enabled,
Code:
CONFIG_TICK_ONESHOT=y
# CONFIG_NO_HZ is not set
CONFIG_HIGH_RES_TIMERS=y
the power-off process would stop at some point. This shows that high-resolution-timer conflicts with something else.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Recompiling kernel in Slackware, any special commands? Romanus81 Slackware 8 05-03-2008 01:08 PM
NIC getting powered off when hotplug starts on an HP notebook running slackware 10.2 searinox Linux - Hardware 2 07-22-2006 05:11 PM
which sites are powered slackware? mortal Slackware 18 09-12-2005 08:30 AM
recompiling the kernel-SLACKWARE greklas Slackware 6 08-29-2004 01:29 PM
recompiling kernal slackware 7.1 gamji44 Slackware 5 09-08-2003 12:41 AM

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

All times are GMT -5. The time now is 10:40 PM.

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