Skip to main content
Topic solved
This topic has been marked as solved and requires no further attention.
Topic: Closing the lid causes the screen go black and never recovers (Read 1010 times) previous topic - next topic
0 Members and 2 Guests are viewing this topic.

Closing the lid causes the screen go black and never recovers

I'm using a Lenovo ThinkPad Yoga 14 (20DM000VUS) laptop and running OpenRC, and whenever I need to get off the computer I close the lid, which actually suspends it, which is good, in fact it even does it when using a window manager or even when the x server isn't running, Arch didn't do that, but the problem is, when I come back and open the lid, for a second I get a cursor in the corner like when you're on the console and then it disappears and the screen continues to stay black and if I close the lid again it doesn't suspend, it stays in that state no matter how many times I close it and open it. I remember Arch usually was not able to suspend the laptop when I wasn't running a DE, it never suspended when I was on the console or on a WM, but when it did, It came right back. Also, it does this even when I'm running a DE, any idea how to fix this?

Let me know if I need to provide any other info and how to provide them, cause I'm not very experienced in this kind stuff


Re: Closing the lid causes the screen go black and never recovers

Reply #2
sorry about that, and thanks for letting me know. Here is my lspci -v output:
Code: [Select]
00:00.0 Host bridge: Intel Corporation Haswell-ULT DRAM Controller (rev 0b)
Subsystem: Lenovo Device 5043
Flags: bus master, fast devsel, latency 0
Capabilities: [e0] Vendor Specific Information: Len=0c <?>
Kernel driver in use: hsw_uncore

00:02.0 VGA compatible controller: Intel Corporation Haswell-ULT Integrated Graphics Controller (rev 0b) (prog-if 00 [VGA controller])
Subsystem: Lenovo Device 5044
Flags: bus master, fast devsel, latency 0, IRQ 50
Memory at f1000000 (64-bit, non-prefetchable) [size=4M]
Memory at e0000000 (64-bit, prefetchable) [size=256M]
I/O ports at 5000 [size=64]
Expansion ROM at 000c0000 [virtual] [disabled] [size=128K]
Capabilities: [90] MSI: Enable+ Count=1/1 Maskable- 64bit-
Capabilities: [d0] Power Management version 2
Capabilities: [a4] PCI Advanced Features
Kernel driver in use: i915
Kernel modules: i915

00:03.0 Audio device: Intel Corporation Haswell-ULT HD Audio Controller (rev 0b)
Subsystem: Lenovo Device 5043
Flags: bus master, fast devsel, latency 0, IRQ 51
Memory at f2610000 (64-bit, non-prefetchable) [size=16K]
Capabilities: [50] Power Management version 2
Capabilities: [60] MSI: Enable+ Count=1/1 Maskable- 64bit-
Capabilities: [70] Express Root Complex Integrated Endpoint, MSI 00
Kernel driver in use: snd_hda_intel
Kernel modules: snd_hda_intel

00:14.0 USB controller: Intel Corporation 8 Series USB xHCI HC (rev 04) (prog-if 30 [XHCI])
Subsystem: Lenovo Device 5043
Flags: bus master, medium devsel, latency 0, IRQ 45
Memory at f2600000 (64-bit, non-prefetchable) [size=64K]
Capabilities: [70] Power Management version 2
Capabilities: [80] MSI: Enable+ Count=1/8 Maskable- 64bit+
Kernel driver in use: xhci_hcd
Kernel modules: xhci_pci

00:16.0 Communication controller: Intel Corporation 8 Series HECI #0 (rev 04)
Subsystem: Lenovo Device 5043
Flags: bus master, fast devsel, latency 0, IRQ 47
Memory at f2619000 (64-bit, non-prefetchable) [size=32]
Capabilities: [50] Power Management version 3
Capabilities: [8c] MSI: Enable+ Count=1/1 Maskable- 64bit+
Kernel driver in use: mei_me
Kernel modules: mei_me

