LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 07-22-2006, 06:58 AM   #1
tramni1980
Member
 
Registered: Jul 2006
Location: Köln, Germany
Distribution: Slackware64-14.2 & -current, DragonFly BSD, OpenBSD
Posts: 819

Rep: Reputation: 55
Unhappy apm:BIOS not found


I am using slackware linux 10.2. My problem is loading the apm kernel module so that my desktop PC gets really shutdown when I type "shutdown -h now". I have uncommented the line "#modprobe apm" in the kernel modules file, but at booting the kernel delivers the following message:

apm:BIOS not found
/lib/modules/2.4.31/kernel/arch/i386/kernel/apm.o.gz: init_module: No such device
/lib/modules/2.4.31/kernel/arch/i386/kernel/apm.o.gz: Hint: insmod errors can be caused by incorrect module parameters, including invalid IO or IRQ parameters.
You may find more information in syslog or the output from dmesg
/lib/modules/2.4.31/kernel/arch/i386/kernel/apm.o.gz: insmod /lib/modules/2.4.31/kernel/arch/i386/kernel/apm.o.gz failed
/lib/modules/2.4.31/kernel/arch/i386/kernel/apm.o.gz: insmod apm failed

The same error message appers when I try loading the apm module manually, typing "modprobe apm". My motherboard is Intel® Desktop Board D845GERG2 and my BIOS version is RG84510A.86A.0033.P17
I would be very grateful to receive some helpful advice. Thanks in advance, Martin
 
Old 07-22-2006, 08:44 AM   #2
nykey
Member
 
Registered: Nov 2003
Posts: 360

Rep: Reputation: 30
Isn't APM for laptops ? Did you try ACPI instead ?
 
Old 07-22-2006, 09:14 AM   #3
tramni1980
Member
 
Registered: Jul 2006
Location: Köln, Germany
Distribution: Slackware64-14.2 & -current, DragonFly BSD, OpenBSD
Posts: 819

Original Poster
Rep: Reputation: 55
Well, I browsed a lot of forums on the topic of shutting down desktop PCs, and everywhere they say the solution is simply uncommenting the "modprobe apm" line in the kernel modules file. After this the desktop PC should really shutdown when typing "shutdown -h now". But it seems that this does not work with my PC . at first I thought my BIOS does not support apm, so I upgraded it to the latest version, that does support apm. Alas, no result .
I do not have an idea how to try ACPI,if you explain to me how, I will try it

Quote:
Originally Posted by nykey
Isn't APM for laptops ? Did you try ACPI instead ?
 
Old 07-22-2006, 10:36 AM   #4
nykey
Member
 
Registered: Nov 2003
Posts: 360

Rep: Reputation: 30
I'm not sure what kernel you use (2.4 or 2.6 ... package by Pat or compiled by yourself) but you could try something like this. Make sure you have the acpi daemon running ( chmod +x /etc/rc.d/rc.acpid ) then run the daemon ( /etc/rc.d/rc.acpid ) and then run ( modprobe button ). And try a ( shutdown -h now ) after to check if it's working. It should work if you haven't install your own kernel, and use one made by Pat.
 
Old 07-22-2006, 07:08 PM   #5
Old_Fogie
Senior Member
 
Registered: Mar 2006
Distribution: SLACKWARE 4TW! =D
Posts: 1,519

Rep: Reputation: 63
In my limited experience, with 2.4.31 kernels I too have to go into /etc/rc.d/rc.modules and do what you did, to un-comment the apm module so that it loads at boot time; even on desktop pc's.

Once I go to 2.6.13 test kernel I found that I didnt need that line there.

Possibly? you just need the line in the lilo
Quote:
append="apm=power-off"
However, the fact that you get no apm modules available at boot time, tells me, that you have modules missing! and by default in slack install Pat clearly says modules for 2.4 required. And if you can get into X that means you got some modules there.

Did you go thru and delete modules at all to save HD space?

Or maybe did you some how mess the with the /usr/src/linux symlink or remove your header/include files.

I dont know that sounds screwy to me to be honest.

Maybe you can re-install your modules off the cd, then just run 'depmod -a' then reboot.
 
Old 07-23-2006, 07:50 AM   #6
tramni1980
Member
 
Registered: Jul 2006
Location: Köln, Germany
Distribution: Slackware64-14.2 & -current, DragonFly BSD, OpenBSD
Posts: 819

Original Poster
Rep: Reputation: 55
Yes, I am using 2.4.31 kernel, just as it was in the CD, I have not compiled it. I ran a full installation , so I have not saved any disc space for I have plenty. That is why I do not think there are kernel modules missing. But if this seems to you to be the only option, would you tell me which module I should look for in the CD, how I should install it. Please, if possible tell me the commands I have to type or suggest me some literature on how to load kernel modules and install them in case you do not feel like explaining every single command I should have to type. Thank you very much for the attention you are paying to me.
I tried what you told me with the daemons, but there was no effect.
Yours, Martin
 
Old 07-23-2006, 03:12 PM   #7
tramni1980
Member
 
Registered: Jul 2006
Location: Köln, Germany
Distribution: Slackware64-14.2 & -current, DragonFly BSD, OpenBSD
Posts: 819

Original Poster
Rep: Reputation: 55
How do you think could I have messed the symlink /usr/src/linux or removed the header/include files? where could I get some info about what these files are? How are modules reinstalled off the CD? I am sorry if I bore you with these questions, but I really wish to fix things
 
