Project

General

Profile

Feature #815

Disable Laptop Screen From Going Blank When Lid Closes on FreeBSD

Added by Daniel Curtis over 8 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Workstation
Target version:
Start date:
05/24/2016
Due date:
% Done:

100%

Estimated time:
0.50 h
Spent time:

Description

This is a guide on how I disabled my laptop screen from going blank when closing the screen lid.

  • Enable the acpi video driver at boot:
    echo 'acpi_video_load="YES"' >> /boot/loader.conf
    
  • Edit the devd config file:
    vi /etc/devd.conf
    
    • Then add the following to the end of the file:
      #Added to fix issue with LCD staying blank after close/re-open.
      #Lid switch
      notify 0 {
              match "system"         "ACPI";
              match "subsystem"      "Lid";
              match "notify"         "0x00";
              action "sysctl hw.acpi.video.lcd0.active=0";
      };
      
      notify 0 {
              match "system"         "ACPI";
              match "subsystem"      "Lid";
              match "notify"         "0x01";
              action "sysctl hw.acpi.video.lcd0.active=1";
      };
      
  • Reboot the system to apply the changes:
    reboot
    

Resources

#1

Updated by Daniel Curtis over 8 years ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 100
#2

Updated by Daniel Curtis over 8 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF