You are not logged in.

#1 2009-09-09 11:32:39

bozack
Member
From: Denmark
Registered: 2008-07-10
Posts: 45
Website

[SOLVED] Conky, LM-sensors and hwmon

Hi,

I used the guide found at the forum thread http://bbs.archlinux.org/viewtopic.php?id=43397 (post #4) to get my GPU and CPU temperature shown in conky by using LM-sensors. It all works fine, except for a single little error...

My conky-setup for the temperatures says

${color lightgrey} GPU: $color${hwmon 0 temp 1}°C   ${color lightgrey}CPU Core 0: $color${hwmon 1 temp 1}°C   ${color lightgrey}CPU Core 1: $color${hwmon 2 temp 1}°C

but when showing in conky, the "°C" part becomes "Å°C"??

Can anyone see why this happens? I've attached my whole .conkyrc below:

# set to yes if you want Conky to be forked in the background
background no

cpu_avg_samples 2
net_avg_samples 2

out_to_console no

# Use Xft?
use_xft yes

# Xft font when Xft is enabled
xftfont Bitstream Vera Sans Mono:size=7

own_window_type desktop
own_window_transparent yes
own_window_colour hotpink
# Text alpha when using Xft
xftalpha 0.8

# mail spool
mail_spool $MAIL

# Update interval in seconds
update_interval 1
# Create own window instead of using desktop (required in nautilus)
own_window yes

# Shows the time range covered by a graph. 
show_graph_range yes

# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes

# Minimum size of text area
#minimum_size 280 5
maximum_width 310

# Draw shades?
draw_shades no

# Draw outlines?
draw_outline no

# Draw borders around text
draw_borders no

# Stippled borders?
stippled_borders 10

# border margins
#border_margin 2

# border width
border_width 1

# Default colors and also border colors
default_color 424de5
default_shade_color 0b0b0b
default_outline_color white

# Text alignment, other possible values are commented
#alignment top_left
#minimum_size 10 10
gap_x 10
gap_y 0
#alignment top_right
#alignment bottom_left
alignment bottom_right

# Gap between borders of screen and text

# Add spaces to keep things from moving about?  This only affects certain objects.
use_spacer none

# Subtract file system buffers from used memory?
no_buffers yes

# set to yes if you want all text to be in uppercase
uppercase no

#${font Dungeon:style=Bold:pixelsize=10}I can change the font as well
#${font Verdana:size=10}as many times as I choose
#${font Perry:size=10}Including UTF-8,
#${font Luxi Mono:size=10}justo como este texto que o google traduz fêz o português
# stuff after 'TEXT' will be formatted on screen
#${font Grunge:size=12}${time %a  %b  %d}${alignr -25}${time %k:%M}



# Konfiguration fra Arch Forum:
# http://bbs.archlinux.org/viewtopic.php?id=56421

background yes
own_window yes
own_window_type normal
own_window_transparent yes
own_window_hints undecorated,below,skip_taskbar,skip_pager,sticky
double_buffer yes
draw_outline no 
draw_borders no 
draw_graph_borders yes 
stippled_borders 0
border_margin 0 
border_width 0


