LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 02-02-2003, 06:31 AM   #1
Machinegun
Member
 
Registered: Jan 2003
Posts: 56

Rep: Reputation: 15
APM (advance power managment)


I have a laptop cemputer. When I try to load apm module, I have "unresolved symbol machine real restart" and "unresolved symbol default idle".
How can I fix thi?.My distro is Red Hat 8 with kernel 2.4.20.
 
Old 02-02-2003, 01:10 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Gidday!

My first guess would be that the
modules & kernel that RH ships don't
quite match. The instant-solution should be
to recompile your kernel so it all matches
...

Cheers,
Tink
 
Old 02-02-2003, 02:54 PM   #3
Machinegun
Member
 
Registered: Jan 2003
Posts: 56

Original Poster
Rep: Reputation: 15
I recompiled the kernel just to enable APM BIOS as module. But now I can't load module. There is any option needed in Kernel that I have not chosen?
 
Old 02-02-2003, 03:47 PM   #4
nxny
Member
 
Registered: May 2002
Location: AK - The last frontier.
Distribution: Red Hat 8.0, Slackware 8.1, Knoppix 3.7, Lunar 1.3, Sorcerer
Posts: 771

Rep: Reputation: 30
why cant you load the module. ( What is the error )
did you make dep?

try running /sbin/depmod -a and see what it reports.
 
Old 02-03-2003, 01:25 PM   #5
Machinegun
Member
 
Registered: Jan 2003
Posts: 56

Original Poster
Rep: Reputation: 15
Errors are unresolved symbols described in my first post. depmod -a results, unresolved symbol in apm.o
 
Old 08-05-2003, 04:15 PM   #6
valo
Member
 
Registered: Aug 2003
Location: Bulgaria, Varna
Distribution: Slackware
Posts: 33

Rep: Reputation: 15
I have the same problem

I have Slackware 9 and when I compiled apm module and tried to modprobe it I received the same unresolved symbols...
Well, if someone can help me I will be very grateful. Actually apm is not very important feature, but I like bugging my Linux and I want everything to be OK
 
Old 08-06-2003, 12:28 PM   #7
nxny
Member
 
Registered: May 2002
Location: AK - The last frontier.
Distribution: Red Hat 8.0, Slackware 8.1, Knoppix 3.7, Lunar 1.3, Sorcerer
Posts: 771

Rep: Reputation: 30
Welcome to LQ, valo!

Did you compile just the apm module ? Are you sure you compiled it for the kernel you're currently running?
 
Old 08-06-2003, 03:46 PM   #8
valo
Member
 
Registered: Aug 2003
Location: Bulgaria, Varna
Distribution: Slackware
Posts: 33

Rep: Reputation: 15
Hi nxny This forum is really something great. You can read really interesting info and learn a lot about linux...

Now, about the topic... I recompiled the kernel several times, also I did make deps and didn't see any problems. Actually I haven't tryed to compile apm as a part of the kernel... Well, tomorrow I may try to do this... I also remember that a friend of mine have told me that he had tryed to use apm and even had tryed to compile it as a part of the kernel, but he haven't told me why he hadn't succeeded...
When I searched in google about this problem I found that other people have the similar problem and I think that may be one of the solutions is to edit some source files of the module!!!
I will continue searching solutions, but if you tell me how to fix this I would be very grateful

valo

P.S. : sorry for my english... I need more practice)

Last edited by valo; 08-06-2003 at 03:48 PM.
 
Old 08-06-2003, 05:14 PM   #9
nxny
Member
 
Registered: May 2002
Location: AK - The last frontier.
Distribution: Red Hat 8.0, Slackware 8.1, Knoppix 3.7, Lunar 1.3, Sorcerer
Posts: 771

Rep: Reputation: 30
LQ kicks some.

