The time now is Wed 19 Jun 2013, 03:13
All times are UTC - 4 |
| Author |
Message |
charlie
Joined: 19 Jun 2012 Posts: 2
|
Posted: Tue 19 Jun 2012, 19:55 Post_subject:
APM - How to edit Sub_title: I can't shut down normally |
|
Hi All.
I have install puppy 528 to HDD. Whenever I click shutdown/power-off computer it hangs and then I have to hold the power button down. When I start the laptop it wont start until I type xwin.
I have looked through the beginners help and the rest of the forum and found something that might help:
Puppy 4.3 APM won't power off [solved]
The advice looks good but assumes some beginners knowledge. How do I get to point where I can alter the APM settings?
Can you point me towards some tutorial that takes you through those steps from the beginning?
|
|
Back to top
|
|
 |
bigpup

Joined: 11 Oct 2009 Posts: 3692 Location: Charleston S.C. USA
|
Posted: Wed 20 Jun 2012, 02:31 Post_subject:
|
|
Are you using the latest version of Lucid Puppy? Version 528.005
http://www.murga-linux.com/puppy/viewtopic.php?t=70855
How is it installed? Frugal or full?
_________________ I have found, in trying to help people, that the things they do not tell you, are usually the clue to solving the problem.
Puppy Help 101 An interactive tutorial for Puppy 5.2.5
|
|
Back to top
|
|
 |
Karl Godt

Joined: 20 Jun 2010 Posts: 2730 Location: Kiel,Germany
|
Posted: Wed 20 Jun 2012, 18:19 Post_subject:
|
|
Lupu 528 should have the folder /etc/modprobe.d/
with some files called *.conf
You could create a file /etc/modprobe.d/apm.conf
like that :
| Code: | | echo 'options apm power_off=1' > /etc/modprobe.d/apm.conf |
from the commadline .
The correct syntax for the options for drivers can be obtained with
command .
I am not sure if your lap supports acpi or apm .
To get the supported modes :
| Code: | | dmidecode -t0 |grep -E 'APM|ACPI' |
My Minitower says :
| Quote: | APM is supported
ACPI is supported |
I guess i'd have to boot with acpi=off to enable apm .
The /etc/rc.d/rc.sysinit script normally prefers to load acpi instead of apm .
When i
i get
| Quote: | insmod /lib/modules/2.6.37.4-KRG-i586TSC-64GB-1/kernel/arch/x86/kernel/apm.ko
FATAL: Error inserting apm (/lib/modules/2.6.37.4-KRG-i586TSC-64GB-1/kernel/arch/x86/kernel/apm.ko): No such device |
| Quote: | acpi_cpufreq 6429 0
freq_table 3951 2 cpufreq_ondemand,acpi_cpufreq
mperf 1059 1 acpi_cpufreq
processor 31878 1 acpi_cpufreq |
|
|
Back to top
|
|
 |
charlie
Joined: 19 Jun 2012 Posts: 2
|
Posted: Wed 20 Jun 2012, 20:44 Post_subject:
|
|
Wow! Some good info there.
I have a full install of lupu-528.005.
What I have done since last post:
looked in the folder /etc/modprobe.d/ and found apm.conf
apm.conf looked like this:
| Quote: | | options apm smp=1 power_off=1 |
tried modinfo apm and got:
| Quote: | filename: /lib/modules/2.6.33.2/kernel/arch/x86/kernel/apm.ko
alias: char-major-10-134
license: GPL
description: Advanced Power Management
author: Stephen Rothwell
depends:
vermagic: 2.6.33.2 SMP mod_unload modversions 486
parm: debug:Enable debug mode (bool)
parm: power_off:Enable power off (bool)
parm: bounce_interval:Set the number of ticks to ignore suspend bounces (int)
parm: allow_ints:Allow interrupts during BIOS calls (bool)
parm: broken_psr:BIOS has a broken GetPowerStatus call (bool)
parm: realmode_power_off:Switch to real mode before powering off (bool)
parm: idle_threshold:System idle percentage above which to make APM BIOS idle calls (int)
parm: idle_period:Period (in sec/100) over which to caculate the idle percentage (int)
parm: smp:Set this to enable APM use on an SMP platform. Use with caution on older systems (bool)
|
tried dmidecode -t0 |grep -E 'APM|ACPI' and got:
| Quote: | APM is supported
ACPI is supported
|
tried modprobe -v apm and got
| Quote: | insmod /lib/modules/2.6.33.2/kernel/arch/x86/kernel/apm.ko smp=1 power_off=1
FATAL: Error inserting apm (/lib/modules/2.6.33.2/kernel/arch/x86/kernel/apm.ko): No such device
|
So now do I just edit: /etc/modprobe.d/apm.conf to read:
| Quote: | | echo 'options apm power_off=1' > /etc/modprobe.d/apm.conf | ??
I am beginning to understand what's happening here with setting the power_off boolean to 1. I'm not quite there yet. What shall do next?
|
|
Back to top
|
|
 |
Karl Godt

Joined: 20 Jun 2010 Posts: 2730 Location: Kiel,Germany
|
Posted: Wed 20 Jun 2012, 21:49 Post_subject:
|
|
You could test if evdev and button modules are loaded :
| Code: | | lsmod |grep -E 'evdev|button' |
seems that button is not loaded or builtin to the kernel .
Had shutdown problems, too, but in my case with reboot ;this seems to be related to busybox version .
Lupu i think has stock 1.16.2 :
| Quote: | | BusyBox v1.18.3 (2011-05-01 19:45:13 CEST) multi-call binary. |
I can reboot normally with the " reboot=f " kernel parameter OR if i change /sbin/reboot script from
| Code: | | exec /bin/busybox reboot |
to
| Code: | | exec /bin/busybox reboot -f |
The reboot=STATE parameter was introduced with kernels later than 2.6.37 i think but there seems no equivalent for " poweroff=STATE " .
busybox poweroff also has a -f option, so this is something i would try to add /sbin/poweroff script .
http://www.mjmwired.net/kernel/Documentation/kernel-parameters.txt
|
|
Back to top
|
|
 |
|
|
|
Rules_post_cannot Rules_reply_cannot Rules_edit_cannot Rules_delete_cannot Rules_vote_cannot You cannot attach files in this forum You can download files in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|
|
[ Time: 0.0600s ][ Queries: 11 (0.0043s) ][ GZIP on ] |