lkml.org 
[lkml]   [2006]   [Feb]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH, RFC] [1/3] Generic in-kernel AC status
    Pavel Machek wrote:
    > On Pá 10-02-06 09:06:43, Stefan Seyfried wrote:
    >> On Wed, Feb 08, 2006 at 12:57:53PM +0000, Matthew Garrett wrote:
    >>> The included patch adds support for power management methods to register
    >>> callbacks in order to allow drivers to check if the system is on AC or
    >>> not. Following patches add support to ACPI and APM. Feedback welcome.
    >> Ok. Maybe i am not seeing the point. But why do we need this in the kernel?
    >> Can't we handles this easily in userspace?
    >
    > Some kernel parts need to now: for example powernow-k8: some
    > frequencies are not allowed when you are running off battery. [Just
    > now it is solved by not allowing those frequencies at all unless ACPI
    > is available; quite an ugly solution.]
    >
    Allowed CPUfreqs are exported via _PPC.
    This is why a lot hardware sends an ac_adapter and a processor event
    when (un)plugging ac adapter.
    Limiting cpufreq already works nice that way.

    AMD64 laptops are booting with lower freqs per default until they are
    pushed up, so there shouldn't be anything critical?

    For the brightness part, I don't see any "laptop is going to explode"
    issue.
    I always hated the brightness going down when I unplugged ac on M$
    and had to push ten times the brightness "up button" before I could
    go on working...

    Shouldn't it be:


    ac Event ---> userspace <--- user config
    |
    |
    brightness <-------|

    Whether the ac brightness will be set when going to ac, or
    whatever brightness, should be configurable in userspace IMO.
    This is a one liner in the acpid config?

    However, I also like the general /sys/../brightness file very much!


    Thomas
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2006-02-14 18:47    [W:2.426 / U:0.012 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site