Re: API to turn off the display

From: Taku YAMAMOTO (taku_at_cent.saitama-u.ac.jp)
Date: 01/28/04

  • Next message: Julian Elischer: "Re: API to turn off the display"
    Date: Thu, 29 Jan 2004 06:07:27 +0900
    To: freebsd-current@freebsd.org
    
    

    Greetings,

    On Wed, 28 Jan 2004 13:19:02 -0500
    John Baldwin <jhb@FreeBSD.org> wrote:
    > On Wednesday 28 January 2004 01:11 pm, Scott Lambert wrote:
    > > On Wed, Jan 28, 2004 at 08:32:15AM -0700, M. Warner Losh wrote:
    > > > In message: <20040128045816.Y1089@alpha.siliconlandmark.com>
    > > >
    > > > Andre Guibert de Bruet <andy@siliconlandmark.com> writes:
    > > > : Through functionality provided by the BIOS. A 30-second
    > > > : search through the source would have shown the answer in
    > > > : /usr/src/sys/i386/bios/apm.c:334 with apm_display().
    > > >
    > > > My experience is that turning the display off via apm doesn't work on
    > > > many laptops :-(.
    > >
    > > Is there anything that does; other than closing the lid?
    >
    > Yes, there should be. ACPI has an entire set of methods devoted to manging
    > displays including turning the displays on and off. We just don't support
    > those yet.

    I wrote a driver that handles what John told.

    http://access.cent.saitama-u.ac.jp/~taku/freebsd/acpi_vid-20031013.tar.gz
    MD5 (acpi_vid-20031013.tar.gz) = adbfa6931e505544fb784e00c7b974e7

    This driver uses ACPI video extension to control display switching and
    backlight brightness. So working ACPI is a requisition for this driver.

    Whether it does or does not work depends heavily on how well the BIOS written,
    however, I hope it worth trying.

    Suggestions, working/not-working reports etc are very appreciated.

    Sincerely,
    taku

    -- 
    -|-__    YAMAMOTO, Taku  <taku@cent.saitama-u.ac.jp>
     | __ <
    Post Scriptum: 
    Due to recent instability of our campus network, downloading may fail.
    Please try several times before giving it up if things didn't go well.
    Sorry for inconvinience.
    _______________________________________________
    freebsd-current@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-current
    To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
    

  • Next message: Julian Elischer: "Re: API to turn off the display"

    Relevant Pages

    • Re: 2.6.19 and up to 2.6.20-rc2 Ethernet problems x86_64
      ... If the system fails in ACPI mode, but works in non-ACPI mode, ... Using ACPI for SMP configuration information ... Using IOAPIC for interrupt routing ... Non-volatile memory driver v1.2 ...
      (Linux-Kernel)
    • Need pci=assign-busses for Acer Aspire 9410
      ... Using APIC driver default ... ACPI: Local APIC address 0xfee00000 ... SELinux: Initializing. ... cs: IO port probe 0x6000-0x6fff: clean. ...
      (Linux-Kernel)
    • Re: Fw: ACPI bug causes cd-rom lock-ups (2.6.10-rc2)
      ... ACPI: IRQ9 SCI: Level Trigger. ... PCI: PCI BIOS revision 2.10 entry at 0xfafc0, ... ** driver failed to call pci_enable_device. ... PS/2 Mouse Controller at irq 12 ...
      (Linux-Kernel)
    • APIC broken on VIA VN896
      ... nobody cared" upon bringing up wlan interface (ath5k driver). ... No, wifi doesn't occupy irq11 - usb does, ... not great sleep state for a laptop (otoh acpi reports only c1 and c2). ...
      (Linux-Kernel)
    • Re: 2.6.21-rc4-mm1 and rc5-mm2 - problem with cpuidle routine
      ... No output about not being able to attach, just the driver string and then nothing. ... configuration file and part of /var/log/boot.msg for my working system. ... ACPI: Processor ... cpuidle: driver acpi_idle failed to attach to cpu 0 ...
      (Linux-Kernel)