Skip to content
  • Lv Zheng's avatar
    Revert "ACPI / button: Remove lid_init_state=method mode" · f369fdf4
    Lv Zheng authored
    This reverts commit ecb10b69.
    
    The only expected ACPI control method lid device's usage model is
    
     1. Listen to the lid notification,
     2. Evaluate _LID after being notified by BIOS,
     3. Suspend the system (if users configure to do so) after seeing "close".
    
    It's not ensured that BIOS will notify OS after boot/resume, and
    it's not ensured that BIOS will always generate "open" event upon
    opening the lid.
    
    But there are 2 wrong usage models:
    
     1. When the lid device is responsible for suspend/resume the system,
        userspace requires to see "open" event to be paired with "close" after
        the system is resumed, or it will suspend the system again.
    
     2. When an external monitor connects to the laptop attached docks,
        userspace requires to see "close" event after the system is resumed so
        that it can determine whether the internal display should remain dark
        and the external display should be lit on.
    
    After we ma...
    f369fdf4