Cant disable in-built display - POP OS 22.04

HumblePie

New Member
Joined
Apr 13, 2024
Messages
8
Reaction score
6
Credits
80
Hi all

I am having a strange issue with my Lenovo Legion Slim 5 (gen 8 AMD) that I have installed POP OS 22.04 on.

I have connected my external monitor to the laptop via HDMI to USB-C cable and I would like to use the external monitor as my primary display while disabling the in-built laptop display.

When i try to do his via the display manager or via xrandr, both screens go black (kind of flicker) however they both come back on including the in-built display and my settings on the external monitor reset (e.g 200% scale).

I'm wondering what is preventing it from keeping the in-built display off?

Let me know if you need more info on my system specs, I forgot the command to retrieve the required info..

Thanks
 


G'day @HumblePie and welcome to linux.org :)

I may not be able to help you, myself, but I'll ask a couple of questions which may help our helpers to help you.

1.
Let me know if you need more info on my system specs, I forgot the command to retrieve the required info..

Code:
inxi -Fxxxz

If inxi is not installed

Code:
sudo apt -y install inxi

then repeat the earlier command.

If you can give that to us in Code fields it's better.

dHWsUJl.png


2. If you likewise give us the output from

Code:
xrandr --query

that will help with identifying the monitor.

There should also be a GUI option is Settings - Display that should show both and allow switching one off.

Chris Turner
wizardfromoz
 
xrandr for the win, yes, thats what I would use as well.
 
G'day @HumblePie and welcome to linux.org :)

I may not be able to help you, myself, but I'll ask a couple of questions which may help our helpers to help you.

1.


Code:
inxi -Fxxxz

If inxi is not installed

Code:
sudo apt -y install inxi

then repeat the earlier command.

If you can give that to us in Code fields it's better.

dHWsUJl.png


2. If you likewise give us the output from

Code:
xrandr --query

that will help with identifying the monitor.

There should also be a GUI option is Settings - Display that should show both and allow switching one off.

Chris Turner
wizardfromoz
Thanks for the welcome

