Today I rediscovered screenlets for Ubuntu. If you don’t know what screenlets are, click on the thumbnail on the right.
On my old laptop I tried using them before, but the poor thing couldn’t handle it.
Now with my new laptop I decided to give it another go.
Using compiz-fusion you can put these screenlets on a special ‘widget layer’, which you can summon by pressing a keyboard key. Whenever you need some information or need to make a small note, you press that keyboard key and the widget layer is displayed. Pressing the same key again and the widgets disappear.
There’s a nice screenlet that displays some sensor information, CPU and HDD temperatures. However, my laptop has another sensor on the graphics card that shows the GPU temperature. I just had to have this added to the screenlet.
I made a modified version of the Temperature2 script to generate a screenlet for nvidia GPU temperature. You’ll need the proprietary nvidia drivers installed and access to the ‘nvidia-settings’ utility. Download the file and place it in the ~/.screenlets/Temperature2/ directory, overwriting the old file.
Update: My modifications are now included into version 0.4 of Temperature2. You can get it at screenlets.org
Hey there!
It seems I never uploaded my 0.2 version.
Would you be so kind to download my 0.3 version from screenlets.org, make the changes you need for this, and send me a patch?
Thanks!
Hi Patrik,
It seems you’ve already beaten me to it with your 0.4 version 🙂
Pingback: gpu temperature
This doesn’t work in Debian Squeeze. Probably needs to be rewritten using newer version of python.
By default… this is my error
Logging output goes to: /home/janicol/.config/screenlets/Temperature2Screenlet.log
REGISTER screenlet: Temperature2Screenlet
False
Traceback (most recent call last):
File “/home/janicol/.screenlets/Temperature2/Temperature2Screenlet.py”, line 309, in
screenlets.session.create_session(Temperature2Screenlet)
File “/usr/lib/pymodules/python2.7/screenlets/session.py”, line 480, in create_session
session.start()
File “/usr/lib/pymodules/python2.7/screenlets/session.py”, line 254, in start
sl = self.screenlet(session=self, id=self.__get_next_id())
File “/home/janicol/.screenlets/Temperature2/Temperature2Screenlet.py”, line 82, in __init__
self.__hddtemp = self.get_hddtemp_data()
File “/home/janicol/.screenlets/Temperature2/Temperature2Screenlet.py”, line 142, in get_hddtemp_data
s.connect((‘localhost’, 7634))
File “/usr/lib/python2.7/socket.py”, line 224, in meth
return getattr(self._sock,name)(*args)
socket.error: [Errno 111] Connection refused
after overwriting the temperature2screenlet.py i got this error
~/Desktop $ screenlets
False
Starter already exists.
DAEMON FOUND!
False
Logging output goes to: /home/janicol/.config/screenlets/Temperature2Screenlet.log
REGISTER screenlet: Temperature2Screenlet
False
Traceback (most recent call last):
File “/home/janicol/.screenlets/Temperature2/Temperature2Screenlet.py”, line 262, in
screenlets.session.create_session(Temperature2Screenlet)
File “/usr/lib/pymodules/python2.7/screenlets/session.py”, line 480, in create_session
session.start()
File “/usr/lib/pymodules/python2.7/screenlets/session.py”, line 254, in start
sl = self.screenlet(session=self, id=self.__get_next_id())
File “/home/janicol/.screenlets/Temperature2/Temperature2Screenlet.py”, line 68, in __init__
self.__hddtemp = self.get_hddtemp_data()
File “/home/janicol/.screenlets/Temperature2/Temperature2Screenlet.py”, line 126, in get_hddtemp_data
s.connect((‘localhost’, 7634))
File “/usr/lib/python2.7/socket.py”, line 224, in meth
return getattr(self._sock,name)(*args)
socket.error: [Errno 111] Connection refused
can some one please help why am i getting this error thanks