Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Do desktop users need ACPI?
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
Joseph K.
Guru
Guru


Joined: 07 Jun 2006
Posts: 436
Location: Sydney, Australia

PostPosted: Sun Dec 23, 2007 4:59 am    Post subject: Do desktop users need ACPI? Reply with quote

My short question is: can I safely remove ACPI from the kernel (under Power Management) and USE=-acpi?

My main concern is that in the kernel configuration, there is a big warning about disabling Thermal Zones for your processor. Well, I've had it enabled probably for ever, but then today realised that I never added the acpid script to the default runlevel anyway.

The only power-saving feature I'm interested in is DPMS for the monitor, which I assume does not require ACPI.

The nvidia-drivers package has optional support for ACPI: does anyone know what features this provides?

This is mostly of academic interest to me: ACPI is posing no problem for me, I'd just rather remove it if I don't need it. Thanks, cheers.
Back to top
View user's profile Send private message
Monkeh
Veteran
Veteran


Joined: 06 Aug 2005
Posts: 1656
Location: England

PostPosted: Sun Dec 23, 2007 10:35 am    Post subject: Reply with quote

ACPI is much more than just power management. Any modern system pretty much requires it, many won't work at all without it. You do however, only need kernel support. Nothing else needs to care about it.
Back to top
View user's profile Send private message
albright
Advocate
Advocate


Joined: 16 Nov 2003
Posts: 2588
Location: Near Toronto

PostPosted: Sun Dec 23, 2007 2:13 pm    Post subject: Reply with quote

In particular, acpi assigns interrupts ... I know because when I
got too smart and thought I'd just get rid of it, my sata drives
caused an interrupt conflict that prevented booting. Acpi fixed
that right up :)
_________________
.... there is nothing - absolutely nothing - half so much worth
doing as simply messing about with Linux ...
(apologies to Kenneth Graeme)
Back to top
View user's profile Send private message
i92guboj
Bodhisattva
Bodhisattva


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

PostPosted: Sun Dec 23, 2007 2:24 pm    Post subject: Reply with quote

As people say, ACPI is more than just power management.

Things like cpu throttling, hardware monitoring (which in turn can save you some money and prevent damage due to overheat if a fan fails...). Not to speak about my preferred thing: if you don't use acpi and accidentally press the power button, all your filesystems will be trashed, which in turn may mean data loss, of even a completely trashed filesystem. With the acpi daemon running, linux will correctly turn off all the running services and umount all your filesystems, preventing data loss in the way.
Back to top
View user's profile Send private message
Monkeh
Veteran
Veteran


Joined: 06 Aug 2005
Posts: 1656
Location: England

PostPosted: Sun Dec 23, 2007 4:08 pm    Post subject: Reply with quote

i92guboj wrote:
As people say, ACPI is more than just power management.

Things like cpu throttling, hardware monitoring (which in turn can save you some money and prevent damage due to overheat if a fan fails...). Not to speak about my preferred thing: if you don't use acpi and accidentally press the power button, all your filesystems will be trashed, which in turn may mean data loss, of even a completely trashed filesystem. With the acpi daemon running, linux will correctly turn off all the running services and umount all your filesystems, preventing data loss in the way.


By accidentally press, you mean hold down for eight seconds, right? ;)
Back to top
View user's profile Send private message
Simba7
l33t
l33t


Joined: 22 Jan 2007
Posts: 708
Location: Billings, MT, USA

PostPosted: Sun Dec 23, 2007 4:45 pm    Post subject: Reply with quote

Monkeh wrote:
By accidentally press, you mean hold down for eight seconds, right? ;)

You mean four? ;)

But I've bumped into this. Things work ALOT better with ACPI. Without it, things tend to go absolutely nuts. You definitely don't want to disable this on a laptop without it burning up and/or draining your battery in a 1/2 hour.
Back to top
View user's profile Send private message
i92guboj
Bodhisattva
Bodhisattva


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

PostPosted: Sun Dec 23, 2007 4:47 pm    Post subject: Reply with quote

Monkeh wrote:
i92guboj wrote:
As people say, ACPI is more than just power management.

Things like cpu throttling, hardware monitoring (which in turn can save you some money and prevent damage due to overheat if a fan fails...). Not to speak about my preferred thing: if you don't use acpi and accidentally press the power button, all your filesystems will be trashed, which in turn may mean data loss, of even a completely trashed filesystem. With the acpi daemon running, linux will correctly turn off all the running services and umount all your filesystems, preventing data loss in the way.


By accidentally press, you mean hold down for eight seconds, right? ;)


No. I mean accidentally. That depends on a number of factors, depending on both hardware and software. If your OS is not acpi capable, the normal behavior is frequently that: your pc shuts down when you press that button.

What you say (hold the button a number of seconds) is a way to tell the hardware to force the power off, overriding the OS acpi functions. But that is only relevant if the OS is acpi capable. If that is not the case, it just shuts down instantly in most cases.
Back to top
View user's profile Send private message
Cyker
Veteran
Veteran


Joined: 15 Jun 2006
Posts: 1746

