Strona 1 z 3
hddtemp - nie pokazuje temperatury
: 08 lut 2008, 00:38
autor: kmieta
posiadam laptopa asus. zainstalowalem paczke hdd temp, poniewaz chcialem zeby w conky pokazywal mi temperature dysku
niby poszlo wszystko ok ale nie pokazuje mi temperatury
w konsoli:
Kod: Zaznacz cały
kmieta@kmieta-laptop:~$ nc localhost 7634
localhost [127.0.0.1] 7634 (?) : Connection refused
i taki sam komunikat mi wyskakuje przy uruchomieniu conky...
dopiero po zalogowaniu sie na root'a i wpisaniu
Kod: Zaznacz cały
kmieta@kmieta-laptop:~$ sudo hddtemp /dev/sda1
[sudo] password for kmieta:
/dev/sda1: Hitachi HTS541610J9SA00: 39°C
czy ma ktos jakies pomysły ?? szukałem na google i niestety nic nie znalazlem ;/
Odp: hddtemp - nie pokazuje temperatury
: 08 lut 2008, 01:26
autor: mario_7
Masz włączone hddtemp jako demona i ładuje się on na starcie?
Odp: hddtemp - nie pokazuje temperatury
: 09 lut 2008, 13:27
autor: kmieta
hmm... nie bardzo rozumiem o co Ci chodzi

jestem dopiero poczatkujacy jezeli chodzi o ubuntu
Odp: hddtemp - nie pokazuje temperatury
: 09 lut 2008, 16:12
autor: dk75
i czy pokazuje, że usuwa z od rc0.d do rc6.d (spoko majonez, opcja "-n" sprawia, że to tylko "wirtualne" usuwanie).
Ew.
Odp: hddtemp - nie pokazuje temperatury
: 09 lut 2008, 17:30
autor: kmieta
wynik pierwszej komendy:
Kod: Zaznacz cały
kmieta@kmieta-laptop:~$ sudo update-rc.d -n -f hddtemp remove
[sudo] password for kmieta:
Removing any system startup links for /etc/init.d/hddtemp ...
/etc/rc0.d/K20hddtemp
/etc/rc1.d/K20hddtemp
/etc/rc2.d/S20hddtemp
/etc/rc3.d/S20hddtemp
/etc/rc4.d/S20hddtemp
/etc/rc5.d/S20hddtemp
/etc/rc6.d/K20hddtemp
i druga
Kod: Zaznacz cały
kmieta@kmieta-laptop:~$ cat /etc/default/hddtemp | grep RUN_DAEMON
RUN_DAEMON="false"

Odp: hddtemp - nie pokazuje temperatury
: 09 lut 2008, 21:08
autor: dk75
OK.
To masz zapewniony start ale nie jako daemon tylko jako zwykły program który pewnie zaraz się kończy.
To teraz zmień tego "RUN_DAEMON" z "false" na "true".
Dalej ci nie pomogę bo nie mam conky i nie wiem jak się go konfiguruje do współpracy z hddtemp. W gKrellM którego używam całą konfigurację trzyma właśnie on a nie hddtemp.
Jeśli conky nic nie trzyma, żadnej konfiguracji dla hddtemp to będziesz musiał dodać w "/etc/default/hddtemp" swoje dyski do zmiennej "DISKS=" jednocześnie usuwając przed nią znak "#".
Odp: hddtemp - nie pokazuje temperatury
: 09 lut 2008, 21:38
autor: kmieta
wystarczyła tylko zmiana RUN_DAEMON z false na true
dzieki wielkie

