Pc goes in sleep while watching videos on Firefox

So the problem is that when i watch videos the screen goes of after 10 minutes. I can’t figure why since this problem happens only on firefox but not other browers (i tried on brave and no problems there).

For now i’m using caffeine to solve the problem but this is more a workaround than a solution, do you guys have some idea?

here’s some info on the system (even if i think this is not the problem)

> System:
>       Kernel: 5.10.23-1-MANJARO x86_64 bits: 64 compiler: gcc v: 10.2.0 
>       parameters: BOOT_IMAGE=/boot/vmlinuz-5.10-x86_64 
>       root=UUID=d7a382a8-3b97-48fc-a63b-910bffc4b17f rw quiet apparmor=1 
>       security=apparmor udev.log_priority=3 
>       Desktop: KDE Plasma 5.21.3 tk: Qt 5.15.2 info: latte-dock wm: kwin_x11 vt: 1 
>       dm: LightDM 1.30.0, SDDM Distro: Manjaro Linux base: Arch Linux 
>     Machine:
>       Type: Desktop System: Gigabyte product: AB350-Gaming v: N/A serial: <filter> 
>       Mobo: Gigabyte model: AB350-Gaming-CF serial: <filter> 
>       UEFI: American Megatrends v: F50a date: 11/27/2019 
>     CPU:
>       Info: 6-Core model: AMD Ryzen 5 1600 bits: 64 type: MT MCP arch: Zen 
>       family: 17 (23) model-id: 1 stepping: 1 microcode: 8001138 cache: L2: 3 MiB 
>       flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm 
>       bogomips: 76670 
>       Speed: 2168 MHz min/max: 1550/3200 MHz boost: enabled Core speeds (MHz): 
>       1: 2168 2: 1346 3: 1270 4: 2058 5: 1364 6: 2334 7: 1268 8: 1310 9: 1803 
>       10: 1360 11: 1288 12: 2395 
>       Vulnerabilities: Type: itlb_multihit status: Not affected 
>       Type: l1tf status: Not affected 
>       Type: mds status: Not affected 
>       Type: meltdown status: Not affected 
>       Type: spec_store_bypass 
>       mitigation: Speculative Store Bypass disabled via prctl and seccomp 
>       Type: spectre_v1 
>       mitigation: usercopy/swapgs barriers and __user pointer sanitization 
>       Type: spectre_v2 mitigation: Full AMD retpoline, IBPB: conditional, STIBP: 
>       disabled, RSB filling 
>       Type: srbds status: Not affected 
>       Type: tsx_async_abort status: Not affected 
>     Graphics:
>       Device-1: AMD Navi 10 [Radeon RX 5600 OEM/5600 XT / 5700/5700 XT] 
>       vendor: Sapphire Limited driver: amdgpu v: kernel bus-ID: 09:00.0 
>       chip-ID: 1002:731f class-ID: 0300 
>       Display: x11 server: X.Org 1.20.10 compositor: kwin_x11 driver: 
>       loaded: amdgpu,ati unloaded: modesetting,radeon alternate: fbdev,vesa 
>       display-ID: :0 screens: 1 
>       Screen-1: 0 s-res: 4110x1160 s-dpi: 96 s-size: 1084x306mm (42.7x12.0") 
>       s-diag: 1126mm (44.3") 
>       Monitor-1: DisplayPort-1 res: 1920x1080 dpi: 90 size: 544x303mm (21.4x11.9") 
>       diag: 623mm (24.5") 
>       Monitor-2: HDMI-A-0 res: 1920x1080 dpi: 102 size: 476x268mm (18.7x10.6") 
>       diag: 546mm (21.5") 
>       OpenGL: renderer: AMD Radeon RX 5700 XT (NAVI10 DRM 3.40.0 5.10.23-1-MANJARO 
>       LLVM 11.1.0) 
>       v: 4.6 Mesa 20.3.4 direct render: Yes 
>     Audio:
>       Device-1: AMD Navi 10 HDMI Audio driver: snd_hda_intel v: kernel 
>       bus-ID: 09:00.1 chip-ID: 1002:ab38 class-ID: 0403 
>       Device-2: AMD Family 17h HD Audio vendor: Gigabyte driver: snd_hda_intel 
>       v: kernel bus-ID: 0b:00.3 chip-ID: 1022:1457 class-ID: 0403 
>       Device-3: Microsoft LifeCam HD-3000 type: USB driver: snd-usb-audio,uvcvideo 
>       bus-ID: 3-1:2 chip-ID: 045e:0779 class-ID: 0102 
>       Sound Server-1: ALSA v: k5.10.23-1-MANJARO running: yes 
>       Sound Server-2: JACK v: 0.125.0 running: no 
>       Sound Server-3: PulseAudio v: 14.2 running: yes 
>       Sound Server-4: PipeWire v: 0.3.23 running: yes 
>     Network:
>       Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet 
>       vendor: Gigabyte driver: r8168 v: 8.048.03-NAPI modules: r8169 port: f000 
>       bus-ID: 04:00.0 chip-ID: 10ec:8168 class-ID: 0200 
>       IF: eno1 state: down mac: <filter> 
>       Device-2: Intel Wi-Fi 6 AX200 driver: iwlwifi v: kernel port: f000 
>       bus-ID: 05:00.0 chip-ID: 8086:2723 class-ID: 0280 
>       IF: wlp5s0 state: up mac: <filter> 
>     Bluetooth:
>       Device-1: Intel AX200 Bluetooth type: USB driver: btusb v: 0.8 bus-ID: 1-7:3 
>       chip-ID: 8087:0029 class-ID: e001 
>       Report: ID: hci0 state: up address: <filter> 
>     Drives:
>       Local Storage: total: 3.87 TiB used: 780.3 GiB (19.7%) 
>       SMART Message: Unable to run smartctl. Root privileges required. 
>       ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Samsung model: SSD 960 EVO 250GB 
>       size: 232.89 GiB block-size: physical: 512 B logical: 512 B speed: 31.6 Gb/s 
>       lanes: 4 rotation: SSD serial: <filter> rev: 3B7QCXE7 temp: 35.9 C 
>       scheme: GPT 
>       ID-2: /dev/sda maj-min: 8:0 vendor: Seagate model: ST1000DM010-2EP102 
>       size: 931.51 GiB block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s 
>       rotation: 7200 rpm serial: <filter> rev: CC43 scheme: MBR 
>       ID-3: /dev/sdb maj-min: 8:16 vendor: Western Digital model: WD10EZEX-08M2NA0 
>       size: 931.51 GiB block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s 
>       rotation: 7200 rpm serial: <filter> rev: 1A01 scheme: MBR 
>       ID-4: /dev/sdc maj-min: 8:32 type: USB vendor: Toshiba model: MQ04UBD200 
>       size: 1.82 TiB block-size: physical: 512 B logical: 512 B rotation: 5400 rpm 
>       serial: <filter> scheme: MBR 
>     Partition:
>       ID-1: / raw-size: 50.02 GiB size: 48.99 GiB (97.93%) used: 17.74 GiB (36.2%) 
>       fs: ext4 dev: /dev/nvme0n1p5 maj-min: 259:5 
>       ID-2: /boot/efi raw-size: 99 MiB size: 95 MiB (95.96%) 
>       used: 25.3 MiB (26.6%) fs: vfat dev: /dev/nvme0n1p2 maj-min: 259:2 
>       ID-3: /home raw-size: 931.51 GiB size: 915.82 GiB (98.31%) 
>       used: 145.27 GiB (15.9%) fs: ext4 dev: /dev/sda1 maj-min: 8:1 
>     Swap:
>       Alert: No Swap data was found. 
>     Sensors:
>       System Temperatures: cpu: 37.5 C mobo: N/A gpu: amdgpu temp: 50.0 C 
>       mem: 70.0 C 
>       Fan Speeds (RPM): N/A gpu: amdgpu fan: 0 
>     Info:
>       Processes: 357 Uptime: 2h 56m wakeups: 0 Memory: 15.64 GiB 
>       used: 4.19 GiB (26.8%) Init: systemd v: 247 tool: systemctl Compilers: 
>       gcc: 10.2.0 Packages: 1444 pacman: 1434 lib: 434 flatpak: 0 snap: 10 
>       Shell: Bash v: 5.1.0 running-in: xfce4-terminal inxi: 3.3.03

KDE power management can take cues from programs to inhibit sleep.

If you play a video in Firefox and click the Energy Information plasma widget (the battery icon; add one if you don’t have one), does it say “An application is preventing sleep and screen locking: Firefox: video-playing”?

If it doesn’t, try installing plasma-browser-integration from the repositories as well as the accompanying Firefox extension (https://addons.mozilla.org/en-US/firefox/addon/plasma-integration/). Does it then?

1 Like

So my ssd with manjaro on decided to die without any warning whatsoever and had not the pc for a couple of days, so sorry for the delay on the response. Started with a new fresh installation just to be sure and now the problem is solved so i really don’t know, maybe some corrupted data file on the faulty disk?