Bug 441163 - Interaction wakes up slow idle devices and hangs Dolphin
Summary: Interaction wakes up slow idle devices and hangs Dolphin
Status: CONFIRMED
Alias: None
Product: dolphin
Classification: Applications
Component: general (show other bugs)
Version: 23.04.0
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL:
Keywords: efficiency, usability
Depends on:
Blocks:
 
Reported: 2021-08-19 10:39 UTC by lesto
Modified: 2023-05-24 16:14 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description lesto 2021-08-19 10:39:42 UTC
SUMMARY
When i "de-minimise" dolphin clicking on the task-manager panel, it will not appear for different seconds, AND will also freeze the "task-manager"

STEPS TO REPRODUCE
1. set a secondary hard disk to go sleep after some minute with sudo hdparm -S 1 /dev/sda (where 1 should be 5 minutes)
2. make sure the disk is mounted, i use fstab
3. wait for the disk to go sleep
4. open dolphin, all should be fine
5. minimize dolpin, all should be fine
6. click on dolphin on the task-manager to maximize, it will hang until the disk restart (you can hear it spinning if mechanical)

OBSERVED RESULT
- dolphin not only does not open immediately
- the disk in wake up unnecessarily
- panel bar with task manager hangs until dolphin open

EXPECTED RESULT
- dolphin open immediately
- disk is not access unless clicking on the device
- dolphin should not hang other components

SOFTWARE/OS VERSIONS
Operating System: Arch Linux
KDE Plasma Version: 5.22.4
KDE Frameworks Version: 5.85.0
Qt Version: 5.15.2
Kernel Version: 5.13.10-arch1-1 (64-bit)
Graphics Platform: X11
Processors: 12 × AMD Ryzen 5 3600 6-Core Processor
Memory: 15.6 GiB of RAM
Graphics Processor: AMD Radeon RX 5700 XT
Comment 1 kirkkis 2023-05-24 16:07:06 UTC
I don't think the problem has necessarily anything to do with the maximizing of the window, rather when you interact with Dolphin in any way, it'll register it as url changed, which prompts kio to search for possible mount points. This in order checks your fstab and proceeds to wake up the devices in your /etc/fstab. 

Here's a merge request that had some work done a year ago, but didn't really get finished. I believe we're talking about the same issue: https://invent.kde.org/frameworks/kio/-/merge_requests/604

I'd really like to see this issue fixed, as my external drives wake up probably five times a day unnecessarily when I'm not even trying to access them.