[gnome-disk-utility] Don't allow standby on SSD drives
- From: David Zeuthen <davidz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-disk-utility] Don't allow standby on SSD drives
- Date: Tue, 3 Jul 2012 13:26:27 +0000 (UTC)
commit ffb8977e67e351b2afaa1832eecfb6167b582850
Author: David Zeuthen <zeuthen gmail com>
Date: Tue Jul 3 09:11:52 2012 -0400
Don't allow standby on SSD drives
Signed-off-by: David Zeuthen <zeuthen gmail com>
src/disks/gduwindow.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/disks/gduwindow.c b/src/disks/gduwindow.c
index cf42032..328a447 100644
--- a/src/disks/gduwindow.c
+++ b/src/disks/gduwindow.c
@@ -1911,7 +1911,10 @@ update_device_page_for_drive (GduWindow *window,
if (ata != NULL)
{
- if (udisks_drive_ata_get_pm_supported (ata))
+ gboolean is_ssd;
+ if (udisks_drive_get_rotation_rate (drive) == 0)
+ is_ssd = TRUE;
+ if (udisks_drive_ata_get_pm_supported (ata) && !is_ssd)
{
GtkTreeIter iter;
gboolean sleeping = FALSE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]