<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Sanjai Shaarugesh</title>
    <description>The latest articles on DEV Community by Sanjai Shaarugesh (@sanjai_shaarugesh_145f840).</description>
    <link>https://dev.to/sanjai_shaarugesh_145f840</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1723128%2F9f8224e1-4dba-4358-ae8f-46bc86d8be19.jpg</url>
      <title>DEV Community: Sanjai Shaarugesh</title>
      <link>https://dev.to/sanjai_shaarugesh_145f840</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/sanjai_shaarugesh_145f840"/>
    <language>en</language>
    <item>
      <title>Black Screen After Sleep on Fedora KDE? My Culprit Was a Bluetooth Chip</title>
      <dc:creator>Sanjai Shaarugesh</dc:creator>
      <pubDate>Mon, 09 Nov 2026 06:47:09 +0000</pubDate>
      <link>https://dev.to/sanjai_shaarugesh_145f840/black-screen-after-sleep-on-fedora-kde-my-culprit-was-a-bluetooth-chip-1kaa</link>
      <guid>https://dev.to/sanjai_shaarugesh_145f840/black-screen-after-sleep-on-fedora-kde-my-culprit-was-a-bluetooth-chip-1kaa</guid>
      <description>&lt;p&gt;You close the lid, open it later, and get a black screen. No cursor, no login, just nothing. You wait, then you wiggle the mouse. Maybe you hold the power button and reboot.&lt;/p&gt;

&lt;p&gt;That was me a few days ago, on &lt;strong&gt;Fedora 45 KDE&lt;/strong&gt; running on a &lt;strong&gt;Lenovo IdeaPad Slim 3 (i5-13420H)&lt;/strong&gt;. The odd part is that the same laptop didn't do this on GNOME. So naturally I blamed KDE.&lt;/p&gt;

&lt;p&gt;Turns out KDE was innocent. Here's the full story, and the two-minute fix if you have the same problem.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fu4gtfv5q424n6ql5i0qk.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fu4gtfv5q424n6ql5i0qk.png" alt="kde mascot" width="300" height="359"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F57k6qtlb0r4vsqvj9zsq.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F57k6qtlb0r4vsqvj9zsq.png" alt="Laptop showing a black screen after waking from sleep" width="640" height="480"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  First, a quick explainer: what "sleep" actually is
&lt;/h2&gt;

&lt;p&gt;Linux has two main ways to suspend a laptop:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Deep sleep (S3):&lt;/strong&gt; nearly everything is powered off except your RAM. Great for battery.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;s2idle:&lt;/strong&gt; the CPU goes into a very light "idle" state while the machine stays partly awake. It's the Windows "Modern Standby" style.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;You can check which ones your laptop supports with one command:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;cat&lt;/span&gt; /sys/power/mem_sleep
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Mine printed this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;[s2idle]
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The brackets mean "currently active", and there was nothing else in the list. My laptop &lt;strong&gt;doesn't have deep sleep at all&lt;/strong&gt;. Lots of newer laptops are like this, so any guide that says "just switch to deep" won't work for you.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fegrx5yzrabnl8ke5aoyz.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fegrx5yzrabnl8ke5aoyz.png" alt="Terminal output showing only s2idle sleep mode" width="720" height="497"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 1: Make sure Linux really uses s2idle
&lt;/h2&gt;

&lt;p&gt;I started from a KDE forum thread where someone had a similar black screen. Their fix was editing a file in &lt;code&gt;/etc/elogind/&lt;/code&gt;. That's for systems running &lt;strong&gt;elogind&lt;/strong&gt;. Fedora uses &lt;strong&gt;systemd&lt;/strong&gt;, so the equivalent is:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;sudo mkdir&lt;/span&gt; &lt;span class="nt"&gt;-p&lt;/span&gt; /etc/systemd/sleep.conf.d
&lt;span class="nb"&gt;sudo &lt;/span&gt;vim /etc/systemd/sleep.conf.d/10-s2idle.conf
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Put this inside:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight ini"&gt;&lt;code&gt;&lt;span class="nn"&gt;[Sleep]&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="py"&gt;SuspendState&lt;/span&gt;&lt;span class="p"&gt;=&lt;/span&gt;&lt;span class="s"&gt;freeze&lt;/span&gt;
&lt;span class="py"&gt;MemorySleepMode&lt;/span&gt;&lt;span class="p"&gt;=&lt;/span&gt;&lt;span class="s"&gt;s2idle&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Reboot. This makes sure Plasma doesn't try to pick a sleep mode your hardware can't do properly.&lt;/p&gt;

&lt;p&gt;(Side note: my first attempt at this failed because I ran &lt;code&gt;vim&lt;/code&gt; without &lt;code&gt;sudo&lt;/code&gt;, so the file opened read-only. Classic.)&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fuhs64242hurthf5ja9wv.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fuhs64242hurthf5ja9wv.png" alt="Vim editing the systemd sleep config file" width="720" height="497"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 2: Let the logs tell me what's wrong
&lt;/h2&gt;

&lt;p&gt;Instead of guessing, I read the logs from the boot where it happened:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;journalctl &lt;span class="nt"&gt;-b&lt;/span&gt; &lt;span class="nt"&gt;-1&lt;/span&gt; | &lt;span class="nb"&gt;grep&lt;/span&gt; &lt;span class="nt"&gt;-iE&lt;/span&gt; &lt;span class="s2"&gt;"PM:|suspend|resume|kwin|drm"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The suspend itself was fine. But there were two lines that stood out:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;PM: resume devices took 5.998 seconds
Bluetooth: hci0: RTL: download fw command failed (-110)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Resume should normally take well under 1 second. Mine was taking &lt;strong&gt;almost 6&lt;/strong&gt;, and right next to it, my &lt;strong&gt;Realtek Bluetooth chip&lt;/strong&gt; was failing to reload its firmware and timing out.&lt;/p&gt;

