Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Conky v 1.21.9 conky: cannot kvm_openfiles: /dev/mem: Permission denied #2108

Closed
epsheldoni opened this issue Dec 7, 2024 · 2 comments · Fixed by #2122
Closed

[Bug]: Conky v 1.21.9 conky: cannot kvm_openfiles: /dev/mem: Permission denied #2108

epsheldoni opened this issue Dec 7, 2024 · 2 comments · Fixed by #2122
Labels
bug related to incorrect existing implementation of some functionality os: netbsd related to NetBSD

Comments

@epsheldoni
Copy link

What happened?

Down loaded latest version on NetBSD10.0. Compiles yet after starting it throws the following:

NetBSD-10$ ./conky
conky: desktop window (0x1200028) is subwindow of root window (0x111)
conky: window type - normal
conky: drawing to created window (0x2e00002)
conky: drawing to double buffer
conky: forked to background, pid is 6017
NetBSD-10$
conky: FOUND: x11
conky: FOUND: file
conky: FOUND: ncurses
conky: FOUND: console
conky: cannot kvm_openfiles: /dev/mem: Permission denied
conky: maybe you need to setgid kmem this program?

The last two lines repeat until I kill conky.

Version

1.21.9

Which OS/distro are you seeing the problem on?

Linux (other)

Conky config

conky.config = {
background = true,
use_xft = true,
font = 'Liberation Sans:size=12',
update_interval = 1.0,
total_run_times = 0,
own_window = true,
own_window_class = 'Conky',
own_window_transparent = true,
own_window_type = normal,
own_window_argb_visual = true,
own_window_argb_value = 100,
own_window_hints = undecorated,below,sticky,skip_taskbar,skip_pager,
double_buffer = true,
maximum_width = 280,
draw_shades = false,
draw_outline = false,
draw_borders = false,
draw_graph_borders = false,
default_color = 'white',
default_shade_color = 'gray',
default_outline_color = 'gray',
alignment = 'middle_right',
gap_x = 12,
gap_y = 12,
no_buffers = true,
uppercase = false,
top_name_verbose = false,
cpu_avg_samples = 2,
override_utf8_locale = false,
color1 = blue,
color2 = gray,
}

--##############################################
--#  Output
--##############################################
conky.text = [[
Conky Version:$alignr {$conky_version}
Host:$alignr $nodename
Kernel:$alignr $kernel
Freq$alignr${freq}MHz
RAM:$alignr $mem/$memmax
Disk usage:$alignr ${fs_used /}/${fs_size /}
Uptime:$alignr $uptime

CPU 0 usage:$alignr ${cpu cpu0}%
CPU 1 usage:$alignr ${cpu cpu1}%
CPU 2 usage:$alignr ${cpu cpu2}%
CPU 3 usage:$alignr ${cpu cpu3}%
CPU 4 usage:$alignr ${cpu cpu4}%
CPU 5 usage:$alignr ${cpu cpu5}%
CPU 6 usage:$alignr ${cpu cpu6}%
CPU 7 usage:$alignr ${cpu cpu7}%

System Load:$alignr   ${loadavg}  
$cpubar
${cpugraph ffffff 000000}
Processes ${hr 1}
${top name 1}${alignr}${top cpu 1}
${top name 2}${alignr}${top cpu 2}
${top name 3}${alignr}${top cpu 3}
${top name 4}${alignr}${top cpu 4}
${top name 5}${alignr}${top cpu 5}
${top name 6}${alignr}${top cpu 6}
${top name 7}${alignr}${top cpu 7}
${top name 8}${alignr}${top cpu 8}
${top name 9}${alignr}${top cpu 9}

Ethernet wm0 ${hr 1}
Down: $color${downspeed wm0} - ${alignr}Up: ${upspeed wm0} -
${downspeedgraph wm0 25,120 CCCCCC 0000FF} ${alignr}${upspeedgraph wm0 25,120 000000 00ff00} $color
Total: ${totaldown wm0} ${alignr}Total: ${totalup wm0}

]]

Stack trace

No response

Relevant log output

No response

@epsheldoni epsheldoni added bug related to incorrect existing implementation of some functionality triage issue that hasn't been verified, categorized or acknowledged yet labels Dec 7, 2024
@epsheldoni
Copy link
Author

Also ${cpu cpuN} now shows cpu

@epsheldoni
Copy link
Author

I tried compiling by root thinking that this would solve the problem. It did not. conky still throws

conky: cannot kvm_openfiles: /dev/mem: Permission denied
conky: maybe you need to setgid kmem this program?

After correcting ${mem}/${memmax} in .conkyrc the values are shown with a minus sign, e.g. -1.4GiB

@Caellian Caellian added os: netbsd related to NetBSD and removed triage issue that hasn't been verified, categorized or acknowledged yet labels Dec 8, 2024
g0mb4 added a commit that referenced this issue Dec 22, 2024
g0mb4 added a commit that referenced this issue Dec 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug related to incorrect existing implementation of some functionality os: netbsd related to NetBSD
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants