Razer Blade Laptop - Sleeps after 30 seconds post opening lid

I installed Garuda Qtile to my laptop a couple days ago because I've wanted to try out a tiling window manager. I daily drove KDE Plasma on my desktop for most of 2021, but swapped back to using Windows because of school and some certain games, as well as having to unplug and replug my mic on every boot to get it to work. So I'm somewhat familiar with linux and using the terminal, but I would no way say I'm an advance user or even an intermediate user. I typically save modifying config files as a last resort, but I have had to do so in the past.

My issue is that when I close my lid to my laptop while it is on, it goes to sleep no problem, but when I open it back up it goes back to sleep within 30 seconds. it doesn't matter if I'm in the middle of typing, moving my mouse, having a video play, or anything. It's working fine, then my mouse disappears, shortly followed by the screen going black and the computer going to sleep. It will only wake up if I press a key, but then 30 seconds later the same thing happens. The only way to stop it is by completely restarting it.

I've slightly configured Qtile, but it's only been changing keybinds and customizing the color of the bar. Other than that it should be stock.

System:
  Kernel: 5.16.12-zen1-1-zen x86_64 bits: 64 compiler: gcc v: 11.2.0
    parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-zen
    root=UUID=7904edb5-ff2e-4dfb-b6bc-3b55c6c6fa69 rw [email protected]
    quiet splash rd.udev.log_priority=3 vt.global_cursor_default=0
    loglevel=3
  Desktop: Qtile 0.20.0 wm: LG3D vt: 1 dm: SDDM Distro: Garuda Linux
    base: Arch Linux
Machine:
  Type: Laptop System: Razer product: Blade 15 Mid 2019-Base v: 3.04
    serial: <superuser required> Chassis: type: 10
    serial: <superuser required>
  Mobo: Razer model: DA530 serial: <superuser required> UEFI: Razer
    v: 1.02 date: 05/16/2019
Battery:
  ID-1: BAT0 charge: 57.6 Wh (88.3%) condition: 65.2/65.0 Wh (100.3%)
    volts: 16.4 min: 15.4 model: Razer Blade type: Unknown serial: <filter>
    status: Discharging
CPU:
  Info: model: Intel Core i7-9750H bits: 64 type: MT MCP arch: Coffee Lake
    family: 6 model-id: 0x9E (158) stepping: 0xA (10) microcode: 0xEC
  Topology: cpus: 1x cores: 6 tpc: 2 threads: 12 smt: enabled cache:
    L1: 384 KiB desc: d-6x32 KiB; i-6x32 KiB L2: 1.5 MiB desc: 6x256 KiB
    L3: 12 MiB desc: 1x12 MiB
  Speed (MHz): avg: 869 high: 1636 min/max: 800/4500 scaling:
    driver: intel_pstate governor: powersave cores: 1: 800 2: 1636 3: 800
    4: 800 5: 800 6: 800 7: 800 8: 800 9: 800 10: 800 11: 800 12: 800
    bogomips: 62399
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
  Vulnerabilities:
  Type: itlb_multihit status: KVM: VMX disabled
  Type: l1tf
    mitigation: PTE Inversion; VMX: conditional cache flushes, SMT vulnerable
  Type: mds mitigation: Clear CPU buffers; SMT vulnerable
  Type: meltdown mitigation: PTI
  Type: spec_store_bypass
    mitigation: Speculative Store Bypass disabled via prctl
  Type: spectre_v1
    mitigation: usercopy/swapgs barriers and __user pointer sanitization
  Type: spectre_v2 mitigation: Full generic retpoline, IBPB:
    conditional, IBRS_FW, STIBP: conditional, RSB filling
  Type: srbds mitigation: Microcode
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: Intel CoffeeLake-H GT2 [UHD Graphics 630] vendor: Razer USA
    driver: i915 v: kernel ports: active: eDP-1 empty: DP-1,DP-2
    bus-ID: 00:02.0 chip-ID: 8086:3e9b class-ID: 0300
  Device-2: NVIDIA TU106M [GeForce RTX 2060 Mobile] vendor: Razer USA
    driver: nvidia v: 510.54 alternate: nouveau,nvidia_drm pcie: gen: 2
    speed: 5 GT/s lanes: 16 link-max: gen: 3 speed: 8 GT/s ports:
    active: none empty: DP-3, DP-4, DP-5, HDMI-A-1 bus-ID: 01:00.0
    chip-ID: 10de:1f11 class-ID: 0300
  Device-3: IMC Networks USB Camera type: USB driver: uvcvideo
    bus-ID: 1-7:2 chip-ID: 13d3:56bd class-ID: 0e02 serial: <filter>
  Display: x11 server: X.Org v: 1.21.1.3 compositor: Picom v: git-c4107
    driver: X: loaded: modesetting,nvidia gpu: i915 display-ID: :0
    screens: 1
  Screen-1: 0 s-res: 1920x1080 s-dpi: 96 s-size: 508x285mm (20.0x11.2")
    s-diag: 582mm (22.9")
  Monitor-1: eDP-1 model: BOE Display built: 2019 res: 1920x1080 hz: 144
    dpi: 142 gamma: 1.2 size: 344x193mm (13.5x7.6") diag: 394mm (15.5")
    ratio: 16:9 modes: 1920x1080
  OpenGL: renderer: Mesa Intel UHD Graphics 630 (CFL GT2)
    v: 4.6 Mesa 21.3.7 direct render: Yes
Audio:
  Device-1: Intel Cannon Lake PCH cAVS vendor: Razer USA
    driver: snd_hda_intel v: kernel
    alternate: snd_soc_skl,snd_sof_pci_intel_cnl bus-ID: 00:1f.3
    chip-ID: 8086:a348 class-ID: 0403
  Device-2: NVIDIA TU106 High Definition Audio vendor: Razer USA
    driver: snd_hda_intel v: kernel pcie: gen: 2 speed: 5 GT/s lanes: 16
    link-max: gen: 3 speed: 8 GT/s bus-ID: 01:00.1 chip-ID: 10de:10f9
    class-ID: 0403
  Sound Server-1: ALSA v: k5.16.12-zen1-1-zen running: yes
  Sound Server-2: PulseAudio v: 15.0 running: no
  Sound Server-3: PipeWire v: 0.3.48 running: yes
Network:
  Device-1: Intel Cannon Lake PCH CNVi WiFi driver: iwlwifi v: kernel
    bus-ID: 00:14.3 chip-ID: 8086:a370 class-ID: 0280
  IF: wlo1 state: up mac: <filter>
  Device-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
    vendor: Razer USA driver: r8169 v: kernel pcie: gen: 1 speed: 2.5 GT/s
    lanes: 1 port: 3000 bus-ID: 02:00.0 chip-ID: 10ec:8168 class-ID: 0200
  IF: enp2s0 state: down mac: <filter>
Bluetooth:
  Device-1: Intel Bluetooth 9460/9560 Jefferson Peak (JfP) type: USB
    driver: btusb v: 0.8 bus-ID: 1-14:4 chip-ID: 8087:0aaa class-ID: e001
  Report: bt-adapter ID: hci0 rfk-id: 0 state: down
    bt-service: enabled,running rfk-block: hardware: no software: yes
    address: <filter>
Drives:
  Local Storage: total: 476.94 GiB used: 10.7 GiB (2.2%)
  SMART Message: Required tool smartctl not installed. Check --recommends
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: LITE-ON model: CA3-8D512
    size: 476.94 GiB block-size: physical: 512 B logical: 512 B
    speed: 31.6 Gb/s lanes: 4 type: SSD serial: <filter> rev: C490903
    temp: 37.9 C scheme: GPT
Partition:
  ID-1: / raw-size: 476.64 GiB size: 476.64 GiB (100.00%)
    used: 10.7 GiB (2.2%) fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:2
  ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%)
    used: 576 KiB (0.2%) fs: vfat dev: /dev/nvme0n1p1 maj-min: 259:1
  ID-3: /home raw-size: 476.64 GiB size: 476.64 GiB (100.00%)
    used: 10.7 GiB (2.2%) fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:2
  ID-4: /var/log raw-size: 476.64 GiB size: 476.64 GiB (100.00%)
    used: 10.7 GiB (2.2%) fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:2
  ID-5: /var/tmp raw-size: 476.64 GiB size: 476.64 GiB (100.00%)
    used: 10.7 GiB (2.2%) fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:2
Swap:
  Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default)
  ID-1: swap-1 type: zram size: 15.52 GiB used: 0 KiB (0.0%)
    priority: 100 dev: /dev/zram0
