Turn off laptop screen when the lid is closed

Questions about hardware,drivers and peripherals
Forum rules
Before you post please read how to get help
Post Reply
jonh
Level 1
Level 1
Posts: 4
Joined: Tue Jun 02, 2020 12:53 pm

Turn off laptop screen when the lid is closed

Post by jonh »

Hello. I just installed Linux Mint for the first time and as I was testing everything out, I realized when I connect an external monitor and close my laptop (as I usually work that way), the built in laptop screen stays turned on. So I was able to go into display settings (Monitor Preferences) and select the laptop display and turn it off, but it would be nice for this to happen automatically. When I open the lid both monitors are on and when I close the lid, only the external monitor is on. Is there a way to configure that?

Thanks for your help.

regex10
Level 1
Level 1
Posts: 5
Joined: Tue Jun 02, 2020 1:49 pm

Re: Turn off laptop screen when the lid is closed

Post by regex10 »

Hello. I just installed Linux Mint for the first time and as I was testing everything out, I realized when I connect an external monitor and close my laptop (as I usually work that way), the built in laptop screen stays turned on. So I was able to go into display settings (Monitor Preferences) and select the laptop display and turn it off, but it would be nice for this to happen automatically. When I open the lid both monitors are on and when I close the lid, only the external monitor is on. Is there a way to configure that?

Thanks for your help.
You are confusing. Which screen stays on while the lid of the laptop is closed, the external monitor ?

jonh
Level 1
Level 1
Posts: 4
Joined: Tue Jun 02, 2020 12:53 pm

Re: Turn off laptop screen when the lid is closed

Post by jonh »

Sorry, no the issue I'm having is the laptop screen stays on when it is closed. I'm trying to make it clear, I don't want the computer to go to sleep, as I am still using it, but I want the laptop screen to turn off when its closed.

User avatar
majpooper
Level 6
Level 6
Posts: 1222
Joined: Thu May 09, 2013 1:56 pm
Location: North Carolina, USA

Re: Turn off laptop screen when the lid is closed

Post by majpooper »

jonh wrote:
Wed Jun 10, 2020 11:37 am
Sorry, no the issue I'm having is the laptop screen stays on when it is closed. I'm trying to make it clear, I don't want the computer to go to sleep, as I am still using it, but I want the laptop screen to turn off when its closed.
It would help to know more about your system - provide the output of the terminal command inxi -Fxz.

But I suspect this is a function of the laptop itself. I tested this on two laptops both Lenovos, a T400 and a T430. On both with the power management setting at "Do Nothing" when the lid is closed the screen turns off as the lid is closed.

Code: Select all

System:    Host: T430 Kernel: 5.3.0-46-generic x86_64 bits: 64 compiler: gcc v: 7.5.0 Console: tty 0 
           Distro: Linux Mint 19.3 Tricia base: Ubuntu 18.04 bionic 
Machine:   Type: Laptop System: LENOVO product: 2347DL7 v: ThinkPad T430 serial: <filter> 
           Mobo: LENOVO model: 2347DL7 serial: <filter> UEFI [Legacy]: LENOVO v: G1ET41WW (1.16 ) date: 05/25/2012 

Code: Select all

System:    Host: pihole Kernel: 5.3.0-51-generic x86_64 bits: 64 compiler: gcc v: 7.5.0 Console: tty 0 
           Distro: Linux Mint 19.3 Tricia base: Ubuntu 18.04 bionic 
Machine:   Type: Laptop System: LENOVO product: 7425W18 v: ThinkPad T400 serial: <filter> 
           Mobo: LENOVO model: 7425W18 serial: <filter> BIOS: LENOVO v: 7UET94WW (3.24 ) date: 10/17/2012 

jonh
Level 1
Level 1
Posts: 4
Joined: Tue Jun 02, 2020 12:53 pm

Re: Turn off laptop screen when the lid is closed

Post by jonh »

majpooper wrote:
Wed Jun 10, 2020 12:24 pm
jonh wrote:
Wed Jun 10, 2020 11:37 am
Sorry, no the issue I'm having is the laptop screen stays on when it is closed. I'm trying to make it clear, I don't want the computer to go to sleep, as I am still using it, but I want the laptop screen to turn off when its closed.
It would help to know more about your system - provide the output of the terminal command inxi -Fxz.

But I suspect this is a function of the laptop itself. I tested this on two laptops both Lenovos, a T400 and a T430. On both with the power management setting at "Do Nothing" when the lid is closed the screen turns off as the lid is closed.

Code: Select all

System:    Host: T430 Kernel: 5.3.0-46-generic x86_64 bits: 64 compiler: gcc v: 7.5.0 Console: tty 0 
           Distro: Linux Mint 19.3 Tricia base: Ubuntu 18.04 bionic 