Odp: hddtemp - nie pokazuje temperatury
: 13 lut 2008, 18:53
autor: ryniek
No właśnie mnie ta zmiana jakoś się nie udaje....jakim poleceniem mam zmienić????
Odp: hddtemp - nie pokazuje temperatury
: 13 lut 2008, 19:12
autor: yacup
Nic nie muszisz zmieniać.
1. po uruchomieniu w terminalu polecenia
w czasie instalacji zostaniesz zapytany czy daemon ma się uruchamiać wraz z systemem, Odpowiedz Yes i zrobione
(domyślnie jest w czasie instalacji No: musisz kursorem klepnąć w lewo tak, żeby Yes było podświetlone na czerwono, potech buch w Enter)
2. potem PPM na panelu> dodaj do panelu> Computer Temperature Monitor
3. PPM na ikonie apletu Computer Temperature Monitor > Preferencje
ustaw wyświetlanie temperatury HDD
... i gotowe
Temperatura HDD będzie się wyświetlała na panelu
Jeżeli nie masz zainstalowanego apletu Computer Temperature Monitor to możesz go pobrać w paczce .deb
stąd
pozdrawiam
yacup
Odp: hddtemp - nie pokazuje temperatury
: 13 lut 2008, 19:24
autor: ryniek
Ale ja potrzebuję włączyć daemona dla potrzeb conky....
Odp: hddtemp - nie pokazuje temperatury
: 13 lut 2008, 19:39
autor: dk75
oto jak wygląda mój - musisz tylko swoje dyski HDD wpisać w miejsce moich (miejsce w kodzie zaznaczone na czerwono) i bedzie działac:
Kod: Zaznacz cały
# Defaults for hddtemp initscript (/etc/init.d/hddtemp)
# This is a POSIX shell fragment
# [automatically edited by postinst, do not change line format ]
# hddtemp network daemon switch. If set to true, hddtemp will listen
# for incoming connections.
RUN_DAEMON="true"
# List of devices you want to use with hddtemp. If none specified,
# hddtemp will probe standard devices.
DISKS="/dev/sda /dev/sdb /dev/sdc /dev/sdd"
# List of devices you want to use with hddtemp, but that would not be
# probed for a working sensor.
DISKS_NOPROBE=""
# IP address of the interface on which you want hddtemp to be bound
# on. If none specified, goes to 127.0.0.1. Use 0.0.0.0 to bind hddtemp
# on all interfaces.
INTERFACE="127.0.0.1"
# Port number on which you want hddtemp to listen on. If none specified,
# the port 7634 is used.
PORT="7634"
# Database file to use. If none specified, /etc/hddtemp.db is used.
#DATABASE="/etc/hddtemp.db"
# Separator to use between fields. The default separator is '|'.
#SEPARATOR="|"
# Logging period (in seconds) for the temperatures. If set to a value
# different than 0, hddtemp will run as a daemon periodically logging
# the temperatures through syslog
RUN_SYSLOG="0"
# Other options to pass to hddtemp
OPTIONS=""
Potem w Conky się używa przez:
albo:
Kod: Zaznacz cały
/dev/sda - ${pre_exec nc localhost 7634 | sed -e 's/|[[:digit:]]\{2,4\}|C|/\n/g' | grep sda | sed -e 's/|.*|//'} - ${hddtemp /dev/sda}
(PS: przy pomocy koloru turkusowego zaznaczyłem gdzie musisz wpisać o jaki dysk ci chodzi)
Odp: hddtemp - nie pokazuje temperatury
: 13 lut 2008, 22:26
autor: kmieta
ja zrobilem w ten sposob ze w
zmienilem
na
pozatym nic wiecej nie zmienilem w tym pliku.
W conkyrc mam taka linijke
Kod: Zaznacz cały
Temperatura: ${execi 10 /home/kmieta/hddmonit.sh}˚C
i dodatkowo w folderze domowym mam skrypt o nazwie hddmonit.sh z ktorego jest wyciagana sama wartosc temperatury
Kod: Zaznacz cały
#!/bin/bash
echo "$(nc localhost 7634 | cut -d'|' -f4)"
Odp: hddtemp - nie pokazuje temperatury
: 13 lut 2008, 22:56
autor: dk75
tak... tylko, że w ten sposób co 10 sekund będzie wywołane polecenie shell, to polecenie będzie komunikowało się przez TCP z hddtemp, hddtemp będzie robił probe na obecność dysków twardych, będzie je sprawdzał a potem odsyłał do nc a dopiero potem przejmie to conky.
Z jednym dyskiem to jeszcze nie problem.
Tylko po co rzeźbić w świeżym kale jak jest VARIABLE wewnętrzne conky które odpytuje hddtemp bezpośrednio na okoliczność zapamiętanych danych z ostatniego sprawdzania wartości temperatur w SMART wybranych dysków? hddtemp sprawdza temperatury w wybranym przez siebie terminie (nie jest to wymuszane jak przy nc), nie robi probingu a conky dostaje zawsze gotowe wartości.
Na pewno wychodzi szybciej i mniej obciąża system.
A wszystko to poprzez "${hddtemp /dev/sda}" i nic więcej. Cała reszta którą podałem w ostatnim przykładzie ("${pre_exec}") to jest wstawianie nazwy dysków pobieranej ze SMART i tu już potrzeba "nc" ale jest to robione tylko raz przy ładowaniu conky a przed uruchomieniem periodycznego wykonywania skryptu conky. Czyli tylko raz przy uruchomieniu.
Odp: hddtemp - nie pokazuje temperatury
: 13 lut 2008, 23:18
autor: kmieta
w sumie fakt

u siebie juz zmienilem

i tez ladnie pokazuje temp

