brndnmtthws / conky

Light-weight system monitor for X, Wayland (sort of), and other things, too
https://conky.cc
GNU General Public License v3.0
7.27k stars 620 forks source link

[Bug]: I am with this problem in hddtempo #2007

Closed servimo closed 3 months ago

servimo commented 3 months ago

What happened?

hddtemp is showing N/A°C in conky. Happen after latest update of Manjaro, before it was ok. conky

Version

1.21.7-pre-b858d0c compiled from git.

Which OS/distro are you seeing the problem on?

Arch Linux/Manjaro

Conky config

conky.config = {
-- Conky configuration
    background = false,
    use_xft = true,
    font = 'Cantarell Regular Sans:size=8',
    xftalpha = 0,
    update_interval = 2.0,
    total_run_times = 0,
    own_window = true,
    own_window_class = 'Conky',
    own_window_transparent = false,
    own_window_colour = '#111111',
    own_window_type = 'normal',
    own_window_argb_visual = true,
    own_window_argb_value = 120,
    own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
    double_buffer = true,
    no_buffers = true,
    minimum_width = 150,
        minimum_height = 150,
    maximum_width = 210,
    draw_shades = true,
    draw_outline = true,
    border_width = 2,
    draw_borders = true,
    draw_graph_borders = true,
    default_color = '#444444',
        color1 = 'cyan',
    default_shade_color = 'white',
    default_outline_color = 'black',
    alignment = 'top_right',

    gap_x = 10,
    gap_y = 50,
    cpu_avg_samples = 4,
        net_avg_samples = 2,
    text_buffer_size = 1024,
    uppercase = false,
    override_utf8_locale = true,
        graph_gradient_mode = 'hcl',

};

