Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Slimming The Kernel
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
Rawn027
Apprentice
Apprentice


Joined: 01 Mar 2004
Posts: 286

PostPosted: Wed Jan 25, 2006 11:33 pm    Post subject: Slimming The Kernel Reply with quote

I want to have a really slim kernel, I plan on using my computer half as a workstation and half as a mythtv both front and backend.

Is it possible for me to turn of ACPI and APM? I wont be needing the services they provide.
_________________
AMD Athlon 64 1.8
1GB DDR 400 RAM
Nvidia 6600 GT

MacBook Pro Duo 1.67
1GB DDR2 667 RAM
ATI x1600 Mobility
Back to top
View user's profile Send private message
widan
Veteran
Veteran


Joined: 07 Jun 2005
Posts: 1512
Location: Paris, France

PostPosted: Wed Jan 25, 2006 11:49 pm    Post subject: Re: Slimming The Kernel Reply with quote

Rawn027 wrote:
Is it possible for me to turn of ACPI and APM? I wont be needing the services they provide.

Yes, you can, but why ? Unless you are making a kernel for an embedded system with little RAM and/or flash, kernel size doesn't matter much (and removing ACPI won't reduce the kernel size a lot).
Back to top
View user's profile Send private message
i92guboj
Bodhisattva
Bodhisattva


Joined: 30 Nov 2004
Posts: 10315
Location: Córdoba (Spain)

PostPosted: Wed Jan 25, 2006 11:54 pm    Post subject: Reply with quote

You can turn them on, but remember that acpi is not only a thing to save power by turning off your monitor. If you turn it off you will not be able to directly use the power button to shut down properly (it would just shut off the machine without shutting down the OS) and you will not either be able to shut down from a menu (you will need to press the shut off button when the system halts).

If you are fine with this then just remove the acpi and apm support from your kernel. They are under
Code:

Power management options (ACPI, APM)  --->   
Back to top
View user's profile Send private message
widan
Veteran
Veteran


Joined: 07 Jun 2005
Posts: 1512
Location: Paris, France

PostPosted: Thu Jan 26, 2006 1:11 am    Post subject: Reply with quote

6thpink wrote:
You can turn them on, but remember that acpi is not only a thing to save power by turning off your monitor.

ACPI does not do that (at least usually). DPMS allows the X server to turn off the display, but it's unrelated to ACPI. ACPI can turn off the display though, if it knows how to talk to the graphics card (in fact ACPI can do nearly everything - the DSDT is a program written in a specific language, so it can talk to hardware and do almost anything the developper wants).

Other uses for ACPI are PCI interrupt routing (necessary on some machines, and weird problems can happen on those with it disabled), thermal management (for laptops - a few won't turn on their fans at all without ACPI - oops... and when the fans do run, they do so at full speed, with an annoying noise), CPU frequency scaling, and many other things.

But on most machines you can safely remove it (even if I don't really see why one would want to, unless the DSDT is horribly broken). To want a clean kernel (without unused drivers, ...) is ok, but removing ACPI to gain maybe 50KB on kernel size ...
Back to top
View user's profile Send private message
i92guboj
Bodhisattva
Bodhisattva


Joined: 30 Nov 2004
Posts: 10315
Location: Córdoba (Spain)

PostPosted: Thu Jan 26, 2006 1:27 am    Post subject: Reply with quote

widan wrote:
6thpink wrote:
You can turn them on, but remember that acpi is not only a thing to save power by turning off your monitor.

ACPI does not do that (at least usually). DPMS allows the X server to turn off the display, but it's unrelated to ACPI. ACPI can turn off the display though, if it knows how to talk to the graphics card (in fact ACPI can do nearly everything - the DSDT is a program written in a specific language, so it can talk to hardware and do almost anything the developper wants).

Other uses for ACPI are PCI interrupt routing (necessary on some machines, and weird problems can happen on those with it disabled), thermal management (for laptops - a few won't turn on their fans at all without ACPI - oops... and when the fans do run, they do so at full speed, with an annoying noise), CPU frequency scaling, and many other things.

But on most machines you can safely remove it (even if I don't really see why one would want to, unless the DSDT is horribly broken). To want a clean kernel (without unused drivers, ...) is ok, but removing ACPI to gain maybe 50KB on kernel size ...


Thanks for the info, every single day there is something to learn :)
Back to top
View user's profile Send private message
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