DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
# apmd
It appears that an instance of apmd is already running as process 580.
If in reality no instance of apmd is running, remove /var/run/apmd.pid.
lo
# apmd
It appears that an instance of apmd is already running as process 580.
If in reality no instance of apmd is running, remove /var/run/apmd.pid.
lo
Kindly advise how to fix this problem
TIA
B.R.
satimis
It looks like the module loads fine what do you have for your settings in the /etc/lilo.conf? In mine in the append line I had to put apm=on and run /sbin/lilo to write the changes to the disk.
Code:
append="hdc=ide-scsi apm=on"
In my /etc/modutils/apm I had to make a change then run update-modules to update the /etc/modules.conf and use MAKEDEV apm in the /etc/misc/ directory for the apm_bios device that was missing.
Code:
>$ cat /etc/modutils/apm
alias char-major-10-134 apm
alias /dev/apm_bios /dev/misc/apm_bios
alias /dev/misc/apm_bios apm
#alias /dev/apm_bios apm
# Added by me for real mode power off
options apm power_off=1
You might also want to check in your BIOS and make sure that the machine is actually set to power down instead of suspend as well.
Originally posted by HappyTux It looks like the module loads fine what do you have for your settings in the /etc/lilo.conf? In mine in the append line I had to put apm=on and run /sbin/lilo to write the changes to the disk.
Code:
append="hdc=ide-scsi apm=on"
In my /etc/modutils/apm I had to make a change then run update-modules to update the /etc/modules.conf and use MAKEDEV apm in the /etc/misc/ directory for the apm_bios device that was missing.
Code:
>$ cat /etc/modutils/apm
alias char-major-10-134 apm
alias /dev/apm_bios /dev/misc/apm_bios
alias /dev/misc/apm_bios apm
#alias /dev/apm_bios apm
# Added by me for real mode power off
options apm power_off=1
You might also want to check in your BIOS and make sure that the machine is actually set to power down instead of suspend as well.
# /sbin/lilo
Warning: '/proc/partitions' does not match '/dev' directory structure.
Name change: '/dev/ide/host0/bus0/target0/lun0/disc' -> '/dev/hda'
Added Linux *
# cat /etc/modutils/apm (original)
alias char-major-10-134 apm
alias /dev/apm_bios /dev/misc/apm_bios
alias /dev/misc/apm_bios apm
# cat /etc/modutils/apm (change made)
alias char-major-10-134 apm
alias /dev/apm_bios /dev/misc/apm_bios
alias /dev/misc/apm_bios apm
options apm power_off=1
# update-modules /etc/modules.conf
# ls -al /etc/misc/
ls: al: No such file or directory
ls: /etc/misc/: No such file or directory
# shutdown -h now
# halt -p
# halt
all can't switch off
BIOS (default)
Power Management Setup
ACPI (Enabled)
Remove the -n in the line to have the device actually created.
Quote:
# shutdown -h now
# halt -p
# halt
all can't switch off
BIOS (default)
Power Management Setup
ACPI (Enabled)
Tired changing "ACPI (Disabled)
Still same result - can't poweroff
B.R.
satimis [/B]
Try it with the ACPI set to disabled although I think it would be better if you could find a power down instead of suspend like is in my BIOS. Also when you boot can you see in the messages the apmd daemon starting up. And in the append line in your lilo.conf you posted above now that I looked at it again you have a typo there it has a "S" (spm=on) instead of an "A" (apm=on).
Remove the -n in the line to have the device actually created.
How to remove '-n' from /dev/apm_bios ?
Quote:
Also when you boot can you see in the messages the apmd daemon starting up.
Very strange I could not discover the boot.log of today
# ls /var/log/
boot
boot.0
boot.1.gz
boot.2.gz
boot.3.gz
boot.4.gz
# cat /var/log/boot
Fri Jan 9 15:04:55 2004: Starting advanced power management daemon: apmd.
# cat /var/log/daemon.log
.....
Jan 16 19:20:14 debian apmd[578]: apmd 3.2.0 interfacing with apm driver 1.16 and APM BIOS 1.2
.....
Quote:
And in the append line in your lilo.conf you posted above now that I looked at it again you have a typo there it has a "S" (spm=on) instead of an "A" (apm=on).
Sorry, it was a typing mistake on my previous posting.
Quote:
Try it with the ACPI set to disabled
Yes, I re-checked all and then tried 'shutdown -h now' again with the same result. Can't power off
Remove the -n in the line to have the device actually created.
Try it with the ACPI set to disabled although I think it would be better if you could find a power down instead of suspend like is in my BIOS. Also when you boot can you see in the messages the apmd daemon starting up. And in the append line in your lilo.conf you posted above now that I looked at it again you have a typo there it has a "S" (spm=on) instead of an "A" (apm=on).
You should see the module in use. If you have the ACPI compiled as a module in the kernel it may still be getting used or interfering with the use of the APM so you may have to try acpi=off when you boot at the lilo screen eg. just type Linux acpi=off change the Linux for whatever name appears in the menu selection for the kernel you are booting. Just to be sure here you have made the missing device and the changes that I have suggested to you here right?
You should see the module in use. If you have the ACPI compiled as a module in the kernel it may still be getting used or interfering with the use of the APM so you may have to try acpi=off when you boot at the lilo screen eg. just type Linux acpi=off change the Linux for whatever name appears in the menu selection for the kernel you are booting. Just to be sure here you have made the missing device and the changes that I have suggested to you here right?
I had the exact same problem after upgrading kernel from 2.4 to 2.6.
I managed to fix it by linking apm into kernel instead of using it as a module.
Don't really know if that is a bug or a feature ?
Originally posted by fatcat I had the exact same problem after upgrading kernel from 2.4 to 2.6.
I managed to fix it by linking apm into kernel instead of using it as a module.
Don't really know if that is a bug or a feature ?
Hi,
Could you please advise in more detail how to link apm to kernel.
This is how my .config file looks:
grep APM .config
# Power management options (ACPI, APM)
# APM (Advanced Power Management) BIOS Support
CONFIG_APM=y
# CONFIG_APM_IGNORE_USER_SUSPEND is not set
# CONFIG_APM_DO_ENABLE is not set
CONFIG_APM_CPU_IDLE=y
# CONFIG_APM_DISPLAY_BLANK is not set
CONFIG_APM_RTC_IS_GMT=y
# CONFIG_APM_ALLOW_INTS is not set
# CONFIG_APM_REAL_MODE_POWER_OFF is not set
grep ACPI .config
# Power management options (ACPI, APM)
# ACPI (Advanced Configuration and Power Interface) Support
# CONFIG_ACPI is not set
the meaning full point is
CONFIG_APM=y
instead of
CONFIG_APM=m
I use make gconfig to adjut my kernel, but there are many other methods.
I hope this helps ?
Originally posted by fatcat This is how my .config file looks:
grep APM .config
# Power management options (ACPI, APM)
# APM (Advanced Power Management) BIOS Support
CONFIG_APM=y
# CONFIG_APM_IGNORE_USER_SUSPEND is not set
# CONFIG_APM_DO_ENABLE is not set
CONFIG_APM_CPU_IDLE=y
# CONFIG_APM_DISPLAY_BLANK is not set
CONFIG_APM_RTC_IS_GMT=y
# CONFIG_APM_ALLOW_INTS is not set
# CONFIG_APM_REAL_MODE_POWER_OFF is not set
grep ACPI .config
# Power management options (ACPI, APM)
# ACPI (Advanced Configuration and Power Interface) Support
# CONFIG_ACPI is not set
the meaning full point is
CONFIG_APM=y
instead of
CONFIG_APM=m
I use make gconfig to adjut my kernel, but there are many other methods.
I hope this helps ?
Hi fatcat.
Debian - unstable
# grep APM .config
grep: .config: No such file or directory
# grep APM .conf
grep: .conf: No such file or directory
# grep ACPI .config
grep: .config: No such file or directory
# grep ACPI .conf
grep: .conf: No such file or directory
I have
"libextutils-pkgconfig-perl" and
"libapache-dbilogconfig-perl "
installed but could not get 'gconfig' started
# locate gconfig
/usr/bin/gconfigger
# /usr/bin/gconfigger
no response.
Kindly advise which package I need to install.
OR is it a command line application or a GUI application
I have the same problem with kernel 2.6.x; this is my kernel config section:
Code:
[sly@sid]~/download/cdrdao $grep APM /usr/src/linux/.config
# Power management options (ACPI, APM)
# APM (Advanced Power Management) BIOS Support
CONFIG_APM=y
# CONFIG_APM_IGNORE_USER_SUSPEND is not set
# CONFIG_APM_DO_ENABLE is not set
# CONFIG_APM_CPU_IDLE is not set
# CONFIG_APM_DISPLAY_BLANK is not set
# CONFIG_APM_RTC_IS_GMT is not set
# CONFIG_APM_ALLOW_INTS is not set
CONFIG_APM_REAL_MODE_POWER_OFF=y
I also tried all the tricks displayed in this thread (MAKEDEV, lilo options, ACPI is =n in the kernel), but no results.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.