00:1b.0 Audio device: Intel Corporation 8 Series HD Audio Controller (rev 04)
Subsystem: Lenovo Device 5043
Flags: bus master, fast devsel, latency 0, IRQ 49
Memory at f2614000 (64-bit, non-prefetchable) [size=16K]
Capabilities: [50] Power Management version 3
Capabilities: [60] MSI: Enable+ Count=1/1 Maskable- 64bit+
Capabilities: [70] Express Root Complex Integrated Endpoint, MSI 00
Capabilities: [100] Virtual Channel
Kernel driver in use: snd_hda_intel
Kernel modules: snd_hda_intel

00:1c.0 PCI bridge: Intel Corporation 8 Series PCI Express Root Port 1 (rev e4) (prog-if 00 [Normal decode])
Flags: bus master, fast devsel, latency 0, IRQ 40
Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
I/O behind bridge: [disabled]
Memory behind bridge: [disabled]
Prefetchable memory behind bridge: [disabled]
Capabilities: [40] Express Root Port (Slot-), MSI 00
Capabilities: [80] MSI: Enable+ Count=1/1 Maskable- 64bit-
Capabilities: [90] Subsystem: Lenovo Device 5043
Capabilities: [a0] Power Management version 3
Kernel driver in use: pcieport

00:1c.2 PCI bridge: Intel Corporation 8 Series PCI Express Root Port 3 (rev e4) (prog-if 00 [Normal decode])
Flags: bus master, fast devsel, latency 0, IRQ 41
Bus: primary=00, secondary=02, subordinate=02, sec-latency=0
I/O behind bridge: [disabled]
Memory behind bridge: f2500000-f25fffff [size=1M]
Prefetchable memory behind bridge: [disabled]
Capabilities: [40] Express Root Port (Slot+), MSI 00
Capabilities: [80] MSI: Enable+ Count=1/1 Maskable- 64bit-
Capabilities: [90] Subsystem: Lenovo Device 5043
Capabilities: [a0] Power Management version 3
Capabilities: [100] Null
Capabilities: [200] L1 PM Substates
Kernel driver in use: pcieport

00:1c.3 PCI bridge: Intel Corporation 8 Series PCI Express Root Port 4 (rev e4) (prog-if 00 [Normal decode])
Flags: bus master, fast devsel, latency 0, IRQ 42
Bus: primary=00, secondary=03, subordinate=03, sec-latency=0
I/O behind bridge: 00004000-00004fff [size=4K]
Memory behind bridge: f1c00000-f24fffff [size=9M]
Prefetchable memory behind bridge: 00000000f1400000-00000000f1bfffff [size=8M]
Capabilities: [40] Express Root Port (Slot+), MSI 00
Capabilities: [80] MSI: Enable+ Count=1/1 Maskable- 64bit-
Capabilities: [90] Subsystem: Lenovo Device 5043
Capabilities: [a0] Power Management version 3
Capabilities: [100] Null
Capabilities: [200] L1 PM Substates
Kernel driver in use: pcieport

00:1c.4 PCI bridge: Intel Corporation 8 Series PCI Express Root Port 5 (rev e4) (prog-if 00 [Normal decode])
Flags: bus master, fast devsel, latency 0, IRQ 43
Bus: primary=00, secondary=04, subordinate=04, sec-latency=0
I/O behind bridge: 00003000-00003fff [size=4K]
Memory behind bridge: f0000000-f0ffffff [size=16M]
Prefetchable memory behind bridge: 00000000c0000000-00000000d1ffffff [size=288M]
Capabilities: [40] Express Root Port (Slot+), MSI 00
Capabilities: [80] MSI: Enable+ Count=1/1 Maskable- 64bit-
Capabilities: [90] Subsystem: Lenovo Device 5043
Capabilities: [a0] Power Management version 3
Capabilities: [100] Null
Capabilities: [200] L1 PM Substates
Kernel driver in use: pcieport

00:1f.0 ISA bridge: Intel Corporation 8 Series LPC Controller (rev 04)
Subsystem: Lenovo Device 5043
Flags: bus master, medium devsel, latency 0
Capabilities: [e0] Vendor Specific Information: Len=0c <?>
Kernel driver in use: lpc_ich
Kernel modules: lpc_ich

