Improve CPU/DMA tooltip, add warning if device isn't writable

This commit is contained in:
Robin Gareus 2021-06-11 00:02:45 +02:00
parent e22720f59a
commit d5d9800738
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04
1 changed files with 5 additions and 1 deletions

View File

@ -4409,7 +4409,11 @@ These settings will only take effect after %1 is restarted.\n\
cpudma->add (*i, string_compose (_("%1 usec"), *i));
}
cpudma->set_note (_("This setting requires write access to `/dev/cpu_dma_latency' to set the maximum tolerable CPU DMA latency"));
set_tooltip (cpudma->tip_widget(), _("This setting sets the maximum tolerable CPU DMA latency. This prevents the CPU from entering power-save states which can be beneficial for reliable low latency."));
if (access ("/dev/cpu_dma_latency", W_OK)) {
cpudma->set_note (_("This setting requires write access to `/dev/cpu_dma_latency'."));
}
add_option (_("Performance"), cpudma);
}