Re: API to turn off the display

From: Stijn Hoop (stijn_at_win.tue.nl)
Date: 01/28/04

  • Next message: Vladimir Kushnir: "Fwd: ATA still broken"
    Date: Wed, 28 Jan 2004 23:23:30 +0100
    To: Taku YAMAMOTO <taku@cent.saitama-u.ac.jp>
    
    
    

    On Thu, Jan 29, 2004 at 06:07:27AM +0900, Taku YAMAMOTO wrote:
    > 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.

    I can compile & kldload this module just fine on a -CURRENT from this morning,
    on a Dell D600 laptop.

    Output from 'sysctl hw.acpi.video' after loading the module:

    hw.acpi.video.crt0.active: 0
    hw.acpi.video.lcd0.active: 0
    hw.acpi.video.out0.active: 0

    Which is not entirely correct because the LCD is certainly on & working :)
    This also is the initial state after a reboot or shutdown.

    When switching to sleep state S1 (by closing the lid) the display is not
    turned off automatically. However, I can switch off the LCD manually by doing

    # sysctl hw.acpi.video.lcd0.active=1
    # sysctl hw.acpi.video.lcd0.active=0

    and I can subsequently restore it by (blindly) typing

    # sysctl hw.acpi.video.lcd0.active=1

    Furthermore, when booted with an external monitor connected (but only then),
    the crt0 part also seems to work. And even although the laptop's shortcut key
    for switching between LCD / CRT seems to disallow having both screens on at
    the same time, I can make that work by toggling the apropriate sysctls, so it
    definitely appears to work! Unfortunately, I cannot test out0 right now.

    Thank you for this driver, I hope this report is of help.

    --Stijn

    -- 
    The very powerful and the very stupid have one thing in common.  Instead of
    altering their views to fit the facts, they alter the facts to fit their views
    ... which can be very uncomfortable if you happen to be one of the facts that
    needs altering.
    		-- Doctor Who, "Face of Evil"
    
    



  • Next message: Vladimir Kushnir: "Fwd: ATA still broken"

    Relevant Pages

    • Re: Dynamic Switching at Runtime.
      ... I have a Hp Ipaq in which after switching the mode using the above code, ... isn't any usb function driver loaded and that's why the code snippet ... driver dll. ... between the client drivers referring to the mdd library? ...
      (microsoft.public.windowsce.embedded)
    • Max realistic efficiency from a HV PWM motor driver
      ... I have a 3 phase PWM motor driver this is generating too much heat. ... This is for a sinusoidal drive so all Mosfets are switching all the time. ...
      (sci.electronics.design)
    • Re: if_ath breaks s3 suspend/resume [Was: ACPI S3 wakeup problem (beeeeeeeeep)]
      ... Now with this sysctl enabled I hear a continuing beep, but the hard drive stays powered down, also the LCD keeps unlit. ... but sometimes I get a hang during bootup shortly after ath0 is brought up. ... For the hang I'm not sure how to reproduce it. ... not a driver problem. ...
      (freebsd-current)
    • Re: [RFT] Intel 3945abg wireless driver (wpi)
      ... locks up. ... I've had it before when switching from tty1 to tty0. ... Great work on the driver so far:D ...
      (freebsd-current)
    • [PATCH] I2C: Kill i2c_client.id (5/5)
      ... * [Sysctl] All sysctl stuff is of course gone (defines, ... existing 2.6 driver for details. ... sysfs file creation. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)