Odp: hddtemp - nie pokazuje temperatury
: 14 lut 2008, 00:31
autor: ryniek
dk75 pisze:
oto jak wygląda mój - musisz tylko swoje dyski HDD wpisać w miejsce moich (miejsce w kodzie zaznaczone na czerwono) i bedzie działac:
Kod: Zaznacz cały
# Defaults for hddtemp initscript (/etc/init.d/hddtemp)
# This is a POSIX shell fragment
# [automatically edited by postinst, do not change line format ]
# hddtemp network daemon switch. If set to true, hddtemp will listen
# for incoming connections.
RUN_DAEMON="true"
# List of devices you want to use with hddtemp. If none specified,
# hddtemp will probe standard devices.
DISKS="/dev/sda /dev/sdb /dev/sdc /dev/sdd"
# List of devices you want to use with hddtemp, but that would not be
# probed for a working sensor.
DISKS_NOPROBE=""
# IP address of the interface on which you want hddtemp to be bound
# on. If none specified, goes to 127.0.0.1. Use 0.0.0.0 to bind hddtemp
# on all interfaces.
INTERFACE="127.0.0.1"
# Port number on which you want hddtemp to listen on. If none specified,
# the port 7634 is used.
PORT="7634"
# Database file to use. If none specified, /etc/hddtemp.db is used.
#DATABASE="/etc/hddtemp.db"
# Separator to use between fields. The default separator is '|'.
#SEPARATOR="|"
# Logging period (in seconds) for the temperatures. If set to a value
# different than 0, hddtemp will run as a daemon periodically logging
# the temperatures through syslog
RUN_SYSLOG="0"
# Other options to pass to hddtemp
OPTIONS=""
Potem w Conky się używa przez:
albo:
Kod: Zaznacz cały
/dev/sda - ${pre_exec nc localhost 7634 | sed -e 's/|[[:digit:]]\{2,4\}|C|/\n/g' | grep sda | sed -e 's/|.*|//'} - ${hddtemp /dev/sda}˚C
(PS: przy pomocy koloru turkusowego zaznaczyłem gdzie musisz wpisać o jaki dysk ci chodzi)
Nie kopiowałem twojego configa hddtemp, ale poprawiłem swój. Mam 9 partycji sda-tak widzi to Partition Editor. Dodałem do
DISKS="" te wszystkie partycje czyli od
/dev/sda1 do
/dev/sda9 włącznie i nic...a jak próbuję sprawdzić przez
nc localhost 7634 to wyskakuje coś takiego:
Kod: Zaznacz cały
adrian@AdrianUbuntuDesktop:~$ nc localhost 7634
localhost: forward host lookup failed: Unknown host : Connection timed out
adrian@AdrianUbuntuDesktop:~$
.

]

[/url]
Tutaj daję swój config do hddtemp:
Kod: Zaznacz cały
# Defaults for hddtemp initscript (/etc/init.d/hddtemp)
# This is a POSIX shell fragment
# [automatically edited by postinst, do not change line format ]
# hddtemp network daemon switch. If set to true, hddtemp will listen
# for incoming connections.
RUN_DAEMON="true"
# List of devices you want to use with hddtemp. If none specified,
# hddtemp will probe standard devices.
DISKS="/dev/sda1 /dev/sda2 /dev/sda3 /dev/sda4 /dev/sda5 /dev/sda6 /dev/sda7 /dev/sda8 /dev/sda9"
# List of devices you want to use with hddtemp, but that would not be
# probed for a working sensor.
DISKS_NOPROBE=""
# IP address of the interface on which you want hddtemp to be bound
# on. If none specified, goes to 127.0.0.1. Use 0.0.0.0 to bind hddtemp
# on all interfaces.
INTERFACE="127.0.0.1"
# Port number on which you want hddtemp to listen on. If none specified,
# the port 7634 is used.
PORT="7634"
# Database file to use. If none specified, /etc/hddtemp.db is used.
#DATABASE="/etc/hddtemp.db"
# Separator to use between fields. The default separator is '|'.
#SEPARATOR="|"
# Logging period (in seconds) for the temperatures. If set to a value
# different than 0, hddtemp will run as a daemon periodically logging
# the temperatures through syslog
RUN_SYSLOG="0"
# Other options to pass to hddtemp
OPTIONS=""
Dziękuję bardzo za ewentualne udzielenie mi pomocy!