Quote:
Actually I haven't tryed to compile apm as a part of the kernel... Well, tomorrow I may try to do this... I also remember that a friend of mine have told me that he had tryed to use apm and even had tryed to compile it as a part of the kernel, but he haven't told me why he hadn't succeeded...
The APM drivers are part of the kernel. Do you mean you haven't tried to build it into your kernel ( instead of building and insmod-ing apm.o)?

Here's what I have under the source dir of my running kernel.

/usr/src/linux-2.4.20/include/linux/apm_bios.h
/usr/src/linux-2.4.20/include/config/apm.h
/usr/src/linux-2.4.20/include/config/apm
/usr/src/linux-2.4.20/drivers/macintosh/apm_emu.c
/usr/src/linux-2.4.20/arch/i386/kernel/apm.c
/usr/src/linux-2.4.20/arch/i386/kernel/apm.o

I would suggest turning symbol versioning ( CONFIG_MODVERSIONS, I think ) off and recompiling.
 
Old 08-07-2003, 12:13 AM   #10
valo
Member
 
Registered: Aug 2003
Location: Bulgaria, Varna
Distribution: Slackware
Posts: 33

Rep: Reputation: 15
Quote:
Originally posted by nxny
The APM drivers are part of the kernel. Do you mean you haven't tried to build it into your kernel ( instead of building and insmod-ing apm.o)?
Yes that's what I mean

Quote:
Here's what I have under the source dir of my running kernel.

/usr/src/linux-2.4.20/include/linux/apm_bios.h
/usr/src/linux-2.4.20/include/config/apm.h
/usr/src/linux-2.4.20/include/config/apm
/usr/src/linux-2.4.20/drivers/macintosh/apm_emu.c
/usr/src/linux-2.4.20/arch/i386/kernel/apm.c
/usr/src/linux-2.4.20/arch/i386/kernel/apm.o
Well, I have absolutely the same files, except /usr/src/linux-2.4.20/arch/i386/kernel/apm.o, because I have done make clean...

Quote:
I would suggest turning symbol versioning ( CONFIG_MODVERSIONS, I think ) off and recompiling. [/B]
Hmmm, I must read about this... When I return at home this afternoon I will try this. 10x
 
Old 08-07-2003, 12:16 AM   #11
valo
Member
 
Registered: Aug 2003
Location: Bulgaria, Varna
Distribution: Slackware
Posts: 33

Rep: Reputation: 15
I checked my configuration and this feature is turned off, I could try turning it on
 
Old 08-07-2003, 08:05 AM   #12
valo
Member
 
Registered: Aug 2003
Location: Bulgaria, Varna
Distribution: Slackware
Posts: 33

Rep: Reputation: 15
stupidity have no days off

How stupid I am!!!!!!!! I fixed it!
I tryed to compile a newer kernel - 2.4.21, but when I rebooted kernel said that it's version is 2.4.20 and then I realized that make install, doesn't copy the new kernel image in /boot. Actually, now I see that this is very logical, because otherwise the previous image could be deleted. OK, I configured it and everything is working now

nxny, I hope I haven't wasted your time, I feel really stupid...
 
Old 08-07-2003, 11:22 AM   #13
nxny
Member
 
Registered: May 2002
Location: AK - The last frontier.
Distribution: Red Hat 8.0, Slackware 8.1, Knoppix 3.7, Lunar 1.3, Sorcerer
Posts: 771

Rep: Reputation: 30
Good to know you fixed it yourself. No problem.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
New motherboard and video card, new power managment problems Berto Linux - Software 4 01-22-2005 05:45 PM
Power Managment on Thinkpad spotslayer SUSE / openSUSE 2 11-25-2004 07:03 PM
Power off problem with apm Rajahuroman Linux - Hardware 1 11-03-2004 09:29 AM
APM ACPI and power down donavan01 Linux - Laptop and Netbook 5 08-09-2004 01:03 PM
Power managment. Lee_B_H Linux - Newbie 6 12-04-2003 10:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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