conky.text = [[
#${voffset 50}
${color lightgrey}
${alignc}${outlinecolor cccccc}${font 'Cantarell Regular Sans':style=Regular:pixelsize=50}${time %H:%M}${font}
${voffset 10}
${color white}${alignr}${outlinecolor 999999}${font 'Cantarell Regular Sans':style=Regular:pixelsize=13}${time %A, %d %B %Y}${font}
${outlinecolor black}${color grey}
$hr

${color grey}S I S T E M A${alignr}$fs_type
$hr
Conky Version:  ${no_update $conky_version}
Sistema: ${no_update $sysname} ${no_update $kernel}
${exec lsb_release -r}  ${exec lsb_release -c}
CPU: Intel Core i7-3770k @3.50GHz
#Updates: ${execi 7200 update-notifier}
Tempo ligado:    $uptime
#Hora: ${alignr}${time %H:%M:%S}  Data: ${time %d/%b/%Y}
Updates: ${execi 1800 checkupdates-with-aur | wc -l}
#${alignr}Entropy: ${entropy_perc}%      

C P U ${alignr} ${cpu cpu0}%
$hr
Processador:   ${alignr}${freq_g}GHz
CPU Temperatura: ${alignr}${hwmon temp 1}°C
${color cyan}${cpubar cpu0}
#${color cyan}${cpubar cpu1}
#${color cyan}${cpubar cpu2}
#${color cyan}${cpubar cpu3}
#${color cyan}${cpubar cpu4}
#${color cyan}${cpubar cpu5}
#${color cyan}${cpubar cpu6}
#${color cyan}${cpubar cpu7}
#${color cyan}${cpubar cpu8}
${color grey}Threads: ${running_threads}   Processos: ${running_processes}

T O P   C P U
$hr
Processo: $alignr CPU% MEM%
${top name 1}$alignr${top cpu 1}   ${top mem 1}
${top name 2}$alignr${top cpu 2}   ${top mem 2}
${top name 3}$alignr${top cpu 3}   ${top mem 3}
${top name 4}$alignr${top cpu 4}   ${top mem 4}
${top name 5}$alignr${top cpu 5}   ${top mem 5}

R A M ${alignr} ${memperc}%
$hr
Memória: ${alignr}${mem} / ${memfree} / ${memmax}
${color cyan}${membar}${color grey}
Swap: $swap / $swapfree / $swapmax

T O P   R A M
$hr
Processo: $alignr CPU% MEM%
${top_mem name 1}$alignr${top_mem cpu 1}   ${top_mem mem 1}
${top_mem name 2}$alignr${top_mem cpu 2}   ${top_mem mem 2}
${top_mem name 3}$alignr${top_mem cpu 3}   ${top_mem mem 3}
${top_mem name 4}$alignr${top_mem cpu 4}   ${top_mem mem 4}
${top_mem name 5}$alignr${top_mem cpu 5}   ${top_mem mem 5}

A R M A Z E N A M E N T O
$hr
SSD Temperatura: ${alignr}${hddtemp /dev/sdb}°C
Raiz: ${alignr}${fs_used /} / ${fs_free /} / ${fs_size /}
${color cyan}${fs_bar /}${color grey}
HD1 Temperatura: ${alignr}${hddtemp /dev/sda}°C
Home: ${alignr}${fs_used /home} / ${fs_free /home} / ${fs_size /home}
${color cyan}${fs_bar /home}${color grey}
HD1 Interno Temperatura: ${alignr}${hddtemp /dev/sdd}°C
HD.Int1: ${alignr}${fs_used /HD.Interno1} / ${fs_free /HD.Interno1} / ${fs_size /HD.Interno1}
${color cyan}${fs_bar /HD.Interno1}${color grey}
SSD2 Interno Temperatura: ${alignr}${hddtemp /dev/sda}°C
SD.Int2: ${alignr}${fs_used /SSD.Interno2} / ${fs_free /SSD.Interno2} / ${fs_size /SSD.Interno2}
${color cyan}${fs_bar /SSD.Interno2}${color grey}
#HDs Externos: 
$hr
HDExterno:${if_mounted /run/media/sergio/da16daf8-2a1f-21ab-7ede-8800703c7e71}  $alignc ${fs_used /run/media/sergio/da16daf8-2a1f-21ab-7ede-8800703c7e71} / ${fs_size /run/media/sergio/da16daf8-2a1f-21ab-7ede-8800703c7e71} $alignr ${fs_free_perc /run/media/sergio/da16daf8-2a1f-21ab-7ede-8800703c7e71}%$else $alignr Not Mounted $endif
#HD 2:${if_mounted /run/media/sergio/SamsungHD2}     $alignc ${fs_used /run/media/sergio/SamsungHD2} / ${fs_size /run/media/sergio/SamsungHD2} $alignr ${fs_free_perc /run/media/sergio/SamsungHD2}%{$else $alignr Not Mounted $endif}
#HD 3:${if_mounted /run/media/sergio/SamsungHD3}     $alignc ${fs_used /run/media/sergio/SamsungHD3} / ${fs_size /run/media/sergio/SamsungHD3} $alignr ${fs_free_perc /run/media/sergio/SamsungHD3}%$else $alignr Not Mounted $endif

R E D E S
$hr
Down: ${downspeed enp2s0}        ${alignr}Up: ${upspeed enp2s0}
${color cyan}${downspeedgraph enp2s0 20,95 cyan cyan}   ${alignr}${upspeedgraph enp2s0 20,95 cyan cyan}${color grey}
Entrada: ${totaldown enp2s0} ${alignr}Saída: ${totalup enp2s0}
IP Local: ${alignr}${addr enp2s0}
IP Público: ${alignr}${execi 3600 curl -s www.icanhazip.com}
#IP Público ${alignr}${execi 3600 curl -s checkip.dyndns.org | sed -e 's/.*Current IP Address: //' -e 's/<.*$//'}
#IP Publico ${alignr}${execi 3600 wget -O - http://ip.tupeux.com | tail}
IPv6: ${alignr}${v6addrs enp2s0}
#M U S I C   I N F O
#$hr
#Artist: ${alignr}${moc_artist}
#Album: ${alignr}${moc_album}
#Song: ${alignr}${moc_song}
#Time: ${alignr}${moc_curtime} / ${moc_timeleft} / ${moc_totaltime}
#${if_running deadbeef M U S I C   I N F O
#Artista: ${alignr}${exec deadbeef --nowplaying %B}
#Álbum: ${alignr}${exec deadbeef --nowplaying %b}
#Faixa: ${alignr}(${exec deadbeef --nowplaying %n})  ${exec deadbeef --nowplaying %t}
#Tempo: ${alignr}${exec deadbeef --nowplaying "%e / %l"}
#${color cyan}${execbar /home/sergio/deadbeef-conky-script}
#$endif
]]

Stack trace

No response

Relevant log output

No response

servimo commented 3 months ago

If I did in terminal: hddtemp /dev/sda permission denied sudo hddtemp /dev/sda the disk is asleep