isDipesh / gnome-shell-extension-sensors

Gnome shell extension: Shows CPU temperature, HDD temperature, voltage and fan RPM
https://motorscript.com/gnome-shell-extension-sensors/
161 stars 153 forks source link

Query hard drive temperature via udisks #87

Closed genosse-einhorn closed 10 years ago

genosse-einhorn commented 10 years ago

Udisks provides access to the hard drive temperature sensor via a stable D-Bus interface. This patch enables the extension to query udisks for temperature data.

ghost commented 10 years ago

In: .... Gio.DBusObjectManagerClient.new(Gio.DBus.system, 0, "org.freedesktop.UDisks2", "/org/freedesktop/UDisks2", null, null, function(src, res) { ....

Error invoking Gio.new_for_bus: Invalid callback given for argument get_proxy_type_func

get_proxy_type_func, is the first parameter that have null.

adrianbroher commented 10 years ago

Thanks for your code @rgcjonas.

@lestcape: I can't reproduce this.

ghost commented 10 years ago

Yeah, I try to reproduce the code in one gjs file, maybe i need import other things, or some things i don't know. I use Cinnamon, not gnome. See:

https://github.com/lestcape/Drives-Manager/blob/master/drivesManager%40lestcape/udisk.js

ghost commented 10 years ago

Apparently the problem is that I want to do, is not supporting in Ubuntu 12.04. In Ubuntu 13.10 works well. Cinnamon no incluye udisks2 directly like GNome-Shell. Thanks.

genosse-einhorn commented 10 years ago

12.04 has udisks (the first version). udisks2 has been introduced in 12.10.