Image 01
profile-image

cirdan52

Automatik Nvidia and AMD Radeon

Conky 106 comments

Rating: 7.5
Apr 15 2018
recent revisions have caused the script not to recognize my nvidia card. running the script I get:
go.sh
resolution: 96x96 dots per inch
conky: no process found
sh: iwconfig: command not found
sh: iwconfig: command not found
sh: iwconfig: command not found
sh: iwconfig: command not found
AOC 2243W
AOC 2243W
sh: lspci: command not found
sh: lspci: command not found
sh: lspci: command not found
Traceback (most recent call last):
File "graphiccard01.py", line 184, in
CardName=CardName[5]
IndexError: list index out of range
AOC 2243W
AOC 2243W
/bin/sh: lspci: command not found
/bin/sh: lspci: command not found
/bin/sh: lspci: command not found
Traceback (most recent call last):
File "graphiccard01.py", line 184, in
CardName=CardName[5]
IndexError: list index out of range

iwconfig requires root privilages running under sudo I get:

xdpyinfo: unable to open display "".
Can't open display
conky: no process found
eth0 no wireless extensions.

virbr0 no wireless extensions.

virbr0-nic no wireless extensions.

Can't open display
AOC 2243W
AOC 2243W
Can't open display
Can't open display
Unable to init server: Could not connect: Connection refused

ERROR: The control display is undefined; please run `nvidia-settings --help` for usage information.

Unable to init server: Could not connect: Connection refused

ERROR: The control display is undefined; please run `nvidia-settings --help` for usage information.

Traceback (most recent call last):
File "graphiccard01.py", line 366, in
Frequency_Text=Frequency[Language]+"${alignr}${exec nvidia-settings -q [gpu:"+str(Nvidia_Number)+"]/GPUCurrentClockFreqs | grep gpu | tr ',' '\\n' | sed -n 2p | tr -d '.' } / "+Maximum_Frequency
TypeError: cannot concatenate 'str' and 'list' objects
Can't open display
AOC 2243W
AOC 2243W
Can't open display
Can't open display
Unable to init server: Could not connect: Connection refused

ERROR: The control display is undefined; please run `nvidia-settings --help` for usage information.

Unable to init server: Could not connect: Connection refused

ERROR: The control display is undefined; please run `nvidia-settings --help` for usage information.

Traceback (most recent call last):
File "graphiccard01.py", line 366, in
Frequency_Text=Frequency[Language]+"${alignr}${exec nvidia-settings -q [gpu:"+str(Nvidia_Number)+"]/GPUCurrentClockFreqs | grep gpu | tr ',' '\\n' | sed -n 2p | tr -d '.' } / "+Maximum_Frequency
TypeError: Can't convert 'list' object to str implicitly

The old version runs fine, running openSUSE 42.3. - May 21 2018
sudo btrfs fi df /
Data, single: total=44.01GiB, used=42.05GiB
System, DUP: total=32.00MiB, used=16.00KiB
Metadata, DUP: total=3.00GiB, used=2.04GiB
GlobalReserve, single: total=512.00MiB, used=0.00B - May 07 2017
use 'btrfs fi df' - May 07 2017
When the date changes the calendar window disappears - May 02 2017
df -Th 2>/dev/null | egrep -v '^.*(tmp|proc|sys|var|pts|daemon|root|gvfs).*$' | grep -v 'efi'
/dev/sdc2 btrfs 100G 45G 54G 46% /
/dev/sdc2 btrfs 100G 45G 54G 46% /srv
/dev/sdc2 btrfs 100G 45G 54G 46% /.snapshots
/dev/sdc2 btrfs 100G 45G 54G 46% /usr/local
/dev/sdc2 btrfs 100G 45G 54G 46% /boot/grub2/i386-pc
/dev/sdc2 btrfs 100G 45G 54G 46% /opt
/dev/md0 xfs 1.9T 544G 1.3T 30% /mnt/raid
/dev/sdc3 xfs 830G 108G 723G 13% /home


























- May 01 2017
xinerama_head 1 does move it to the 2nd monitor however all the windows are on top of one another - May 01 2017
Glad to help ...also the handling of btrfs has the window displaying the subvolumes but not the root (displays @.snapshots) - May 01 2017
Now for my wish list :) Can you come up with a simple way to move all the windows over to 2nd monitor in a dual display? And this is I think another KDE problem, the display appears in all desktops and activities. Would be nice to confine to a single Desktop/screen/activity. - May 01 2017
Ok the problem lies in the tear off and month calendar versions. The original version works correctly. I can confirm that the alt+click is confined to KDE plasma5, it works in LXDE - May 01 2017
cat diskfile |grep gradbar
${lua gradbar 6 70 ${fs_used_perc /.snapshots} 100 75 2 10 1 0xFFFFFF 0.25 0x00FF00 1 0xFFFF00 1 0xFF0000 1}${alignr}${offset -5}${fs_used_perc /.snapshots}% used

cat memfile |grep gradbar
#${lua gradbar 5 218 ${memperc} 100 80 2 10 1 0xFFFFFF 0.25 0x00FF00 1 0xFFFF00 1 0xFF0000 1}
${lua gradbar 6 55 ${memperc} 100 97 2 10 1 0xFFFFFF 0.25 0x00FF00 1 0xFFFF00 1 0xFF0000 1}
${lua gradbar 6 115 ${swapperc} 100 97 2 10 1 0xFFFFFF 0.25 0x00FF00 1 0xFFFF00 1 0xFF0000 1}

cat cpufile | grep gradbar
Cpu 1${goto 50} : ${cpu cpu1}% ${lua gradbar {100, 110, "${cpu cpu1}", 100, 40, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 230}${color}${freq 1} MHz${image img/trans-bg240.png -p 96,105 -s 121x11}

I didn't copy all the disk or cpu entries to save space here, don't see and attach option on this forum - May 01 2017
Hello, couple of things not working for me on opensuse Leap 42.2. The alt click does not work for me, and there are no color bars on the memory or disk usage but the cpu bars are fine. - Apr 28 2017
Rating: 7.5
8   May 01 2017