Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
laptop apm problems
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
yoccodog
Guest





PostPosted: Fri Apr 19, 2002 12:48 am    Post subject: laptop apm problems Reply with quote

i recently installed gentoo on my dell inspiron 8100 laptop. i must say that it is the distro that i've been looking for. portage rocks. anyway..

whenever i shut the lid of my laptop, the computer crashes. apm & laptop support are both compiled into the kernel. when i try to emerge or compile apmd from source, i get the same error:

In file included from apmsleep.c:49:
/usr/src/linux/include/asm/spinlock.h: In function `spin_lock':
/usr/src/linux/include/asm/spinlock.h:138: parse error before `LOCK_SECTION_START'
/usr/src/linux/include/asm/spinlock.h: In function `read_lock':
/usr/src/linux/include/asm/spinlock.h:189: parse error before `LOCK_SECTION_START'
/usr/src/linux/include/asm/spinlock.h:189: warning: implicit declaration of function `LOCK_SECTION_START'
/usr/src/linux/include/asm/spinlock.h:189: parse error before string constant
/usr/src/linux/include/asm/spinlock.h: In function `write_lock':
/usr/src/linux/include/asm/spinlock.h:198: parse error before `LOCK_SECTION_START'
/usr/src/linux/include/asm/spinlock.h:198: parse error before string constant
make: *** [apmsleep.o] Error 1

anyone have any idea how to get around this and allow me to install apmd?
OR
anyone have any idea of what i can do to set the laptop suspend/standby/power off settings?

Thanks.
Back to top
fre
n00b
n00b


Joined: 19 Apr 2002
Posts: 9
Location: Belgium

PostPosted: Fri Apr 19, 2002 5:24 pm    Post subject: Reply with quote

Hi, I had the exact same problem. I just removed the references to the problem-generating code, and it seemed to compile. I only use the utils to suspend my notebook and thusfar that worked just perfectly. This was on a Dell Latitude.

Good luck!
Back to top
View user's profile Send private message
dnellans
Guest





PostPosted: Sun Apr 21, 2002 10:35 pm    Post subject: known bug Reply with quote

apmd not compiling is a known bug and is caused by the gentoo patch applied to the kernel, your options are either to stick it out untill its fixed or you can revert to plain 2.4.18 kernel which works, or some other variant of your own. look in bugzilla for more info

dave
Back to top
yoccodog
Guest





PostPosted: Mon Apr 22, 2002 4:04 am    Post subject: Reply with quote

do you think this could be the reason it also crashes when the lid is closed?
Back to top
torkar
Guest





PostPosted: Tue Apr 23, 2002 8:37 am    Post subject: Crashing laptop Reply with quote

I use a Dell L400 and I had the same problem.

I did this:
:arrow: Do not compile the apmd package
:arrow: Compile apm in the kernel as a module
:arrow: Make sure apm is loaded first during start up (modules.autload)
:arrow: The first time want to put the laptop to sleep use the special key on the keyboard (Fn-Esc)
:arrow: After that it works great just to close or open the lid

/Richard
Back to top
clacour
n00b
n00b


Joined: 19 Apr 2002
Posts: 59
Location: Dallas, Tx USA

PostPosted: Fri Apr 26, 2002 7:47 pm    Post subject: Reply with quote

I had similar problems with the apmd compile. Following the suggestion of one of the bug reports, I emerged sys-kernel/linux-sources, version 2.4.19-r1, and it compiled ok.

"apm -s" works fine in KDE. It's worked about 60% of the time in command line mode. Haven't tried the Fn-Suspend key, so I can't comment on that.
Back to top
View user's profile Send private message
yoccodog
Guest





PostPosted: Sat Apr 27, 2002 11:14 pm    Post subject: apm Reply with quote

apm -s works for me too.. but apm -S does not..
putting the computer to sleep is nice if you are taking it places.. but if you want it to process information or just be on over night it is a nuisance to keep the screen open..

as a module... it still crashes when the lid is closed

i have tried the 2.4.18 kernel and this has not worked

at this point i am at a loss for possible solutions.. it worked with redhat.. i may reinstall that.. but portage vs rpm.... no contest.. geez...

:cry:
Back to top
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum