[Çözüldü] Conky'de ATİ Ekran kartı sıcaklığını gösterme

Başlatan Şiyar, 06 Eylül 2013 - 23:26:16

« önceki - sonraki »

0 Üyeler ve 1 Ziyaretçi konuyu incelemekte.

Şiyar

Merhaba arkadaşlar.
Xorg'da ekran kartım çok ısındığı için Fglrx ile ATİ drivirini kurdum,yanlız bu seferde sıcaklığı sadece Uçbirime yazdığım bir kod ile görebiliyorum.
Bu sıcaklığı Conky'de görebilirmiyiz?

if


Şiyar

 Default Adapter - ATI Radeon HD 5570
                  Sensor 0: Temperature - 59.00 C


if

aticonfig --odgt | grep Temperature | cut -c43-44 çıktısı ne diyor?

Şiyar


if

deneme=`aticonfig --odgt` komut gibi girin bunu sonra echo $deneme | grep Temperature | cut -c43-44

Şiyar

Hiç bir şey demedi.
Araştırmaya devam ediyorum ama görünürde bir şey yok belli kaynaklar var onlarda İngilizce.

if


Şiyar

 Yine bir çıktı almadım.Bu Conky'de de zor anlaşılan.

ewr@ewr-System-Product-Name:~$ echo $deneme | grep Temperature | cut -c20-30
TI Radeon H
ewr@ewr-System-Product-Name:~$


if

echo $deneme | grep Temperature | cut -c60-62 olması gerek.

Şiyar


if

Komutu deneme=`aticonfig --odgt` değişkenini yazdığımız uçbirimde veriyorsunuz değil mi?

Şiyar

Değişkenini nedir?Ben kodları olduğu gibi yazıyorum.

if

Değişken deneme oluyor. Bu değişkenin değeri de aticonfig --odgt komutunun çıktısı. deneme=`aticonfig --odgt` değişkenini girdiğiniz uçbirimi kapatırsanız değişkenin değeri kaybolur. O yüzden değişkeni girdiğiniz uçbirimi kapatmayın. Hiç bir şey çıkmaması ilginç, denedim ve istediğim değeri alabiliyorum ben.


Şiyar


bu koda cevap veriyor
aticonfig --odgt
ewr@ewr-System-Product-Name:~$ aticonfig --odgt

Default Adapter - ATI Radeon HD 5570
                  Sensor 0: Temperature - 60.50 C


if


Şiyar

if,yamalanmış bir Conky içeriği buldum,Conky Manager ile çalıştırdım şu an herşey güzel ve yardımların için teşekkür ederim.

ATİ Gpu Sensörünü ve Isısnı gören Conky içeriği.Herhangi bir Conky'e uyarlanabilir,derlemek istediğimiz Conky dosyasına kopyala,yapıştır ile.

######################
# - Conky settings - #
######################
update_interval 1
total_run_times 0
net_avg_samples 1
cpu_avg_samples 1

imlib_cache_size 0
double_buffer yes
no_buffers yes

format_human_readable

#####################
# - Text settings - #
#####################
use_xft yes
xftfont Droid Sans:size=8
override_utf8_locale yes
text_buffer_size 2048

#############################
# - Window specifications - #
#############################
own_window_class Conky
own_window yes
own_window_type normal
own_window_argb_visual yes
own_window_argb_value 180
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

alignment top_right
gap_x 10
gap_y 40
minimum_size 182 0
maximum_width 212 0

default_bar_size 60 8

#########################
# - Graphics settings - #
#########################
draw_shades no

#default_color E2DACB
default_color 000000

#color0 F0EBE2
color0 000000
color1 F07746
color2 E6E6E6

TEXT
${font Droid Sans:style=Bold:size=8}SISTEMA $stippled_hr${font}
##############
# - SYSTEM - #
##############
${color0}${voffset 6}${font OpenLogos:size=19}u${font}${color}${goto 32}${voffset -14}Kernel:  ${alignr}${color2}${kernel}${color}
${goto 32}Actividad: ${alignr}${color2}${uptime}${color}
# |--UPDATES
${goto 32}Actualizaciones: ${alignr}${font Droid Sans:style=Bold:size=8}${color1}${execi 360 aptitude search "~U" | wc -l | tail}${color}${font} ${color2}Paquetes${color}
# |--CPU
${offset 1}${color0}${font Poky:size=16}P${font}${offset -19}${voffset 9}${cpubar cpu0 4,18}
${goto 32}${color}${voffset -16}AMD Athlon II X2         ${font Droid Sans:style=Bold:size=8}${color1}${freq_g cpu0}${color} GHz${font}
${goto 32}Fan: ${font Droid Sans:style=Bold:size=8}${color1}${execi 30 sensors | grep 'CPU Fan' | cut -c13-16}${color} RPM ${font}
${goto 32}CPU1: ${font Droid Sans:style=Bold:size=8}${color1}${cpu cpu1}%${font} ${alignr}${font Droid Sans:style=Bold:size=8}${execi 30 sensors | grep 'temp1' | cut -c15-18}${color}°C${color}${font}  ${color2}${cpugraph cpu1 8,50 CE5C00 E07A1F}${color}
${goto 32}CPU2: ${font Droid Sans:style=Bold:size=8}${color1}${cpu cpu2}%${font} ${alignr}${font Droid Sans:style=Bold:size=8}${execi 30 sensors | grep 'temp1' | cut -c15-18}${color}°C${color}${font}  ${color2}${cpugraph cpu2 8,50 CE5C00 E07A1F}${color}
# |--VIDEO (sudo aticonfig --initial -f)
${color0}${font Poky:size=16}S${font}${color}${goto 32}${color}ATI Radeon HD 5770
${goto 32}GPU: ${font Droid Sans:style=Bold:size=8}${color1}${execi 1 aticonfig --adapter=0 --od-getclocks | grep -i GPU | cut -c31-34}${color}${alignr}${color1}${execi 30 aticonfig --adapter=0 --od-gettemperature | grep -i Temp | cut -c37-42}${color}°C${font}${color}
${goto 32}Core:${font Droid Sans:style=Bold:size=8}${color1}${execi 1 aticonfig --adapter=0 --od-getclocks | grep -i Clocks | cut -c31-34}${color} MHz${font}${alignr}Mem:${font Droid Sans:style=Bold:size=8}${color1}${execi 1 aticonfig --adapter=0 --od-getclocks | grep -i Clocks | cut -c45-49}${color} MHz${font}
${goto 32}Fan Speed:${font Droid Sans:style=Bold:size=8}${color1}${execi 1 aticonfig --pplib-cmd "get fanspeed 0" | grep 'Fan Speed' | cut -c19-21}${color} %${font}
# |--TEMP
${color0}${font StyleBats:size=16}l${font}${color}${goto 32}MB: ${font Droid Sans:style=Bold:size=8}${color1}${execi 30 sensors | grep 'MB Temp' | cut -c15-18}${color}°C${font}
${goto 32}Sys: ${font Droid Sans:style=Bold:size=8}${color1}${execi 30 sensors | grep 'Sys Temp' | cut -c15-18}${color}°C${alignr}${color1}${execi 30 sensors | grep 'SYS Fan' | cut -c13-16}${color} RPM ${font}
${goto 32}NBr: ${font Droid Sans:style=Bold:size=8}${color1}${execi 30 sensors | grep 'NBr Temp' | cut -c15-18}${color}°C${alignr}${color1}${execi 30 sensors | grep 'NB Fan' | cut -c13-16}${color} RPM ${font}
# |--MEM
${color0}${font Poky:size=16}M${font}${color}${goto 32}${voffset -7}RAM: ${font Droid Sans:style=Bold:size=8}${color1}$memperc%${color}${font}
${offset 1}${voffset 2}${color0}${membar 4,18}${color}${goto 32}${voffset -2}F: ${font Droid Sans:style=Bold:size=8}${color2}${memeasyfree}${color}${font} U: ${font Droid Sans:style=Bold:size=8}${color2}${mem}${color}${font}
# |--CPU
${voffset 2}${color0}${font Poky:size=14}s${font}${color}${voffset -8}${goto 32}SWAP: ${font Droid Sans:style=Bold:size=8}${color1}${swapperc}%${color}${font}
${voffset 4}${offset 1}${color0}${swapbar 4,18}${color}${voffset -4}${goto 32}F: ${font Droid Sans:style=Bold:size=8}${color2}$swapmax${color}${font} U: ${font Droid Sans:style=Bold:size=8}${color2}$swap${color}${font}
# |--PROC
${voffset 2}${color0}${font Poky:size=15}a${font}${color}${goto 32}${voffset -10}Procesos: ${color2}${alignr 13}CPU${alignr}RAM${color}
${voffset -1}${goto 42}${color2}${top name 1}${color}${font Droid Sans:style=Bold:size=8}${color1} ${goto 124}${top cpu 1}${alignr }${top mem 1}${color}${font}
${voffset -1}${goto 42}${color2}${top name 2}${color}${font Droid Sans:style=Bold:size=8}${color1} ${goto 124}${top cpu 2}${alignr }${top mem 2}${color}${font}
${voffset -1}${goto 42}${color2}${top name 3}${color}${font Droid Sans:style=Bold:size=8}${color1} ${goto 124}${top cpu 3}${alignr }${top mem 3}${color}${font}
${voffset -1}${goto 42}${color2}${top name 4}${color}${font Droid Sans:style=Bold:size=8}${color1} ${goto 124}${top cpu 4}${alignr }${top mem 4}${color}${font}
${voffset -1}${goto 42}${color2}${top name 5}${color}${font Droid Sans:style=Bold:size=8}${color1} ${goto 124}${top cpu 5}${alignr }${top mem 5}${color}${font}
#############
# - CLOCK - #
#############
${voffset 4}${font Droid Sans:style=Bold:size=8}FECHA $stippled_hr${font}
${voffset -12}${goto 28}${font Arial Black:size=38}${color2}${time %H}${color}${font}${voffset -28}${font Droid Sans:style=Bold:size=11}${color2}${time :%M}${time :%S}${color}${font}
${voffset -2}${goto 100}${font Droid Sans:style=Bold:size=8}${color2}${time %A}${color}${font}
${goto 100}${time %d %b %Y}
##########
# - HD - #
##########
${voffset 4}${font Droid Sans:style=Bold:size=8}HD $stippled_hr${font}
# |--HDTEMP1
  ${voffset 4}${color0}${font Weather:size=15}y${font}${color}${voffset -8}${goto 32}/dev/sda6: ${font Droid Sans:style=Bold:size=8}${color1}${execi 120 hddtemp /dev/sda6 -n --unit=C}°C${color}${font}
# |--HDTEMP2
${goto 32}/dev/sdb1: ${font Droid Sans:style=Bold:size=8}${color1}${execi 120 hddtemp /dev/sdb1 -n --unit=C}°C${color}${font}
${execpi 30 /home/dinlinux/.conkycolors/bin/conkyHD3}
###############
# - NETWORK - #
###############
${voffset 4}${font Droid Sans:style=Bold:size=8}RED $stippled_hr${font}
# |--ETH0
${if_up eth0}
${voffset -13}${color0}${font VariShapes Solid:size=14}q${font}${color}${goto 32}${voffset -6}Envío: ${font Droid Sans:style=Bold:size=8}${color1}${upspeed eth0}${color}${font} ${alignr}${color2}${upspeedgraph eth0 8,60 CD646B F56F6E}${color}
${goto 32}Total: ${font Droid Sans:style=Bold:size=8}${color2}${totalup eth0}${color}${font}
${voffset -2}${color0}${font VariShapes Solid:size=14}Q${font}${color}${goto 32}${voffset -6}Recibo: ${font Droid Sans:style=Bold:size=8}${color1}${downspeed eth0}${color}${font} ${alignr}${color2}${downspeedgraph eth0 8,60 CD646B F56F6E}${color}
${goto 32}Total: ${font Droid Sans:style=Bold:size=8}${color2}${totaldown eth0}${color}${font}
${voffset -2}${color0}${font Poky:size=13}w${font}${color}${goto 32}${voffset -4}Ip Local: ${alignr}${color2}${addr eth0}${color}
${goto 32}Ip Pública: ${alignr}${color2}${execi 10800 /home/dinlinux/.conkycolors/bin/conkyIp}${color}
# |--WLAN0
${else}${if_up wlan0}
${voffset -13}${color0}${font VariShapes Solid:size=14}q${font}${color}${goto 32}${voffset -6}Envío: ${font Droid Sans:style=Bold:size=8}${color1}${upspeed wlan0}${color}${font} ${alignr}${color2}${upspeedgraph wlan0 8,60 CD646B F56F6E}${color}
${goto 32}Total: ${font Droid Sans:style=Bold:size=8}${color2}${totalup wlan0}${color}${font}
${voffset -2}${color0}${font VariShapes Solid:size=14}Q${font}${color}${goto 32}${voffset -6}Recibo: ${font Droid Sans:style=Bold:size=8}${color1}${downspeed wlan0}${color}${font} ${alignr}${color2}${downspeedgraph wlan0 8,60 CD646B F56F6E}${color}
${goto 32}Total: ${font Droid Sans:style=Bold:size=8}${color2}${totaldown wlan0}${color}${font}
${voffset -2}${color0}${font Poky:size=14}Y${font}${color}${goto 32} ${voffset -2}Señal: ${font Droid Sans:style=Bold:size=8}${color1}${wireless_link_qual wlan0}%${color}${font} ${alignr}${color2}${wireless_link_bar 8,60 wlan0}${color}
${voffset 4}${color0}${font Poky:size=13}w${font}${color}${goto 32}${voffset -8}Ip Local: ${alignr}${color2}${addr wlan0}${color}
${goto 32}Ip Pública: ${alignr}${color2}${execi 10800 /home/dinlinux/.conkycolors/bin/conkyIp}${color}
# |--PPP0
${else}${if_up ppp0}
${voffset -13}${color0}${font VariShapes Solid:size=14}q${font}${color}${goto 32}${voffset -6}Envío: ${font Droid Sans:style=Bold:size=8}${color1}${upspeed ppp0}${color}${font} ${alignr}${color2}${upspeedgraph ppp0 8,60 CD646B F56F6E}${color}
${goto 32}Total: ${font Droid Sans:style=Bold:size=8}${color2}${totalup ppp0}${color}${font}
${voffset -2}${color0}${font VariShapes Solid:size=14}Q${font}${color}${goto 32}${voffset -6}Recibo: ${font Droid Sans:style=Bold:size=8}${color1}${downspeed ppp0}${color}${font} ${alignr}${color2}${downspeedgraph ppp0 8,60 CD646B F56F6E}${color}
${goto 32}Total: ${font Droid Sans:style=Bold:size=8}${color2}${totaldown ppp0}${color}${font}
${voffset -2}${color0}${font Poky:size=13}w${font}${color}${goto 32}${voffset -4}Ip Local: ${alignr}${color2}${addr ppp0}${color}
${else}${voffset 4}${color0}${font PizzaDude Bullets:size=12}4${font}${color}${goto 32}Red no disponible${voffset 14}${endif}${endif}${endif}
###############
# - WEATHER - #
###############
# For a working weather script you NEED to define, in a user specific config file, a partner id and registration code for the weather.com xoap service. For this purpose copy .conkyForecast.config in /usr/share/conkycolors folder to your home and setup as required.
# http://www.weather.com/services/xmloap.html
${voffset -8}${font Droid Sans:style=Bold:size=8}CLIMA $stippled_hr${font}
# |--ETH0
${if_up eth0}
${execpi 10800 /home/dinlinux/.conkycolors/bin/conkyForecast --location=ARER0093 -t /home/dinlinux/.conkycolors/templates/conkyForecast.template}
# |--WLAN0
${else}${if_up wlan0}
${execpi 10800 /home/dinlinux/.conkycolors/bin/conkyForecast --location=ARER0093 -t /home/dinlinux/.conkycolors/templates/conkyForecast.template}
# |--PPP0
${else}${if_up ppp0}
${execpi 10800 /home/dinlinux/.conkycolors/bin/conkyForecast --location=ARER0093 -t /home/dinlinux/.conkycolors/templates/conkyForecast.template}
${else}${voffset 4}${color0}${font PizzaDude Bullets:size=12}4${font}${color}${goto 32}Clima no disponible${voffset 14}${endif}${endif}${endif}

if