2008-12-29 126 views

回答

1

在X,你可以運行

xset s off 

關閉屏幕保護程序。同樣,gnome/freedesktop公開了一個DBUS API來控制和禁止屏幕保護模式。我不知道OpenMoko是否支持freedesktop規範,但是如果是的話,您應該可以直接使用DBUS。你可以看到圖騰如何做到這一點here

0

可以通過freesmartphone的D-BUS API做到這一點,也可以防止掛起。

mdbus -s org.freesmartphone.ousaged /org/freesmartphone/Usage org.freesmartphone.Usage.SetResourcePolicy CPU auto 
mdbus -s org.freesmartphone.ousaged /org/freesmartphone/Usage org.freesmartphone.Usage.SetResourcePolicy Display auto 

將auto替換爲enabled或disabled。

您可以在http://git.freesmartphone.org/?p=specs.git;a=blob_plain;f=html/org.freesmartphone.Usage.html;hb=HEAD#GetResourcePolicy

1

找到這個d-BUS方法的文檔FSORaw是一個包裝,你可以使用外部要求資源等的顯示。這將防止屏幕消隱。但如果它是您自己的應用程序,我會建議在您的軟件中聲明相同的顯示資源。

more about fsoraw and resources

相關問題