TEXT
$sysname $kernel on $nodename
#${color lightgrey}Desktop: $color$desktop_name ($desktop/$desktop_number)
${color 00043d}$stippled_hr
${color lightgrey}Uptime:$color $uptime ${color lightgrey}- Load:$color $loadavg
${color lightgrey}CPU Usage:${color #424de5} ${cpu}% ${cpubar}
${color 091124}${cpugraph lightgrey 00043d}
${color lightgrey}RAM Usage:$color $mem/$memmax - $memperc% $membar
${color lightgrey}Swap Usage:$color $swap/$swapmax - $swapperc% $swapbar
${color lightgrey}Processes:$color $processes  ${color grey}Running:$color $running_processes
${color 00043d}$stippled_hr
${color lightgrey}Networking (cable) - $color IP: ${addr eth0}
${color lightgrey} Down:$color ${downspeed eth0} k/s${color lightgrey} ${offset 70}Up:$color ${upspeed eth0} k/s
${color 091124}${downspeedgraph eth0 32,150 lightgrey 00043d} $alignr${color 091124}${upspeedgraph eth0 32,150 lightgrey 00043d}
${color lightgrey}Networking (wireless) - $color IP: ${addr wlan0}
${color lightgrey} Down:$color ${downspeed wlan0} k/s${color lightgrey} ${offset 70}Up:$color ${upspeed wlan0} k/s
${color 091124}${downspeedgraph wlan0 32,150 lightgrey 00043d} $alignr${color 091124}${upspeedgraph wlan0 32,150 lightgrey 00043d}
${color lightgrey}Wireless link quality: $color$wireless_link_qual $wireless_link_bar
${color lightgrey}Wireless ESSID: $color${wireless_essid}
${color 00043d}$stippled_hr
${color lightgrey}Battery: $color${battery BAT0} ${battery_bar BAT0}
${color 00043d}$stippled_hr
${color lightgrey}XMMS $xmms2_status
$color$xmms2_elapsed/$xmms2_duration $xmms2_bar
$color$xmms2_smart
${color lightgrey}Mixer: $color${mixer} ${mixerbar}
${color 00043d}$stippled_hr
${color lightgrey}Disk read: $color$diskio_read ${color lightgrey}- Disk write: $color$diskio_write
${color 091124}${diskiograph sda lightgrey 00043d}
${color lightgrey}File systems:
${color lightgrey} / $color${fs_used /}/${fs_size /} ${fs_bar /}
${color lightgrey} data $color${fs_used /mnt/data}/${fs_size /mnt/data} ${fs_bar /mnt/data}
${color lightgrey} vista $color${fs_used /mnt/vista}/${fs_size /mnt/vista} ${fs_bar /mnt/vista}
${color lightgrey} xp $color${fs_used /mnt/xp}/${fs_size /mnt/xp} ${fs_bar /mnt/xp}
${color 00043d}$stippled_hr
${color lightgrey}System temperatures:
${color lightgrey} GPU: $color${hwmon 0 temp 1}°C   ${color lightgrey}CPU Core 0: $color${hwmon 1 temp 1}°C   ${color lightgrey}CPU Core 1: $color${hwmon 2 temp 1}°C
${color 00043d}$stippled_hr
${color}Name              PID    CPU%    MEM%
${color #308ffd} ${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1}
${color lightgrey} ${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2}
${color lightgrey} ${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3}
${color}Mem usage
${color #308ffd} ${top_mem name 1} ${top_mem pid 1} ${top_mem cpu 1} ${top_mem mem 1}
${color lightgrey} ${top_mem name 2} ${top_mem pid 2} ${top_mem cpu 2} ${top_mem mem 2}
${color lightgrey} ${top_mem name 3} ${top_mem pid 3} ${top_mem cpu 3} ${top_mem mem 3}

EDIT: Found the error: I had edited the file in mousepad, which couldn't save the "°"'s right..

Last edited by bozack (2009-09-09 12:45:21)

Offline

#2 2009-09-09 11:40:10

nTia89
Banned
From: varese, italy
Registered: 2008-12-22
Posts: 1,230

Re: [SOLVED] Conky, LM-sensors and hwmon

try to append in the .conkyrc
the setting:

override_utf8_locale

Last edited by nTia89 (2009-09-09 11:41:14)


+pc: custom | AMD Opteron 175 | nForce4 Ultra | 2GB ram DDR400 | nVidia 9800GT 1GB | ArchLinux x86_64 w/ openbox
+laptop: Apple | MacBook (2,1) | 2GB ram | Mac OS X 10.4 -> DIED
+ultrabook: Dell | XPS 13 (9343) | 8GB ram | 256GB ssd | FullHD display | Windows 8.1 64bit ArchLinux x86_64 w/ Gnome

Offline

#3 2009-09-09 12:01:55

bozack
Member
From: Denmark
Registered: 2008-07-10
Posts: 45
Website

Re: [SOLVED] Conky, LM-sensors and hwmon

nTia89 wrote:

try to append in the .conkyrc
the setting:

override_utf8_locale

It didn't work - but I might have to say - my locale is danish (in my locale.gen I have the two lines "da_DK.UTF-8 UTF-8" and "da_DK ISO-8859-1" uncommented)..

Does this make any difference?

Offline

#4 2009-09-09 12:44:30

bozack
Member
From: Denmark
Registered: 2008-07-10
Posts: 45
Website

Re: [SOLVED] Conky, LM-sensors and hwmon

Well, just figured out the error: I edited the .conkyrc in mousepad for some reason, and when I opened the file in nano, the "Å"'s were actually in the file - it seems that mousepad couldn't save the "°" in the right format...

Offline

#5 2009-09-09 13:39:40

nTia89
Banned
From: varese, italy
Registered: 2008-12-22
Posts: 1,230

Re: [SOLVED] Conky, LM-sensors and hwmon

Solved


+pc: custom | AMD Opteron 175 | nForce4 Ultra | 2GB ram DDR400 | nVidia 9800GT 1GB | ArchLinux x86_64 w/ openbox
+laptop: Apple | MacBook (2,1) | 2GB ram | Mac OS X 10.4 -> DIED
+ultrabook: Dell | XPS 13 (9343) | 8GB ram | 256GB ssd | FullHD display | Windows 8.1 64bit ArchLinux x86_64 w/ Gnome

Offline

Board footer

Powered by FluxBB