00:1f.2 SATA controller: Intel Corporation 8 Series SATA Controller 1 [AHCI mode] (rev 04) (prog-if 01 [AHCI 1.0])
Subsystem: Lenovo Device 5043
Flags: bus master, 66MHz, medium devsel, latency 0, IRQ 44
I/O ports at 5088 [size=8]
I/O ports at 5094 [size=4]
I/O ports at 5080 [size=8]
I/O ports at 5090 [size=4]
I/O ports at 5060 [size=32]
Memory at f261c000 (32-bit, non-prefetchable) [size=2K]
Capabilities: [80] MSI: Enable+ Count=1/1 Maskable- 64bit-
Capabilities: [70] Power Management version 3
Capabilities: [a8] SATA HBA v1.0
Kernel driver in use: ahci

00:1f.3 SMBus: Intel Corporation 8 Series SMBus Controller (rev 04)
Subsystem: Lenovo Device 5043
Flags: medium devsel, IRQ 18
Memory at f2618000 (64-bit, non-prefetchable) [size=256]
I/O ports at efa0 [size=32]
Kernel driver in use: i801_smbus
Kernel modules: i2c_i801

02:00.0 Network controller: Intel Corporation Wireless 7260 (rev 83)
Subsystem: Intel Corporation Dual Band Wireless-AC 7260
Flags: bus master, fast devsel, latency 0, IRQ 48
Memory at f2500000 (64-bit, non-prefetchable) [size=8K]
Capabilities: [c8] Power Management version 3
Capabilities: [d0] MSI: Enable+ Count=1/1 Maskable- 64bit+
Capabilities: [40] Express Endpoint, MSI 00
Capabilities: [100] Advanced Error Reporting
Capabilities: [140] Device Serial Number 28-b2-bd-ff-ff-e6-4b-f0
Capabilities: [14c] Latency Tolerance Reporting
Capabilities: [154] Vendor Specific Information: ID=cafe Rev=1 Len=014 <?>
Kernel driver in use: iwlwifi
Kernel modules: iwlwifi

03:00.0 SD Host controller: O2 Micro, Inc. Device 8620 (rev 01) (prog-if 01)
Subsystem: Lenovo Device 5041
Flags: bus master, fast devsel, latency 0, IRQ 46
Memory at f1c01000 (32-bit, non-prefetchable) [size=4K]
Memory at f1c00000 (32-bit, non-prefetchable) [size=2K]
Capabilities: [6c] Power Management version 3
Capabilities: [48] MSI: Enable+ Count=1/1 Maskable+ 64bit+
Capabilities: [80] Express Endpoint, MSI 00
Capabilities: [100] Virtual Channel
Capabilities: [200] Advanced Error Reporting
Capabilities: [230] Latency Tolerance Reporting
Kernel driver in use: sdhci-pci
Kernel modules: sdhci_pci

04:00.0 3D controller: NVIDIA Corporation GM108M [GeForce 840M] (rev a2)
Subsystem: Lenovo Device 5044
Flags: bus master, fast devsel, latency 0, IRQ 71
Memory at f0000000 (32-bit, non-prefetchable) [size=16M]
Memory at c0000000 (64-bit, prefetchable) [size=256M]
Memory at d0000000 (64-bit, prefetchable) [size=32M]
I/O ports at 3000 [size=128]
Capabilities: [60] Power Management version 3
Capabilities: [68] MSI: Enable+ Count=1/1 Maskable- 64bit+
Capabilities: [78] Express Endpoint, MSI 00
Capabilities: [100] Virtual Channel
Capabilities: [258] L1 PM Substates
Capabilities: [128] Power Budgeting <?>
Capabilities: [600] Vendor Specific Information: ID=0001 Rev=1 Len=024 <?>
Kernel driver in use: nvidia
Kernel modules: nouveau, nvidia_drm, nvidia

