Re: best way to handle LEDs

From: Pavel Machek (pavel_at_suse.cz)
Date: 11/02/05

  • Next message: Lennart Sorensen: "Re: No sharing IRQ broken board problem"
    Date:	Wed, 2 Nov 2005 22:11:46 +0100
    To: Richard Purdie <rpurdie@rpsys.net>
    
    

    Hi!

    > > Perhaps I'd keep it simple and leave it at
    > >
    > > * do hardcoded kernel action for this led
    > >
    > > or
    > >
    > > * do whatever userspace tells you.
    > >
    > > That way you will not be able to remap charger LED onto hard disk
    > > indicator, but we can support that on ibm-acpi too. (Where hw controls
    > > LEDs like "sleep", but lets you control them. You can't remap,
    > > though).
    >
    > Then the arguments start about which function should be hardcoded to
    > which leds and why can't userspace access these triggers?

    Because there are some machines (IBM thinkpad) where LEDs are either
    driven by userspace, or driven by hardware. I'd like to export that
    functionality using same interface.

    > I'd prefer a totally flexible system and it doesn't really add much
    > complexity once you have a trigger framework which we're going to need
    > to handle mutiple led trigger sources sanely anyway.

    Unfortunately hardware can not do that, at least for IBM
    thinkpad. Plus, remapping harddisk indicator on battery led is not
    something I'd like to support :-).

                                                                    Pavel

    -- 
    Thanks, Sharp!
    -
    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/
    

  • Next message: Lennart Sorensen: "Re: No sharing IRQ broken board problem"

    Relevant Pages

    • Re: [PATCH] Create new LED trigger for CPU activity
      ... This patch creates a new LED trigger that triggers whenever the CPU is ... This allows LEDs to be controlled by IDE disk activity. ... config LEDS_TRIGGER_HEARTBEAT ...
      (Linux-Kernel)
    • Re: [PATCH] input: extend EV_LED
      ... hardware can do, especially when that means bothering the EC with a slow ... (e.g. it is all a ThinkPad and most WiFi/network card leds need). ... the LED so what we need is an LED blink trigger. ... could use to turn on the "hardware acceleration" if present and capable ...
      (Linux-Kernel)
    • [PATCH 0/12] LED Class, Triggers and Drivers
      ... minor issues like the error cases in the timer trigger were also fixed. ... I've included a modified ide-disk trigger at the end of the series along ... LED device driver for locomo LEDs ...
      (Linux-Kernel)
    • Re: PATCH: Create new LED trigger for CPU activity (ledtrig-cpu) (UPDATED)
      ... Andrew Morton replied to my email. ... I noticed that there's a Heartbeat LED trigger in the git version. ... waaaaaaaaaaay too many config options. ... This allows LEDs to be controlled by IDE disk activity. ...
      (Linux-Kernel)
    • Re: best way to handle LEDs
      ... >> CPU Load indicator ... >> led triggers would be connected to leds via sysfs. ... >> probably have a number you could echo into an led's trigger attribute. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)