PostPosted: Mon Dec 24, 2007 12:43 am    Post subject: Reply with quote

Power button behaviour varies quite wildly and depends on BIOS configuration if ACPI is not being used...
Back to top
View user's profile Send private message
bunder
Bodhisattva
Bodhisattva


Joined: 10 Apr 2004
Posts: 5947

PostPosted: Mon Dec 24, 2007 12:45 am    Post subject: Reply with quote

another thing acpi is good for is turning off / rebooting your pc... if you don't have acpi, the kernel will tell you to manually power off. 8O
_________________
Neddyseagoon wrote:
The problem with leaving is that you can only do it once and it reduces your influence.

banned from #gentoo since sept 2017
Back to top
View user's profile Send private message
Joseph K.
Guru
Guru


Joined: 07 Jun 2006
Posts: 436
Location: Sydney, Australia

PostPosted: Thu Dec 27, 2007 6:47 am    Post subject: Reply with quote

I assume there is some confusion between ACPI and APIC going on here.

I have disabled ACPI and everything works fine, including hardware monitoring and fan control (controlled by the I2C bus). The only convenience that I've lost is that, as bunder mentioned, I have to power-off manually (it still reboots from software). So whilst I think you'd be mad to disable ACPI on a laptop, I'm not convinced that it offers desktop users anything really useful.
Back to top
View user's profile Send private message
Monkeh
Veteran
Veteran


Joined: 06 Aug 2005
Posts: 1656
Location: England

PostPosted: Thu Dec 27, 2007 9:29 am    Post subject: Reply with quote

Joseph K. wrote:
I assume there is some confusion between ACPI and APIC going on here.

I have disabled ACPI and everything works fine, including hardware monitoring and fan control (controlled by the I2C bus). The only convenience that I've lost is that, as bunder mentioned, I have to power-off manually (it still reboots from software). So whilst I think you'd be mad to disable ACPI on a laptop, I'm not convinced that it offers desktop users anything really useful.


How many CPUs do you have?
Back to top
View user's profile Send private message
Joseph K.
Guru
Guru


Joined: 07 Jun 2006
Posts: 436
Location: Sydney, Australia

PostPosted: Fri Dec 28, 2007 1:49 am    Post subject: Reply with quote

Monkeh wrote:
How many CPUs do you have?

It's a Core2 Duo.
Back to top
View user's profile Send private message
Cyker
Veteran
Veteran


Joined: 15 Jun 2006
Posts: 1746

PostPosted: Fri Dec 28, 2007 2:26 am    Post subject: Reply with quote

Well, in theory, ACPI things you loose *can* include: lm_sensors, powernow (Speedstep too?) and lots of other powersaving stuff (Some can still be accessed via APM, but it seems a lot of mobos don't support APM now?), APIC support, HPET support, SMP support (If the mobo doesn't support MPS).

Emphasis on the *can* and *in theory*.

Lots of mobos still work with lm_sensors, even without ACPI, although some sensors may go missing or be found in different places.
SMP requires an advanced interrupt handler, so if APIC doesn't work and MPS fallback isn't working then there's the possibility multi-core/socket CPUs systems will only find one CPU.
The main loss is powersaving stuff really, 'tho much of that can still be done via APM, assuming mobo support exists...

Most of this isn't technically necessary for operation of the compy 'tho.
Back to top
View user's profile Send private message
Joseph K.
Guru
Guru


Joined: 07 Jun 2006
Posts: 436
Location: Sydney, Australia

PostPosted: Fri Dec 28, 2007 5:30 am    Post subject: Reply with quote

Cyker wrote:
Well, in theory, ACPI things you loose *can* include: lm_sensors, powernow (Speedstep too?) and lots of other powersaving stuff (Some can still be accessed via APM, but it seems a lot of mobos don't support APM now?), APIC support, HPET support, SMP support (If the mobo doesn't support MPS).

Yeah, now that I've looked at the ACPI specification I can see the references to APIC, HPET, etc. Even some PCI-E stuff. OK, I guess I had the confusion after all. :)

Well, if it does more than power management and is crucial for the operation of some computers, then I think being under PM in the kernel is a little misleading. Maybe something about the importance of it should be in the installation manual or in the Wiki? I only did a cursory scan, but I couldn't find anything that suggests that it's necessary for anything other than PM.
Back to top
View user's profile Send private message
Cyker
Veteran
Veteran


Joined: 15 Jun 2006
Posts: 1746

PostPosted: Fri Dec 28, 2007 12:36 pm    Post subject: Reply with quote

It's probably there for 'historical reasons' (i.e. when ACPI came out it was just a newer buggier version of APM. It's 'evolved' to be more, but has stayed in the same place.)

As for importance, it's very relative.

I still have a pre-ACPI 'board here and that works perfectly well without ACPI support ;)
I even disabled APM too and just relied on the BIOS to spin down the HDs and fans.

But yeah, there is that sort of un-mentioned assumption floating around that you should know to turn it on without actually being told.
Sadly, there's alot of things like that in Linuxland still...
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