my dmesg is too long and I can't find lsusb, tried installing it using pacman too, maybe it's bundled with some other package or something, and the problem happens even when I'm not inside X and only using the console, so I'm not doing cat /var/log/xorg.0.log so here is my lsmod:

Code: [Select]
Module                  Size  Used by
uas                    32768  0
usb_storage            81920  1 uas
fuse                  163840  2
ccm                    20480  6
sparse_keymap          16384  0
wmi_bmof               16384  0
nvidia_drm             65536  2
nvidia_modeset       1232896  2 nvidia_drm
nvidia              34144256  72 nvidia_modeset
intel_rapl_msr         20480  0
rmi_smbus              16384  0
rmi_core               86016  1 rmi_smbus
intel_rapl_common      28672  1 intel_rapl_msr
x86_pkg_temp_thermal    20480  0
intel_powerclamp       20480  0
coretemp               20480  0
kvm_intel             327680  0
iwlmvm                479232  0
kvm                   933888  1 kvm_intel
hid_sensor_als         20480  0
hid_sensor_rotation    20480  0
hid_sensor_incl_3d     20480  0
snd_hda_codec_hdmi     73728  1
hid_sensor_magn_3d     20480  0
hid_sensor_gyro_3d     20480  0
hid_sensor_accel_3d    20480  0
hid_sensor_trigger     20480  12 hid_sensor_gyro_3d,hid_sensor_incl_3d,hid_sensor_als,hid_sensor_accel_3d,hid_sensor_magn_3d,hid_sensor_rotation
industrialio_triggered_buffer    16384  1 hid_sensor_trigger
kfifo_buf              16384  1 industrialio_triggered_buffer
hid_sensor_iio_common    20480  7 hid_sensor_gyro_3d,hid_sensor_trigger,hid_sensor_incl_3d,hid_sensor_als,hid_sensor_accel_3d,hid_sensor_magn_3d,hid_sensor_rotation
industrialio           90112  9 industrialio_triggered_buffer,hid_sensor_gyro_3d,hid_sensor_trigger,hid_sensor_incl_3d,kfifo_buf,hid_sensor_als,hid_sensor_accel_3d,hid_sensor_magn_3d,hid_sensor_rotation
at24                   24576  0
iTCO_wdt               16384  0
intel_pmc_bxt          16384  1 iTCO_wdt
iTCO_vendor_support    16384  1 iTCO_wdt
nls_iso8859_1          16384  1
vfat                   24576  1
irqbypass              16384  1 kvm
fat                    86016  1 vfat
crct10dif_pclmul       16384  1
crc32_pclmul           16384  0
ghash_clmulni_intel    16384  0
aesni_intel           372736  4
crypto_simd            16384  1 aesni_intel
cryptd                 24576  2 crypto_simd,ghash_clmulni_intel
glue_helper            16384  1 aesni_intel
i915                 2715648  13
rapl                   16384  0
intel_cstate           20480  0
mei_hdcp               24576  0
snd_hda_codec_realtek   143360  1
snd_hda_codec_generic    98304  1 snd_hda_codec_realtek
snd_hda_intel          57344  0
mac80211             1110016  1 iwlmvm
snd_intel_dspcfg       24576  1 snd_hda_intel
soundwire_intel        45056  1 snd_intel_dspcfg
libarc4                16384  1 mac80211
intel_uncore          172032  0
pcspkr                 16384  0
psmouse               184320  0
soundwire_generic_allocation    16384  1 soundwire_intel
soundwire_cadence      36864  1 soundwire_intel
i2c_algo_bit           16384  1 i915
drm_kms_helper        274432  2 nvidia_drm,i915
snd_hda_codec         172032  4 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec_realtek
iwlwifi               417792  1 iwlmvm
cec                    69632  2 drm_kms_helper,i915
snd_hda_core          106496  5 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek
snd_hwdep              16384  1 snd_hda_codec
soundwire_bus          90112  3 soundwire_intel,soundwire_generic_allocation,soundwire_cadence
uvcvideo              114688  0
drm                   569344  10 drm_kms_helper,nvidia_drm,i915
snd_soc_core          323584  1 soundwire_intel
snd_compress           32768  1 snd_soc_core
ac97_bus               16384  1 snd_soc_core
snd_pcm_dmaengine      16384  1 snd_soc_core
videobuf2_vmalloc      20480  1 uvcvideo
snd_pcm               147456  8 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,soundwire_intel,snd_compress,snd_soc_core,snd_hda_core,snd_pcm_dmaengine
videobuf2_memops       20480  1 videobuf2_vmalloc
snd_timer              45056  1 snd_pcm
videobuf2_v4l2         36864  1 uvcvideo
intel_gtt              24576  1 i915
videobuf2_common       65536  2 videobuf2_v4l2,uvcvideo
agpgart                53248  2 intel_gtt,drm
hid_sensor_hub         24576  8 hid_sensor_gyro_3d,hid_sensor_trigger,hid_sensor_iio_common,hid_sensor_incl_3d,hid_sensor_als,hid_sensor_accel_3d,hid_sensor_magn_3d,hid_sensor_rotation
syscopyarea            16384  1 drm_kms_helper
sysfillrect            16384  1 drm_kms_helper
sysimgblt              16384  1 drm_kms_helper
fb_sys_fops            16384  1 drm_kms_helper
videodev              290816  3 videobuf2_v4l2,uvcvideo,videobuf2_common
i2c_i801               36864  0
mc                     61440  4 videodev,videobuf2_v4l2,uvcvideo,videobuf2_common
joydev                 28672  0
i2c_smbus              20480  1 i2c_i801
cfg80211              983040  3 iwlmvm,iwlwifi,mac80211
mousedev               24576  0
lpc_ich                28672  0
mei_me                 45056  1
mei                   139264  3 mei_hdcp,mei_me
wmi                    36864  1 wmi_bmof
btusb                  65536  0
btrtl                  24576  1 btusb
btbcm                  20480  1 btusb
btintel                32768  1 btusb
bluetooth             741376  5 btrtl,btintel,btbcm,btusb
ecdh_generic           16384  1 bluetooth
ecc                    36864  1 ecdh_generic
thinkpad_acpi         118784  0
ledtrig_audio          16384  2 snd_hda_codec_generic,thinkpad_acpi
rfkill                 28672  5 bluetooth,thinkpad_acpi,cfg80211
snd                   114688  11 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hwdep,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek,snd_timer,snd_compress,thinkpad_acpi,snd_soc_core,snd_pcm
soundcore              16384  1 snd
soc_button_array       20480  0
mac_hid                16384  0
video                  53248  2 thinkpad_acpi,i915
ext4                  933888  2
crc32c_generic         16384  0
crc16                  16384  2 bluetooth,ext4
mbcache                16384  1 ext4
jbd2                  151552  1 ext4
hid_multitouch         32768  0
usbhid                 65536  0
sdhci_pci              69632  0
cqhci                  32768  1 sdhci_pci
sdhci                  77824  1 sdhci_pci
crc32c_intel           24576  4
mmc_core              192512  3 sdhci,cqhci,sdhci_pci
serio_raw              20480  0
xhci_pci               20480  0
xhci_pci_renesas       20480  1 xhci_pci

Re: Closing the lid causes the screen go black and never recovers

Reply #3
Long dmesg is perfect and most important , put it here or use some paste service

Re: Closing the lid causes the screen go black and never recovers

Reply #4
If I good see, nvidia and Intel graphics....  ;D  ;D  :D  very bad combination

Re: Closing the lid causes the screen go black and never recovers

Reply #5
Hi, check this link

bbswitch may be handy


Re: Closing the lid causes the screen go black and never recovers

Reply #7

dude, that worked! I installed the bumblebee package and now when I close the lid, it suspends the laptop and when I open it, it takes me back to exactly where I left off. Thanks a lot Linuxer, I owe you one <3

 

Re: Closing the lid causes the screen go black and never recovers

Reply #8
I am glad, enjoy!