WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: conky does not return the wireless values  (Read 2641 times)

Offline emninger

  • Sr. Member
  • ****
  • Posts: 267
conky does not return the wireless values
« on: November 11, 2015, 06:02:06 AM »
Conky does not return certain wireless values (like wireless_link_qual or wireless_bitrate). These values are those which are only returned by doing
Code: [Select]
sudo iwconfig.

I tested (also to see if the conky extension is compiled with wlan enabled, and indeed, starting conky as root returns the values correctly. Now, what would be a way to play around this problem?

Is it possible to create a user conky with sudo rights (not really a good idea i think)? Or to make accessible "sudo iwconfig" to conky?

Thanks a lot in advance.

Online Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11623
Re: conky does not return the wireless values
« Reply #1 on: November 11, 2015, 09:16:01 AM »

Offline emninger

  • Sr. Member
  • ****
  • Posts: 267
Re: conky does not return the wireless values
« Reply #2 on: November 11, 2015, 09:31:52 AM »
Hi emninger
Have you seen this:
http://askubuntu.com/questions/350409/conky-does-not-display-wireless-info

No. I only saw the related discussion (without the solution) in the ubuntuforums. Thanks a lot!

Just a practical question: Since the solution consists in changing, partially, the rights of conky, how would they been made persistent since conky (binary) sits - as a symbolic link to /tmp/conky/usr/local/bin/conky - in /usr/local/?

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: conky does not return the wireless values
« Reply #3 on: November 11, 2015, 10:01:43 AM »
Unlink and copy in bootlocal.sh.
Another option is to copy the conky binary to your ~/bin and run it from there.
« Last Edit: November 11, 2015, 10:03:35 AM by gerald_clark »

Offline emninger

  • Sr. Member
  • ****
  • Posts: 267
Re: conky does not return the wireless values
« Reply #4 on: November 11, 2015, 11:01:20 AM »
Unlink and copy in bootlocal.sh.

But wouldn't any boot recreat that link? And what do you mean by: "copy in bootlocal.sh". I thought of bootlocal.sh as the script starting (my) processes and/or daemons before X comes up?

Another option is to copy the conky binary to your ~/bin and run it from there.

This option i understand better ;) I'd have to create ~/bin, i presume. And to change my path variables (where, which file, btw?)?

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: conky does not return the wireless values
« Reply #5 on: November 11, 2015, 11:20:42 AM »
bootlocal.sh can do lots of different things at boot, but my second suggestion is easier.


You don't need to change your PATH.
just start it with

~/bin/conky &

in your script in .X.d

Offline emninger

  • Sr. Member
  • ****
  • Posts: 267
Re: conky does not return the wireless values
« Reply #6 on: November 11, 2015, 11:22:31 AM »
Ok. Thanks a lot. Later on i'll try and turn back with the results. :D

Offline emninger

  • Sr. Member
  • ****
  • Posts: 267
Re: conky does not return the wireless values
« Reply #7 on: November 12, 2015, 02:37:04 AM »
Hi emninger
Have you seen this:
http://askubuntu.com/questions/350409/conky-does-not-display-wireless-info

I tried that solution. Problem starts with the first command (those to give - limited - admin rights to conky):

command:
Code: [Select]
sudo setcap cap_net_raw,cap_net_admin=eip /usr/bin/conky
gives the result:
Code: [Select]
sudo setcap cap_net_raw,cap_net_admin=eip /usr/bin/conky
Which would be the corrispondent command in tcl, if at all?