看板 Linux 關於我們 聯絡資訊
我把這個題貼到GNOME Bug Report,有人給我答案: https://bugzilla.gnome.org/show_bug.cgi?id=619049 就是有類似Windows SetThreadExecutionState: org.gnome.SessionManager.Inhibit 但我只在我的Ubuntu 9.04 (GNOME 2.26.1)有發現(用qdbus查) org.gnome.SessionManager, Ubuntu 9.10 (GNOME 2.28)與CentOS 5.5 (GNOME 2.16)都不支援 XD ※ 引述《zxvc (執著)》之銘言: : 標題: [問題] Suspend問題 : 時間: Tue May 18 19:08:16 2010 : : 請問GNOME要如何設定有程式在running的時候系統不會進入suspend, : 只有程式都idle到一定時間才會進入suspend? : : 我知道Windows有API可以達到這個目的,但不知Linux有沒有。 : 不知KDE支不支援。 : : -- : ※ 發信站: 批踢踢實業坊(ptt.cc) : ◆ From: 140.115.73.148 : 推 Adama:不就是system->preferences->power management 05/18 19:55 : 推 mstar:樓上,裏面沒有這方面的設定 05/19 00:31 : → zxvc:一樓,我要不止能suspend,還能在程式running時不suspend。 05/19 09:29 : → zxvc:好比在跑個模擬運算,可能要一小時,而GNOME設定二十分鐘進入 05/19 09:31 : → zxvc:suspend,如果這一小時你都不去動鍵盤滑鼠,GNOME仍然會在二 05/19 09:32 : → zxvc:十分鐘時進入suspend,即使你的模擬仍在跑。 05/19 09:33 : → zxvc:Windows有辦法讓程式在running時不會進入sleep。 05/19 09:34 : ※ 編輯: zxvc 來自: 140.115.73.168 (05/19 09:35) : 推 Adama:gnome power是gnome-session在管理的,也許你的程式定時去敲 05/19 16:55 : → Adama:gnome-session好了 :p 05/19 16:55 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.115.221.79
Adama:可能又改了。以前有一陣子idle是靠gnome screensaver去算的 05/20 00:06