Sensors:
  System Temperatures: cpu: 27.8 C pch: 55.0 C mobo: N/A
  Fan Speeds (RPM): N/A
Info:
  Processes: 328 Uptime: 4m wakeups: 1 Memory: 15.52 GiB
  used: 2.49 GiB (16.0%) Init: systemd v: 250 tool: systemctl Compilers:
  gcc: 11.2.0 clang: 13.0.1 Packages: pacman: 1156 lib: 298 Shell: fish
  v: 3.3.1 default: Bash v: 5.1.16 running-in: alacritty inxi: 3.3.13
Garuda (2.5.5-1):
  System install date:     2022-03-07
  Last full system update: 2022-03-08
  Is partially upgraded:   No
  Relevant software:       NetworkManager
  Windows dual boot:       Probably (Run as root to verify)
  Snapshots:               Snapper
  Failed units:

Hi there, welcome.
Maybe check if the solution below helps you also...

1 Like

Have you experienced similar issues with this hardware on other OS's?

Does this also happen if you boot from a Garuda live disk?

Have you tested multiple alternate kernels?

Is your BIOS up to date?

Have you tried Installing linux-firmware-git , and rebooting?

Does this also happen if you run systemctl suspend instead of closing the lid?

Does this also happen if you use the power button instead of closing the lid?

Does this also happen if the battery is removed?

Is "Fast Startup" disabled in Windows, (and bios)?



Edit:

The following command will automatically add a kernel boot parameter that may help with your issue to /etc/default/grub:

sudp cp /etc/default/grub /etc/default/grub.bak && sed 's/GRUB_CMDLINE_LINUX_DEFAULT=\".*[^"]/& button.lid_init_state=open/g' /etc/default/grub | sudo tee /etc/default/grub

After adding the boot parameter(s), run:

sudo update-grub 

Then, reboot



If desired, the changes to /etc/default/grub can be reverted with:

sudp cp /etc/default/grub.bak /etc/default/grub

Then, run:

sudo update-grub 


4 Likes

The boot parameter seems to do the trick. Thanks a ton!

1 Like

You're welcome, and glad to hear that helped.

It took a fair bit of digging to find that parameter, so I'm happy it paid off.

Welcome to Garuda.

@dalto deserves the credit for the sed command magic.

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.