sure let me give you that. But I can just make a correction to the above
So now it is working (the in-built display is off and I just have the monitor on) , however this is what happens everytime:
1. Turn Laptop on
2. unencrypt drive
3. Login (login window only appears on in-built display, nothing on monitor
4. I log in and everything is black.
5. I pull out by HDMI to USB-C connected to the laptop
6. Laptop screen works (so my guess is its turning off as I instructed it to, but my monitor display is not showing)
7. I do a restart and put the HDMI to USB-C back in
8. Now everything is working as expected

This happens every time, not sure why, its like its not saving the monitor configuration initially, but then it gets it after I reboot?

Anyway

Here is inxi output
Bash:
System:
  Kernel: 6.8.0-76060800daily20240311-generic x86_64 bits: 64 compiler: N/A
    Desktop: GNOME 42.5 tk: GTK 3.24.33 wm: gnome-shell dm: GDM3 42.0
    Distro: Pop!_OS 22.04 LTS base: Ubuntu 22.04 LTS Jammy
Machine:
  Type: Laptop System: LENOVO product: 82Y5 v: Legion Slim 5 14APH8
    serial: <superuser required> Chassis: type: 10 v: Legion Slim 5 14APH8
    serial: <superuser required>
  Mobo: LENOVO model: LNVNB161216 v: SDK0T76461 WIN
    serial: <superuser required> UEFI: LENOVO v: MACN23WW date: 08/18/2023
Battery:
  ID-1: BAT0 charge: 72.5 Wh (97.1%) condition: 74.7/73.6 Wh (101.5%)
    volts: 17.5 min: 15.5 model: SMP L22M4PA2 type: Li-poly serial: <filter>
    status: Not charging cycles: 4
  Device-1: hidpp_battery_0 model: Logitech Wireless Keyboard K540/K545
    serial: <filter> charge: 100% (should be ignored) rechargeable: yes
    status: Discharging
  Device-2: hidpp_battery_1 model: Logitech Wireless Mouse M510
    serial: <filter> charge: 55% (should be ignored) rechargeable: yes
    status: Discharging
CPU:
  Info: 8-core model: AMD Ryzen 7 7840HS with Radeon 780M Graphics bits: 64
    type: MT MCP smt: enabled arch: Zen 3 rev: 1 cache: L1: 512 KiB L2: 8 MiB
    L3: 16 MiB
  Speed (MHz): avg: 688 high: 5023
    min/max: 400/5137:6080:5449:5293:5608:5924:5764 cores: 1: 400 2: 400 3: 400
    4: 400 5: 400 6: 400 7: 5023 8: 400 9: 400 10: 400 11: 400 12: 400
    13: 400 14: 400 15: 400 16: 400 bogomips: 121361
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
Graphics:
  Device-1: NVIDIA vendor: Lenovo driver: nvidia v: 550.67 pcie:
    speed: 5 GT/s lanes: 8 ports: active: none off: eDP-1 empty: DP-1,HDMI-A-1
    bus-ID: 01:00.0 chip-ID: 10de:28a0 class-ID: 0300
  Device-2: AMD vendor: Lenovo driver: amdgpu v: kernel pcie:
    speed: 16 GT/s lanes: 16 ports: active: DP-2
    empty: DP-3, DP-4, DP-5, DP-6, Writeback-1 bus-ID: 05:00.0
    chip-ID: 1002:15bf class-ID: 0300
  Device-3: Chicony Integrated Camera type: USB driver: uvcvideo
    bus-ID: 1-3:3 chip-ID: 04f2:b7b6 class-ID: fe01 serial: <filter>
  Display: x11 server: X.Org v: 1.21.1.4 compositor: gnome-shell driver: X:
    loaded: amdgpu,ati,modesetting,nouveau,nvidia,radeon unloaded: fbdev,vesa
    gpu: amdgpu display-ID: :1 screens: 1
  Screen-1: 0 s-res: 3840x5760 s-dpi: 171 s-size: 572x1016mm (22.5x40.0")
    s-diag: 1166mm (45.9")
  Monitor-1: DisplayPort-1-1 mapped: DP-2 model: Gigabyte M32U
    serial: <filter> res: 3840x2160 hz: 60 dpi: 140
    size: 697x392mm (27.4x15.4") diag: 800mm (31.5") modes: max: 3840x2160
    min: 720x400
  OpenGL: renderer: NVIDIA GeForce RTX 4060 Laptop GPU/PCIe/SSE2
    v: 4.6.0 NVIDIA 550.67 direct render: Yes
Audio:
  Device-1: NVIDIA driver: snd_hda_intel v: kernel pcie: speed: 16 GT/s
    lanes: 8 bus-ID: 01:00.1 chip-ID: 10de:22be class-ID: 0403
  Device-2: AMD vendor: Lenovo driver: snd_hda_intel v: kernel pcie:
    speed: 16 GT/s lanes: 16 bus-ID: 05:00.1 chip-ID: 1002:1640 class-ID: 0403
  Device-3: AMD Raven/Raven2/FireFlight/Renoir Audio Processor
    vendor: Lenovo driver: snd_pci_acp6x v: kernel pcie: speed: 16 GT/s
    lanes: 16 bus-ID: 05:00.5 chip-ID: 1022:15e2 class-ID: 0480
  Device-4: AMD Family 17h HD Audio vendor: Lenovo driver: snd_hda_intel
    v: kernel pcie: speed: 16 GT/s lanes: 16 bus-ID: 05:00.6 chip-ID: 1022:15e3
    class-ID: 0403
  Sound Server-1: ALSA v: k6.8.0-76060800daily20240311-generic running: yes
  Sound Server-2: PulseAudio v: 15.99.1 running: no
  Sound Server-3: PipeWire v: 1.0.3 running: yes
Network:
  Device-1: Realtek vendor: Lenovo driver: rtw89_8852ce v: kernel pcie:
    speed: 5 GT/s lanes: 1 port: 2000 bus-ID: 03:00.0 chip-ID: 10ec:c852
    class-ID: 0280
  IF: wlo1 state: up mac: <filter>
Bluetooth:
  Device-1: Realtek Bluetooth Radio type: USB driver: btusb v: 0.8
    bus-ID: 1-5:5 chip-ID: 0bda:5852 class-ID: e001 serial: <filter>
  Report: hciconfig ID: hci0 rfk-id: 2 state: up address: <filter>
Drives:
  Local Storage: total: 953.87 GiB used: 141.55 GiB (14.8%)
  ID-1: /dev/nvme0n1 vendor: SK Hynix model: HFS001TEJ9X115N
    size: 953.87 GiB speed: 63.2 Gb/s lanes: 4 type: SSD serial: <filter>
    rev: 51020A12 temp: 35.9 C scheme: GPT
Partition:
  ID-1: / size: 928.94 GiB used: 138.19 GiB (14.9%) fs: ext4 dev: /dev/dm-1
    mapped: data-root
  ID-2: /boot/efi size: 1020 MiB used: 492.4 MiB (48.3%) fs: vfat
    dev: /dev/nvme0n1p1
Swap:
  ID-1: swap-1 type: partition size: 4 GiB used: 0 KiB (0.0%) priority: -2
    dev: /dev/dm-2 mapped: cryptswap
  ID-2: swap-2 type: zram size: 16 GiB used: 0 KiB (0.0%) priority: 1000
    dev: /dev/zram0
Sensors:
  System Temperatures: cpu: 42.0 C mobo: N/A
  Fan Speeds (RPM): N/A
  GPU: device: nvidia screen: :1.0 temp: 36 C device: amdgpu temp: 34.0 C
    watts: 19.00
Info:
  Processes: 421 Uptime: 2m wakeups: 6 Memory: 30.54 GiB
  used: 4.48 GiB (14.7%) Init: systemd v: 249 runlevel: 5 Compilers:
  gcc: 11.4.0 alt: 11/12 Packages: 1906 apt: 1882 flatpak: 24 Shell: Bash
  v: 5.1.16 running-in: gnome-terminal inxi: 3.3.13

and here is xrandr
Bash:
Screen 0: minimum 8 x 8, current 3840 x 5760, maximum 32767 x 32767
DP-0 disconnected (normal left inverted right x axis y axis)
DP-1 disconnected (normal left inverted right x axis y axis)
HDMI-0 disconnected (normal left inverted right x axis y axis)
DP-2 connected (normal left inverted right x axis y axis)
   2880x1800    120.00 +  60.00 
None-6-1 connected (normal left inverted right x axis y axis)
   2880x1800     60.00 +
DVI-I-5-4 disconnected (normal left inverted right x axis y axis)
DVI-I-4-3 disconnected (normal left inverted right x axis y axis)
DVI-I-3-2 disconnected (normal left inverted right x axis y axis)
DVI-I-2-1 disconnected (normal left inverted right x axis y axis)
DisplayPort-1-1 connected primary 3840x2160+0+3600 (normal left inverted right x axis y axis) 697mm x 392mm
   3840x2160     60.00*+  60.00    50.00    59.94    30.00    25.00    24.00    29.97    23.98 
   2560x1440    120.00    59.95 
   1920x1080    120.04   144.00   120.00   100.00   119.88    60.00    60.00    50.00    59.94    24.00    23.98 
   1680x1050     59.88 
   1280x1024     75.02    60.02 
   1440x900      59.90 
   1280x960      60.00 
   1152x864      75.00 
   1280x720     120.00   119.88    60.00    50.00    59.94 
   1440x576      50.00 
   1024x768      75.03    70.07    60.00 
   1440x480      60.00    59.94 
   800x600       72.19    75.00    60.32    56.25 
   720x576       50.00 
   720x480       60.00    59.94 
   640x480       75.00    72.81    66.67    60.00    59.94 
   720x400       70.08 
DisplayPort-1-2 disconnected (normal left inverted right x axis y axis)
DisplayPort-1-3 disconnected (normal left inverted right x axis y axis)
DisplayPort-1-4 disconnected (normal left inverted right x axis y axis)
DisplayPort-1-5 disconnected (normal left inverted right x axis y axis)

Any help appreciated, thank you
 
Thanks for the welcome

sure let me give you that. But I can just make a correction to the above
So now it is working (the in-built display is off and I just have the monitor on) , however this is what happens everytime:
1. Turn Laptop on
2. unencrypt drive
3. Login (login window only appears on in-built display, nothing on monitor
4. I log in and everything is black.
5. I pull out by HDMI to USB-C connected to the laptop
6. Laptop screen works (so my guess is its turning off as I instructed it to, but my monitor display is not showing)
7. I do a restart and put the HDMI to USB-C back in
8. Now everything is working as expected

This happens every time, not sure why, its like its not saving the monitor configuration initially, but then it gets it after I reboot?

Anyway

Here is inxi output
Bash:
System:
  Kernel: 6.8.0-76060800daily20240311-generic x86_64 bits: 64 compiler: N/A
    Desktop: GNOME 42.5 tk: GTK 3.24.33 wm: gnome-shell dm: GDM3 42.0
    Distro: Pop!_OS 22.04 LTS base: Ubuntu 22.04 LTS Jammy
Machine:
  Type: Laptop System: LENOVO product: 82Y5 v: Legion Slim 5 14APH8
    serial: <superuser required> Chassis: type: 10 v: Legion Slim 5 14APH8
    serial: <superuser required>
  Mobo: LENOVO model: LNVNB161216 v: SDK0T76461 WIN
    serial: <superuser required> UEFI: LENOVO v: MACN23WW date: 08/18/2023
Battery:
  ID-1: BAT0 charge: 72.5 Wh (97.1%) condition: 74.7/73.6 Wh (101.5%)
    volts: 17.5 min: 15.5 model: SMP L22M4PA2 type: Li-poly serial: <filter>
    status: Not charging cycles: 4
  Device-1: hidpp_battery_0 model: Logitech Wireless Keyboard K540/K545
    serial: <filter> charge: 100% (should be ignored) rechargeable: yes
    status: Discharging
  Device-2: hidpp_battery_1 model: Logitech Wireless Mouse M510
    serial: <filter> charge: 55% (should be ignored) rechargeable: yes
    status: Discharging
CPU:
  Info: 8-core model: AMD Ryzen 7 7840HS with Radeon 780M Graphics bits: 64
    type: MT MCP smt: enabled arch: Zen 3 rev: 1 cache: L1: 512 KiB L2: 8 MiB
    L3: 16 MiB
  Speed (MHz): avg: 688 high: 5023
    min/max: 400/5137:6080:5449:5293:5608:5924:5764 cores: 1: 400 2: 400 3: 400
    4: 400 5: 400 6: 400 7: 5023 8: 400 9: 400 10: 400 11: 400 12: 400
    13: 400 14: 400 15: 400 16: 400 bogomips: 121361
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
Graphics:
  Device-1: NVIDIA vendor: Lenovo driver: nvidia v: 550.67 pcie:
    speed: 5 GT/s lanes: 8 ports: active: none off: eDP-1 empty: DP-1,HDMI-A-1
    bus-ID: 01:00.0 chip-ID: 10de:28a0 class-ID: 0300
  Device-2: AMD vendor: Lenovo driver: amdgpu v: kernel pcie:
    speed: 16 GT/s lanes: 16 ports: active: DP-2
    empty: DP-3, DP-4, DP-5, DP-6, Writeback-1 bus-ID: 05:00.0
    chip-ID: 1002:15bf class-ID: 0300
  Device-3: Chicony Integrated Camera type: USB driver: uvcvideo
    bus-ID: 1-3:3 chip-ID: 04f2:b7b6 class-ID: fe01 serial: <filter>
  Display: x11 server: X.Org v: 1.21.1.4 compositor: gnome-shell driver: X:
    loaded: amdgpu,ati,modesetting,nouveau,nvidia,radeon unloaded: fbdev,vesa
    gpu: amdgpu display-ID: :1 screens: 1
  Screen-1: 0 s-res: 3840x5760 s-dpi: 171 s-size: 572x1016mm (22.5x40.0")
    s-diag: 1166mm (45.9")
  Monitor-1: DisplayPort-1-1 mapped: DP-2 model: Gigabyte M32U
    serial: <filter> res: 3840x2160 hz: 60 dpi: 140
    size: 697x392mm (27.4x15.4") diag: 800mm (31.5") modes: max: 3840x2160
    min: 720x400
  OpenGL: renderer: NVIDIA GeForce RTX 4060 Laptop GPU/PCIe/SSE2
    v: 4.6.0 NVIDIA 550.67 direct render: Yes
Audio:
  Device-1: NVIDIA driver: snd_hda_intel v: kernel pcie: speed: 16 GT/s
    lanes: 8 bus-ID: 01:00.1 chip-ID: 10de:22be class-ID: 0403
  Device-2: AMD vendor: Lenovo driver: snd_hda_intel v: kernel pcie:
    speed: 16 GT/s lanes: 16 bus-ID: 05:00.1 chip-ID: 1002:1640 class-ID: 0403
  Device-3: AMD Raven/Raven2/FireFlight/Renoir Audio Processor
    vendor: Lenovo driver: snd_pci_acp6x v: kernel pcie: speed: 16 GT/s
    lanes: 16 bus-ID: 05:00.5 chip-ID: 1022:15e2 class-ID: 0480
  Device-4: AMD Family 17h HD Audio vendor: Lenovo driver: snd_hda_intel
    v: kernel pcie: speed: 16 GT/s lanes: 16 bus-ID: 05:00.6 chip-ID: 1022:15e3
    class-ID: 0403
  Sound Server-1: ALSA v: k6.8.0-76060800daily20240311-generic running: yes
  Sound Server-2: PulseAudio v: 15.99.1 running: no
  Sound Server-3: PipeWire v: 1.0.3 running: yes
Network:
  Device-1: Realtek vendor: Lenovo driver: rtw89_8852ce v: kernel pcie:
    speed: 5 GT/s lanes: 1 port: 2000 bus-ID: 03:00.0 chip-ID: 10ec:c852
    class-ID: 0280
  IF: wlo1 state: up mac: <filter>
Bluetooth:
  Device-1: Realtek Bluetooth Radio type: USB driver: btusb v: 0.8
    bus-ID: 1-5:5 chip-ID: 0bda:5852 class-ID: e001 serial: <filter>
  Report: hciconfig ID: hci0 rfk-id: 2 state: up address: <filter>
Drives:
  Local Storage: total: 953.87 GiB used: 141.55 GiB (14.8%)
  ID-1: /dev/nvme0n1 vendor: SK Hynix model: HFS001TEJ9X115N
    size: 953.87 GiB speed: 63.2 Gb/s lanes: 4 type: SSD serial: <filter>
    rev: 51020A12 temp: 35.9 C scheme: GPT
Partition:
  ID-1: / size: 928.94 GiB used: 138.19 GiB (14.9%) fs: ext4 dev: /dev/dm-1
    mapped: data-root
  ID-2: /boot/efi size: 1020 MiB used: 492.4 MiB (48.3%) fs: vfat
    dev: /dev/nvme0n1p1
Swap:
  ID-1: swap-1 type: partition size: 4 GiB used: 0 KiB (0.0%) priority: -2
    dev: /dev/dm-2 mapped: cryptswap
  ID-2: swap-2 type: zram size: 16 GiB used: 0 KiB (0.0%) priority: 1000
    dev: /dev/zram0
Sensors:
  System Temperatures: cpu: 42.0 C mobo: N/A
  Fan Speeds (RPM): N/A
  GPU: device: nvidia screen: :1.0 temp: 36 C device: amdgpu temp: 34.0 C
    watts: 19.00
Info:
  Processes: 421 Uptime: 2m wakeups: 6 Memory: 30.54 GiB
  used: 4.48 GiB (14.7%) Init: systemd v: 249 runlevel: 5 Compilers:
  gcc: 11.4.0 alt: 11/12 Packages: 1906 apt: 1882 flatpak: 24 Shell: Bash
  v: 5.1.16 running-in: gnome-terminal inxi: 3.3.13

and here is xrandr
Bash:
Screen 0: minimum 8 x 8, current 3840 x 5760, maximum 32767 x 32767
DP-0 disconnected (normal left inverted right x axis y axis)
DP-1 disconnected (normal left inverted right x axis y axis)
HDMI-0 disconnected (normal left inverted right x axis y axis)
DP-2 connected (normal left inverted right x axis y axis)
   2880x1800    120.00 +  60.00
None-6-1 connected (normal left inverted right x axis y axis)
   2880x1800     60.00 +
DVI-I-5-4 disconnected (normal left inverted right x axis y axis)
DVI-I-4-3 disconnected (normal left inverted right x axis y axis)
DVI-I-3-2 disconnected (normal left inverted right x axis y axis)
DVI-I-2-1 disconnected (normal left inverted right x axis y axis)
DisplayPort-1-1 connected primary 3840x2160+0+3600 (normal left inverted right x axis y axis) 697mm x 392mm
   3840x2160     60.00*+  60.00    50.00    59.94    30.00    25.00    24.00    29.97    23.98
   2560x1440    120.00    59.95
   1920x1080    120.04   144.00   120.00   100.00   119.88    60.00    60.00    50.00    59.94    24.00    23.98
   1680x1050     59.88
   1280x1024     75.02    60.02
   1440x900      59.90
   1280x960      60.00
   1152x864      75.00
   1280x720     120.00   119.88    60.00    50.00    59.94
   1440x576      50.00
   1024x768      75.03    70.07    60.00
   1440x480      60.00    59.94
   800x600       72.19    75.00    60.32    56.25
   720x576       50.00
   720x480       60.00    59.94
   640x480       75.00    72.81    66.67    60.00    59.94
   720x400       70.08
DisplayPort-1-2 disconnected (normal left inverted right x axis y axis)
DisplayPort-1-3 disconnected (normal left inverted right x axis y axis)
DisplayPort-1-4 disconnected (normal left inverted right x axis y axis)
DisplayPort-1-5 disconnected (normal left inverted right x axis y axis)

Any help appreciated, thank you


Ok so one thing ive noticed, I dont know if this is affecting anything

but its saying my Primary display is connected via DP, which is not the case. Ive got a HDMI to usb-C running to the laptop.

Now I did previously try a DELL docking station, but I was having issues with it, it was connected by Displayport to the monitor and then I went USB-C from the docking station to the laptop.


Wondering if it still thinks I am using that configuration and hence its causing an issue?
 
I'm wondering what is preventing it from keeping the in-built display off?
I don't know about "keeping" that display off.... seems that could become a problem of its own with a laptop! But using your F7 key might work to turn off the in-built display as needed. You may need to use Fn+F7. The F7 key was found searching for your laptop keyboard, but it could be another key. Most laptops have this function.
function-montior.jpg


but its saying my Primary display is connected via DP, which is not the case. Ive got a HDMI to usb-C running to the laptop.
You may be onto something... hard to control something properly if you can't identify it properly. Like @wizardfromoz, I can't be of much help myself as I don't use external displays or Pop_OS, but I wanted to remind you of the keyboard Function key properties.

And get the outputs that wizard asked for... inxi is always a good starting point to troubleshoot any problem.

Pop_OS sometimes has trouble with non-System76 hardware too, so checking out another distro may move you along quicker, if you're open to that idea. Good luck!
 
Last edited:
Personally - if that was me - I wouldn't bother TRYING to disable it, and would take the "lateral" approach. I'd just close the laptop lid down (just short of closed; we don't want to suspend the lappie, or put it to sleep), and use a wireless keyboard (of which I've got 4 or 5).......so that the laptop becomes like a PC tower (it's just there, powering everything, and that blank display would start to annoy me after a while), and you use the separate keyboard along with a mouse (must have dozens of these) and that external monitor.

I daresay it's not the approach the OP would like......but it saves messing about with X.org config files (which frighten me, if I'm perfectly honest!), and it's the 'easier' approach. And as everybody here knows, I'm ALL for making life "easy".....


Mike. :)
 
Last edited:
Ok its very strange

Fn + F7 just resets the monitors and doesnt turn the in-built one off

Closing the laptop lid does turn off the external display.. annoyingly the external monitor does reset as well though. I'm wondering when I am gaming as well, does closing the lid make the system hotter?

Anyway, I think there is clearly something with either it not liking the Nvidia GPU or some sort of hardware.. or maybe the docking station I tried to use initially messed up some setting.

That being said, I guess its not the worst thing ever, I can deal with unplugging replugging in a wire. I do like POP OS and it may not even be distribution specific. Maybe I will try to live boot some other distro and see if I get the same issue.

Thanks everyone
 

Members online


Latest posts

Top