Machine:   Type: Laptop System: LENOVO product: 2347DL7 v: ThinkPad T430 serial: <filter> 
           Mobo: LENOVO model: 2347DL7 serial: <filter> UEFI [Legacy]: LENOVO v: G1ET41WW (1.16 ) date: 05/25/2012 

Code: Select all

System:    Host: pihole Kernel: 5.3.0-51-generic x86_64 bits: 64 compiler: gcc v: 7.5.0 Console: tty 0 
           Distro: Linux Mint 19.3 Tricia base: Ubuntu 18.04 bionic 
Machine:   Type: Laptop System: LENOVO product: 7425W18 v: ThinkPad T400 serial: <filter> 
           Mobo: LENOVO model: 7425W18 serial: <filter> BIOS: LENOVO v: 7UET94WW (3.24 ) date: 10/17/2012 
Thanks majpooper. I can confirm that the same laptop with other OSes installed turns the laptop screen off when the lid is closed.

The output of the inxi -Fxz command:

Code: Select all

System:
  Host: Latitude-7390 Kernel: 5.3.0-53-generic x86_64 bits: 64 
  compiler: gcc v: 7.5.0 Desktop: MATE 1.22.2 Distro: Linux Mint 19.3 Tricia 
  base: Ubuntu 18.04 bionic 
Machine:
  Type: Laptop System: Dell product: Latitude 7390 v: N/A serial: <filter> 
  Mobo: Dell model: 09386V v: A00 serial: <filter> UEFI: Dell v: 1.13.1 
  date: 11/08/2019 
Battery:
  ID-1: BAT0 charge: 45.9 Wh condition: 45.9/60.0 Wh (77%) 
  model: SMP DELL DM3WC64 status: Full 
CPU:
  Topology: Quad Core model: Intel Core i7-8650U bits: 64 type: MT MCP 
  arch: Kaby Lake rev: A L2 cache: 8192 KiB 
  flags: lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 33599 
  Speed: 800 MHz min/max: 400/4200 MHz Core speeds (MHz): 1: 800 2: 800 
  3: 800 4: 800 5: 800 6: 800 7: 800 8: 800 
Graphics:
  Device-1: Intel UHD Graphics 620 vendor: Dell driver: i915 v: kernel 
  bus ID: 00:02.0 
  Display: x11 server: X.Org 1.20.5 driver: modesetting unloaded: fbdev,vesa 
  resolution: 1920x1080~60Hz 
  OpenGL: renderer: Mesa DRI Intel UHD Graphics 620 (Kabylake GT2) 
  v: 4.5 Mesa 19.2.8 direct render: Yes 
Audio:
  Device-1: Intel Sunrise Point-LP HD Audio vendor: Dell 
  driver: snd_hda_intel v: kernel bus ID: 00:1f.3 
  Sound Server: ALSA v: k5.3.0-53-generic 
Network:
  Device-1: Intel Ethernet I219-LM vendor: Dell driver: e1000e v: 3.2.6-k 
  port: f040 bus ID: 00:1f.6 
  IF: enp0s31f6 state: down mac: <filter> 
  Device-2: Intel Wireless 8265 / 8275 driver: iwlwifi v: kernel port: f040 
  bus ID: 02:00.0 
  IF: wlp2s0 state: up mac: <filter> 
  IF-ID-1: docker0 state: down mac: <filter> 
  IF-ID-2: vmnet1 state: unknown speed: N/A duplex: N/A mac: <filter> 
  IF-ID-3: vmnet8 state: unknown speed: N/A duplex: N/A mac: <filter> 
Drives:
  Local Storage: total: 238.47 GiB used: 199.55 GiB (83.7%) 
  ID-1: /dev/sda type: USB vendor: LITE-ON IT 
  model: LCS-256M6S 2.5 7mm 256GB size: 238.47 GiB 
RAID:
  Hardware-1: Intel 82801 Mobile SATA Controller [RAID mode] driver: ahci 
  v: 3.0 bus ID: 00:17.0 
Partition:
  ID-1: / size: 233.23 GiB used: 199.54 GiB (85.6%) fs: ext4 dev: /dev/sda2 
Sensors:
  System Temperatures: cpu: 49.0 C mobo: N/A 
  Fan Speeds (RPM): cpu: 0 
Info:
  Processes: 276 Uptime: 3m Memory: 15.52 GiB used: 1.17 GiB (7.5%) 
  Init: systemd runlevel: 5 Compilers: gcc: 7.5.0 Shell: bash v: 4.4.20 
  inxi: 3.0.32 


User avatar
majpooper
Level 6
Level 6
Posts: 1222
Joined: Thu May 09, 2013 1:56 pm
Location: North Carolina, USA

Re: Turn off laptop screen when the lid is closed

Post by majpooper »

What are your settings in Power Management ?

Post Reply

Return to “Hardware Support”