Old 07-24-2006, 02:20 AM   #8
Old_Fogie
Senior Member
 
Registered: Mar 2006
Distribution: SLACKWARE 4TW! =D
Posts: 1,519

Rep: Reputation: 63
hi tramni

sometimes running make (or so I have read) on a package can mess things up in your computer. as I'm new I messed up my symlink to /usr/src/linux by following a how-to for something that was out of date, or I was new, I dont know for sure.

I'm not 100% sure of this OKAY, hopefully someone here on the forums can confirm this.

I should think that you should be able to just put your slackware cd # 1 in your drive, then mount it to /mnt/cdrom and copy over

-kernel-modules-2.4.31-i486-1.tgz <- section A of disc 1
-kernel-source-2.4.31-noarch-1.tgz <- section K of disc 1
-kernel-headers-2.4.31-i386-1.tgz <--section D of disc 1

to a place on your hard drive, then as 'root' just run "upgradepkg *.tgz" assuming only those three files are in that folder only! and it should reinstall them for you.


then when you reboot your slackware runs 'depmod -a' automatically as part of it's start-up scripts. then you should be fine, or so I believe, again hopefully someone can confirm this for you.

the actual apm file is found in /lib/modules/2.4.31/kernel/arch/i386/kernel of the kernel-modules package I listed above I just verified it.

if you dont have the cd's handy, just grab them off one of slackware's mirrors and be sure to md5 checksum it and gpg verify it before you install is a good practice.

As allways, back up your data first.
 
Old 07-24-2006, 04:06 AM   #9
tramni1980
Member
 
Registered: Jul 2006
Location: Köln, Germany
Distribution: Slackware64-14.2 & -current, DragonFly BSD, OpenBSD
Posts: 819

Original Poster
Rep: Reputation: 55
upgradepkg-skipping modules for they are already installed

hi again. thank you very much for your attention. ok, i dounloaded the module packages you specified and verified their md5 sums. then i ran "installpkg" for them, but it said that it skipped them for they are already installed. maybe i should run installpkg to them, so that they get installed over the already installed packages?I will not do this until you tell me it is correct, however
 
Old 07-24-2006, 04:38 AM   #10
nykey
Member
 
Registered: Nov 2003
Posts: 360

Rep: Reputation: 30
hello. run this command, like this
Code:
upgradepkg --reinstall package-name.tgz
As you notice this will reinstall your currently installed package. Good luck.
 
Old 07-24-2006, 05:14 AM   #11
Old_Fogie
Senior Member
 
Registered: Mar 2006
Distribution: SLACKWARE 4TW! =D
Posts: 1,519

Rep: Reputation: 63
awesome nykey, that goes in my slackware notebook.
 
Old 07-24-2006, 05:25 AM   #12
nykey
Member
 
Registered: Nov 2003
Posts: 360

Rep: Reputation: 30
yup, nice indeed, but it's Pat's "fault" not mine .

@tramni1980
You should try reading the man pages for installpkg, upgradepkg and pkgtool ( man installpkg , man upgradepkg , man pkgtool ), it might help you more in this case and other times.
 
Old 07-24-2006, 05:41 AM   #13
tramni1980
Member
 
Registered: Jul 2006
Location: Köln, Germany
Distribution: Slackware64-14.2 & -current, DragonFly BSD, OpenBSD
Posts: 819

Original Poster
Rep: Reputation: 55
no result :(

I did everything you told me : in the directory with the three packages you specified I ran "upgradepkg --reinstall *.tgz" ;everything ended up successfully. then I rebooted and the kernel again compained: "apm: BIOS not found".
when I type as root "modprobe apm" the result is "/lib/modules/2.4.31/kernel/arch/i386/kernel/apm.o.gz: init_module: No such device
/lib/modules/2.4.31/kernel/arch/i386/kernel/apm.o.gz: Hint: insmod errors can be caused by incorrect module parameters, including invalid IO or IRQ parameters.
You may find more information in syslog or the output from dmesg
/lib/modules/2.4.31/kernel/arch/i386/kernel/apm.o.gz: insmod /lib/modules/2.4.31/kernel/arch/i386/kernel/apm.o.gz failed
/lib/modules/2.4.31/kernel/arch/i386/kernel/apm.o.gz: insmod apm failed
"
I beg your help ...
 
Old 07-24-2006, 05:57 AM   #14
sl4ckw4re
Member
 
Registered: Jul 2006
Distribution: Slackware 10.2
Posts: 31

Rep: Reputation: 15
Execute this command please, and post back the output of it
Code:
grep APM /usr/src/linux/.config
and
Code:
grep ACPI /usr/src/linux/.config
 
Old 07-24-2006, 05:59 AM   #15
nykey
Member
 
Registered: Nov 2003
Posts: 360

Rep: Reputation: 30
heh, exactly what I was going to say, but you beat me to it. tramni do that and post back.
 
  


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
BIOS:apm not found tramni1980 Linux - Laptop and Netbook 3 07-24-2006 03:24 PM
Boot fail "apm: BIOS version 1.2 Flags" Help please PaulD101 Linux - General 3 05-04-2006 04:26 AM
apm - command not found? nagromo Linux - Software 1 12-11-2004 07:50 AM
How to Disable APM Bios Detection on Boot leeach Mandriva 4 10-01-2003 09:25 AM
Need to Disable APM Bios detection leeach Linux - Newbie 0 09-30-2003 11:54 AM

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

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