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 - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 03-13-2009, 02:00 PM   #1
mitchellray
Member
 
Registered: Feb 2009
Posts: 44

Rep: Reputation: 16
ACPI Poweroff not working in Slackware12.2 - other threads, unresolved? Fedora does


Hello,
My machine will not auto poweroff in Slackware 12.2.
It will poweroff in Fedora(5,10).

I am dual booting. Fedora is chainloaded with its own Grub. Slackware is booted with lilo from first boot partition (problem existed even prior to dual boot scenario).

I was surprised to find that Fedora10 can still turn the machine off even when chainloaded.
However, Slackware does not turn it off.

I tried adding acpi=force to lilo.conf and it did not change status.
I might be doing it incorrectly or in the wrong place or with incorrect syntax.

I change user to root and give shutdown -hP now. The system halts but does not turn the machine off.

In bios, I have two options for ACPI, S1(pos) and S3(str).
There is also an APM option, yes/no. If yes, I can not manually turn the machine off with the power button, if no, I can power down manually.

Again, Fedora(5,10) succeeds in power down.
Thanks.
M

Last edited by mitchellray; 03-13-2009 at 02:02 PM. Reason: wrong choice of words
 
Old 03-13-2009, 03:49 PM   #2
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
Technically 'acpi=force' is the proposed solution, are you sure that you ran '/sbin/lilo' after you edited lilo.conf to update the config ?

Also, make sure '/etc/rc.d/rc.acpid' is executable.

If not, then you could try using APM instead, by passing 'acpi=off', as long as APM is supported by the kernel.

Last edited by H_TeXMeX_H; 03-13-2009 at 03:51 PM.
 
Old 03-13-2009, 09:10 PM   #3
mitchellray
Member
 
Registered: Feb 2009
Posts: 44

Original Poster
Rep: Reputation: 16
Please check syntax, /etc/rc.d/rc.acpid is executable, what permissions?

Thank you H_TeXMeX_H.

# LILO configuration file
# generated by 'liloconfig'
#
# Start LILO global section
# Append any additional kernel parameters:
append=" vt.default_utf8=0"
boot = /dev/hde
acpi=force

# Boot BMP Image.
# Bitmap in BMP format: 640x480x8
bitmap = /boot/slack.bmp
# Menu colors (foreground, background, shadow, highlighted
# foreground, highlighted background, highlighted shadow):
bmp-colors = 255,0,255,0,255,0
# Location of the option table: location x, location y, number of
# columns, lines per column (max 15), "spill" (this is how many
# entries must be in the first column before the next begins to
# be used. We don't specify it here, as there's just one column.
bmp-table = 60,6,1,16
# Timer location x, timer location y, foreground color,
# background color, shadow color.
bmp-timer = 65,27,0,255

# Standard menu.
# Or, you can comment out the bitmap menu above and
# use a boot message with the standard menu:
#message = /boot/boot_message.txt

# Wait until the timeout to boot (if commented out, boot the
# first entry immediately):
prompt
# Timeout before the first entry boots.
# This is given in tenths of a second, so 600 for every minute:
timeout = 1200
# Override dangerous defaults that rewrite the partition table:
change-rules
reset
# Normal VGA console
vga = normal
# VESA framebuffer console @ 1024x768x64k
# vga=791
# VESA framebuffer console @ 1024x768x32k
# vga=790
# VESA framebuffer console @ 1024x768x256
# vga=773
# VESA framebuffer console @ 800x600x64k
# vga=788
# VESA framebuffer console @ 800x600x32k
# vga=787
# VESA framebuffer console @ 800x600x256
# vga=771
# VESA framebuffer console @ 640x480x64k
# vga=785
# VESA framebuffer console @ 640x480x32k
# vga=784
# VESA framebuffer console @ 640x480x256
# vga=769
# End LILO global section
# Linux bootable partition config begins
image = /boot/vmlinuz
root = /dev/root
label = Linux
read-only
other = /dev/hde5
label = Fedora

# Linux bootable partition config ends

When I add the 'acpi=force' line,
'/sbin/lilo' returns

Unrecognized token "acpi" at or above line 8 in file '/etc/lilo.conf'

I checked and
'/etc/rc.d/rc.acpid' is executable. Do users need permission to execute, because they only have read and root has read & write?
M
 
Old 03-14-2009, 05:02 AM   #4
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
Quote:
Originally Posted by mitchellray View Post
Code:
append=" vt.default_utf8=0"
boot = /dev/hde
acpi=force
Unrecognized token "acpi" at or above line 8 in file '/etc/lilo.conf'
That's because it's not correct, it should be:

Code:
append=" vt.default_utf8=0 acpi=force"
boot = /dev/hde

Last edited by H_TeXMeX_H; 03-14-2009 at 05:04 AM.
 
Old 03-14-2009, 02:20 PM   #5
mitchellray
Member
 
Registered: Feb 2009
Posts: 44

Original Poster
Rep: Reputation: 16
Poweroff working now

Thank you H_TeXMeX_H.

Poweroff is now working.
I will start a new thread to inquire as to how to allow users to 'shutdown'.

Mitchellray
 
Old 03-14-2009, 03:45 PM   #6
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
I think you may find the answer to that question here:
http://www.linuxquestions.org/questi...=user+shutdown
 
Old 03-14-2009, 11:26 PM   #7
mitchellray
Member
 
Registered: Feb 2009
Posts: 44

Original Poster
Rep: Reputation: 16
Poweroff successful

Thank you again H_TeXMeX_H.
I followed the link and will have to study the thread closely to be certain I understand what I am doing.
I noticed that I do not seem to have a '.bashrc' in my user path.
A further query indicates that I must create the file and that it will somehow be read when needed per call by 'sudoer'.
It is still unclear to me, but I will read the thread again.
M
 
Old 03-15-2009, 07:22 AM   #8
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
Alright, good luck.
 
  


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
Can't get ACPI working Fedora 7 a_m0d Linux - Kernel 13 01-10-2008 03:39 PM
Console ACPI? (Monitor Poweroff) juanbobo Linux - General 0 06-19-2006 05:23 PM
acpi poweroff called mnotgninnep Debian 3 03-08-2006 11:43 AM
Thread Ranking/Unresolved Threads jacobt LQ Suggestions & Feedback 6 12-30-2005 01:49 PM
RH9 + ACPI -> help (poweroff) BrianK Red Hat 2 04-12-2005 11:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 09:24 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