Odp: hddtemp - nie pokazuje temperatury
: 14 lut 2008, 01:07
autor: kmieta
na moje to powinno być tak
Odp: hddtemp - nie pokazuje temperatury
: 14 lut 2008, 11:05
autor: yacup
Nawet mi się podoba ten conky (dopiero teraz się nim zainteresowałem przy okazji rozwiązywania problemu temperatury HDD) ale ...
... mam taki niewielki problem z wyświetlaniem temperatury HDD i CPU. Za wartścią liczbową temperatury wyświetlają się krzaki jakieś zamiast
˚C. Wpis dotyczący wyświetlania temperatur wygląda tak:
Kod: Zaznacz cały
${color lightgrey}CPU Temperature $acpitemp ˚C HDD Temperature ${hddtemp /dev/sda}
a wyświetla mi się coś takiego jak w screenie poniżej (niestety nie jestem w stanie tego przepisać bo nie wiem jak te znaki wklepać z klawiatury)
Ustawienie kodowanuia znaków UTF, czcionka Arial (ale inne też nie działają)
PS. Ponadto conky nie chce mi z systemem startować. Odpowiedni wpis w Sesjach dodawałem ale nie działa.
pozdrawiam, proszę o pomoc
yacup
Odp: hddtemp - nie pokazuje temperatury
: 14 lut 2008, 11:22
autor: kmieta
wklej swoje conkyrc bo napewno tam czegos nie masz

Odp: hddtemp - nie pokazuje temperatury
: 14 lut 2008, 11:47
autor: yacup
To jest CAŁE moje conkyrc
Kod: Zaznacz cały
# Conky sample configuration
#
# the list of variables has been removed from this file in favour
# of keeping the documentation more maintainable.
# Check http://conky.sf.net for an up-to-date-list.
# set to yes if you want Conky to be forked in the background
background no
# X font when Xft is disabled, you can pick one with program xfontsel
#font 5x7
#font 6x10
#font 7x13
#font 8x13
#font 9x15
#font *mintsmild.se*
#font -*-*-*-*-*-*-34-*-*-*-*-*-*-*
# Use Xft?
use_xft yes
# Xft font when Xft is enabled
xftfont Arial:size=9
# Text alpha when using Xft
xftalpha 0.8
# Print everything to stdout?
# out_to_console no
# MPD host/port
# mpd_host localhost
# mpd_port 6600
# mpd_password tinker_bell
# Print everything to console?
# out_to_console no
# mail spool
mail_spool $MAIL
# Update interval in seconds
update_interval 1.0
# This is the number of times Conky will update before quitting.
# Set to zero to run forever.
total_run_times 0
# Create own window instead of using desktop (required in nautilus)
own_window no
# If own_window is yes, you may use type normal, desktop or override
own_window_type normal
# Use pseudo transparency with own_window?
own_window_transparent yes
# If own_window_transparent is set to no, you can set the background colour here
own_window_colour hotpink
# If own_window is yes, these window manager hints may be used
#own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes
# Minimum size of text area
minimum_size 250 5
# Draw shades?
draw_shades no
# Draw outlines?
draw_outline no
# Draw borders around text
draw_borders no
# Draw borders around graphs
draw_graph_borders no
# Stippled borders?
stippled_borders 8
# border margins
border_margin 4
# border width
border_width 1
# Default colors and also border colors
default_color white
default_shade_color black
default_outline_color black
# Text alignment, other possible values are commented
#alignment top_left
#alignment top_right
alignment bottom_left
#alignment bottom_right
#alignment none
# Gap between borders of screen and text
# same thing as passing -x at command line
gap_x 950
gap_y 45
# Subtract file system buffers from used memory?
no_buffers yes
# set to yes if you want all text to be in uppercase
uppercase no
# number of cpu samples to average
# set to 1 to disable averaging
cpu_avg_samples 2
# number of net samples to average
# set to 1 to disable averaging
net_avg_samples 2
# Force UTF8? note that UTF8 support required XFT
override_utf8_locale no
# Add spaces to keep things from moving about? This only affects certain objects.
use_spacer no
# Allow each port monitor to track at most this many connections (if 0 or not set, default is 256)
#max_port_monitor_connections 256
# Maximum number of special things, e.g. fonts, offsets, aligns, etc.
#max_specials 512
# Maximum size of buffer for user text, i.e. below TEXT line.
#max_user_text 16384
# Timing interval for music player thread, e.g. mpd, audacious
#music_player_interval (update_interval is default)
# variable is given either in format $variable or in ${variable}. Latter
# allows characters right after the variable and must be used in network
# stuff because of an argument
# stuff after 'TEXT' will be formatted on screen
TEXT
${color lightgrey}CPU $freq_g GHz $cpu% ${cpubar}
${color lightgrey}CPU Temperature $acpitemp ˚C HDD Temperature ${hddtemp /dev/sda}
${color lightgrey}RAM Usage $color $mem/$memmax - $memperc% ${membar}
${color lightgrey}Free File System $color${fs_free} ${fs_bar /}
Odp: hddtemp - nie pokazuje temperatury
: 14 lut 2008, 16:15
autor: dk75
W takim razie to nie jest ".conkyrc" którego używasz gdyż w tym co podałeś za "hddtemp" nie ma znaków "˚C" a na załączonym obrazku są.