&lt;p&gt;Here's what was happening:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;The laptop sleeps, and Linux powers down the Bluetooth USB chip to save energy.&lt;/li&gt;
&lt;li&gt;On wake-up, it asks the chip to start again.&lt;/li&gt;
&lt;li&gt;The chip is slow to answer and times out.&lt;/li&gt;
&lt;li&gt;The whole resume waits around for it. The screen looks black or frozen for those seconds.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;So the black screen wasn't a KDE bug. A small chip was holding up the entire wake-up.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fzkqcsc8qpy6x8fxmei89.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fzkqcsc8qpy6x8fxmei89.png" alt="Timeline: lid open, Bluetooth chip waiting 6 seconds, screen back" width="720" height="332"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 3: The fix
&lt;/h2&gt;

&lt;p&gt;The kernel module for that chip is called &lt;code&gt;btusb&lt;/code&gt;. It has an option to stop it from powering itself down:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;"options btusb enable_autosuspend=n"&lt;/span&gt; | &lt;span class="nb"&gt;sudo tee&lt;/span&gt; /etc/modprobe.d/btusb.conf
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Reboot, then check it applied:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;cat&lt;/span&gt; /sys/module/btusb/parameters/enable_autosuspend
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It should print &lt;code&gt;N&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  The result
&lt;/h2&gt;

&lt;p&gt;I suspended the laptop again and ran:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;journalctl &lt;span class="nt"&gt;-b&lt;/span&gt; | &lt;span class="nb"&gt;grep&lt;/span&gt; &lt;span class="nt"&gt;-E&lt;/span&gt; &lt;span class="s2"&gt;"PM: suspend (entry|exit)|resume devices took|hci0.*-110"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;PM: suspend entry (s2idle)
PM: resume devices took 0.314 seconds
PM: suspend exit
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;Before&lt;/th&gt;
&lt;th&gt;After&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Resume devices&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;5.998 s&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;0.314 s&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Bluetooth timeout errors&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;None&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;From about 6 seconds down to a third of a second, with one line of config.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F7pxoazypnlbwkfqoyo68.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F7pxoazypnlbwkfqoyo68.png" alt="Terminal output before and after the fix" width="720" height="305"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What about battery life?
&lt;/h2&gt;

&lt;p&gt;Fair question. s2idle drains more battery than deep sleep, and this fix keeps the Bluetooth chip slightly more awake. In practice:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Normal for s2idle:&lt;/strong&gt; roughly 1-3% battery per hour while suspended.&lt;/li&gt;
&lt;li&gt;To measure yours, unplug the charger, note the battery level, suspend for an hour or more, then compare:
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;cat&lt;/span&gt; /sys/class/power_supply/BAT&lt;span class="k"&gt;*&lt;/span&gt;/capacity
&lt;span class="nb"&gt;cat&lt;/span&gt; /sys/power/suspend_stats/last_hw_sleep
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The second number is how many microseconds your CPU spent in real deep idle. If it's close to the time you slept, things are healthy.&lt;/p&gt;

&lt;p&gt;I haven't done my long overnight test yet, so I can't give you a real number. I'll update this post when I do. If you don't use Bluetooth much, turning it off in the tray recovers the little extra it uses.&lt;/p&gt;

&lt;h2&gt;
  
  
  If your problem comes back (or you have a different laptop)
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Check what your laptop supports: &lt;code&gt;cat /sys/power/mem_sleep&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;After a bad resume, reboot and read the previous boot's log: &lt;code&gt;journalctl -b -1 | grep -E "PM:|hci0" | tail -30&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Look for any device with a timeout or a &lt;code&gt;resume devices took&lt;/code&gt; line over 1 second.&lt;/li&gt;
&lt;li&gt;If it's the GPU instead, you can try &lt;code&gt;i915.enable_psr=0&lt;/code&gt; on Intel graphics:
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;   &lt;span class="nb"&gt;sudo &lt;/span&gt;grubby &lt;span class="nt"&gt;--update-kernel&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;ALL &lt;span class="nt"&gt;--args&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"i915.enable_psr=0"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;Check for a BIOS update from your vendor. Mine was from 2023.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Undo any of this by deleting the file you created, or with &lt;code&gt;--remove-args&lt;/code&gt; for the kernel parameter.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fnlc4mcgxeuzihb9d14t7.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fnlc4mcgxeuzihb9d14t7.png" alt="kde mascot" width="720" height="547"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What I took away from this
&lt;/h2&gt;

&lt;p&gt;Black screen after sleep sounds like a graphics or desktop problem, so that's where everyone looks first. But the logs said otherwise. If you read them before touching anything, a lot of "mystery bugs" turn out to be one small device.&lt;/p&gt;

&lt;p&gt;If this saved you some rebooting, let me know in the comments. And if it didn't, paste your &lt;code&gt;journalctl&lt;/code&gt; output there and we can poke at it together.&lt;/p&gt;

</description>
      <category>linux</category>
      <category>fedora</category>
      <category>kde</category>
      <category>plasma</category>
    </item>
  </channel>
</rss>
