├── usr ├── share │ ├── nvidiux │ │ ├── img │ │ │ ├── i.png │ │ │ ├── conf.png │ │ │ ├── Nvidiux.png │ │ │ ├── switch25.png │ │ │ ├── Gpu │ │ │ │ ├── GeForce GT 520.png │ │ │ │ ├── GeForce GT 620.png │ │ │ │ ├── GeForce GT 630.png │ │ │ │ ├── GeForce GT 730.png │ │ │ │ ├── GeForce GT 740.png │ │ │ │ ├── GeForce GT 1030.png │ │ │ │ ├── GeForce GTX 1050.png │ │ │ │ ├── GeForce GTX 1060.png │ │ │ │ ├── GeForce GTX 1070.png │ │ │ │ ├── GeForce GTX 1080.png │ │ │ │ ├── GeForce GTX 460.png │ │ │ │ ├── GeForce GTX 470.png │ │ │ │ ├── GeForce GTX 480.png │ │ │ │ ├── GeForce GTX 570.png │ │ │ │ ├── GeForce GTX 580.png │ │ │ │ ├── GeForce GTX 650.png │ │ │ │ ├── GeForce GTX 660.png │ │ │ │ ├── GeForce GTX 670.png │ │ │ │ ├── GeForce GTX 680.png │ │ │ │ ├── GeForce GTX 750.png │ │ │ │ ├── GeForce GTX 760.png │ │ │ │ ├── GeForce GTX 770.png │ │ │ │ ├── GeForce GTX 780.png │ │ │ │ ├── GeForce GTX 960.png │ │ │ │ ├── GeForce GTX 970.png │ │ │ │ ├── GeForce GTX 980.png │ │ │ │ ├── GeForce GTX 1050 Ti.png │ │ │ │ ├── GeForce GTX 1070 Ti.png │ │ │ │ ├── GeForce GTX 1080 Ti.png │ │ │ │ ├── GeForce GTX 560 Ti.png │ │ │ │ ├── GeForce GTX 750 TI.png │ │ │ │ └── GeForce GTX 780 Ti.png │ │ │ └── drivers_nvidia_linux.png │ │ ├── nvidiux_de_DE.qm │ │ ├── nvidiux_en_EN.qm │ │ ├── nvidiux_es_ES.qm │ │ ├── nvidiux_fr_FR.qm │ │ ├── nvidiux.pro │ │ ├── launch.sh │ │ ├── root_script │ │ │ ├── disableStartupCron.sh │ │ │ ├── enableStartupCron.sh │ │ │ ├── del_xtra1.py │ │ │ ├── add_xtra1.py │ │ │ └── add_coolbits.py │ │ ├── toRoot.sh │ │ ├── donate.py │ │ ├── confirm.py │ │ ├── monitor │ │ │ ├── monitor2ui.py │ │ │ ├── monitor2.ui │ │ │ ├── monitorSettings.py │ │ │ ├── monitor.py │ │ │ └── monitor2.py │ │ ├── Ui_Nvidiux.py │ │ ├── licences │ │ │ └── gpl-3.0.txt │ │ └── gpl-3.0.txt │ ├── man │ │ └── man1 │ │ │ └── nvidiux.1.gz │ └── applications │ │ └── nvidiux.desktop └── bin │ └── nvidiux └── README.md /usr/share/nvidiux/img/i.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RunGp/Nvidiux/HEAD/usr/share/nvidiux/img/i.png -------------------------------------------------------------------------------- /usr/share/man/man1/nvidiux.1.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RunGp/Nvidiux/HEAD/usr/share/man/man1/nvidiux.1.gz -------------------------------------------------------------------------------- /usr/share/nvidiux/img/conf.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RunGp/Nvidiux/HEAD/usr/share/nvidiux/img/conf.png -------------------------------------------------------------------------------- /usr/share/nvidiux/img/Nvidiux.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RunGp/Nvidiux/HEAD/usr/share/nvidiux/img/Nvidiux.png -------------------------------------------------------------------------------- /usr/share/nvidiux/img/switch25.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RunGp/Nvidiux/HEAD/usr/share/nvidiux/img/switch25.png -------------------------------------------------------------------------------- /usr/share/nvidiux/nvidiux_de_DE.qm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RunGp/Nvidiux/HEAD/usr/share/nvidiux/nvidiux_de_DE.qm -------------------------------------------------------------------------------- /usr/share/nvidiux/nvidiux_en_EN.qm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RunGp/Nvidiux/HEAD/usr/share/nvidiux/nvidiux_en_EN.qm -------------------------------------------------------------------------------- /usr/share/nvidiux/nvidiux_es_ES.qm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RunGp/Nvidiux/HEAD/usr/share/nvidiux/nvidiux_es_ES.qm -------------------------------------------------------------------------------- /usr/share/nvidiux/nvidiux_fr_FR.qm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RunGp/Nvidiux/HEAD/usr/share/nvidiux/nvidiux_fr_FR.qm -------------------------------------------------------------------------------- /usr/share/nvidiux/img/Gpu/GeForce GT 520.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RunGp/Nvidiux/HEAD/usr/share/nvidiux/img/Gpu/GeForce GT 520.png -------------------------------------------------------------------------------- /usr/share/nvidiux/img/Gpu/GeForce GT 620.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RunGp/Nvidiux/HEAD/usr/share/nvidiux/img/Gpu/GeForce GT 620.png -------------------------------------------------------------------------------- /usr/share/nvidiux/img/Gpu/GeForce GT 630.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RunGp/Nvidiux/HEAD/usr/share/nvidiux/img/Gpu/GeForce GT 630.png -------------------------------------------------------------------------------- /usr/share/nvidiux/img/Gpu/GeForce GT 730.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RunGp/Nvidiux/HEAD/usr/share/nvidiux/img/Gpu/GeForce GT 730.png -------------------------------------------------------------------------------- /usr/share/nvidiux/img/Gpu/GeForce GT 740.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RunGp/Nvidiux/HEAD/usr/share/nvidiux/img/Gpu/GeForce GT 740.png -------------------------------------------------------------------------------- /usr/share/nvidiux/img/Gpu/GeForce GT 1030.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RunGp/Nvidiux/HEAD/usr/share/nvidiux/img/Gpu/GeForce GT 1030.png -------------------------------------------------------------------------------- /usr/share/nvidiux/img/Gpu/GeForce GTX 1050.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RunGp/Nvidiux/HEAD/usr/share/nvidiux/img/Gpu/GeForce GTX 1050.png -------------------------------------------------------------------------------- /usr/share/nvidiux/img/Gpu/GeForce GTX 1060.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RunGp/Nvidiux/HEAD/usr/share/nvidiux/img/Gpu/GeForce GTX 1060.png -------------------------------------------------------------------------------- /usr/share/nvidiux/img/Gpu/GeForce GTX 1070.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RunGp/Nvidiux/HEAD/usr/share/nvidiux/img/Gpu/GeForce GTX 1070.png -------------------------------------------------------------------------------- /usr/share/nvidiux/img/Gpu/GeForce GTX 1080.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RunGp/Nvidiux/HEAD/usr/share/nvidiux/img/Gpu/GeForce GTX 1080.png -------------------------------------------------------------------------------- /usr/share/nvidiux/img/Gpu/GeForce GTX 460.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RunGp/Nvidiux/HEAD/usr/share/nvidiux/img/Gpu/GeForce GTX 460.png -------------------------------------------------------------------------------- /usr/share/nvidiux/img/Gpu/GeForce GTX 470.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RunGp/Nvidiux/HEAD/usr/share/nvidiux/img/Gpu/GeForce GTX 470.png -------------------------------------------------------------------------------- /usr/share/nvidiux/img/Gpu/GeForce GTX 480.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RunGp/Nvidiux/HEAD/usr/share/nvidiux/img/Gpu/GeForce GTX 480.png -------------------------------------------------------------------------------- /usr/share/nvidiux/img/Gpu/GeForce GTX 570.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RunGp/Nvidiux/HEAD/usr/share/nvidiux/img/Gpu/GeForce GTX 570.png -------------------------------------------------------------------------------- /usr/share/nvidiux/img/Gpu/GeForce GTX 580.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RunGp/Nvidiux/HEAD/usr/share/nvidiux/img/Gpu/GeForce GTX 580.png -------------------------------------------------------------------------------- /usr/share/nvidiux/img/Gpu/GeForce GTX 650.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RunGp/Nvidiux/HEAD/usr/share/nvidiux/img/Gpu/GeForce GTX 650.png -------------------------------------------------------------------------------- /usr/share/nvidiux/img/Gpu/GeForce GTX 660.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RunGp/Nvidiux/HEAD/usr/share/nvidiux/img/Gpu/GeForce GTX 660.png -------------------------------------------------------------------------------- /usr/share/nvidiux/img/Gpu/GeForce GTX 670.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RunGp/Nvidiux/HEAD/usr/share/nvidiux/img/Gpu/GeForce GTX 670.png -------------------------------------------------------------------------------- /usr/share/nvidiux/img/Gpu/GeForce GTX 680.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RunGp/Nvidiux/HEAD/usr/share/nvidiux/img/Gpu/GeForce GTX 680.png -------------------------------------------------------------------------------- /usr/share/nvidiux/img/Gpu/GeForce GTX 750.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RunGp/Nvidiux/HEAD/usr/share/nvidiux/img/Gpu/GeForce GTX 750.png -------------------------------------------------------------------------------- /usr/share/nvidiux/img/Gpu/GeForce GTX 760.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RunGp/Nvidiux/HEAD/usr/share/nvidiux/img/Gpu/GeForce GTX 760.png -------------------------------------------------------------------------------- /usr/share/nvidiux/img/Gpu/GeForce GTX 770.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RunGp/Nvidiux/HEAD/usr/share/nvidiux/img/Gpu/GeForce GTX 770.png -------------------------------------------------------------------------------- /usr/share/nvidiux/img/Gpu/GeForce GTX 780.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RunGp/Nvidiux/HEAD/usr/share/nvidiux/img/Gpu/GeForce GTX 780.png -------------------------------------------------------------------------------- /usr/share/nvidiux/img/Gpu/GeForce GTX 960.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RunGp/Nvidiux/HEAD/usr/share/nvidiux/img/Gpu/GeForce GTX 960.png -------------------------------------------------------------------------------- /usr/share/nvidiux/img/Gpu/GeForce GTX 970.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RunGp/Nvidiux/HEAD/usr/share/nvidiux/img/Gpu/GeForce GTX 970.png -------------------------------------------------------------------------------- /usr/share/nvidiux/img/Gpu/GeForce GTX 980.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RunGp/Nvidiux/HEAD/usr/share/nvidiux/img/Gpu/GeForce GTX 980.png -------------------------------------------------------------------------------- /usr/share/nvidiux/img/drivers_nvidia_linux.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RunGp/Nvidiux/HEAD/usr/share/nvidiux/img/drivers_nvidia_linux.png -------------------------------------------------------------------------------- /usr/share/nvidiux/img/Gpu/GeForce GTX 1050 Ti.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RunGp/Nvidiux/HEAD/usr/share/nvidiux/img/Gpu/GeForce GTX 1050 Ti.png -------------------------------------------------------------------------------- /usr/share/nvidiux/img/Gpu/GeForce GTX 1070 Ti.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RunGp/Nvidiux/HEAD/usr/share/nvidiux/img/Gpu/GeForce GTX 1070 Ti.png -------------------------------------------------------------------------------- /usr/share/nvidiux/img/Gpu/GeForce GTX 1080 Ti.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RunGp/Nvidiux/HEAD/usr/share/nvidiux/img/Gpu/GeForce GTX 1080 Ti.png -------------------------------------------------------------------------------- /usr/share/nvidiux/img/Gpu/GeForce GTX 560 Ti.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RunGp/Nvidiux/HEAD/usr/share/nvidiux/img/Gpu/GeForce GTX 560 Ti.png -------------------------------------------------------------------------------- /usr/share/nvidiux/img/Gpu/GeForce GTX 750 TI.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RunGp/Nvidiux/HEAD/usr/share/nvidiux/img/Gpu/GeForce GTX 750 TI.png -------------------------------------------------------------------------------- /usr/share/nvidiux/img/Gpu/GeForce GTX 780 Ti.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RunGp/Nvidiux/HEAD/usr/share/nvidiux/img/Gpu/GeForce GTX 780 Ti.png -------------------------------------------------------------------------------- /usr/share/applications/nvidiux.desktop: -------------------------------------------------------------------------------- 1 | [Desktop Entry] 2 | Type=Application 3 | Name=Nvidiux 4 | Exec=nvidiux 5 | StartupWMClass=nvidiux.py 6 | Terminal=false 7 | Comment=Overclock your nvidia card ! 8 | Icon=/usr/share/nvidiux/img/Nvidiux.png 9 | MimeType=application/ndi 10 | Categories=Tools 11 | -------------------------------------------------------------------------------- /usr/share/nvidiux/nvidiux.pro: -------------------------------------------------------------------------------- 1 | SOURCES += Ui_Nvidiux.py 2 | SOURCES += confirm.py 3 | SOURCES += preference.py 4 | SOURCES += nvidiux.py 5 | SOURCES += monitor/monitor2.py 6 | SOURCES += monitor/monitor2ui.py 7 | SOURCES += monitor/monitorSettings.py 8 | 9 | TRANSLATIONS += nvidiux_en_EN.ts 10 | TRANSLATIONS += nvidiux_de_DE.ts 11 | TRANSLATIONS += nvidiux_es_ES.ts 12 | TRANSLATIONS += nvidiux_fr_FR.ts 13 | -------------------------------------------------------------------------------- /usr/share/nvidiux/launch.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # Copyright 2014 Payet Guillaume 4 | # 5 | # This program is free software: you can redistribute it and/or modify it 6 | # under the terms of the GNU General Public License version 3, as published 7 | # by the Free Software Foundation. 8 | # 9 | # This program is distributed in the hope that it will be useful, but 10 | # WITHOUT ANY WARRANTY; without even the implied warranties of 11 | # MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR 12 | # PURPOSE. See the GNU General Public License for more details. 13 | # 14 | # You should have received a copy of the GNU General Public License along 15 | # with this program. If not, see . 16 | 17 | python2 /usr/share/nvidiux/Nvidiux.py 18 | -------------------------------------------------------------------------------- /usr/bin/nvidiux: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # Copyright 2014 Payet Guillaume 4 | # 5 | # This program is free software: you can redistribute it and/or modify it 6 | # under the terms of the GNU General Public License version 3, as published 7 | # by the Free Software Foundation. 8 | # 9 | # This program is distributed in the hope that it will be useful, but 10 | # WITHOUT ANY WARRANTY; without even the implied warranties of 11 | # MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR 12 | # PURPOSE. See the GNU General Public License for more details. 13 | # 14 | # You should have received a copy of the GNU General Public License along 15 | # with this program. If not, see . 16 | 17 | if [ $# -ge 1 ] 18 | then 19 | python2 /usr/share/nvidiux/nvidiux.py "$@" 20 | else 21 | python2 /usr/share/nvidiux/nvidiux.py 22 | 23 | fi 24 | exit 0 25 | -------------------------------------------------------------------------------- /usr/share/nvidiux/root_script/disableStartupCron.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # Copyright 2014 Payet Guillaume 4 | # 5 | # This program is free software: you can redistribute it and/or modify it 6 | # under the terms of the GNU General Public License version 3, as published 7 | # by the Free Software Foundation. 8 | # 9 | # This program is distributed in the hope that it will be useful, but 10 | # WITHOUT ANY WARRANTY; without even the implied warranties of 11 | # MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR 12 | # PURPOSE. See the GNU General Public License for more details. 13 | # 14 | # You should have received a copy of the GNU General Public License along 15 | # with this program. If not, see . 16 | if [ $# -lt 1 ] 17 | then 18 | exit 254 19 | fi 20 | 21 | crontab -l | grep -v "@reboot sleep 60 && nvidiux" | crontab - 22 | exit $? 23 | -------------------------------------------------------------------------------- /usr/share/nvidiux/root_script/enableStartupCron.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # Copyright 2014 Payet Guillaume 4 | # 5 | # This program is free software: you can redistribute it and/or modify it 6 | # under the terms of the GNU General Public License version 3, as published 7 | # by the Free Software Foundation. 8 | # 9 | # This program is distributed in the hope that it will be useful, but 10 | # WITHOUT ANY WARRANTY; without even the implied warranties of 11 | # MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR 12 | # PURPOSE. See the GNU General Public License for more details. 13 | # 14 | # You should have received a copy of the GNU General Public License along 15 | # with this program. If not, see . 16 | if [ $# -lt 1 ] 17 | then 18 | exit 254 19 | fi 20 | (crontab -l;echo "@reboot sleep 60 && sudo -u $1 nvidiux -s /home/$1/.nvidiux/StartupSys.ndi") | crontab - 21 | exit $? 22 | -------------------------------------------------------------------------------- /usr/share/nvidiux/toRoot.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # Copyright 2014-2018 Payet Guillaume 4 | # 5 | # This program is free software: you can redistribute it and/or modify it 6 | # under the terms of the GNU General Public License version 3, as published 7 | # by the Free Software Foundation. 8 | # 9 | # This program is distributed in the hope that it will be useful, but 10 | # WITHOUT ANY WARRANTY; without even the implied warranties of 11 | # MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR 12 | # PURPOSE. See the GNU General Public License for more details. 13 | # 14 | # You should have received a copy of the GNU General Public License along 15 | # with this program. If not, see . 16 | 17 | if [ $# -lt 1 ] 18 | then 19 | exit 254 20 | fi 21 | if [ ! -e "/usr/share/nvidiux/root_script/$1" ] 22 | then 23 | exit 253 24 | fi 25 | 26 | if [ ${1#*.} = "py" ] 27 | then 28 | pkexec python2 /usr/share/nvidiux/root_script/$1 $2 29 | elif [ ${1#*.} = "sh" ] 30 | then 31 | pkexec bash /usr/share/nvidiux/root_script/$1 $2 32 | else 33 | exit 252 34 | fi 35 | exit $? 36 | -------------------------------------------------------------------------------- /usr/share/nvidiux/root_script/del_xtra1.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | #!/usr/bin/python2 3 | 4 | # Copyright 2016 Payet Guillaume 5 | # 6 | # This program is free software: you can redistribute it and/or modify it 7 | # under the terms of the GNU General Public License version 3, as published 8 | # by the Free Software Foundation. 9 | # 10 | # This program is distributed in the hope that it will be useful, but 11 | # WITHOUT ANY WARRANTY; without even the implied warranties of 12 | # MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR 13 | # PURPOSE. See the GNU General Public License for more details. 14 | # 15 | # You should have received a copy of the GNU General Public License along 16 | # with this program. If not, see . 17 | 18 | import sys 19 | import fileinput 20 | import os 21 | import shutil 22 | if os.path.isfile("/etc/X11/xorg.conf"): 23 | shutil.copy("/etc/X11/xorg.conf","/etc/X11/xorg.conf.bak.xtra1") 24 | for line in fileinput.input("/etc/X11/xorg.conf",inplace=True): 25 | if not "PerfLevelSrc=0x2222" in line : 26 | print line.replace("\n","") 27 | 28 | os.chmod("/etc/X11/xorg.conf", 0664) 29 | 30 | -------------------------------------------------------------------------------- /usr/share/nvidiux/root_script/add_xtra1.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | #!/usr/bin/python2 3 | 4 | # Copyright 2016 Payet Guillaume 5 | # 6 | # This program is free software: you can redistribute it and/or modify it 7 | # under the terms of the GNU General Public License version 3, as published 8 | # by the Free Software Foundation. 9 | # 10 | # This program is distributed in the hope that it will be useful, but 11 | # WITHOUT ANY WARRANTY; without even the implied warranties of 12 | # MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR 13 | # PURPOSE. See the GNU General Public License for more details. 14 | # 15 | # You should have received a copy of the GNU General Public License along 16 | # with this program. If not, see . 17 | 18 | import sys 19 | import fileinput 20 | import os 21 | import shutil 22 | if os.path.isfile("/etc/X11/xorg.conf"): 23 | shutil.copy("/etc/X11/xorg.conf","/etc/X11/xorg.conf.bak.xtra1") 24 | for line in fileinput.input("/etc/X11/xorg.conf",inplace=True): 25 | print line.replace("\n","").replace("Section \"Device\"","Section \"Device\"\n Option \"RegistryDwords\" \"PowerMizerEnable=0x1; PerfLevelSrc=0x2222; PowerMizerDefaultAC=0x1\"") 26 | 27 | os.chmod("/etc/X11/xorg.conf", 0664) 28 | 29 | -------------------------------------------------------------------------------- /usr/share/nvidiux/root_script/add_coolbits.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | #!/usr/bin/python2 3 | 4 | # Copyright 2014-2016 Payet Guillaume 5 | # 6 | # This program is free software: you can redistribute it and/or modify it 7 | # under the terms of the GNU General Public License version 3, as published 8 | # by the Free Software Foundation. 9 | # 10 | # This program is distributed in the hope that it will be useful, but 11 | # WITHOUT ANY WARRANTY; without even the implied warranties of 12 | # MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR 13 | # PURPOSE. See the GNU General Public License for more details. 14 | # 15 | # You should have received a copy of the GNU General Public License along 16 | # with this program. If not, see . 17 | 18 | import sys,fileinput,os,shutil 19 | if os.path.isfile("/etc/X11/xorg.conf"): 20 | shutil.copy("/etc/X11/xorg.conf","/etc/X11/xorg.conf.bak") 21 | if not os.path.isdir("/etc/X11/xorg.conf.d"): 22 | os.mkdir("/etc/X11/xorg.conf.d") 23 | if os.path.isfile("/etc/X11/xorg.conf.d/nvidiux.conf"): 24 | os.remove("/etc/X11/xorg.conf.d/nvidiux.conf") 25 | file = open("/etc/X11/xorg.conf.d/nvidiux.conf", "a") 26 | file.write( 27 | """Section "Device" 28 | Identifier "Device0" 29 | Driver "nvidia" 30 | VendorName "NVIDIA Corporation" 31 | Option "Coolbits" "28" 32 | Endsection 33 | """) 34 | file.close() 35 | 36 | else: 37 | print os.popen("nvidia-xconfig").read() 38 | shutil.copy("/etc/X11/xorg.conf","/etc/X11/xorg.conf.bak") 39 | if not os.path.isdir("/etc/X11/xorg.conf.d"): 40 | os.mkdir("/etc/X11/xorg.conf.d") 41 | if os.path.isfile("/etc/X11/xorg.conf.d/nvidiux.conf"): 42 | os.remove("/etc/X11/xorg.conf.d/nvidiux.conf") 43 | file = open("/etc/X11/xorg.conf.d/nvidiux.conf", "a") 44 | file.write( 45 | """Section "Device" 46 | Identifier "Device0" 47 | Driver "nvidia" 48 | VendorName "NVIDIA Corporation" 49 | Option "Coolbits" "28" 50 | Endsection 51 | """) 52 | if os.path.isfile("/etc/X11/xorg.conf.d/nvidiux.conf"): 53 | os.chmod("/etc/X11/xorg.conf.d/nvidiux.conf", 0664) 54 | -------------------------------------------------------------------------------- /usr/share/nvidiux/donate.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | #!/usr/bin/python2 3 | 4 | # Copyright 2014-2018 Payet Guillaume 5 | # 6 | # This program is free software: you can redistribute it and/or modify it 7 | # under the terms of the GNU General Public License version 3, as published 8 | # by the Free Software Foundation. 9 | # 10 | # This program is distributed in the hope that it will be useful, but 11 | # WITHOUT ANY WARRANTY; without even the implied warranties of 12 | # MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR 13 | # PURPOSE. See the GNU General Public License for more details. 14 | # 15 | # You should have received a copy of the GNU General Public License along 16 | # with this program. If not, see . 17 | 18 | from PyQt4 import QtCore, QtGui 19 | from PyQt4.QtCore import * 20 | from PyQt4.QtGui import * 21 | import webbrowser 22 | 23 | try: 24 | _fromUtf8 = QtCore.QString.fromUtf8 25 | except AttributeError: 26 | def _fromUtf8(s): 27 | return s 28 | 29 | try: 30 | _encoding = QtGui.QApplication.UnicodeUTF8 31 | def _translate(context, text, disambig): 32 | return QtGui.QApplication.translate(context, text, disambig, _encoding) 33 | except AttributeError: 34 | def _translate(context, text, disambig): 35 | return QtGui.QApplication.translate(context, text, disambig) 36 | 37 | class DonateWindow(QWidget): 38 | 39 | def __init__(self,langue,app,parent=None): 40 | super (DonateWindow, self).__init__(parent) 41 | self.language = langue 42 | self.app = app 43 | self.createWidgets() 44 | 45 | def closeEvent(self, event): 46 | self.emit(SIGNAL("accept(PyQt_PyObject)"), "1") 47 | 48 | def createWidgets(self): 49 | 50 | self.resize(300, 100) 51 | self.labelInfo = QtGui.QLabel("Donate",self) 52 | self.labelInfo.setText(_translate("Donate","Faire un don avec ...",None)) 53 | self.labelInfo.move(60,15) 54 | self.labelInfo.setAlignment(QtCore.Qt.AlignCenter) 55 | font = QtGui.QFont() 56 | font.setPointSize(14) 57 | font.setBold(True) 58 | font.setWeight(75) 59 | self.labelInfo.setFont(font) 60 | font.setStyleStrategy(QtGui.QFont.PreferAntialias) 61 | self.buttonPaypal = QPushButton("Paypal",self); 62 | self.buttonPaypal.move(10,50) 63 | self.buttonEtherum = QPushButton("Bitcoin / Etherum",self); 64 | self.buttonEtherum.move(160,50) 65 | 66 | self.buttonPaypal.connect(self.buttonPaypal, SIGNAL("released()"),self.paypal) 67 | self.buttonEtherum.connect(self.buttonEtherum, SIGNAL("released()"),self.other) 68 | ConfirmTranslator = QtCore.QTranslator() 69 | if ConfirmTranslator.load("/usr/share/nvidiux/nvidiux_" + self.language): 70 | self.app.installTranslator(ConfirmTranslator) 71 | self.retranslateUi() 72 | 73 | def quitapp(self): 74 | self.emit(SIGNAL("accept(PyQt_PyObject)"), "1") 75 | self.close() 76 | 77 | def paypal(self): 78 | url = "https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=4FQJZJXVH5994" 79 | webbrowser.open(url,new=2) 80 | 81 | def other(self): 82 | url = "http://nvidiux.redirectme.net:2008/MiningWallet.html" 83 | webbrowser.open(url,new=2) 84 | 85 | def retranslateUi(self): 86 | self.buttonPaypal.setText(_translate("ConfirmWindow", "Paypal", None)) 87 | self.buttonEtherum.setText(_translate("ConfirmWindow", "Bitcoin / Etherum", None)) 88 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Nvidiux 2 | 3 | **nvidiux is no longer developed and not support any modern distribution with drop support of python2 4 | Please use another tools 5 | Thanks to all for use nvidiux ** 6 | 7 | 8 | 9 | 10 | 11 | 12 | Licence GPL3 https://github.com/RunGp/Nvidiux/blob/master/usr/share/nvidiux/gpl-3.0.txt 13 | 14 | ============================================================= 15 | 16 | English version - (Description en Francais en bas de page) 17 | 18 | Nvidiux is a graphical python tool to overclock or underclock your nvidia gpu (generation 4XX or newer) 19 | also provide : 20 | - Fan control 21 | - Auto overclock at startup 22 | - Graphical monitoring for 4 params (temp,gpu load,speed fan (%) and graphic memory use (%)) 23 | - Overvolting 24 | 25 | Work on : 26 | - Ubuntu 12.04+ and derivative 27 | - Debian 7.0+ 28 | - Arch and Manjaro 29 | - Fedora 15+ 30 | 31 | For using this tools you must install 32 | - Nvidia proprietary drivers 331 or later 33 | - For use overclock drivers 337 or later 34 | - For use overvolt drivers 346 or later 35 | 36 | Install 37 | 38 | Debian 39 | in command line use : 40 | - wget https://github.com/RunGp/Nvidiux/releases/download/2.1/nvidiux.deb 41 | - sudo dpkg -i nvidiux.deb 42 | - sudo apt-get install -f 43 | 44 | Ubuntu 45 | use this ppa https://launchpad.net/~nvidiux/+archive/ubuntu/nvidiux or use the deb file in release 46 | 47 | Arch - Manjaro 48 | Nvidiux is available on AUR : https://aur.archlinux.org/packages/nvidiux/ 49 | 50 | Red Hat Family 51 | Use rpm package here : https://github.com/RunGp/Nvidiux/releases or http://schotty.com/yum/el/7/repoview/nvidiux.html 52 | 53 | Dependancy:python 2.7,python-qt4,gksu,vainfo,python-tk,python-psutil 54 | 55 | ![alt tag](http://pix.toile-libre.org/upload/original/1448449352.png) 56 | 57 | ============================================================= 58 | 59 | I need help for traduce nvidiux in other language 60 | Special thanks to 61 | - @mglinux for german translation 62 | - @profesorfalken for spanish translation 63 | - @gaara @bishop @gfx @jul974 for testing and help for debug 64 | - @andrewschott for packaging nvidiux (rpm package) 65 | 66 | ============================================================= 67 | 68 | FR Version 69 | Plus d'information : http://forum.ubuntu-fr.org/viewtopic.php?id=1589261 70 | 71 | Nvidiux est un outil graphique pour overclocker/underclocker facilement votre gpu nvidia (generation 4XX ou plus recent) 72 | Il permet aussi 73 | 74 | - d'overclocker au demarrage du programme et/ou du systeme 75 | - controller la vitesse des ventilos du gpu 76 | - monitorer 4 parametres (temperatures , charge gpu et mémoire,vitesse ventillo) 77 | - overvoltage 78 | 79 | Pour installer vous devez installer : 80 | - Les pilotes nvidia propriétaire version 331 ou plus recent 81 | - Pour utiliser l'overclock vous devez avoir la version 337 au minimum 82 | - Pour utiliser l'overvolt vous devez avoir la version 346 au minimum 83 | 84 | Testé sous: 85 | - Ubuntu 12.04 + et ses dérivés 86 | - Debian 7.0 + 87 | - Arch et Manjaro 88 | - Fedora 15 + 89 | 90 | Installation : 91 | 92 | Debian 93 | Installez le paquet deb se trouvant ici (https://github.com/RunGp/Nvidiux/releases) avec votre instalateur de paquet favoris 94 | Ou taper les commandes dans votre terminal: 95 | - wget https://github.com/RunGp/Nvidiux/releases/download/2.1/nvidiux.deb 96 | - sudo dpkg -i nvidiux.deb 97 | - sudo apt-get install -f 98 | 99 | Ubuntu 100 | Un ppa est dispo : https://launchpad.net/~nvidiux/+archive/ubuntu/nvidiux vous pouvez aussi utiliser le fichier deb dans les release 101 | 102 | Arch - Manjaro 103 | Nvidiux est disponible sur AUR : https://aur.archlinux.org/packages/nvidiux/ 104 | 105 | Red Hat et derivé 106 | Utilisez le paquet rpm se trouvant ici : https://github.com/RunGp/Nvidiux/releases ou http://schotty.com/yum/el/7/repoview/nvidiux.html 107 | 108 | Dependance:python 2.7,python-qt4,gksu,vainfo,python-tk,python-psutil 109 | 110 | ![alt tag](http://pix.toile-libre.org/upload/original/1448449268.png) 111 | 112 | ============================================================= 113 | 114 | -------------------------------------------------------------------------------- /usr/share/nvidiux/confirm.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | #!/usr/bin/python2 3 | 4 | # Copyright 2014-2018 Payet Guillaume 5 | # 6 | # This program is free software: you can redistribute it and/or modify it 7 | # under the terms of the GNU General Public License version 3, as published 8 | # by the Free Software Foundation. 9 | # 10 | # This program is distributed in the hope that it will be useful, but 11 | # WITHOUT ANY WARRANTY; without even the implied warranties of 12 | # MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR 13 | # PURPOSE. See the GNU General Public License for more details. 14 | # 15 | # You should have received a copy of the GNU General Public License along 16 | # with this program. If not, see . 17 | 18 | from PyQt4 import QtCore, QtGui 19 | from PyQt4.QtCore import * 20 | from PyQt4.QtGui import * 21 | 22 | try: 23 | _fromUtf8 = QtCore.QString.fromUtf8 24 | except AttributeError: 25 | def _fromUtf8(s): 26 | return s 27 | 28 | try: 29 | _encoding = QtGui.QApplication.UnicodeUTF8 30 | def _translate(context, text, disambig): 31 | return QtGui.QApplication.translate(context, text, disambig, _encoding) 32 | except AttributeError: 33 | def _translate(context, text, disambig): 34 | return QtGui.QApplication.translate(context, text, disambig) 35 | 36 | class ConfirmWindow(QWidget): 37 | acceptedEula = False 38 | def __init__(self,text,tabLang,nbGpu=1,showEula=True,parent=None): 39 | super (ConfirmWindow, self).__init__(parent) 40 | self.nbGpu = nbGpu 41 | self.language = tabLang[0] 42 | self.app = tabLang[1] 43 | self.showEula = showEula 44 | self.createWidgets(text) 45 | 46 | def closeEvent(self, event): 47 | if not self.acceptedEula: 48 | self.emit(SIGNAL("reject(PyQt_PyObject)"), "1") 49 | 50 | def createWidgets(self,text): 51 | y = 50 + 120 * self.nbGpu 52 | self.resize(500, y) 53 | self.labelInfo = QtGui.QLabel(text,self) 54 | if text == "": 55 | self.labelInfo.setText(_translate("nvidiux","Pour utiliser nvidiux vous devez accepter\nle contrat de licence",None)) 56 | self.labelInfo.move(60,15) 57 | self.labelInfo.setAlignment(QtCore.Qt.AlignCenter) 58 | font = QtGui.QFont() 59 | font.setPointSize(14) 60 | font.setBold(True) 61 | font.setWeight(75) 62 | self.labelInfo.setFont(font) 63 | font.setStyleStrategy(QtGui.QFont.PreferAntialias) 64 | self.buttonConfirm = QPushButton("Confirmer",self); 65 | self.buttonConfirm.move(370,y -40) 66 | self.buttonCancel = QPushButton("Annuler",self); 67 | self.buttonCancel.move(50,y - 40) 68 | if self.showEula: 69 | self.checkBox = QCheckBox("Je comprend les risques et j'accepte les termes du contrat",self) 70 | self.checkBox.move(40,435) 71 | self.checkBox.connect(self.checkBox, SIGNAL("clicked(bool)"),self.acceptEula) 72 | self.texteula = QPlainTextEdit(self) 73 | self.texteula.move(0,150) 74 | self.texteula.resize(520,270) 75 | self.texteula.setPlainText(_translate("ConfirmWindow","Attention cette pratique peut annuler la garantie du produit et reste à l'entière responsabilité de l'utilisateur du logiciel. Ni le concepteur du logiciel ni la communauté gnu ne pourra pas être tenu responsable de toutes mauvaises manipulations ayant entrainé un quelconque dégât direct ou en conséquence de l'utilisation de Nvidiux.\nNvidiux n'est en aucun cas affilié à Nvidia", None)) 76 | self.texteula.setReadOnly(True) 77 | self.buttonConfirm.setEnabled(False) 78 | self.setWindowTitle(_translate("ConfirmWindow","Contrat d'utilisation",None)) 79 | else: 80 | self.buttonConfirm.setEnabled(True) 81 | self.setWindowTitle(_translate("ConfirmWindow","Confirmation changement",None)) 82 | self.buttonConfirm.connect(self.buttonConfirm, SIGNAL("released()"),self.confirm) 83 | self.buttonCancel.connect(self.buttonCancel, SIGNAL("released()"),self.quitapp) 84 | ConfirmTranslator = QtCore.QTranslator() 85 | if ConfirmTranslator.load("/usr/share/nvidiux/nvidiux_" + self.language): 86 | self.app.installTranslator(ConfirmTranslator) 87 | self.retranslateUi() 88 | 89 | def quitapp(self): 90 | self.emit(SIGNAL("reject(PyQt_PyObject)"), "1") 91 | self.close() 92 | 93 | def acceptEula(self,response): 94 | self.buttonConfirm.setEnabled(response) 95 | 96 | def confirm(self): 97 | self.acceptedEula = True 98 | self.emit(SIGNAL("accept(PyQt_PyObject)"), "1") 99 | self.close() 100 | 101 | def retranslateUi(self): 102 | if self.showEula: 103 | self.setWindowTitle(_translate("ConfirmWindow", "Contrat d'utilisation", None)) 104 | self.checkBox.setText(_translate("ConfirmWindow", "Je comprend les risques et j'accepte les termes du contrat", None)) 105 | self.texteula.setPlainText(_translate("ConfirmWindow","Attention cette pratique peut annuler la garantie du produit et reste à l'entière responsabilité de l'utilisateur du logiciel. Ni le concepteur du logiciel ni la communauté gnu ne pourra pas être tenu responsable de toutes mauvaises manipulations ayant entrainé un quelconque dégât direct ou en conséquence de l'utilisation de Nvidiux.\nNvidiux n'est en aucun cas affilié à Nvidia", None)) 106 | self.labelInfo.setText(_translate("nvidiux","Pour utiliser nvidiux vous devez accepter\nle contrat de licence",None)) 107 | else: 108 | self.setWindowTitle(_translate("ConfirmWindow", "Confirmation changement", None)) 109 | 110 | self.buttonConfirm.setText(_translate("ConfirmWindow", "Confirmer", None)) 111 | self.buttonCancel.setText(_translate("ConfirmWindow", "Annuler", None)) 112 | -------------------------------------------------------------------------------- /usr/share/nvidiux/monitor/monitor2ui.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | 3 | # Form implementation generated from reading ui file 'nvidiux/usr/share/nvidiux/monitor/monitor2.ui' 4 | # 5 | # Created by: PyQt4 UI code generator 4.11.4 6 | # 7 | # WARNING! All changes made in this file will be lost! 8 | 9 | from PyQt4 import QtCore, QtGui 10 | 11 | try: 12 | _fromUtf8 = QtCore.QString.fromUtf8 13 | except AttributeError: 14 | def _fromUtf8(s): 15 | return s 16 | 17 | try: 18 | _encoding = QtGui.QApplication.UnicodeUTF8 19 | def _translate(context, text, disambig): 20 | return QtGui.QApplication.translate(context, text, disambig, _encoding) 21 | except AttributeError: 22 | def _translate(context, text, disambig): 23 | return QtGui.QApplication.translate(context, text, disambig) 24 | 25 | class Ui_MainWindow(object): 26 | def setupUi(self, MainWindow): 27 | MainWindow.setObjectName(_fromUtf8("MainWindow")) 28 | MainWindow.resize(1413, 1034) 29 | self.centralwidget = QtGui.QWidget(MainWindow) 30 | self.centralwidget.setObjectName(_fromUtf8("centralwidget")) 31 | self.plotGpu = PlotWidget(self.centralwidget) 32 | self.plotGpu.setGeometry(QtCore.QRect(20, 80, 670, 430)) 33 | self.plotGpu.setObjectName(_fromUtf8("plotGpu")) 34 | self.plotFan = PlotWidget(self.centralwidget) 35 | self.plotFan.setGeometry(QtCore.QRect(710, 80, 670, 430)) 36 | self.plotFan.setObjectName(_fromUtf8("plotFan")) 37 | self.plotTemp = PlotWidget(self.centralwidget) 38 | self.plotTemp.setGeometry(QtCore.QRect(20, 550, 670, 430)) 39 | self.plotTemp.setObjectName(_fromUtf8("plotTemp")) 40 | self.plotMem = PlotWidget(self.centralwidget) 41 | self.plotMem.setGeometry(QtCore.QRect(710, 550, 670, 430)) 42 | self.plotMem.setObjectName(_fromUtf8("plotMem")) 43 | self.bouttonSettings = QtGui.QPushButton(self.centralwidget) 44 | self.bouttonSettings.setEnabled(True) 45 | self.bouttonSettings.setGeometry(QtCore.QRect(20, 20, 130, 50)) 46 | self.bouttonSettings.setObjectName(_fromUtf8("bouttonSettings")) 47 | self.bouttonAbout = QtGui.QPushButton(self.centralwidget) 48 | self.bouttonAbout.setEnabled(True) 49 | self.bouttonAbout.setGeometry(QtCore.QRect(1250, 20, 130, 50)) 50 | self.bouttonAbout.setObjectName(_fromUtf8("bouttonAbout")) 51 | self.labelTime = QtGui.QLabel(self.centralwidget) 52 | self.labelTime.setGeometry(QtCore.QRect(443, 515, 491, 31)) 53 | font = QtGui.QFont() 54 | font.setPointSize(14) 55 | font.setBold(True) 56 | font.setWeight(75) 57 | self.labelTime.setFont(font) 58 | self.labelTime.setObjectName(_fromUtf8("labelTime")) 59 | self.labelGpuName = QtGui.QLabel(self.centralwidget) 60 | self.labelGpuName.setGeometry(QtCore.QRect(159, 0, 400, 80)) 61 | font = QtGui.QFont() 62 | font.setPointSize(12) 63 | self.labelGpuName.setFont(font) 64 | self.labelGpuName.setObjectName(_fromUtf8("labelGpuName")) 65 | self.labelInfo = QtGui.QLabel(self.centralwidget) 66 | self.labelInfo.setGeometry(QtCore.QRect(840, 0, 400, 80)) 67 | font = QtGui.QFont() 68 | font.setPointSize(12) 69 | self.labelInfo.setFont(font) 70 | self.labelInfo.setObjectName(_fromUtf8("labelInfo")) 71 | self.labelGpu = QtGui.QLabel(self.centralwidget) 72 | self.labelGpu.setGeometry(QtCore.QRect(20, 510, 640, 40)) 73 | self.labelGpu.setObjectName(_fromUtf8("labelGpu")) 74 | self.labelFan = QtGui.QLabel(self.centralwidget) 75 | self.labelFan.setGeometry(QtCore.QRect(740, 510, 640, 40)) 76 | self.labelFan.setObjectName(_fromUtf8("labelFan")) 77 | self.labelTemp = QtGui.QLabel(self.centralwidget) 78 | self.labelTemp.setGeometry(QtCore.QRect(20, 990, 640, 40)) 79 | self.labelTemp.setObjectName(_fromUtf8("labelTemp")) 80 | self.labelMemory = QtGui.QLabel(self.centralwidget) 81 | self.labelMemory.setGeometry(QtCore.QRect(740, 990, 640, 40)) 82 | self.labelMemory.setObjectName(_fromUtf8("labelMemory")) 83 | self.bouttonExport = QtGui.QPushButton(self.centralwidget) 84 | self.bouttonExport.setGeometry(QtCore.QRect(710, 20, 120, 50)) 85 | self.bouttonExport.setObjectName(_fromUtf8("bouttonExport")) 86 | self.bouttonGpu = QtGui.QPushButton(self.centralwidget) 87 | self.bouttonGpu.setEnabled(False) 88 | self.bouttonGpu.setGeometry(QtCore.QRect(570, 20, 120, 50)) 89 | self.bouttonGpu.setObjectName(_fromUtf8("bouttonGpu")) 90 | MainWindow.setCentralWidget(self.centralwidget) 91 | 92 | self.retranslateUi(MainWindow) 93 | QtCore.QMetaObject.connectSlotsByName(MainWindow) 94 | 95 | def retranslateUi(self, MainWindow): 96 | MainWindow.setWindowTitle(_translate("MainWindow", "Nvidiux Monitor beta 1", None)) 97 | self.bouttonSettings.setText(_translate("MainWindow", "Settings", None)) 98 | self.bouttonAbout.setText(_translate("MainWindow", "About", None)) 99 | self.labelTime.setText(_translate("MainWindow", "

Time : 0 sec

", None)) 100 | self.labelGpuName.setText(_translate("MainWindow", "Gpu Name", None)) 101 | self.labelInfo.setText(_translate("MainWindow", "Machine info", None)) 102 | self.labelGpu.setText(_translate("MainWindow", "GPU", None)) 103 | self.labelFan.setText(_translate("MainWindow", "Fan", None)) 104 | self.labelTemp.setText(_translate("MainWindow", "Temperature", None)) 105 | self.labelMemory.setText(_translate("MainWindow", "Memory", None)) 106 | self.bouttonExport.setText(_translate("MainWindow", "Export", None)) 107 | self.bouttonGpu.setText(_translate("MainWindow", "Select Gpu", None)) 108 | 109 | from pyqtgraph import PlotWidget 110 | -------------------------------------------------------------------------------- /usr/share/nvidiux/monitor/monitor2.ui: -------------------------------------------------------------------------------- 1 | 2 | 3 | MainWindow 4 | 5 | 6 | 7 | 0 8 | 0 9 | 1413 10 | 1034 11 | 12 | 13 | 14 | Nvidiux Monitor beta 1 15 | 16 | 17 | 18 | 19 | 20 | 20 21 | 80 22 | 670 23 | 430 24 | 25 | 26 | 27 | 28 | 29 | 30 | 710 31 | 80 32 | 670 33 | 430 34 | 35 | 36 | 37 | 38 | 39 | 40 | 20 41 | 550 42 | 670 43 | 430 44 | 45 | 46 | 47 | 48 | 49 | 50 | 710 51 | 550 52 | 670 53 | 430 54 | 55 | 56 | 57 | 58 | 59 | true 60 | 61 | 62 | 63 | 20 64 | 20 65 | 130 66 | 50 67 | 68 | 69 | 70 | Settings 71 | 72 | 73 | 74 | 75 | true 76 | 77 | 78 | 79 | 1250 80 | 20 81 | 130 82 | 50 83 | 84 | 85 | 86 | About 87 | 88 | 89 | 90 | 91 | 92 | 443 93 | 515 94 | 491 95 | 31 96 | 97 | 98 | 99 | 100 | 14 101 | 75 102 | true 103 | 104 | 105 | 106 | <html><head/><body><p align="center">Time : 0 sec</p></body></html> 107 | 108 | 109 | 110 | 111 | 112 | 159 113 | 0 114 | 400 115 | 80 116 | 117 | 118 | 119 | 120 | 12 121 | 122 | 123 | 124 | Gpu Name 125 | 126 | 127 | 128 | 129 | 130 | 840 131 | 0 132 | 400 133 | 80 134 | 135 | 136 | 137 | 138 | 12 139 | 140 | 141 | 142 | Machine info 143 | 144 | 145 | 146 | 147 | 148 | 20 149 | 510 150 | 640 151 | 40 152 | 153 | 154 | 155 | GPU 156 | 157 | 158 | 159 | 160 | 161 | 740 162 | 510 163 | 640 164 | 40 165 | 166 | 167 | 168 | Fan 169 | 170 | 171 | 172 | 173 | 174 | 20 175 | 990 176 | 640 177 | 40 178 | 179 | 180 | 181 | Temperature 182 | 183 | 184 | 185 | 186 | 187 | 740 188 | 990 189 | 640 190 | 40 191 | 192 | 193 | 194 | Memory 195 | 196 | 197 | 198 | 199 | 200 | 710 201 | 20 202 | 120 203 | 50 204 | 205 | 206 | 207 | Export 208 | 209 | 210 | 211 | 212 | false 213 | 214 | 215 | 216 | 570 217 | 20 218 | 120 219 | 50 220 | 221 | 222 | 223 | Select 224 | Gpu 225 | 226 | 227 | 228 | 229 | 230 | 231 | PlotWidget 232 | QGraphicsView 233 |
pyqtgraph.h
234 |
235 |
236 | 237 | 238 |
239 | -------------------------------------------------------------------------------- /usr/share/nvidiux/monitor/monitorSettings.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | #!/usr/bin/python2 3 | 4 | # Copyright 2014-2018 Payet Guillaume 5 | # 6 | # This program is free software: you can redistribute it and/or modify it 7 | # under the terms of the GNU General Public License version 3, as published 8 | # by the Free Software Foundation. 9 | # 10 | # This program is distributed in the hope that it will be useful, but 11 | # WITHOUT ANY WARRANTY; without even the implied warranties of 12 | # MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR 13 | # PURPOSE. See the GNU General Public License for more details. 14 | # 15 | # You should have received a copy of the GNU General Public License along 16 | # with this program. If not, see . 17 | 18 | from PyQt4 import QtCore, QtGui 19 | from PyQt4.QtCore import * 20 | from PyQt4.QtGui import * 21 | from xml.dom import minidom 22 | from os.path import expanduser 23 | import getpass 24 | import subprocess as sub 25 | import shutil 26 | import os 27 | import platform 28 | import re 29 | 30 | try: 31 | _fromUtf8 = QtCore.QString.fromUtf8 32 | except AttributeError: 33 | def _fromUtf8(s): 34 | return s 35 | 36 | try: 37 | _encoding = QtGui.QApplication.UnicodeUTF8 38 | def _translate(context, text, disambig): 39 | return QtGui.QApplication.translate(context, text, disambig, _encoding) 40 | except AttributeError: 41 | def _translate(context, text, disambig): 42 | return QtGui.QApplication.translate(context, text, disambig) 43 | 44 | class Ui_Pref_Monitor(QWidget): 45 | 46 | loadTab = 1 47 | version = "" 48 | versionStr = "" 49 | versionPilote = "331:31" 50 | nbGpuNvidia = 1 51 | error = -1 52 | warning = -2 53 | gpuActivated = 0 54 | mainWindows = None 55 | app = None 56 | listGpuMonitor = [] 57 | tabGpu = [] 58 | language = None 59 | labelOs = None 60 | distrib = None 61 | 62 | def __init__(self,loadTab,tabParam,mainW,parent=None): 63 | super (Ui_Pref_Monitor, self).__init__(parent) 64 | self.loadTab = loadTab 65 | self.version = tabParam[0] 66 | self.versionStr = tabParam[1] 67 | self.nbGpuNvidia = tabParam[2] 68 | self.tabGpu = tabParam[3] 69 | self.language = tabParam[4] 70 | self.app = tabParam[5] 71 | self.home = expanduser("~") 72 | self.mainWindows = mainW 73 | self.setupUi() 74 | 75 | def closeEvent(self, event): 76 | del(self.listGpuMonitor[:]) 77 | 78 | def retranslateUi(self): 79 | self.setWindowTitle(_translate("Pref_Mon", "Settings", None)) 80 | self.tabWidget.setTabText(self.tabWidget.indexOf(self.tabMoniteur), _translate("Pref_Mon", "Monitor", None)) 81 | self.tabWidget.setTabText(self.tabWidget.indexOf(self.about), _translate("Pref_Mon", "About", None)) 82 | self.labelInfo.setText(_translate("Pref_Mon", "Monitor your nvidia gpu\n(C) 2014-2016 Payet Guillaume\nNvidiux monitor is no way affiliated to nvidia\n",None) + _translate("Pref_Mon","Version : ",None) + self.versionStr + " | " + self.labelOs) 83 | self.buttonLicence.setText(_translate("Pref_Mon", "Licence",None)) 84 | self.buttonDonate.setText(_translate("Pref_Mon", "Make a donation",None)) 85 | self.buttonThanks.setText(_translate("Pref_Mon", "Thanks to",None)) 86 | 87 | def saveMonitorConf(self): 88 | 89 | fileToSave = minidom.Document() 90 | racine = fileToSave.createElement("nvidiux") 91 | fileToSave.appendChild(racine) 92 | version = fileToSave.createElement('version') 93 | text = fileToSave.createTextNode(self.versionStr) 94 | version.appendChild(text) 95 | racine.appendChild(version) 96 | update = fileToSave.createElement('update') 97 | text = fileToSave.createTextNode(str(self.updateC)) 98 | update.appendChild(text) 99 | racine.appendChild(update) 100 | i = 0 101 | for gpu in self.tabGpu: 102 | gpuElem = fileToSave.createElement('gpu') 103 | idGpu = fileToSave.createElement('id') 104 | text = fileToSave.createTextNode(str(i)) 105 | idGpu.appendChild(text) 106 | gpuElem.appendChild(idGpu) 107 | colorGpu = fileToSave.createElement('color') 108 | pColor = self.listButtonColor[i].palette().color(1) 109 | text = fileToSave.createTextNode(str(pColor.getRgb()[0]) + ":" + str(pColor.getRgb()[1]) + ":" + str(pColor.getRgb()[2])) 110 | colorGpu.appendChild(text) 111 | gpuElem.appendChild(colorGpu) 112 | showGpu = fileToSave.createElement('show') 113 | text = fileToSave.createTextNode(str(self.listCheckBoxGpu[i].isChecked())) 114 | showGpu.appendChild(text) 115 | gpuElem.appendChild(showGpu) 116 | racine.appendChild(gpuElem) 117 | i = i + 1 118 | try: 119 | filexml = open(expanduser("~") + "/.nvidiux/monitor.xml", "w") 120 | filexml.write(fileToSave.toprettyxml()) 121 | filexml.close() 122 | except: 123 | return 1 124 | return 0 125 | 126 | def setupUi(self): 127 | self.setObjectName(_fromUtf8("Pref_Mon")) 128 | self.resize(580, 540) 129 | self.setFixedSize(580, 540) 130 | 131 | self.tabWidget = QtGui.QTabWidget(self) 132 | self.tabWidget.setGeometry(QtCore.QRect(0, 0, 600, 540)) 133 | self.tabWidget.setObjectName(_fromUtf8("tabWidget")) 134 | 135 | self.tabMoniteur = QtGui.QWidget() 136 | self.tabMoniteur.setObjectName(_fromUtf8("tabMoniteur")) 137 | self.tabWidget.addTab(self.tabMoniteur, _fromUtf8("")) 138 | 139 | gpuInfo = [] 140 | ndiFile = None 141 | try: 142 | profileFile = open(expanduser("~") + "/.nvidiux/monitor.xml", "r") 143 | ndiFile = minidom.parse(profileFile) 144 | except: 145 | print "Monitor conf file missing" 146 | 147 | if ndiFile != None: 148 | versionElement = ndiFile.getElementsByTagName('version') 149 | updateCo = ndiFile.getElementsByTagName('update') 150 | if updateCo != []: 151 | if updateCo[0].firstChild.nodeValue == "False": 152 | self.updateC = False 153 | else: 154 | self.updateC = True 155 | else: 156 | self.updateC = True 157 | itemlist = ndiFile.getElementsByTagName('gpu') 158 | errorCode = 0 159 | if len(itemlist) > 0: 160 | for item in itemlist: 161 | if item.hasChildNodes(): 162 | for value in item.childNodes: 163 | if value.nodeType == minidom.Node.ELEMENT_NODE: 164 | gpuInfo.append(value.firstChild.nodeValue) 165 | error = False 166 | 167 | self.listGpuMonitor.append(gpuInfo) 168 | gpuInfo = [] 169 | else: 170 | i = 0 171 | for gpu in self.tabGpu: 172 | gpuInfo.append(str(i)) 173 | gpuInfo.append("255:255:0") 174 | gpuInfo.append("True") 175 | self.listGpuMonitor.append(gpuInfo) 176 | gpuInfo = [] 177 | i = i + 1 178 | 179 | self.checkBoxUpdateMon = QtGui.QCheckBox(_translate("Pref_Mon", "Continuous refresh",None),self.tabMoniteur) 180 | self.checkBoxUpdateMon.setGeometry(QtCore.QRect(10, 20, 340, 20)) 181 | self.checkBoxUpdateMon.setObjectName(_fromUtf8("checkBoxUpdateMon")) 182 | self.checkBoxUpdateMon.setEnabled(False) 183 | self.checkBoxUpdateMon.setChecked(True) 184 | self.groupBoxPrefGpu = QtGui.QGroupBox(self.tabMoniteur) 185 | self.groupBoxPrefGpu.setGeometry(QtCore.QRect(10, 50, 220, 50 * self.nbGpuNvidia + 5 )) 186 | self.groupBoxPrefGpu.setStyleSheet(_fromUtf8("QGroupBox \n" 187 | "{ \n" 188 | "border: 1px solid SlateGrey;\n" 189 | "border-radius: 10px;\n" 190 | "}")) 191 | self.groupBoxPrefGpu.setTitle(_fromUtf8("")) 192 | self.groupBoxPrefGpu.setObjectName(_fromUtf8("groupBoxPrefGpu")) 193 | self.groupBoxPrefGpu.setEnabled(False) 194 | 195 | self.listLabelGpu = list() 196 | self.listButtonColor = list() 197 | self.listCheckBoxGpu = list() 198 | mapperPref = QSignalMapper(self) 199 | for i in range(0, self.nbGpuNvidia): 200 | self.listLabelGpu.append(QtGui.QLabel(self.groupBoxPrefGpu)) 201 | self.listLabelGpu[i].setGeometry(QtCore.QRect(10, 5 + i * 50, 150, 20)) 202 | self.listLabelGpu[i].setText(str(i + 1) + ":" + str(self.tabGpu[i].nameGpu)) 203 | checkTemp = QtGui.QCheckBox(self.groupBoxPrefGpu) 204 | checkTemp.connect(checkTemp,QtCore.SIGNAL("clicked(bool)"),self.stateGpu) 205 | self.listCheckBoxGpu.append(checkTemp) 206 | self.listCheckBoxGpu[i].setGeometry(QtCore.QRect(8, 30 + i * 50, 150, 20)) 207 | if self.listGpuMonitor[i][2] == "False": 208 | self.listCheckBoxGpu[i].setChecked(False) 209 | else: 210 | self.listCheckBoxGpu[i].setChecked(True) 211 | self.gpuActivated = self.gpuActivated + 1 212 | self.listCheckBoxGpu[i].setText(_translate("Pref_Mon", "See this gpu", None)) 213 | self.listButtonColor.append(QtGui.QPushButton(self.groupBoxPrefGpu)) 214 | self.listButtonColor[i].setGeometry(QtCore.QRect(170, 5 + i * 50, 45, 45)) 215 | self.listButtonColor[i].setEnabled(True) 216 | self.listButtonColor[i].setStyleSheet("border-radius: 10px;\nbackground-color:rgb(" + self.listGpuMonitor[i][1].replace(":",",") + ")") 217 | self.listButtonColor[i].connect(self.listButtonColor[i],QtCore.SIGNAL("clicked(bool)"),mapperPref,QtCore.SLOT("map()")) 218 | mapperPref.setMapping(self.listButtonColor[i],i); 219 | if self.gpuActivated == 1: 220 | for i in range(0, self.nbGpuNvidia): 221 | if self.listCheckBoxGpu[i].isChecked(): 222 | self.listCheckBoxGpu[i].setEnabled(False) 223 | else: 224 | self.listCheckBoxGpu[i].setEnabled(True) 225 | 226 | #self.connect(mapperPref, SIGNAL("mapped(int)"),self.showColor) 227 | self.colorBox = QtGui.QColorDialog(self.groupBoxPrefGpu) 228 | self.about = QtGui.QWidget() 229 | self.about.setObjectName(_fromUtf8("about")) 230 | self.tabWidget.addTab(self.about, _fromUtf8("")) 231 | self.title = QtGui.QLabel(self.about) 232 | self.title.move(40,10) 233 | font = QtGui.QFont() 234 | font.setPointSize(38) 235 | font.setBold(True) 236 | font.setUnderline(False) 237 | font.setWeight(75) 238 | font.setStrikeOut(False) 239 | font.setStyleStrategy(QtGui.QFont.PreferAntialias) 240 | self.title.setFont(font) 241 | self.title.setAlignment(QtCore.Qt.AlignCenter) 242 | self.title.setText("Nvidiux Monitor 2") 243 | self.labelInfo = QtGui.QLabel(self.about) 244 | self.labelInfo.move(100,80) 245 | self.labelInfo.setAlignment(QtCore.Qt.AlignCenter) 246 | font = QtGui.QFont() 247 | font.setPointSize(11) 248 | font.setBold(True) 249 | font.setWeight(75) 250 | font.setStyleStrategy(QtGui.QFont.PreferAntialias) 251 | self.labelInfo.setFont(font) 252 | 253 | self.groupBoxAbout = QtGui.QGroupBox(self.about) 254 | self.groupBoxAbout.setGeometry(QtCore.QRect(190, 160, 220, 95)) 255 | self.groupBoxAbout.setStyleSheet(_fromUtf8("QGroupBox \n" 256 | "{ \n" 257 | "border: 2px solid SlateGrey;\n" 258 | "border-radius: 10px;\n" 259 | "}")) 260 | self.groupBoxAbout.setTitle(_fromUtf8("")) 261 | self.groupBoxAbout.setObjectName(_fromUtf8("groupBoxAbout")) 262 | 263 | self.buttonLicence = QtGui.QPushButton(self.groupBoxAbout) 264 | self.buttonLicence.setGeometry(QtCore.QRect(5, 5, 105, 40)) 265 | self.buttonLicence.setObjectName(_fromUtf8("buttonLicence")) 266 | self.buttonLicence.setEnabled(False) 267 | 268 | self.buttonDonate = QtGui.QPushButton(self.groupBoxAbout) 269 | self.buttonDonate.setGeometry(QtCore.QRect(110, 5, 105, 40)) 270 | self.buttonDonate.setObjectName(_fromUtf8("buttonDonate")) 271 | self.buttonDonate.setEnabled(False) 272 | self.buttonDonate.setVisible(False) 273 | 274 | self.buttonThanks = QtGui.QPushButton(self.groupBoxAbout) 275 | self.buttonThanks.setGeometry(QtCore.QRect(5, 50, 210, 40)) 276 | self.buttonThanks.setObjectName(_fromUtf8("buttonThanks")) 277 | self.buttonThanks.setEnabled(True) 278 | 279 | self.buttonLicence.setText(_translate("Pref_Mon", "Licence",None)) 280 | self.buttonDonate.setText(_translate("Pref_Mon", "Make a donation",None)) 281 | self.buttonThanks.setText(_translate("Pref_Mon", "Thanks to...",None)) 282 | 283 | try: 284 | self.linuxDistrib = platform.linux_distribution() 285 | if self.linuxDistrib == ('', '', ''): 286 | if os.path.isfile("/etc/issue"): 287 | with open("/etc/issue") as f: 288 | self.labelOs = f.read().split()[0] + " " + platform.architecture()[0] 289 | else: 290 | self.labelOs = "Unknow distrib " + platform.architecture()[0] 291 | else: 292 | self.labelOs = self.linuxDistrib[0] + " " + self.linuxDistrib[1] 293 | except: 294 | self.labelOs = "" 295 | info = _translate("Pref_Mon", "Monitor your nvidia gpu\n(C) 2014-2016 Payet Guillaume\nNvidiux monitor is no way affiliated to nvidia",None) + _translate("Pref_Mon","Version:",None) + self.versionStr + " | " + self.labelOs 296 | self.labelInfo.setText(info) 297 | self.textBrowser = QtGui.QTextBrowser(self.about) 298 | self.textBrowser.setGeometry(QtCore.QRect(10, 280, 560, 240)) 299 | self.textBrowser.setAlignment(QtCore.Qt.AlignCenter) 300 | 301 | if os.path.isfile("/usr/share/nvidiux/licences/gpl-3.0_" + self.language + ".txt"): 302 | txtFile = open("/usr/share/nvidiux/licences/gpl-3.0_" + self.language + ".txt", "r") 303 | self.textBrowser.setText(_fromUtf8(txtFile.read())) 304 | elif os.path.isfile("/usr/share/nvidiux/licences/gpl-3.0.txt"): 305 | txtFile = open('/usr/share/nvidiux/licences/gpl-3.0.txt', 'r') 306 | self.textBrowser.setText(_fromUtf8(txtFile.read())) 307 | else: 308 | self.textBrowser.setText(_fromUtf8("Program share under license GPL V3\nSee http://www.gnu.org/licenses/gpl-3.0.txt")) 309 | 310 | #self.checkBoxUpdateMon.connect(self.checkBoxUpdateMon,QtCore.SIGNAL("clicked(bool)"),self.setUpdateContin) 311 | self.buttonLicence.connect(self.buttonLicence,SIGNAL("released()"),self.showLicence) 312 | self.buttonDonate.connect(self.buttonDonate,SIGNAL("released()"),self.showDonate) 313 | self.buttonThanks.connect(self.buttonThanks,SIGNAL("released()"),self.showT) 314 | self.setWindowTitle(_translate("Pref_Mon", "Settings", None)) 315 | self.tabWidget.setTabText(self.tabWidget.indexOf(self.tabMoniteur), _translate("Pref_Mon", "Monitor", None)) 316 | self.tabWidget.setTabText(self.tabWidget.indexOf(self.about), _translate("Pref_Mon", "About", None)) 317 | 318 | prefTranslator = QtCore.QTranslator() 319 | if prefTranslator.load("/usr/share/nvidiux/nvidiux_" + self.language): 320 | self.app.installTranslator(prefTranslator) 321 | self.retranslateUi() 322 | self.tabWidget.setCurrentIndex(self.loadTab) 323 | 324 | def showLicence(self): 325 | self.buttonThanks.setEnabled(True) 326 | self.buttonLicence.setEnabled(False) 327 | if os.path.isfile("/usr/share/nvidiux/licences/gpl-3.0_" + self.language + ".txt"): 328 | txtFile = open("/usr/share/nvidiux/licences/gpl-3.0_" + self.language + ".txt", "r") 329 | self.textBrowser.setText(_fromUtf8(txtFile.read())) 330 | elif os.path.isfile("/usr/share/nvidiux/licences/gpl-3.0.txt"): 331 | txtFile = open('/usr/share/nvidiux/licences/gpl-3.0.txt', 'r') 332 | self.textBrowser.setText(_fromUtf8(txtFile.read())) 333 | else: 334 | self.textBrowser.setText(_fromUtf8(_translate("Pref_Mon", "Program sharing under GPL V3 license \nSee http://www.gnu.org/licenses/gpl-3.0.txt"),None)) 335 | 336 | def showT(self): 337 | self.buttonLicence.setEnabled(True) 338 | self.buttonThanks.setEnabled(False) 339 | self.textBrowser.setText(_fromUtf8(_translate("Pref_Mon","Special thanks to\n - @mglinux for german translation\n - @profesorfalken for spanish translation\n - @gaara @bishop @gfx @jul974 for testing and help for debug",None))) 340 | 341 | def showDonate(self): 342 | import webbrowser 343 | url = "http://docs.python.org/library/webbrowser.html" 344 | webbrowser.open(url,new=2) 345 | 346 | def showError(self,errorCode,title,errorMsg,etype): 347 | if etype == self.error: 348 | errorMsg = errorMsg + "\nError Code:" + str(errorCode) 349 | QMessageBox.critical(self, _fromUtf8(title),_fromUtf8(errorMsg)) 350 | elif etype == self.warning: 351 | QMessageBox.warning(self, _fromUtf8(title),_fromUtf8(errorMsg)) 352 | else: 353 | QMessageBox.information(self, _fromUtf8(title),_fromUtf8(errorMsg)) 354 | return errorCode 355 | 356 | def stateGpu(self,value): 357 | if value: 358 | self.gpuActivated = self.gpuActivated + 1 359 | else: 360 | self.gpuActivated = self.gpuActivated - 1 361 | if self.gpuActivated == 1: 362 | for i in range(0, self.nbGpuNvidia): 363 | if self.listCheckBoxGpu[i].isChecked(): 364 | self.listCheckBoxGpu[i].setEnabled(False) 365 | else: 366 | self.listCheckBoxGpu[i].setEnabled(True) 367 | -------------------------------------------------------------------------------- /usr/share/nvidiux/monitor/monitor.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | #!/usr/bin/python2 3 | 4 | # Copyright 2014-2016 Payet Guillaume 5 | # 6 | # This program is free software: you can redistribute it and/or modify it 7 | # under the terms of the GNU General Public License version 3, as published 8 | # by the Free Software Foundation. 9 | # 10 | # This program is distributed in the hope that it will be useful, but 11 | # WITHOUT ANY WARRANTY; without even the implied warranties of 12 | # MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR 13 | # PURPOSE. See the GNU General Public License for more details. 14 | # 15 | # You should have received a copy of the GNU General Public License along 16 | # with this program. If not, see . 17 | 18 | from Tkinter import * 19 | import tkMessageBox 20 | import os, sys 21 | import subprocess as sub 22 | import threading 23 | import time 24 | from os.path import expanduser 25 | from xml.dom import minidom 26 | 27 | 28 | class GpuInfoMonitor(): 29 | 30 | def __init__(self): 31 | self.color = None 32 | oldPointTemp = 0 33 | oldPointFan = 0 34 | oldPointGpu = 0 35 | oldPointMem = 0 36 | totalMem = 0 37 | ABS = 0 38 | time = 0 39 | driverVersion = 0 40 | gpuName = "" 41 | templabel = "" 42 | fanlabel = "" 43 | gpulabel = "" 44 | memlabel = "" 45 | memclklabel = "" 46 | coreclklabel = "" 47 | shaderclklabel = "" 48 | 49 | class ElementConfGpu(): 50 | idGpu = 0 51 | color = [0,0,0] 52 | show = False 53 | 54 | def __init__(self, idGpu,color, show): 55 | try: 56 | if int(idGpu) > 0: 57 | self.idGpu = int(idGpu) 58 | else: 59 | self.idGpu = 1 60 | if int(color.split(':')[0]) >= 0 and int(color.split(':')[0]) <= 255: 61 | self.color[0] = int(color.split(':')[0]) 62 | else: 63 | self.color[0] = 255 64 | if int(color.split(':')[1]) >= 0 and int(color.split(':')[1]) <= 255: 65 | self.color[1] = int(color.split(':')[1]) 66 | else: 67 | self.color[1] = 255 68 | if int(color.split(':')[2]) >= 0 and int(color.split(':')[2]) <= 255: 69 | self.color[2] = int(color.split(':')[2]) 70 | else: 71 | self.color[2] = 255 72 | except: 73 | self.idGpu = 1 74 | self.color[0] = 255 75 | self.color[1] = 0 76 | self.color[2] = 0 77 | 78 | if show == "True": 79 | self.show = True 80 | else: 81 | self.show = False 82 | def info(): 83 | print "Gpu" + str(idGpu) +")\nColor red:" + str(self.color[0]) + "blue:" + str(self.color[1]) + "green:" + str(self.color[2]) + "\nShow:" + str(self.show) 84 | 85 | def getId(self): 86 | return self.idGpu 87 | def getColor(self): 88 | return "#%02x%02x%02x" % (self.color[0],self.color[1],self.color[2]) 89 | def getColorStr(self): 90 | return str(self.color[0]) + ":" + str(self.color[1]) + ":" + str(self.color[2]) 91 | def getShow(self): 92 | return self.show 93 | 94 | def closeEvent(): 95 | saveConf(confGpu,monitorVersion) 96 | tkRT.destroy() 97 | 98 | def color(value): 99 | return confGpu[value].getColor() 100 | 101 | def saveConf(listgpu,versionMonitor): 102 | fileToSave = minidom.Document() 103 | racine = fileToSave.createElement("nvidiux") 104 | fileToSave.appendChild(racine) 105 | version = fileToSave.createElement('version') 106 | text = fileToSave.createTextNode(str(versionMonitor)) 107 | version.appendChild(text) 108 | racine.appendChild(version) 109 | for gpu in listgpu: 110 | gpuElem = fileToSave.createElement('gpu') 111 | idGpu = fileToSave.createElement('id') 112 | text = fileToSave.createTextNode(str(gpu.getId())) 113 | idGpu.appendChild(text) 114 | gpuElem.appendChild(idGpu) 115 | colorGpu = fileToSave.createElement('color') 116 | text = fileToSave.createTextNode(str(gpu.getColorStr())) 117 | colorGpu.appendChild(text) 118 | gpuElem.appendChild(colorGpu) 119 | showGpu = fileToSave.createElement('show') 120 | text = fileToSave.createTextNode(str(gpu.getShow())) 121 | showGpu.appendChild(text) 122 | gpuElem.appendChild(showGpu) 123 | racine.appendChild(gpuElem) 124 | try: 125 | filexml = open(expanduser("~") + "/.nvidiux/monitor.xml", "w") 126 | filexml.write(fileToSave.toprettyxml()) 127 | filexml.close() 128 | except: 129 | print "Fail save monitor conf!" 130 | return 1 131 | return 0 132 | 133 | def loop(): 134 | if gpu1.ABS >= 575: 135 | fanchart.delete("all") 136 | tempchart.delete("all") 137 | gpuchart.delete("all") 138 | memchart.delete("all") 139 | gpu1.ABS = 0 140 | 141 | if gpu1.ABS == 0: # draw line 142 | for i in range (1,6): 143 | fanchart.create_line(0, i * 76,580, i * 76,fill = "grey") 144 | fanchartText = fanchart.create_text(2, 381 - i * 76, anchor="nw",fill = "grey") 145 | fanchart.itemconfig(fanchartText, text = str(int(i * 20)) + "%") 146 | fanchart.insert(fanchartText, 12, "") 147 | gpuchartText = gpuchart.create_text(2, 381 - i * 76, anchor="nw",fill = "grey") 148 | gpuchart.itemconfig(gpuchartText, text = str(int(i * 20)) + "%") 149 | gpuchart.insert(gpuchartText, 12, "") 150 | gpuchart.create_line(0, i * 76,580, i * 76,fill = "grey") 151 | tempchartText = tempchart.create_text(2, 381 - i * 76, anchor="nw",fill = "grey") 152 | tempchart.itemconfig(tempchartText, text = str(int(i * 24)) + "°C") 153 | tempchart.insert(tempchartText, 12, "") 154 | tempchart.create_line(0, i * 76,580, i * 76,fill = "grey") 155 | memchartText = memchart.create_text(2, 381 - i * 76, anchor="nw",fill = "grey") 156 | memchart.itemconfig(memchartText, text = str(int(i * float(gpu1.totalMem / 5))) + "Mo") 157 | memchart.insert(memchartText, 12, "") 158 | memchart.create_line(0, i * 76,580, i * 76,fill = "grey") 159 | 160 | for i in range(0,nbGpuNvidia): 161 | cmd = "nvidia-settings --query [gpu:" + str(i) + "]/GPUCoreTemp" 162 | if not sub.call(cmd,stdout=sub.PIPE,stderr=sub.PIPE,shell=True): 163 | out, err = sub.Popen(cmd + " | grep GPUCore | head -1",stdout=sub.PIPE,stderr=sub.PIPE,shell=True).communicate() 164 | if nbGpuNvidia == 1: 165 | gpu1.templabel = "Temp : " + str(out.split(':')[-1].split('.')[0]) + "°C" 166 | templabel.set(gpu1.templabel) 167 | else: 168 | templabel.set("Multi GPU") 169 | else: 170 | sys.exit(0) 171 | newPointTemp = 380 - int(int(out.split(':')[-1].split('.')[0]) * 380 / 125) 172 | tempchart.create_line(gpu1.ABS,gpu1.oldPointTemp,gpu1.ABS + 5,newPointTemp,fill=color(i)) 173 | 174 | gpu1.oldPointTemp = newPointTemp 175 | 176 | for i in range(0,nbGpuNvidia): 177 | cmd = "nvidia-settings --query [fan:" + str(i) + "]/GPUCurrentFanSpeed" 178 | if not sub.call(cmd ,stdout=sub.PIPE,stderr=sub.PIPE,shell=True): 179 | out, err = sub.Popen(cmd,stdout=sub.PIPE,stderr=sub.PIPE,shell=True).communicate() 180 | if nbGpuNvidia == 1: 181 | gpu1.fanlabel = "Fan : " + str(out.split(': ')[1].split('.')[0]) + "%" 182 | fanlabel.set(gpu1.fanlabel) 183 | else: 184 | fanlabel.set("Multi GPU") 185 | else: 186 | sys.exit(0) 187 | 188 | newPointFan = 380 - int(int(out.split(': ')[1].split('.')[0]) * 380 / 100) 189 | fanchart.create_line(gpu1.ABS,gpu1.oldPointFan,gpu1.ABS + 5,newPointFan,fill=color(i)) 190 | 191 | gpu1.oldPointFan = newPointFan 192 | 193 | for i in range(0,nbGpuNvidia): 194 | cmd = "nvidia-settings --query [gpu:" + str(i) + "]/GPUUtilization" 195 | if not sub.call(cmd,stdout=sub.PIPE,stderr=sub.PIPE,shell=True): 196 | out, err = sub.Popen(cmd + "| grep GPUUtilization | head -1",stdout=sub.PIPE,stderr=sub.PIPE,shell=True).communicate() 197 | if nbGpuNvidia == 1: 198 | gpu1.gpulabel = "Core : " + str(out.split('=')[1].split(',')[0]) + "%" 199 | gpulabel.set(gpu1.gpulabel) 200 | else: 201 | gpulabel.set("Multi GPU") 202 | else: 203 | sys.exit(0) 204 | newPointGpu = int( 380 - int(out.split('=')[1].split(',')[0]) * 380 / 100) 205 | gpuchart.create_line(gpu1.ABS,gpu1.oldPointGpu,gpu1.ABS + 5,newPointGpu,fill=color(i)) 206 | gpu1.oldPointGpu = newPointGpu 207 | 208 | for i in range(0,nbGpuNvidia): 209 | cmd = "nvidia-settings --query [gpu:" + str(i) + "]/UsedDedicatedGPUMemory" 210 | if not sub.call(cmd,stdout=sub.PIPE,stderr=sub.PIPE,shell=True): 211 | out, err = sub.Popen(cmd + " | grep UsedDedicatedGPUMemory | head -1",stdout=sub.PIPE,stderr=sub.PIPE,shell=True).communicate() 212 | if nbGpuNvidia == 1: 213 | gpu1.memlabel = "Mem : " + str(out.split(':')[-1].split('.')[0]) + " Mo" 214 | memlabel.set(gpu1.memlabel) 215 | else: 216 | memlabel.set("Multi GPU") 217 | else: 218 | sys.exit(0) 219 | newPointMem = int(380 - int(out.split(':')[-1].split('.')[0]) * 380 / gpu1.totalMem) 220 | memchart.create_line(gpu1.ABS,gpu1.oldPointMem,gpu1.ABS + 5,newPointMem,fill=color(i)) 221 | gpu1.oldPointMem = newPointMem 222 | 223 | if nbGpuNvidia == 1: 224 | cmd = "nvidia-settings --query [gpu:0]/GPUCurrentClockFreqsString" 225 | if not sub.call(cmd,stdout=sub.PIPE,stderr=sub.PIPE,shell=True): 226 | out, err = sub.Popen(cmd,stdout=sub.PIPE,stderr=sub.PIPE,shell=True).communicate() 227 | try: 228 | coreclklabel.set("Core :" + out.split('nvclockmax=')[1].split(',')[0] + "Mhz") 229 | except: 230 | sys.exit(1) 231 | try: 232 | memclklabel.set("Mem : " + str(out.split('memTransferRatemax=')[1].split(',')[0]) + "Mhz") 233 | except: 234 | sys.exit(1) 235 | else: 236 | self.showError(31,"Echec","Echec chargement des parametres Gpu",self.error) 237 | else: 238 | coreclklabel.set("Multi GPU") 239 | 240 | 241 | gpu1.ABS = gpu1.ABS + 5 242 | gpu1.time = gpu1.time + interval 243 | if int(gpu1.time / 1000) <= 1: 244 | timeLabel.set("Temps écoulé : " + str(int(gpu1.time / 1000)) + " seconde") 245 | else: 246 | timeLabel.set("Temps écoulé : " + str(int(gpu1.time / 1000)) + " secondes") 247 | tkRT.after(interval,loop) 248 | 249 | interval = 1000 250 | tkRT=Tk() 251 | tkRT.title("Moniteur Nvidiux") 252 | tkRT.protocol('WM_DELETE_WINDOW', closeEvent) 253 | gpuName = StringVar() 254 | templabel = StringVar() 255 | fanlabel = StringVar() 256 | gpulabel = StringVar() 257 | memlabel = StringVar() 258 | memclklabel = StringVar() 259 | coreclklabel = StringVar() 260 | shaderclklabel = StringVar() 261 | timeLabel = StringVar() 262 | gpu1 = GpuInfoMonitor() 263 | gpu1.time = 0 264 | monitorVersion = 1.1 265 | monitorVersionStr = "1.1.1" 266 | listGpu = [] 267 | gpuInfo = [] #idGpu,color, show 268 | confGpu = [] 269 | error = False 270 | updateC = True 271 | versionPiloteMaxTest = 364.19 272 | 273 | cmd = "nvidia-settings --query [gpu:0]/NvidiaDriverVersion" 274 | if not sub.call(cmd,stdout=sub.PIPE,stderr=sub.PIPE,shell=True): 275 | out, err = sub.Popen(cmd,stdout=sub.PIPE,stderr=sub.PIPE,shell=True).communicate() 276 | versionPilote = float(out.split(':')[-1][1:]) 277 | else: 278 | sys.exit(1) 279 | if versionPilote > 349.00 and versionPilote < 349.53: 280 | tkMessageBox.showwarning("Erreur Version","Le moniteur n'est pas compatible avec cette version:(%s)" % versionPilote) 281 | sys.exit(1) 282 | 283 | if versionPilote > versionPiloteMaxTest: 284 | print "Driver non testé" 285 | 286 | cmd = "lspci -vnn | egrep 'VGA|3D'" 287 | ListeGpu, err = sub.Popen(cmd,stdout=sub.PIPE,stderr=sub.PIPE,shell=True).communicate() 288 | nbGpuNvidia = ListeGpu.count('NVIDIA') 289 | if nbGpuNvidia == 1: 290 | cmd = "lspci -vnn | grep NVIDIA | grep -v Audio | head -n 2" 291 | out, err = sub.Popen(cmd,stdout=sub.PIPE,stderr=sub.PIPE,shell=True).communicate() 292 | gpuName.set(out.split(':')[-2].split('[')[-2].split(']')[0]) 293 | else: 294 | gpuName.set("Multi Gpu") 295 | 296 | try: 297 | profileFile = open(expanduser("~") + "/.nvidiux/monitor.xml", "r") 298 | ndiFile = minidom.parse(profileFile) 299 | except: 300 | for i in range(1,nbGpuNvidia): 301 | confGpu.append(ElementConfGpu(i,"255:0:0","True")) 302 | saveConf(confGpu,monitorVersion) 303 | ndiFile = None 304 | 305 | if ndiFile != None: 306 | versionElement = ndiFile.getElementsByTagName('version') 307 | updateCo = ndiFile.getElementsByTagName('update') 308 | if updateCo != []: 309 | if updateCo[0].firstChild.nodeValue == "False": 310 | updateC = False 311 | else: 312 | updateC = True 313 | else: 314 | updateC = True 315 | itemlist = ndiFile.getElementsByTagName('gpu') 316 | errorCode = 0 317 | if len(itemlist) > 0: 318 | for item in itemlist: 319 | if item.hasChildNodes(): 320 | for value in item.childNodes: 321 | if value.nodeType == minidom.Node.ELEMENT_NODE: 322 | gpuInfo.append(value.firstChild.nodeValue) 323 | error = False 324 | listGpu.append(gpuInfo) 325 | gpuInfo = [] 326 | 327 | for gpuInfo in listGpu: 328 | confGpu.append(ElementConfGpu(gpuInfo[0],gpuInfo[1],gpuInfo[2])) #3 inf for each gpu (idGpu,color, show) 329 | 330 | cmd = "nvidia-settings --query [gpu:0]/GPUCurrentClockFreqsString" 331 | if not sub.call(cmd,stdout=sub.PIPE,stderr=sub.PIPE,shell=True): 332 | out, err = sub.Popen(cmd,stdout=sub.PIPE,stderr=sub.PIPE,shell=True).communicate() 333 | try: 334 | coreclklabel.set("Core :" + out.split('nvclockmax=')[1].split(',')[0] + "Mhz") 335 | except: 336 | sys.exit(1) 337 | try: 338 | memclklabel.set("Mem : " + str(out.split('memTransferRatemax=')[1].split(',')[0]) + "Mhz") 339 | except: 340 | sys.exit(1) 341 | else: 342 | self.showError(31,"Echec","Echec chargement des parametres Gpu",self.error) 343 | 344 | timeLabel.set("Temps écoulé : 0 seconde") 345 | 346 | cmd = "nvidia-settings --query [gpu:0]/GPUCoreTemp" 347 | if not sub.call(cmd,stdout=sub.PIPE,stderr=sub.PIPE,shell=True): 348 | out, err = sub.Popen(cmd + " | grep GPUCore | head -1",stdout=sub.PIPE,stderr=sub.PIPE,shell=True).communicate() 349 | gpu1.oldPointTemp = int(380 - int(out.split(':')[-1].split('.')[0]) * 380 / 125) 350 | else: 351 | sys.exit(1) 352 | 353 | cmd = "nvidia-settings --query [fan:0]/GPUCurrentFanSpeed" 354 | if not sub.call(cmd ,stdout=sub.PIPE,stderr=sub.PIPE,shell=True): 355 | out, err = sub.Popen(cmd,stdout=sub.PIPE,stderr=sub.PIPE,shell=True).communicate() 356 | gpu1.oldPointFan = int(380 - int(out.split(': ')[1].split('.')[0]) * 380 / 100) 357 | else: 358 | sys.exit(1) 359 | 360 | cmd = "nvidia-settings --query [gpu:0]/GPUUtilization" 361 | if not sub.call(cmd,stdout=sub.PIPE,stderr=sub.PIPE,shell=True): 362 | out, err = sub.Popen(cmd + "| grep GPUUtilization | head -1",stdout=sub.PIPE,stderr=sub.PIPE,shell=True).communicate() 363 | gpu1.oldPointGpu = int( 380 - int(out.split('=')[1].split(',')[0]) * 380 / 100) 364 | else: 365 | sys.exit(1) 366 | 367 | cmd = "nvidia-settings --query [gpu:0]/videoRam" 368 | if not sub.call(cmd,stdout=sub.PIPE,stderr=sub.PIPE,shell=True): 369 | out, err = sub.Popen(cmd,stdout=sub.PIPE,stderr=sub.PIPE,shell=True).communicate() 370 | gpu1.totalMem = float(out.split(': ')[1].split('.')[0]) / 1024 371 | else: 372 | sys.exit(1) 373 | 374 | cmd = "nvidia-settings --query [gpu:0]/UsedDedicatedGPUMemory" 375 | if not sub.call(cmd,stdout=sub.PIPE,stderr=sub.PIPE,shell=True): 376 | out, err = sub.Popen(cmd + " | grep UsedDedicatedGPUMemory | head -1",stdout=sub.PIPE,stderr=sub.PIPE,shell=True).communicate() 377 | gpu1.oldPointMem = int(380 - int(out.split(':')[-1].split('.')[0]) * 380 / gpu1.totalMem) 378 | else: 379 | sys.exit(1) 380 | 381 | mainframe=Frame(tkRT) 382 | mainframe.pack() 383 | 384 | 385 | tempchart=Canvas(mainframe,width=580,height=380,bg="black") 386 | tempchart.config(scrollregion=[0,0,10000,380]) 387 | tempchart.grid(column=0,row=4) 388 | 389 | 390 | Label(mainframe,textvariable = templabel).grid(column=0,row=3) 391 | 392 | fanchart=Canvas(mainframe,width=580,height=380,bg="black") 393 | fanchart.grid(column=2,row=4) 394 | Label(mainframe,textvariable = fanlabel).grid(column=2,row=3) 395 | 396 | Label(mainframe,textvariable = timeLabel).grid(column=0,row=5,columnspan=3) 397 | Label(mainframe,text = " ").grid(column=1,row=4) 398 | Label(mainframe,text = " ").grid(column=1,row=3) 399 | Label(mainframe,text = " ").grid(column=1,row=7) 400 | Label(mainframe,text = " ").grid(column=1,row=6) 401 | 402 | gpuchart=Canvas(mainframe,width=580,height=380,bg="black") 403 | gpuchart.grid(column=0,row=6) 404 | Label(mainframe,textvariable = gpulabel).grid(column=0,row=7) 405 | 406 | memchart=Canvas(mainframe,width=580,height=380,bg="black") 407 | memchart.grid(column=2,row=6) 408 | Label(mainframe,textvariable = memlabel).grid(column=2,row=7) 409 | 410 | Label(mainframe,textvariable = gpuName).grid(column=0,row=0,columnspan=3) 411 | Label(mainframe,textvariable = memclklabel).grid(column=0,row=1,columnspan=3) 412 | Label(mainframe,textvariable = coreclklabel).grid(column=0,row=2,columnspan=3) 413 | tkRT.geometry("1280x880+0+0") 414 | tkRT.after(interval,loop) 415 | tkRT.mainloop() 416 | sys.exit(0) 417 | -------------------------------------------------------------------------------- /usr/share/nvidiux/monitor/monitor2.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | #!/usr/bin/python2 3 | 4 | # Copyright 2014-2018 Payet Guillaume 5 | # 6 | # This program is free software: you can redistribute it and/or modify it 7 | # under the terms of the GNU General Public License version 3, as published 8 | # by the Free Software Foundation. 9 | # 10 | # This program is distributed in the hope that it will be useful, but 11 | # WITHOUT ANY WARRANTY; without even the implied warranties of 12 | # MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR 13 | # PURPOSE. See the GNU General Public License for more details. 14 | # 15 | # You should have received a copy of the GNU General Public License along 16 | # with this program. If not, see . 17 | 18 | 19 | try: 20 | from pyqtgraph.Qt import QtGui, QtCore 21 | import pyqtgraph as pg 22 | import pyqtgraph.exporters 23 | except: 24 | from PyQt4.QtCore import * 25 | from PyQt4.QtGui import * 26 | from PyQt4 import QtCore, QtGui 27 | import sys 28 | app = QApplication(None) 29 | QtGui.QMessageBox.critical(None, "pyqtgraph","You must install pyqtgraph Package") 30 | sys.exit(0) 31 | 32 | 33 | from PyQt4 import QtCore, QtGui 34 | from PyQt4.QtCore import * 35 | from PyQt4.QtGui import * 36 | from monitorSettings import Ui_Pref_Monitor 37 | import os 38 | import collections 39 | import sys 40 | import time 41 | import numpy as np 42 | import subprocess as sub 43 | import platform 44 | from monitor2ui import Ui_MainWindow 45 | 46 | try: 47 | _fromUtf8 = QtCore.QString.fromUtf8 48 | except AttributeError: 49 | def _fromUtf8(s): 50 | return s 51 | try: 52 | _encoding = QtGui.QApplication.UnicodeUTF8 53 | def _translate(context, text, disambig): 54 | return QtGui.QApplication.translate(context, text, disambig, _encoding) 55 | except AttributeError: 56 | def _translate(context, text, disambig): 57 | return QtGui.QApplication.translate(context, text, disambig) 58 | 59 | class GpuInfoMonitor(): 60 | 61 | def __init__(self): 62 | self.color = None 63 | color = None 64 | dataBufferGpu = None 65 | xGpu = None 66 | yGpu = None 67 | dataBufferFan = None 68 | xFan = None 69 | yFan = None 70 | dataBufferTemp = None 71 | xTemp = None 72 | yTemp = None 73 | dataBufferMem = None 74 | formSettings = None 75 | xMem = None 76 | yMem = None 77 | percentGpu = 0 78 | percentFan = 0 79 | totalMem = 0 80 | temperature = 0 81 | memoryUse = 0 82 | driverVersion = 0 83 | gpuName = "" 84 | freqGpu = 0 85 | 86 | class MonitorApp(QMainWindow): 87 | 88 | 89 | sampleInterval = 1 #second 90 | timeWindow = 240 #second 91 | totalTime = 0 92 | error = -1 93 | warning = -2 94 | plotGpuCurve = None 95 | plotFanCurve = None 96 | anguage = None 97 | monitorVersion = 0.8 98 | monitorVersionStr = "0.8.2" 99 | versionPilote = 331.31 100 | versionPiloteMaxTest = 387.22 101 | nbGpuNvidia = -1 102 | tabGpu = list() 103 | 104 | def __init__(self,argv,parent=None,): 105 | super (MonitorApp, self).__init__(parent) 106 | 107 | self.ui = Ui_MainWindow() 108 | self.language = QtCore.QLocale.system().name() 109 | self.ui.setupUi(self) 110 | textSystem = _translate("monitor","Nvidia driver version: ",None) 111 | cmd = "nvidia-settings --query [gpu:0]/NvidiaDriverVersion" 112 | if not sub.call(cmd,stdout=sub.PIPE,stderr=sub.PIPE,shell=True): 113 | out, err = sub.Popen(cmd,stdout=sub.PIPE,stderr=sub.PIPE,shell=True).communicate() 114 | self.piloteVersion = float(out.split(':')[-1][1:]) 115 | textSystem = textSystem + str(self.piloteVersion) + "\n" 116 | else: 117 | sys.exit(1) 118 | 119 | if self.piloteVersion > self.versionPiloteMaxTest: 120 | print _translate("monitor","Driver > MAX",None) 121 | 122 | self.iscompatible() 123 | self.interval = int(self.sampleInterval*1000) 124 | self.bufSize = int(self.timeWindow / self.sampleInterval) 125 | 126 | for i in range(0,self.nbGpuNvidia): 127 | self.tabGpu.append(GpuInfoMonitor()) 128 | self.tabGpu[i].dataBufferGpu = collections.deque([0.0]*self.bufSize, self.bufSize) 129 | self.tabGpu[i].dataBufferFan = collections.deque([0.0]*self.bufSize, self.bufSize) 130 | self.tabGpu[i].dataBufferMem = collections.deque([0.0]*self.bufSize, self.bufSize) 131 | self.tabGpu[i].dataBufferTemp = collections.deque([0.0]*self.bufSize, self.bufSize) 132 | 133 | self.tabGpu[i].xGpu = np.linspace(self.timeWindow, 0.0, self.bufSize) 134 | self.tabGpu[i].xFan = np.linspace(self.timeWindow, 0.0, self.bufSize) 135 | self.tabGpu[i].xMem = np.linspace(self.timeWindow, 0.0, self.bufSize) 136 | self.tabGpu[i].xTemp = np.linspace(self.timeWindow, 0.0, self.bufSize) 137 | self.tabGpu[i].yGpu = np.zeros(self.bufSize, dtype=np.float) 138 | self.tabGpu[i].yFan = np.zeros(self.bufSize, dtype=np.float) 139 | self.tabGpu[i].yMem = np.zeros(self.bufSize, dtype=np.float) 140 | self.tabGpu[i].yTemp = np.zeros(self.bufSize, dtype=np.float) 141 | 142 | self.ui.labelGpu.setAlignment(QtCore.Qt.AlignCenter) 143 | self.ui.labelMemory.setAlignment(QtCore.Qt.AlignCenter) 144 | self.ui.labelTemp.setAlignment(QtCore.Qt.AlignCenter) 145 | self.ui.labelFan.setAlignment(QtCore.Qt.AlignCenter) 146 | self.ui.labelTime.setAlignment(QtCore.Qt.AlignCenter) 147 | self.ui.labelGpuName.setAlignment(QtCore.Qt.AlignCenter) 148 | self.ui.labelInfo.setAlignment(QtCore.Qt.AlignCenter) 149 | 150 | cmd = "nvidia-settings --query [gpu:0]/videoRam" 151 | if not sub.call(cmd,stdout=sub.PIPE,stderr=sub.PIPE,shell=True): 152 | out, err = sub.Popen(cmd,stdout=sub.PIPE,stderr=sub.PIPE,shell=True).communicate() 153 | self.tabGpu[0].totalMem = int(float(out.split(': ')[1].split('.')[0]) / 1024) 154 | else: 155 | sys.exit(1) 156 | 157 | self.ui.plotGpu.setTitle(_translate("monitor","Use GPU",None)) 158 | self.ui.plotGpu.showGrid(x=True, y=True) 159 | self.ui.plotGpu.setLabel('left', '%') 160 | self.ui.plotGpu.setLabel('bottom', _translate("monitor","Time",None), 'sec') 161 | self.ui.plotGpu.setRange(yRange=[8,91],xRange=[20,220]) 162 | self.ui.plotGpu.setMenuEnabled(enableMenu=False) 163 | self.ui.plotGpu.autoRange(padding=0) 164 | self.plotGpuCurve = self.ui.plotGpu.plot(self.tabGpu[0].xGpu, self.tabGpu[0].yGpu, pen=(255,0,0)) 165 | 166 | self.ui.plotFan.setTitle(_translate("monitor","Use Fan",None)) 167 | self.ui.plotFan.showGrid(x=True, y=True) 168 | self.ui.plotFan.setLabel('left', '%') 169 | self.ui.plotFan.setLabel('bottom', _translate("monitor","Time",None), 'sec') 170 | self.ui.plotFan.setRange(yRange=[9,91],xRange=[20,220]) 171 | self.ui.plotFan.setMenuEnabled(enableMenu=False) 172 | self.ui.plotFan.autoRange(padding=0) 173 | self.plotFanCurve = self.ui.plotFan.plot(self.tabGpu[0].xFan, self.tabGpu[0].yFan, pen=(255,0,0)) 174 | 175 | self.ui.plotTemp.setTitle(_translate("monitor","Temperature",None)) 176 | self.ui.plotTemp.showGrid(x=True, y=True) 177 | self.ui.plotTemp.setLabel('left', '°C') 178 | self.ui.plotTemp.setLabel('bottom', _translate("monitor","Time",None), 'sec') 179 | self.ui.plotTemp.setRange(yRange=[9,91],xRange=[20,220]) 180 | self.ui.plotTemp.setMenuEnabled(enableMenu=False) 181 | self.ui.plotTemp.autoRange(padding=0) 182 | self.plotTempCurve = self.ui.plotTemp.plot(self.tabGpu[0].xTemp, self.tabGpu[0].yTemp, pen=(255,0,0)) 183 | 184 | self.ui.plotMem.setTitle(_translate("monitor","Use Memory",None)) 185 | self.ui.plotMem.showGrid(x=True, y=True) 186 | self.ui.plotMem.setLabel('left', 'Mo') 187 | self.ui.plotMem.setLabel('bottom', _translate("monitor","Time",None), 'sec') 188 | self.ui.plotMem.setRange(yRange=[110,self.tabGpu[0].totalMem - 80],xRange=[20,220]) 189 | self.ui.plotMem.autoRange(padding=0) 190 | self.ui.plotMem.setMenuEnabled(enableMenu=False) 191 | self.plotMemCurve = self.ui.plotMem.plot(self.tabGpu[0].xMem, self.tabGpu[0].yMem, pen=(255,0,0)) 192 | 193 | textgpu = _translate("monitor","Gpu name : ",None) 194 | cmd = "lspci -vnn | grep NVIDIA | grep -v Audio | grep GeForce" 195 | out, err = sub.Popen(cmd,stdout=sub.PIPE,stderr=sub.PIPE,shell=True).communicate() 196 | try: 197 | self.tabGpu[0].nameGpu = str("GeForce" + out.split('\n')[i].split("GeForce")[-1].split("]")[0]) 198 | textgpu = textgpu + self.tabGpu[0].nameGpu + "\n" + _translate("monitor","Gpu Freq : ",None) 199 | 200 | except: 201 | sys.exit(1) 202 | 203 | cmd = "nvidia-settings --query [gpu:" + str(i) + "]/GPUCurrentClockFreqsString" 204 | if not sub.call(cmd,stdout=sub.PIPE,stderr=sub.PIPE,shell=True): 205 | out, err = sub.Popen(cmd,stdout=sub.PIPE,stderr=sub.PIPE,shell=True).communicate() 206 | try: 207 | self.tabGpu[0].freqGpu = str(out.split('nvclockmax=')[1].split(',')[0]) 208 | textgpu = textgpu + self.tabGpu[0].freqGpu + "Mhz\n" + _translate("monitor","Memory freq : ",None) 209 | except: 210 | sys.exit(1) 211 | try: 212 | self.tabGpu[i].freqMem = str(out.split('memTransferRatemax=')[1].split(',')[0]) 213 | textgpu = textgpu + self.tabGpu[i].freqMem + "Mhz" 214 | except: 215 | sys.exit(1) 216 | 217 | textSystem = textSystem + _translate("monitor","Os version : ",None) 218 | self.linuxDistrib = platform.linux_distribution() 219 | if self.linuxDistrib == ('', '', ''): 220 | if os.path.isfile("/etc/issue"): 221 | with open("/etc/issue") as f: 222 | textSystem = textSystem + f.read().split()[0] + " " + platform.architecture()[0] 223 | else: 224 | textSystem = textSystem + "Unknow distrib " + platform.architecture()[0] 225 | else: 226 | textSystem = textSystem + self.linuxDistrib[0] + " " + self.linuxDistrib[1] 227 | 228 | self.ui.labelTime.setText(str(self.totalTime + self.sampleInterval) + _translate("monitor"," second",None)) 229 | self.ui.labelGpuName.setText(textgpu) 230 | self.ui.labelInfo.setText(textSystem) 231 | 232 | if self.nbGpuNvidia >=2: 233 | self.ui.bouttonGpu.setEnabled(True) 234 | 235 | self.ui.bouttonExport.connect(self.ui.bouttonExport,SIGNAL("released()"),self.exportGraph) 236 | self.ui.bouttonSettings.connect(self.ui.bouttonSettings,SIGNAL("released()"),self.settings) 237 | self.ui.bouttonAbout.connect(self.ui.bouttonAbout,SIGNAL("released()"),self.about) 238 | self.ui.bouttonGpu.connect(self.ui.bouttonGpu,SIGNAL("released()"),self.changeGpu) 239 | 240 | self.timer = QtCore.QTimer() 241 | self.timer.timeout.connect(self.updatePlot) 242 | self.timer.start(self.interval) 243 | 244 | def about(self): 245 | tabParam = list() 246 | tabParam.append(self.monitorVersion) 247 | tabParam.append(self.monitorVersionStr) 248 | tabParam.append(self.nbGpuNvidia) 249 | tabParam.append(self.tabGpu) 250 | tabParam.append(self.language) 251 | tabParam.append(app) 252 | self.formSettings = Ui_Pref_Monitor(1,tabParam,self) 253 | self.formSettings.show() 254 | 255 | def changeGpu(self): 256 | sys.exit(0) 257 | 258 | def exportGraph(self): 259 | exporter = pg.exporters.ImageExporter(self.ui.plotGpu.plotItem) 260 | exporter2 = pg.exporters.ImageExporter(self.ui.plotFan.plotItem) 261 | exporter3 = pg.exporters.ImageExporter(self.ui.plotTemp.plotItem) 262 | exporter4 = pg.exporters.ImageExporter(self.ui.plotMem.plotItem) 263 | 264 | filename = QtGui.QFileDialog.getSaveFileName(self, "Save png", "Export.png", "*.png") 265 | if filename == '': 266 | return False 267 | if str(filename[-4:]) == ".png": 268 | filename = filename[:-4] 269 | print filename 270 | exporter.export(filename + "Gpu" + ".png") 271 | exporter2.export(filename + "Fan" + ".png") 272 | exporter3.export(filename + "Temp" + ".png") 273 | exporter4.export(filename + "Mem" + ".png") 274 | return True 275 | 276 | def getDataGpu(self): 277 | cmd = "nvidia-settings --query [gpu:0]/GPUUtilization" 278 | if not sub.call(cmd,stdout=sub.PIPE,stderr=sub.PIPE,shell=True): 279 | out, err = sub.Popen(cmd + "| grep GPUUtilization",stdout=sub.PIPE,stderr=sub.PIPE,shell=True).communicate() 280 | self.tabGpu[0].percentGpu = int(out.split('=')[1].split(',')[0]) 281 | self.ui.labelGpu.setText(str(self.tabGpu[0].percentGpu) + " %") 282 | return self.tabGpu[0].percentGpu 283 | else: 284 | sys.exit(1) 285 | return None 286 | 287 | def getDataFan(self): 288 | cmd = "nvidia-settings --query [fan:0]/GPUCurrentFanSpeed" 289 | if not sub.call(cmd ,stdout=sub.PIPE,stderr=sub.PIPE,shell=True): 290 | out, err = sub.Popen(cmd,stdout=sub.PIPE,stderr=sub.PIPE,shell=True).communicate() 291 | self.tabGpu[0].percentFan = int(out.split(': ')[1].split('.')[0]) 292 | self.ui.labelFan.setText(str(self.tabGpu[0].percentFan) + " %") 293 | return self.tabGpu[0].percentFan 294 | else: 295 | sys.exit(1) 296 | return None 297 | 298 | def getDataTemp(self): 299 | cmd = "nvidia-settings --query [gpu:0]/GPUCoreTemp" 300 | if not sub.call(cmd,stdout=sub.PIPE,stderr=sub.PIPE,shell=True): 301 | out, err = sub.Popen(cmd + " | grep GPUCore",stdout=sub.PIPE,stderr=sub.PIPE,shell=True).communicate() 302 | self.tabGpu[0].temperature = int(out.split('.')[0].split(': ')[1]) 303 | self.ui.labelTemp.setText(str(self.tabGpu[0].temperature) + " C") 304 | return self.tabGpu[0].temperature 305 | else: 306 | sys.exit(1) 307 | return None 308 | 309 | def getDataMem(self): 310 | cmd = "nvidia-settings --query [gpu:0]/UsedDedicatedGPUMemory" 311 | if not sub.call(cmd,stdout=sub.PIPE,stderr=sub.PIPE,shell=True): 312 | out, err = sub.Popen(cmd + " | grep UsedDedicatedGPUMemory",stdout=sub.PIPE,stderr=sub.PIPE,shell=True).communicate() 313 | self.tabGpu[0].memoryUse = int(out.split('.')[0].split(': ')[1]) 314 | self.ui.labelMemory.setText(str(self.tabGpu[0].memoryUse) + " Mo") 315 | return self.tabGpu[0].memoryUse 316 | else: 317 | sys.exit(1) 318 | return None 319 | 320 | def iscompatible(self): 321 | 322 | cmd = "ls -l /usr/lib | grep nvidia" 323 | if sub.call(cmd,stdout=sub.PIPE,stderr=sub.PIPE,shell=True): 324 | return self.showError(1,_translate("monitor","Unsupported",None),_translate("monitor","Driver not found \nPlease install nvidia proprietary drivers",None),self.error) 325 | if not os.path.isfile("/usr/bin/nvidia-settings"): 326 | return self.showError(2,_translate("monitor","Unsupported",None),_translate("monitor","Nvidia settings not found \nPlease install nvidia proprietary drivers",None),self.error) 327 | 328 | cmd = "lspci -vnn | grep -E 'VGA|3D'" 329 | ListeGpu, err = sub.Popen(cmd,stdout=sub.PIPE,stderr=sub.PIPE,shell=True).communicate() 330 | self.nbGpuNvidia = ListeGpu.count('GeForce') 331 | self.nbGpu = len(ListeGpu) 332 | if self.nbGpuNvidia == 0: 333 | try: 334 | cmd = "nvidia-smi -L" 335 | ListeGpuSmi, err = sub.Popen(cmd,stdout=sub.PIPE,stderr=sub.PIPE,shell=True).communicate() 336 | self.nbGpuNvidia = ListeGpu.count('GeForce') 337 | if self.nbGpuNvidia == 0: 338 | return self.showError(4,_translate("monitor","Nvidia gpu not found",None),_translate("monitor","Nvidia gpu not found",None),self.error) 339 | except: 340 | return self.showError(4,_translate("monitor","Nvidia gpu not found",None),_translate("monitor","Nvidia gpu not found",None),self.error) 341 | 342 | if self.nbGpu >= 2: #MultiGpu 343 | if ListeGpu.count('Intel') == 1 and self.nbGpuNvidia == 1 : #optimus 344 | if os.popen("prime-supported 2>> /dev/null", "r").read().replace('\n','') != "yes": 345 | return self.showError(3,_translate("monitor","Prime",None),_translate("monitor","Only prime is supported for optimus configuration",None),self.error) 346 | if os.popen("prime-select query", "r").read().replace('\n','') != "nvidia": 347 | return self.showError(-1,_translate("monitor","Mode intel",None),_translate("monitor","Prime\nPlease switch to nvidia mode",None),self.info) 348 | self.optimus = 1 349 | self.ui.checkBoxOptimus.setChecked(1) 350 | 351 | def settings(self): 352 | tabParam = list() 353 | tabParam.append(self.monitorVersion) 354 | tabParam.append(self.monitorVersionStr) 355 | tabParam.append(self.nbGpuNvidia) 356 | tabParam.append(self.tabGpu) 357 | tabParam.append(self.language) 358 | tabParam.append(app) 359 | self.formSettings = Ui_Pref_Monitor(0,tabParam,self) 360 | self.formSettings.show() 361 | 362 | def showError(self,errorCode,title,errorMsg,etype): 363 | if etype == self.error: 364 | errorMsg = errorMsg + "\n" + _translate("monitor","Error Code:",None) + str(errorCode) 365 | QMessageBox.critical(self, _fromUtf8(title),_fromUtf8(errorMsg)) 366 | elif etype == self.warning: 367 | QMessageBox.warning(self, _fromUtf8(title),_fromUtf8(errorMsg)) 368 | else: 369 | QMessageBox.information(self, _fromUtf8(title),_fromUtf8(errorMsg)) 370 | return errorCode 371 | 372 | def updatePlot(self): 373 | self.tabGpu[0].dataBufferGpu.append(self.getDataGpu()) 374 | self.tabGpu[0].yGpu[:] = self.tabGpu[0].dataBufferGpu 375 | self.plotGpuCurve.setData(self.tabGpu[0].xGpu, self.tabGpu[0].yGpu) 376 | self.tabGpu[0].dataBufferFan.append(self.getDataFan()) 377 | self.tabGpu[0].yFan[:] = self.tabGpu[0].dataBufferFan 378 | self.plotFanCurve.setData(self.tabGpu[0].xFan, self.tabGpu[0].yFan) 379 | self.tabGpu[0].dataBufferTemp.append(self.getDataTemp()) 380 | self.tabGpu[0].yTemp[:] = self.tabGpu[0].dataBufferTemp 381 | self.plotTempCurve.setData(self.tabGpu[0].xTemp, self.tabGpu[0].yTemp) 382 | self.tabGpu[0].dataBufferMem.append(self.getDataMem()) 383 | self.tabGpu[0].yMem[:] = self.tabGpu[0].dataBufferMem 384 | self.plotMemCurve.setData(self.tabGpu[0].xMem, self.tabGpu[0].yMem) 385 | self.totalTime += self.sampleInterval 386 | self.ui.labelTime.setText(str(self.totalTime) + _translate("monitor"," seconds",None)) 387 | 388 | if __name__ == '__main__': 389 | 390 | app = QApplication(sys.argv) 391 | localeSystem = QtCore.QLocale.system().name() 392 | if "en" in localeSystem: 393 | localeSystem = "en_EN" 394 | elif "es" in localeSystem: 395 | localeSystem = "es_ES" 396 | elif "de" in localeSystem: 397 | localeSystem = "de_DE" 398 | elif "fr" in localeSystem: 399 | localeSystem = "fr_FR" 400 | else: 401 | localeSystem = "en_EN" 402 | monitorTranslator = QtCore.QTranslator() 403 | if localeSystem != "en_EN": 404 | if not os.path.isfile("/usr/share/nvidiux/nvidiux_" + localeSystem + ".qm"): 405 | monitorTranslator.load("qt_" + localeSystem,QtCore.QLibraryInfo.location(QtCore.QLibraryInfo.TranslationsPath)) 406 | else: 407 | monitorTranslator.load("/usr/share/nvidiux/nvidiux_" + localeSystem) 408 | app.installTranslator(monitorTranslator) 409 | 410 | monitorApp = MonitorApp(sys.argv[1:]) 411 | monitorApp.show() 412 | sys.exit(app.exec_()) 413 | 414 | -------------------------------------------------------------------------------- /usr/share/nvidiux/Ui_Nvidiux.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | #!/usr/bin/python2 3 | 4 | # Copyright 2014-2018 Payet Guillaume 5 | # 6 | # This program is free software: you can redistribute it and/or modify it 7 | # under the terms of the GNU General Public License version 3, as published 8 | # by the Free Software Foundation. 9 | # 10 | # This program is distributed in the hope that it will be useful, but 11 | # WITHOUT ANY WARRANTY; without even the implied warranties of 12 | # MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR 13 | # PURPOSE. See the GNU General Public License for more details. 14 | # 15 | # You should have received a copy of the GNU General Public License along 16 | # with this program. If not, see . 17 | 18 | from PyQt4 import QtCore, QtGui 19 | 20 | try: 21 | _fromUtf8 = QtCore.QString.fromUtf8 22 | except AttributeError: 23 | def _fromUtf8(s): 24 | return s 25 | try: 26 | _encoding = QtGui.QApplication.UnicodeUTF8 27 | def _translate(context, text, disambig): 28 | return QtGui.QApplication.translate(context, text, disambig, _encoding) 29 | except AttributeError: 30 | def _translate(context, text, disambig): 31 | return QtGui.QApplication.translate(context, text, disambig) 32 | 33 | class Ui_MainWindow(object): 34 | def setupUi(self, MainWindow): 35 | MainWindow.setObjectName(_fromUtf8("MainWindow")) 36 | MainWindow.resize(910, 780) 37 | MainWindow.setMaximumSize(QtCore.QSize(910, 780)) 38 | 39 | self.centralwidget = QtGui.QWidget() 40 | self.centralwidget.setStyleSheet(_fromUtf8("")) 41 | self.centralwidget.setObjectName(_fromUtf8("centralwidget")) 42 | self.title = QtGui.QLabel(self.centralwidget) 43 | self.title.setGeometry(QtCore.QRect(305,5,300,80)) 44 | font = QtGui.QFont() 45 | font.setPointSize(50) 46 | font.setBold(True) 47 | font.setUnderline(False) 48 | font.setWeight(75) 49 | font.setStrikeOut(False) 50 | font.setStyleStrategy(QtGui.QFont.PreferAntialias) 51 | self.title.setFont(font) 52 | self.title.setAlignment(QtCore.Qt.AlignCenter) 53 | self.title.setObjectName(_fromUtf8("title")) 54 | self.versionLabel = QtGui.QLabel(self.centralwidget) 55 | self.versionLabel.setGeometry(QtCore.QRect(395, 85, 140, 30)) 56 | self.versionLabel.setObjectName(_fromUtf8("about")) 57 | font.setPointSize(14) 58 | self.versionLabel.setFont(font) 59 | self.checkVersion = QtGui.QLabel(self.centralwidget) 60 | self.checkVersion.setGeometry(QtCore.QRect(305, 115, 300, 30)) 61 | self.checkVersion.setObjectName(_fromUtf8("versionCheck")) 62 | font.setPointSize(10) 63 | self.checkVersion.setFont(font) 64 | self.checkVersion.setAlignment(QtCore.Qt.AlignHCenter| QtCore.Qt.AlignVCenter) 65 | 66 | self.groupBoxSettingsLeft = QtGui.QGroupBox(self.centralwidget) 67 | self.groupBoxSettingsLeft.setGeometry(QtCore.QRect(5, 5, 298,138 )) 68 | self.groupBoxSettingsLeft.setStyleSheet(_fromUtf8("QGroupBox \n" 69 | "{ \n" 70 | "border: 2px solid black;\n" 71 | "border-radius: 10px;\n" 72 | "}")) 73 | self.groupBoxSettingsLeft.setTitle(_fromUtf8("")) 74 | self.groupBoxSettingsLeft.setObjectName(_fromUtf8("groupBoxSettingsLeft")) 75 | self.groupBoxProfile = QtGui.QGroupBox(self.groupBoxSettingsLeft) 76 | self.groupBoxProfile.setGeometry(QtCore.QRect(3,3, 190,65 )) 77 | self.groupBoxProfile.setStyleSheet(_fromUtf8("QGroupBox \n" 78 | "{ \n" 79 | "border: 2px solid SlateGrey;\n" 80 | "border-radius: 10px;\n" 81 | "}")) 82 | self.groupBoxProfile.setTitle(_fromUtf8("")) 83 | self.groupBoxProfile.setObjectName(_fromUtf8("groupBoxProfile")) 84 | self.buttonLoadProfile = QtGui.QPushButton(self.groupBoxProfile) 85 | self.buttonLoadProfile.setGeometry(QtCore.QRect(4,20, 90, 40)) 86 | font.setPointSize(10) 87 | font.setBold(True) 88 | font.setWeight(40) 89 | self.buttonLoadProfile.setFont(font) 90 | self.buttonLoadProfile.setAutoDefault(False) 91 | self.buttonLoadProfile.setDefault(False) 92 | self.buttonLoadProfile.setFlat(False) 93 | self.buttonLoadProfile.setObjectName(_fromUtf8("buttonLoadProfile")) 94 | self.buttonSaveProfile = QtGui.QPushButton(self.groupBoxProfile) 95 | self.buttonSaveProfile.setGeometry(QtCore.QRect(96,20, 90, 40)) 96 | font.setPointSize(10) 97 | font.setBold(True) 98 | font.setWeight(40) 99 | self.buttonSaveProfile.setFont(font) 100 | self.buttonSaveProfile.setAutoDefault(False) 101 | self.buttonSaveProfile.setDefault(False) 102 | self.buttonSaveProfile.setFlat(False) 103 | self.buttonSaveProfile.setObjectName(_fromUtf8("buttonLoadProfile")) 104 | self.labelProfile = QtGui.QLabel(self.groupBoxProfile) 105 | self.labelProfile.setGeometry(QtCore.QRect(70, 2, 60, 20)) 106 | self.labelProfile.setAlignment(QtCore.Qt.AlignCenter) 107 | self.labelProfile.setObjectName(_fromUtf8("LabelProfil")) 108 | font.setPointSize(12) 109 | self.labelProfile.setFont(font) 110 | self.groupBoxMonitor = QtGui.QGroupBox(self.groupBoxSettingsLeft) 111 | self.groupBoxMonitor.setGeometry(QtCore.QRect(3, 70, 190,65 )) 112 | self.groupBoxMonitor.setStyleSheet(_fromUtf8("QGroupBox \n" 113 | "{ \n" 114 | "border: 2px solid SlateGrey;\n" 115 | "border-radius: 10px;\n" 116 | "}")) 117 | self.groupBoxMonitor.setTitle(_fromUtf8("")) 118 | self.groupBoxMonitor.setObjectName(_fromUtf8("groupBoxMonitor")) 119 | self.buttonStartMonitor = QtGui.QPushButton(self.groupBoxMonitor) 120 | self.buttonStartMonitor.setGeometry(QtCore.QRect(4,20, 90, 40)) 121 | font.setPointSize(10) 122 | font.setBold(True) 123 | font.setWeight(40) 124 | self.buttonStartMonitor.setFont(font) 125 | self.buttonStartMonitor.setAutoDefault(False) 126 | self.buttonStartMonitor.setDefault(False) 127 | self.buttonStartMonitor.setFlat(False) 128 | self.buttonStartMonitor.setObjectName(_fromUtf8("buttonStartMonitor")) 129 | self.buttonConfigureMonitor = QtGui.QPushButton(self.groupBoxMonitor) 130 | self.buttonConfigureMonitor.setGeometry(QtCore.QRect(96, 20, 90, 40)) 131 | font.setPointSize(10) 132 | font.setBold(True) 133 | font.setWeight(40) 134 | self.buttonConfigureMonitor.setFont(font) 135 | self.buttonConfigureMonitor.setAutoDefault(False) 136 | self.buttonConfigureMonitor.setDefault(False) 137 | self.buttonConfigureMonitor.setFlat(False) 138 | self.buttonConfigureMonitor.setEnabled(True) 139 | self.buttonConfigureMonitor.setObjectName(_fromUtf8("ButtonConfigureProfile")) 140 | self.labelMonitor = QtGui.QLabel(self.groupBoxMonitor) 141 | self.labelMonitor.setGeometry(QtCore.QRect(50, 2, 100, 20)) 142 | self.labelMonitor.setAlignment(QtCore.Qt.AlignCenter) 143 | self.labelMonitor.setObjectName(_fromUtf8("labelMonitor")) 144 | font.setPointSize(12) 145 | self.labelMonitor.setFont(font) 146 | self.groupBoxOvervolt = QtGui.QGroupBox(self.groupBoxSettingsLeft) 147 | self.groupBoxOvervolt.setGeometry(QtCore.QRect(194, 3, 100,132 )) 148 | self.groupBoxOvervolt.setStyleSheet(_fromUtf8("QGroupBox \n" 149 | "{ \n" 150 | "border: 2px solid SlateGrey;\n" 151 | "border-radius: 10px;\n" 152 | "}")) 153 | self.groupBoxOvervolt.setTitle(_fromUtf8("")) 154 | self.groupBoxOvervolt.setObjectName(_fromUtf8("groupBoxOvervolt")) 155 | self.groupBoxOvervolt.setVisible(True) 156 | font.setPointSize(14) 157 | font.setBold(True) 158 | font.setWeight(40) 159 | self.labelTitleOvervolt = QtGui.QLabel(self.groupBoxOvervolt) 160 | self.labelTitleOvervolt.setGeometry(QtCore.QRect(10, 2, 80, 20)) 161 | self.labelTitleOvervolt.setAlignment(QtCore.Qt.AlignCenter) 162 | self.labelTitleOvervolt.setObjectName(_fromUtf8("labelTitleOvervolt")) 163 | self.labelTitleOvervolt.setFont(font) 164 | self.labelValueOvervolt = QtGui.QLabel(self.groupBoxOvervolt) 165 | self.labelValueOvervolt.setGeometry(QtCore.QRect(10, 25, 80, 20)) 166 | self.labelValueOvervolt.setAlignment(QtCore.Qt.AlignCenter) 167 | self.labelValueOvervolt.setObjectName(_fromUtf8("labelValueOvervolt")) 168 | self.labelValueOvervolt.setFont(font) 169 | self.spinBoxOvervolt = QtGui.QSpinBox(self.groupBoxOvervolt) 170 | self.spinBoxOvervolt.setGeometry(QtCore.QRect(15, 55, 75, 25)) 171 | self.spinBoxOvervolt.setAccelerated(True) 172 | self.spinBoxOvervolt.setPrefix("") 173 | self.spinBoxOvervolt.setMinimum(0) 174 | self.spinBoxOvervolt.setMaximum(0) 175 | self.spinBoxOvervolt.setValue(0) 176 | self.spinBoxOvervolt.setObjectName(_fromUtf8("spinBoxOvervolt")) 177 | font.setPointSize(10) 178 | font.setBold(True) 179 | font.setWeight(40) 180 | self.buttonOvervolt = QtGui.QPushButton(self.groupBoxOvervolt) 181 | self.buttonOvervolt.setGeometry(QtCore.QRect(5, 86, 90, 40)) 182 | self.buttonOvervolt.setFont(font) 183 | self.buttonOvervolt.setAutoDefault(False) 184 | self.buttonOvervolt.setDefault(False) 185 | self.buttonOvervolt.setFlat(False) 186 | self.buttonOvervolt.setObjectName(_fromUtf8("ButtonConfigureProfile")) 187 | 188 | self.groupBoxSettingsRight = QtGui.QGroupBox(self.centralwidget) 189 | self.groupBoxSettingsRight.setGeometry(QtCore.QRect(605, 5, 300,138 )) 190 | self.groupBoxSettingsRight.setStyleSheet(_fromUtf8("QGroupBox \n" 191 | "{ \n" 192 | "border: 2px solid black;\n" 193 | "border-radius: 10px;\n" 194 | "}")) 195 | self.groupBoxSettingsRight.setTitle(_fromUtf8("")) 196 | self.groupBoxSettingsRight.setObjectName(_fromUtf8("groupBoxSettingsRight")) 197 | self.buttonAbout = QtGui.QPushButton(self.groupBoxSettingsRight) 198 | self.buttonAbout.setGeometry(QtCore.QRect(5, 5, 145, 62)) 199 | self.buttonAbout.setAutoDefault(False) 200 | self.buttonAbout.setDefault(False) 201 | self.buttonAbout.setFlat(False) 202 | self.buttonAbout.setObjectName(_fromUtf8("buttonAbout")) 203 | # ~ self.buttonAbout.setIcon(QtGui.QIcon("/usr/share/nvidiux/img/i.png")) 204 | self.buttonDonate = QtGui.QPushButton(self.groupBoxSettingsRight) 205 | self.buttonDonate.setGeometry(QtCore.QRect(150, 5, 145, 62)) 206 | self.buttonDonate.setAutoDefault(False) 207 | self.buttonDonate.setDefault(False) 208 | self.buttonDonate.setFlat(False) 209 | self.buttonDonate.setObjectName(_fromUtf8("buttonDonate")) 210 | self.buttonConfigure = QtGui.QPushButton(self.groupBoxSettingsRight) 211 | self.buttonConfigure.setGeometry(QtCore.QRect(5, 70, 145, 62)) 212 | self.buttonConfigure.setAutoDefault(False) 213 | self.buttonConfigure.setDefault(False) 214 | self.buttonConfigure.setFlat(False) 215 | self.buttonConfigure.setObjectName(_fromUtf8("buttonConfigure")) 216 | # ~ self.buttonConfigure.setIcon(QtGui.QIcon("/usr/share/nvidiux/img/conf.png")) 217 | # ~ self.buttonConfigure.setIconSize(QtCore.QSize(16,16)) 218 | self.buttonWeb = QtGui.QPushButton(self.groupBoxSettingsRight) 219 | self.buttonWeb.setGeometry(QtCore.QRect(150, 70, 145, 62)) 220 | self.buttonWeb.setAutoDefault(False) 221 | self.buttonWeb.setDefault(False) 222 | self.buttonWeb.setFlat(False) 223 | self.buttonWeb.setObjectName(_fromUtf8("buttonWeb")) 224 | 225 | self.groupBoxTitleGpu = QtGui.QGroupBox(self.centralwidget) 226 | self.groupBoxTitleGpu.setGeometry(QtCore.QRect(5, 150, 900,200 )) 227 | self.groupBoxTitleGpu.setStyleSheet(_fromUtf8("QGroupBox \n" 228 | "{ \n" 229 | "border: 2px solid red;\n" 230 | "border-radius: 10px;\n" 231 | "}")) 232 | self.groupBoxTitleGpu.setTitle(_fromUtf8("")) 233 | self.groupBoxTitleGpu.setObjectName(_fromUtf8("groupBoxTitleGpu")) 234 | # ~ self.listWidgetGpu = QtGui.QListWidget(self.groupBoxTitleGpu) 235 | # ~ self.listWidgetGpu.setGeometry(QtCore.QRect(10, 4, 240, 190)) 236 | # ~ self.listWidgetGpu.setObjectName(_fromUtf8("listWidgetGpu")) 237 | self.label_Nvidiux = ClickQLabel(self.groupBoxTitleGpu) 238 | self.label_Nvidiux.setGeometry(QtCore.QRect(10, 2, 240, 190)) 239 | self.label_Nvidiux.setObjectName(_fromUtf8("label_Img")) 240 | self.label_Img = ClickQLabel(self.groupBoxTitleGpu) 241 | self.label_Img.setGeometry(QtCore.QRect(640, 2, 240, 190)) 242 | self.label_Img.setObjectName(_fromUtf8("label_Img")) 243 | self.nomGpu = QtGui.QLabel(self.groupBoxTitleGpu) 244 | self.nomGpu.setGeometry(QtCore.QRect(255,0, 390, 100)) 245 | self.nomGpu.setAlignment(QtCore.Qt.AlignCenter) 246 | font.setPointSize(25) 247 | font.setBold(True) 248 | font.setWeight(75) 249 | self.nomGpu.setFont(font) 250 | self.nomGpu.setObjectName(_fromUtf8("nomGpu")) 251 | self.labelGpuArch = QtGui.QLabel(self.groupBoxTitleGpu) 252 | self.labelGpuArch.setGeometry(QtCore.QRect(255,30, 390, 100)) 253 | self.labelGpuArch.setAlignment(QtCore.Qt.AlignCenter) 254 | self.labelGpuArch.setObjectName(_fromUtf8("labelGpuArch")) 255 | self.checkBoxVaapi = QtGui.QCheckBox(self.groupBoxTitleGpu) 256 | self.checkBoxVaapi.setGeometry(QtCore.QRect(305, 95, 80, 20)) 257 | self.checkBoxVaapi.setCheckable(True) 258 | self.checkBoxVaapi.setObjectName(_fromUtf8("checkBoxVaapi")) 259 | self.checkBoxSli = QtGui.QCheckBox(self.groupBoxTitleGpu) 260 | self.checkBoxSli.setEnabled(False) 261 | self.checkBoxSli.setGeometry(QtCore.QRect(390, 95, 50, 20)) 262 | self.checkBoxSli.setCheckable(True) 263 | self.checkBoxSli.setObjectName(_fromUtf8("checkBoxSli")) 264 | self.checkBoxVSync = QtGui.QCheckBox(self.groupBoxTitleGpu) 265 | self.checkBoxVSync.setEnabled(True) 266 | self.checkBoxVSync.setGeometry(QtCore.QRect(455, 95, 71, 20)) 267 | self.checkBoxVSync.setCheckable(True) 268 | self.checkBoxVSync.setChecked(False) 269 | self.checkBoxVSync.setObjectName(_fromUtf8("checkBoxVSync")) 270 | self.checkBoxMPerf = QtGui.QCheckBox(self.groupBoxTitleGpu) 271 | self.checkBoxMPerf.setEnabled(True) 272 | self.checkBoxMPerf.setGeometry(QtCore.QRect(530, 95, 90, 20)) 273 | self.checkBoxMPerf.setCheckable(True) 274 | self.checkBoxMPerf.setChecked(False) 275 | self.checkBoxMPerf.setObjectName(_fromUtf8("checkBoxMPerf")) 276 | self.checkBoxFan = QtGui.QCheckBox(self.groupBoxTitleGpu) 277 | self.checkBoxFan.setEnabled(True) 278 | self.checkBoxFan.setGeometry(QtCore.QRect(255,140, 20, 20)) 279 | self.checkBoxFan.setCheckable(True) 280 | self.checkBoxFan.setChecked(False) 281 | self.checkBoxFan.setObjectName(_fromUtf8("checkBoxFan")) 282 | self.labelFan = QtGui.QLabel(self.groupBoxTitleGpu) 283 | self.labelFan.setGeometry(QtCore.QRect(285, 135, 120, 30)) 284 | font.setPointSize(15) 285 | font.setBold(True) 286 | font.setWeight(75) 287 | self.labelFan.setFont(font) 288 | self.labelFan.setObjectName(_fromUtf8("labelFan")) 289 | self.labelFanVitesse = QtGui.QLabel(self.groupBoxTitleGpu) 290 | self.labelFanVitesse.setGeometry(QtCore.QRect(500, 135, 125, 30)) 291 | font.setPointSize(12) 292 | font.setBold(True) 293 | font.setWeight(75) 294 | self.labelFanVitesse.setFont(font) 295 | self.labelFanVitesse.setObjectName(_fromUtf8("labelFanVitesse")) 296 | self.SliderFan = QtGui.QSlider(self.groupBoxTitleGpu) 297 | self.SliderFan.setEnabled(True) 298 | self.SliderFan.setGeometry(QtCore.QRect(250, 150, 400, 50)) 299 | self.SliderFan.setAutoFillBackground(False) 300 | self.SliderFan.setStyleSheet(_fromUtf8("color: rgb(205, 0, 0);")) 301 | self.SliderFan.setSingleStep(2) 302 | self.SliderFan.setSliderPosition(0) 303 | self.SliderFan.setOrientation(QtCore.Qt.Horizontal) 304 | self.SliderFan.setTickInterval(2) 305 | self.SliderFan.setObjectName(_fromUtf8("SliderFan")) 306 | 307 | self.groupBoxOverclock = QtGui.QGroupBox(self.centralwidget) 308 | self.groupBoxOverclock.setGeometry(QtCore.QRect(458, 355, 446,290)) 309 | self.groupBoxOverclock.setStyleSheet(_fromUtf8("QGroupBox \n" 310 | "{ \n" 311 | "border: 2px solid MediumBlue;\n" 312 | "border-radius: 10px;\n" 313 | "}")) 314 | self.groupBoxOverclock.setTitle(_fromUtf8("")) 315 | self.groupBoxOverclock.setObjectName(_fromUtf8("groupBoxOverclock")) 316 | self.VitesseGpu = QtGui.QLabel(self.groupBoxOverclock) 317 | self.VitesseGpu.setGeometry(QtCore.QRect(16, 10, 130, 50)) 318 | font.setFamily(_fromUtf8("Liberation Serif")) 319 | font.setPointSize(20) 320 | font.setBold(True) 321 | font.setWeight(75) 322 | self.VitesseGpu.setFont(font) 323 | self.VitesseGpu.setObjectName(_fromUtf8("VitesseGpu")) 324 | self.label_Dfreq_Gpu = QtGui.QLabel(self.groupBoxOverclock) 325 | self.label_Dfreq_Gpu.setGeometry(QtCore.QRect(180, 15, 150, 40)) 326 | font.setPointSize(16) 327 | font.setBold(True) 328 | font.setWeight(75) 329 | self.label_Dfreq_Gpu.setFont(font) 330 | self.label_Dfreq_Gpu.setObjectName(_fromUtf8("label_Dfreq_Gpu")) 331 | self.lcdGPU = QtGui.QLCDNumber(self.groupBoxOverclock) 332 | self.lcdGPU.setGeometry(QtCore.QRect(300, 20, 60, 30)) 333 | self.lcdGPU.setDigitCount(6) 334 | self.lcdGPU.setSegmentStyle(QtGui.QLCDNumber.Flat) 335 | self.lcdGPU.setObjectName(_fromUtf8("lcdGPU")) 336 | self.labelMhzGpu = QtGui.QLabel(self.groupBoxOverclock) 337 | self.labelMhzGpu.setGeometry(QtCore.QRect(370, 15, 50, 40)) 338 | font.setPointSize(16) 339 | font.setBold(True) 340 | font.setWeight(75) 341 | self.labelMhzGpu.setFont(font) 342 | self.labelMhzGpu.setObjectName(_fromUtf8("labelMhzGpu")) 343 | self.SliderGpu = QtGui.QSlider(self.groupBoxOverclock) 344 | self.SliderGpu.setGeometry(QtCore.QRect(5, 35, 420, 50)) 345 | self.SliderGpu.setStyleSheet(_fromUtf8("color: rgb(205, 0, 0);")) 346 | self.SliderGpu.setSingleStep(2) 347 | self.SliderGpu.setOrientation(QtCore.Qt.Horizontal) 348 | self.SliderGpu.setObjectName(_fromUtf8("SliderGpu")) 349 | self.VitesseShader = QtGui.QLabel(self.groupBoxOverclock) 350 | self.VitesseShader.setGeometry(QtCore.QRect(16, 85, 130, 50)) 351 | font.setFamily(_fromUtf8("Liberation Serif")) 352 | font.setPointSize(20) 353 | font.setBold(True) 354 | font.setWeight(75) 355 | self.VitesseShader.setFont(font) 356 | self.VitesseShader.setObjectName(_fromUtf8("VitesseShader")) 357 | self.label_Dfreq_Shader = QtGui.QLabel(self.groupBoxOverclock) 358 | self.label_Dfreq_Shader.setGeometry(QtCore.QRect(180, 90, 150, 40)) 359 | font.setPointSize(16) 360 | font.setBold(True) 361 | font.setWeight(75) 362 | self.label_Dfreq_Shader.setFont(font) 363 | self.label_Dfreq_Shader.setObjectName(_fromUtf8("label_Dfreq_Shader")) 364 | self.lcdShader = QtGui.QLCDNumber(self.groupBoxOverclock) 365 | self.lcdShader.setGeometry(QtCore.QRect(300, 95, 60, 30)) 366 | self.lcdShader.setDigitCount(6) 367 | self.lcdShader.setSegmentStyle(QtGui.QLCDNumber.Flat) 368 | self.lcdShader.setProperty("intValue", 0) 369 | self.lcdShader.setObjectName(_fromUtf8("lcdShader")) 370 | self.labelMhzShader = QtGui.QLabel(self.groupBoxOverclock) 371 | self.labelMhzShader.setGeometry(QtCore.QRect(370, 90, 50, 40)) 372 | font.setPointSize(16) 373 | font.setBold(True) 374 | font.setWeight(75) 375 | self.labelMhzShader.setFont(font) 376 | self.labelMhzShader.setObjectName(_fromUtf8("labelMhzShader")) 377 | self.SliderShader = QtGui.QSlider(self.groupBoxOverclock) 378 | self.SliderShader.setEnabled(True) 379 | self.SliderShader.setGeometry(QtCore.QRect(5, 110, 420, 50)) 380 | self.SliderShader.setAutoFillBackground(False) 381 | self.SliderShader.setStyleSheet(_fromUtf8("color: rgb(205, 0, 0);")) 382 | self.SliderShader.setSingleStep(2) 383 | self.SliderShader.setSliderPosition(0) 384 | self.SliderShader.setOrientation(QtCore.Qt.Horizontal) 385 | self.SliderShader.setTickInterval(2) 386 | self.SliderShader.setObjectName(_fromUtf8("SliderShader")) 387 | self.Memoire = QtGui.QLabel(self.groupBoxOverclock) 388 | self.Memoire.setGeometry(QtCore.QRect(16, 160, 130, 50)) 389 | font.setFamily(_fromUtf8("Liberation Serif")) 390 | font.setPointSize(20) 391 | font.setBold(True) 392 | font.setWeight(75) 393 | self.Memoire.setFont(font) 394 | self.Memoire.setObjectName(_fromUtf8("Memoire")) 395 | self.label_Dfreq_Mem = QtGui.QLabel(self.groupBoxOverclock) 396 | self.label_Dfreq_Mem.setGeometry(QtCore.QRect(180, 165, 150, 40)) 397 | font.setPointSize(16) 398 | font.setBold(True) 399 | font.setWeight(75) 400 | self.label_Dfreq_Mem.setFont(font) 401 | self.label_Dfreq_Mem.setObjectName(_fromUtf8("label_Dfreq_Mem")) 402 | self.lcdMem = QtGui.QLCDNumber(self.groupBoxOverclock) 403 | self.lcdMem.setGeometry(QtCore.QRect(300, 170, 60, 30)) 404 | self.lcdMem.setDigitCount(6) 405 | self.lcdMem.setSegmentStyle(QtGui.QLCDNumber.Flat) 406 | self.lcdMem.setObjectName(_fromUtf8("lcdMem")) 407 | self.labelMhzMem = QtGui.QLabel(self.groupBoxOverclock) 408 | self.labelMhzMem.setGeometry(QtCore.QRect(370, 165, 50, 40)) 409 | font.setPointSize(15) 410 | font.setBold(True) 411 | font.setWeight(75) 412 | self.labelMhzMem.setFont(font) 413 | self.labelMhzMem.setObjectName(_fromUtf8("labelMhzMem")) 414 | self.SliderMem = QtGui.QSlider(self.groupBoxOverclock) 415 | self.SliderMem.setGeometry(QtCore.QRect(5, 185, 420, 50)) 416 | self.SliderMem.setStyleSheet(_fromUtf8("color: rgb(205, 0, 0);")) 417 | self.SliderMem.setSingleStep(2) 418 | self.SliderMem.setOrientation(QtCore.Qt.Horizontal) 419 | self.SliderMem.setObjectName(_fromUtf8("SliderMem")) 420 | self.buttonReset = QtGui.QPushButton(self.groupBoxOverclock) 421 | self.buttonReset.setGeometry(QtCore.QRect(35, 230, 180, 50)) 422 | font.setPointSize(16) 423 | font.setBold(True) 424 | font.setWeight(75) 425 | self.buttonReset.setFont(font) 426 | self.buttonReset.setAutoDefault(False) 427 | self.buttonReset.setDefault(False) 428 | self.buttonReset.setFlat(False) 429 | self.buttonReset.setObjectName(_fromUtf8("buttonReset")) 430 | self.buttonApply = QtGui.QPushButton(self.groupBoxOverclock) 431 | self.buttonApply.setGeometry(QtCore.QRect(235, 230, 180, 50)) 432 | font.setPointSize(16) 433 | font.setBold(True) 434 | font.setWeight(75) 435 | self.buttonApply.setFont(font) 436 | self.buttonApply.setStyleSheet(_fromUtf8("")) 437 | self.buttonApply.setDefault(False) 438 | self.buttonApply.setObjectName(_fromUtf8("buttonApply")) 439 | 440 | self.groupBoxInfoGpu = QtGui.QGroupBox(self.centralwidget) 441 | self.groupBoxInfoGpu.setGeometry(QtCore.QRect(5, 355, 446,290)) 442 | self.groupBoxInfoGpu.setStyleSheet(_fromUtf8("QGroupBox \n" 443 | "{ \n" 444 | "border: 2px solid MediumBlue;\n" 445 | "border-radius: 10px;\n" 446 | "}")) 447 | self.groupBoxInfoGpu.setTitle(_fromUtf8("")) 448 | self.groupBoxInfoGpu.setObjectName(_fromUtf8("groupBoxInfoGpu")) 449 | self.buttonSwitchApi = QtGui.QPushButton(self.groupBoxInfoGpu) 450 | self.buttonSwitchApi.setGeometry(QtCore.QRect(360, 35, 25, 25)) 451 | self.buttonSwitchApi.setAutoDefault(False) 452 | self.buttonSwitchApi.setDefault(False) 453 | self.buttonSwitchApi.setFlat(False) 454 | self.buttonSwitchApi.setObjectName(_fromUtf8("buttonSwitchApi")) 455 | self.buttonSwitchApi.setIcon(QtGui.QIcon("/usr/share/nvidiux/img/switch25.png")) 456 | self.PiloteVersion = QtGui.QLabel(self.groupBoxInfoGpu) 457 | self.PiloteVersion.setGeometry(QtCore.QRect(30, 25, 150, 45)) 458 | self.PiloteVersion.setStyleSheet(_fromUtf8("border-color: rgb(0, 0, 0);")) 459 | self.PiloteVersion.setAlignment(QtCore.Qt.AlignCenter) 460 | self.PiloteVersion.setMargin(2) 461 | self.PiloteVersion.setObjectName(_fromUtf8("PiloteVersion")) 462 | self.OpenGlSupport = QtGui.QLabel(self.groupBoxInfoGpu) 463 | self.OpenGlSupport.setGeometry(QtCore.QRect(205, 25, 150, 45)) 464 | self.OpenGlSupport.setAlignment(QtCore.Qt.AlignCenter) 465 | self.OpenGlSupport.setMargin(2) 466 | self.OpenGlSupport.setObjectName(_fromUtf8("OpenGlSupport")) 467 | self.UGPU = QtGui.QLabel(self.groupBoxInfoGpu) 468 | self.UGPU.setGeometry(QtCore.QRect(205, 95, 150, 45)) 469 | self.UGPU.setAlignment(QtCore.Qt.AlignCenter) 470 | self.UGPU.setMargin(2) 471 | self.UGPU.setObjectName(_fromUtf8("UGPU")) 472 | self.buttonSwitchUseGpu = QtGui.QPushButton(self.groupBoxInfoGpu) 473 | self.buttonSwitchUseGpu.setGeometry(QtCore.QRect(360, 105, 25, 25)) 474 | self.buttonSwitchUseGpu.setAutoDefault(False) 475 | self.buttonSwitchUseGpu.setDefault(False) 476 | self.buttonSwitchUseGpu.setFlat(False) 477 | self.buttonSwitchUseGpu.setObjectName(_fromUtf8("buttonSwitchUseGpu")) 478 | self.buttonSwitchUseGpu.setIcon(QtGui.QIcon("/usr/share/nvidiux/img/switch25.png")) 479 | self.CudaCore = QtGui.QLabel(self.groupBoxInfoGpu) 480 | self.CudaCore.setGeometry(QtCore.QRect(30, 225, 150, 45)) 481 | self.CudaCore.setAlignment(QtCore.Qt.AlignCenter) 482 | self.CudaCore.setMargin(2) 483 | self.CudaCore.setObjectName(_fromUtf8("CudaCore")) 484 | self.Temp = QtGui.QLabel(self.groupBoxInfoGpu) 485 | self.Temp.setGeometry(QtCore.QRect(30, 95, 150, 45)) 486 | self.Temp.setAlignment(QtCore.Qt.AlignCenter) 487 | self.Temp.setMargin(2) 488 | self.Temp.setObjectName(_fromUtf8("Temp")) 489 | self.UMem = QtGui.QLabel(self.groupBoxInfoGpu) 490 | self.UMem.setGeometry(QtCore.QRect(205, 155, 150, 45)) 491 | self.UMem.setAlignment(QtCore.Qt.AlignCenter) 492 | self.UMem.setMargin(2) 493 | self.UMem.setObjectName(_fromUtf8("UMem")) 494 | self.buttonSwitchUseMem = QtGui.QPushButton(self.groupBoxInfoGpu) 495 | self.buttonSwitchUseMem.setGeometry(QtCore.QRect(360, 165, 25, 25)) 496 | self.buttonSwitchUseMem.setAutoDefault(False) 497 | self.buttonSwitchUseMem.setDefault(False) 498 | self.buttonSwitchUseMem.setFlat(False) 499 | self.buttonSwitchUseMem.setObjectName(_fromUtf8("buttonSwitchUseMem")) 500 | self.buttonSwitchUseMem.setIcon(QtGui.QIcon("/usr/share/nvidiux/img/switch25.png")) 501 | self.UPCIE = QtGui.QLabel(self.groupBoxInfoGpu) 502 | self.UPCIE.setGeometry(QtCore.QRect(30, 155, 150, 45)) 503 | self.UPCIE.setAlignment(QtCore.Qt.AlignCenter) 504 | self.UPCIE.setMargin(2) 505 | self.UPCIE.setObjectName(_fromUtf8("UPCIE")) 506 | self.MemGpu = QtGui.QLabel(self.groupBoxInfoGpu) 507 | self.MemGpu.setGeometry(QtCore.QRect(205, 225, 150, 45)) 508 | self.MemGpu.setAlignment(QtCore.Qt.AlignCenter) 509 | self.MemGpu.setMargin(2) 510 | self.MemGpu.setObjectName(_fromUtf8("MemGpu")) 511 | self.buttonSwitchTypeMem = QtGui.QPushButton(self.groupBoxInfoGpu) 512 | self.buttonSwitchTypeMem.setGeometry(QtCore.QRect(360, 235, 25, 25)) 513 | self.buttonSwitchTypeMem.setAutoDefault(False) 514 | self.buttonSwitchTypeMem.setDefault(False) 515 | self.buttonSwitchTypeMem.setFlat(False) 516 | self.buttonSwitchTypeMem.setObjectName(_fromUtf8("buttonSwitchTypeMem")) 517 | self.buttonSwitchTypeMem.setIcon(QtGui.QIcon("/usr/share/nvidiux/img/switch25.png")) 518 | 519 | self.groupBoxMessage = QtGui.QGroupBox(self.centralwidget) 520 | self.groupBoxMessage.setGeometry(QtCore.QRect(5, 650, 900,140 )) 521 | self.groupBoxMessage.setStyleSheet(_fromUtf8("QGroupBox \n" 522 | "{ \n" 523 | "border: 2px solid black;\n" 524 | "border-radius: 10px;\n" 525 | "}")) 526 | self.groupBoxMessage.setTitle(_fromUtf8("")) 527 | self.groupBoxMessage.setObjectName(_fromUtf8("groupBoxMessage")) 528 | self.Message = QtGui.QLabel(self.groupBoxMessage) 529 | self.Message.setGeometry(QtCore.QRect(5, 5, 890,90)) 530 | font.setPointSize(20) 531 | font.setBold(True) 532 | font.setWeight(75) 533 | self.Message.setFont(font) 534 | self.Message.setText(_fromUtf8("")) 535 | self.Message.setAlignment(QtCore.Qt.AlignCenter) 536 | self.Message.setObjectName(_fromUtf8("Message")) 537 | MainWindow.setCentralWidget(self.centralwidget) 538 | self.menubar = QtGui.QMenuBar(MainWindow) 539 | self.menubar.setGeometry(QtCore.QRect(0, 0, 800, 25)) 540 | self.menubar.setObjectName(_fromUtf8("menubar")) 541 | self.menuFichier = QtGui.QMenu(self.menubar) 542 | self.menuFichier.setObjectName(_fromUtf8("menuFichier")) 543 | self.menuMonitor = QtGui.QMenu(self.menubar) 544 | self.menuMonitor.setObjectName(_fromUtf8("menuMonitor")) 545 | MainWindow.setMenuBar(self.menubar) 546 | 547 | self.actionLoadProfile = QtGui.QAction(MainWindow) 548 | self.actionLoadProfile.setObjectName(_fromUtf8("actionLoadProfile")) 549 | self.actionSaveProfile = QtGui.QAction(MainWindow) 550 | self.actionSaveProfile.setObjectName(_fromUtf8("actionSaveProfile")) 551 | self.actionPref = QtGui.QAction(MainWindow) 552 | self.actionPref.setObjectName(_fromUtf8("actionPref")) 553 | self.actionQuitter = QtGui.QAction(MainWindow) 554 | self.actionQuitter.setObjectName(_fromUtf8("actionQuitter")) 555 | self.actionAbout = QtGui.QAction(MainWindow) 556 | self.actionAbout.setObjectName(_fromUtf8("actionAbout")) 557 | self.actionStartMonitor = QtGui.QAction(MainWindow) 558 | self.actionStartMonitor.setObjectName(_fromUtf8("actionStartMonitor")) 559 | self.actionConfigureMonitor = QtGui.QAction(MainWindow) 560 | self.actionConfigureMonitor.setObjectName(_fromUtf8("actionConfigureMonitor")) 561 | 562 | self.menuFichier.addAction(self.actionLoadProfile) 563 | self.menuFichier.addAction(self.actionSaveProfile) 564 | self.menuFichier.addAction(self.actionPref) 565 | self.menuFichier.addAction(self.actionAbout) 566 | self.menuFichier.addAction(self.actionQuitter) 567 | self.menuMonitor.addAction(self.actionStartMonitor) 568 | self.menuMonitor.addAction(self.actionConfigureMonitor) 569 | 570 | self.menubar.addAction(self.menuFichier.menuAction()) 571 | self.menubar.addAction(self.menuMonitor.menuAction()) 572 | 573 | self.retranslateUi(MainWindow) 574 | QtCore.QMetaObject.connectSlotsByName(MainWindow) 575 | 576 | def retranslateUi(self, MainWindow): 577 | MainWindow.setWindowTitle(_translate("MainWindow", "Nvidiux", None)) 578 | self.Memoire.setText(_translate("MainWindow", "Memoire", None)) 579 | self.VitesseShader.setText(_translate("MainWindow", "Shader", None)) 580 | self.VitesseGpu.setText(_translate("MainWindow", "Gpu", None)) 581 | self.title.setText(_translate("MainWindow", "Nvidiux", None)) 582 | self.checkVersion.setText(_translate("MainWindow", "Nvidiux est a jour", None)) 583 | self.buttonReset.setText(_translate("MainWindow", "Reset", None)) 584 | self.buttonApply.setText(_translate("MainWindow", "Appliquer", None)) 585 | self.labelFanVitesse.setText(_translate("MainWindow", "Auto",None)) 586 | self.labelFan.setText(_translate("MainWindow", "Fan", None)) 587 | self.buttonStartMonitor.setText(_translate("MainWindow", "Lancer", None)) 588 | self.buttonConfigureMonitor.setText(_translate("MainWindow", "Configurer", None)) 589 | self.buttonAbout.setText(_translate("MainWindow", "A Propos", None)) 590 | self.buttonConfigure.setText(_translate("MainWindow", "Parametres", None)) 591 | self.buttonWeb.setText(_translate("MainWindow", "Rapport", None)) 592 | self.buttonDonate.setText(_translate("MainWindow", "Faire un don", None)) 593 | self.labelTitleOvervolt.setText(_translate("MainWindow", "Volt", None)) 594 | self.labelValueOvervolt.setText(_translate("MainWindow", "0 μv", None)) 595 | self.buttonOvervolt.setText(_translate("MainWindow", "Changer", None)) 596 | self.spinBoxOvervolt.setSuffix(_translate("MainWindow", " μv", None)) 597 | self.labelMonitor.setText(_translate("MainWindow", "Moniteur", None)) 598 | self.buttonLoadProfile.setText(_translate("MainWindow", "Charger", None)) 599 | self.buttonSaveProfile.setText(_translate("MainWindow", "Enregister", None)) 600 | self.labelProfile.setText(_translate("MainWindow", "Profil", None)) 601 | self.labelMhzGpu.setText(_translate("MainWindow", "Mhz", None)) 602 | self.labelMhzShader.setText(_translate("MainWindow", "Mhz", None)) 603 | self.labelMhzMem.setText(_translate("MainWindow", "Mhz", None)) 604 | self.checkBoxSli.setText(_translate("MainWindow", "Sli", None)) 605 | self.checkBoxVaapi.setText(_translate("MainWindow", "Vaapi", None)) 606 | self.checkBoxVSync.setText(_translate("MainWindow", "VSync", None)) 607 | self.checkBoxMPerf.setText(_translate("MainWindow", "Max Perf", None)) 608 | self.PiloteVersion.setText(_translate("MainWindow", "Version pilote", None)) 609 | self.OpenGlSupport.setText(_translate("MainWindow", "OpenGl Support", None)) 610 | self.MemGpu.setText(_translate("MainWindow", "Mem Gpu", None)) 611 | self.CudaCore.setText(_translate("MainWindow", "Cudacore", None)) 612 | self.UGPU.setText(_translate("MainWindow", "Gpu utilisation", None)) 613 | self.UMem.setText(_translate("MainWindow", "Mem utilisation", None)) 614 | self.UPCIE.setText(_translate("MainWindow", "Pcie utili", None)) 615 | self.Temp.setText(_translate("MainWindow", "Temp", None)) 616 | self.menuFichier.setTitle(_translate("MainWindow", "Fichier", None)) 617 | self.menuMonitor.setTitle(_translate("MainWindow", "Moniteur", None)) 618 | self.actionQuitter.setText(_translate("MainWindow", "Quitter", None)) 619 | self.actionStartMonitor.setText(_translate("MainWindow", "Start", None)) 620 | self.actionConfigureMonitor.setText(_translate("MainWindow", "Configurer", None)) 621 | self.actionAbout.setText(_translate("MainWindow", "A Propos", None)) 622 | self.actionPref.setText(_translate("MainWindow", "Preferences", None)) 623 | self.actionLoadProfile.setText(_translate("MainWindow", "Charger", None)) 624 | self.actionSaveProfile.setText(_translate("MainWindow", "Enregistrer", None)) 625 | 626 | class ClickQLabel(QtGui.QLabel): 627 | 628 | def __init(self, parent): 629 | QLabel.__init__(self, parent) 630 | 631 | def mouseReleaseEvent(self, ev): 632 | self.emit(QtCore.SIGNAL('clicked()')) 633 | -------------------------------------------------------------------------------- /usr/share/nvidiux/licences/gpl-3.0.txt: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 3, 29 June 2007 3 | 4 | Copyright (C) 2007 Free Software Foundation, Inc. 5 | Everyone is permitted to copy and distribute verbatim copies 6 | of this license document, but changing it is not allowed. 7 | 8 | Preamble 9 | 10 | The GNU General Public License is a free, copyleft license for 11 | software and other kinds of works. 12 | 13 | The licenses for most software and other practical works are designed 14 | to take away your freedom to share and change the works. By contrast, 15 | the GNU General Public License is intended to guarantee your freedom to 16 | share and change all versions of a program--to make sure it remains free 17 | software for all its users. We, the Free Software Foundation, use the 18 | GNU General Public License for most of our software; it applies also to 19 | any other work released this way by its authors. You can apply it to 20 | your programs, too. 21 | 22 | When we speak of free software, we are referring to freedom, not 23 | price. Our General Public Licenses are designed to make sure that you 24 | have the freedom to distribute copies of free software (and charge for 25 | them if you wish), that you receive source code or can get it if you 26 | want it, that you can change the software or use pieces of it in new 27 | free programs, and that you know you can do these things. 28 | 29 | To protect your rights, we need to prevent others from denying you 30 | these rights or asking you to surrender the rights. Therefore, you have 31 | certain responsibilities if you distribute copies of the software, or if 32 | you modify it: responsibilities to respect the freedom of others. 33 | 34 | For example, if you distribute copies of such a program, whether 35 | gratis or for a fee, you must pass on to the recipients the same 36 | freedoms that you received. You must make sure that they, too, receive 37 | or can get the source code. And you must show them these terms so they 38 | know their rights. 39 | 40 | Developers that use the GNU GPL protect your rights with two steps: 41 | (1) assert copyright on the software, and (2) offer you this License 42 | giving you legal permission to copy, distribute and/or modify it. 43 | 44 | For the developers' and authors' protection, the GPL clearly explains 45 | that there is no warranty for this free software. For both users' and 46 | authors' sake, the GPL requires that modified versions be marked as 47 | changed, so that their problems will not be attributed erroneously to 48 | authors of previous versions. 49 | 50 | Some devices are designed to deny users access to install or run 51 | modified versions of the software inside them, although the manufacturer 52 | can do so. This is fundamentally incompatible with the aim of 53 | protecting users' freedom to change the software. The systematic 54 | pattern of such abuse occurs in the area of products for individuals to 55 | use, which is precisely where it is most unacceptable. Therefore, we 56 | have designed this version of the GPL to prohibit the practice for those 57 | products. If such problems arise substantially in other domains, we 58 | stand ready to extend this provision to those domains in future versions 59 | of the GPL, as needed to protect the freedom of users. 60 | 61 | Finally, every program is threatened constantly by software patents. 62 | States should not allow patents to restrict development and use of 63 | software on general-purpose computers, but in those that do, we wish to 64 | avoid the special danger that patents applied to a free program could 65 | make it effectively proprietary. To prevent this, the GPL assures that 66 | patents cannot be used to render the program non-free. 67 | 68 | The precise terms and conditions for copying, distribution and 69 | modification follow. 70 | 71 | TERMS AND CONDITIONS 72 | 73 | 0. Definitions. 74 | 75 | "This License" refers to version 3 of the GNU General Public License. 76 | 77 | "Copyright" also means copyright-like laws that apply to other kinds of 78 | works, such as semiconductor masks. 79 | 80 | "The Program" refers to any copyrightable work licensed under this 81 | License. Each licensee is addressed as "you". "Licensees" and 82 | "recipients" may be individuals or organizations. 83 | 84 | To "modify" a work means to copy from or adapt all or part of the work 85 | in a fashion requiring copyright permission, other than the making of an 86 | exact copy. The resulting work is called a "modified version" of the 87 | earlier work or a work "based on" the earlier work. 88 | 89 | A "covered work" means either the unmodified Program or a work based 90 | on the Program. 91 | 92 | To "propagate" a work means to do anything with it that, without 93 | permission, would make you directly or secondarily liable for 94 | infringement under applicable copyright law, except executing it on a 95 | computer or modifying a private copy. Propagation includes copying, 96 | distribution (with or without modification), making available to the 97 | public, and in some countries other activities as well. 98 | 99 | To "convey" a work means any kind of propagation that enables other 100 | parties to make or receive copies. Mere interaction with a user through 101 | a computer network, with no transfer of a copy, is not conveying. 102 | 103 | An interactive user interface displays "Appropriate Legal Notices" 104 | to the extent that it includes a convenient and prominently visible 105 | feature that (1) displays an appropriate copyright notice, and (2) 106 | tells the user that there is no warranty for the work (except to the 107 | extent that warranties are provided), that licensees may convey the 108 | work under this License, and how to view a copy of this License. If 109 | the interface presents a list of user commands or options, such as a 110 | menu, a prominent item in the list meets this criterion. 111 | 112 | 1. Source Code. 113 | 114 | The "source code" for a work means the preferred form of the work 115 | for making modifications to it. "Object code" means any non-source 116 | form of a work. 117 | 118 | A "Standard Interface" means an interface that either is an official 119 | standard defined by a recognized standards body, or, in the case of 120 | interfaces specified for a particular programming language, one that 121 | is widely used among developers working in that language. 122 | 123 | The "System Libraries" of an executable work include anything, other 124 | than the work as a whole, that (a) is included in the normal form of 125 | packaging a Major Component, but which is not part of that Major 126 | Component, and (b) serves only to enable use of the work with that 127 | Major Component, or to implement a Standard Interface for which an 128 | implementation is available to the public in source code form. A 129 | "Major Component", in this context, means a major essential component 130 | (kernel, window system, and so on) of the specific operating system 131 | (if any) on which the executable work runs, or a compiler used to 132 | produce the work, or an object code interpreter used to run it. 133 | 134 | The "Corresponding Source" for a work in object code form means all 135 | the source code needed to generate, install, and (for an executable 136 | work) run the object code and to modify the work, including scripts to 137 | control those activities. However, it does not include the work's 138 | System Libraries, or general-purpose tools or generally available free 139 | programs which are used unmodified in performing those activities but 140 | which are not part of the work. For example, Corresponding Source 141 | includes interface definition files associated with source files for 142 | the work, and the source code for shared libraries and dynamically 143 | linked subprograms that the work is specifically designed to require, 144 | such as by intimate data communication or control flow between those 145 | subprograms and other parts of the work. 146 | 147 | The Corresponding Source need not include anything that users 148 | can regenerate automatically from other parts of the Corresponding 149 | Source. 150 | 151 | The Corresponding Source for a work in source code form is that 152 | same work. 153 | 154 | 2. Basic Permissions. 155 | 156 | All rights granted under this License are granted for the term of 157 | copyright on the Program, and are irrevocable provided the stated 158 | conditions are met. This License explicitly affirms your unlimited 159 | permission to run the unmodified Program. The output from running a 160 | covered work is covered by this License only if the output, given its 161 | content, constitutes a covered work. This License acknowledges your 162 | rights of fair use or other equivalent, as provided by copyright law. 163 | 164 | You may make, run and propagate covered works that you do not 165 | convey, without conditions so long as your license otherwise remains 166 | in force. You may convey covered works to others for the sole purpose 167 | of having them make modifications exclusively for you, or provide you 168 | with facilities for running those works, provided that you comply with 169 | the terms of this License in conveying all material for which you do 170 | not control copyright. Those thus making or running the covered works 171 | for you must do so exclusively on your behalf, under your direction 172 | and control, on terms that prohibit them from making any copies of 173 | your copyrighted material outside their relationship with you. 174 | 175 | Conveying under any other circumstances is permitted solely under 176 | the conditions stated below. Sublicensing is not allowed; section 10 177 | makes it unnecessary. 178 | 179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law. 180 | 181 | No covered work shall be deemed part of an effective technological 182 | measure under any applicable law fulfilling obligations under article 183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or 184 | similar laws prohibiting or restricting circumvention of such 185 | measures. 186 | 187 | When you convey a covered work, you waive any legal power to forbid 188 | circumvention of technological measures to the extent such circumvention 189 | is effected by exercising rights under this License with respect to 190 | the covered work, and you disclaim any intention to limit operation or 191 | modification of the work as a means of enforcing, against the work's 192 | users, your or third parties' legal rights to forbid circumvention of 193 | technological measures. 194 | 195 | 4. Conveying Verbatim Copies. 196 | 197 | You may convey verbatim copies of the Program's source code as you 198 | receive it, in any medium, provided that you conspicuously and 199 | appropriately publish on each copy an appropriate copyright notice; 200 | keep intact all notices stating that this License and any 201 | non-permissive terms added in accord with section 7 apply to the code; 202 | keep intact all notices of the absence of any warranty; and give all 203 | recipients a copy of this License along with the Program. 204 | 205 | You may charge any price or no price for each copy that you convey, 206 | and you may offer support or warranty protection for a fee. 207 | 208 | 5. Conveying Modified Source Versions. 209 | 210 | You may convey a work based on the Program, or the modifications to 211 | produce it from the Program, in the form of source code under the 212 | terms of section 4, provided that you also meet all of these conditions: 213 | 214 | a) The work must carry prominent notices stating that you modified 215 | it, and giving a relevant date. 216 | 217 | b) The work must carry prominent notices stating that it is 218 | released under this License and any conditions added under section 219 | 7. This requirement modifies the requirement in section 4 to 220 | "keep intact all notices". 221 | 222 | c) You must license the entire work, as a whole, under this 223 | License to anyone who comes into possession of a copy. This 224 | License will therefore apply, along with any applicable section 7 225 | additional terms, to the whole of the work, and all its parts, 226 | regardless of how they are packaged. This License gives no 227 | permission to license the work in any other way, but it does not 228 | invalidate such permission if you have separately received it. 229 | 230 | d) If the work has interactive user interfaces, each must display 231 | Appropriate Legal Notices; however, if the Program has interactive 232 | interfaces that do not display Appropriate Legal Notices, your 233 | work need not make them do so. 234 | 235 | A compilation of a covered work with other separate and independent 236 | works, which are not by their nature extensions of the covered work, 237 | and which are not combined with it such as to form a larger program, 238 | in or on a volume of a storage or distribution medium, is called an 239 | "aggregate" if the compilation and its resulting copyright are not 240 | used to limit the access or legal rights of the compilation's users 241 | beyond what the individual works permit. Inclusion of a covered work 242 | in an aggregate does not cause this License to apply to the other 243 | parts of the aggregate. 244 | 245 | 6. Conveying Non-Source Forms. 246 | 247 | You may convey a covered work in object code form under the terms 248 | of sections 4 and 5, provided that you also convey the 249 | machine-readable Corresponding Source under the terms of this License, 250 | in one of these ways: 251 | 252 | a) Convey the object code in, or embodied in, a physical product 253 | (including a physical distribution medium), accompanied by the 254 | Corresponding Source fixed on a durable physical medium 255 | customarily used for software interchange. 256 | 257 | b) Convey the object code in, or embodied in, a physical product 258 | (including a physical distribution medium), accompanied by a 259 | written offer, valid for at least three years and valid for as 260 | long as you offer spare parts or customer support for that product 261 | model, to give anyone who possesses the object code either (1) a 262 | copy of the Corresponding Source for all the software in the 263 | product that is covered by this License, on a durable physical 264 | medium customarily used for software interchange, for a price no 265 | more than your reasonable cost of physically performing this 266 | conveying of source, or (2) access to copy the 267 | Corresponding Source from a network server at no charge. 268 | 269 | c) Convey individual copies of the object code with a copy of the 270 | written offer to provide the Corresponding Source. This 271 | alternative is allowed only occasionally and noncommercially, and 272 | only if you received the object code with such an offer, in accord 273 | with subsection 6b. 274 | 275 | d) Convey the object code by offering access from a designated 276 | place (gratis or for a charge), and offer equivalent access to the 277 | Corresponding Source in the same way through the same place at no 278 | further charge. You need not require recipients to copy the 279 | Corresponding Source along with the object code. If the place to 280 | copy the object code is a network server, the Corresponding Source 281 | may be on a different server (operated by you or a third party) 282 | that supports equivalent copying facilities, provided you maintain 283 | clear directions next to the object code saying where to find the 284 | Corresponding Source. Regardless of what server hosts the 285 | Corresponding Source, you remain obligated to ensure that it is 286 | available for as long as needed to satisfy these requirements. 287 | 288 | e) Convey the object code using peer-to-peer transmission, provided 289 | you inform other peers where the object code and Corresponding 290 | Source of the work are being offered to the general public at no 291 | charge under subsection 6d. 292 | 293 | A separable portion of the object code, whose source code is excluded 294 | from the Corresponding Source as a System Library, need not be 295 | included in conveying the object code work. 296 | 297 | A "User Product" is either (1) a "consumer product", which means any 298 | tangible personal property which is normally used for personal, family, 299 | or household purposes, or (2) anything designed or sold for incorporation 300 | into a dwelling. In determining whether a product is a consumer product, 301 | doubtful cases shall be resolved in favor of coverage. For a particular 302 | product received by a particular user, "normally used" refers to a 303 | typical or common use of that class of product, regardless of the status 304 | of the particular user or of the way in which the particular user 305 | actually uses, or expects or is expected to use, the product. A product 306 | is a consumer product regardless of whether the product has substantial 307 | commercial, industrial or non-consumer uses, unless such uses represent 308 | the only significant mode of use of the product. 309 | 310 | "Installation Information" for a User Product means any methods, 311 | procedures, authorization keys, or other information required to install 312 | and execute modified versions of a covered work in that User Product from 313 | a modified version of its Corresponding Source. The information must 314 | suffice to ensure that the continued functioning of the modified object 315 | code is in no case prevented or interfered with solely because 316 | modification has been made. 317 | 318 | If you convey an object code work under this section in, or with, or 319 | specifically for use in, a User Product, and the conveying occurs as 320 | part of a transaction in which the right of possession and use of the 321 | User Product is transferred to the recipient in perpetuity or for a 322 | fixed term (regardless of how the transaction is characterized), the 323 | Corresponding Source conveyed under this section must be accompanied 324 | by the Installation Information. But this requirement does not apply 325 | if neither you nor any third party retains the ability to install 326 | modified object code on the User Product (for example, the work has 327 | been installed in ROM). 328 | 329 | The requirement to provide Installation Information does not include a 330 | requirement to continue to provide support service, warranty, or updates 331 | for a work that has been modified or installed by the recipient, or for 332 | the User Product in which it has been modified or installed. Access to a 333 | network may be denied when the modification itself materially and 334 | adversely affects the operation of the network or violates the rules and 335 | protocols for communication across the network. 336 | 337 | Corresponding Source conveyed, and Installation Information provided, 338 | in accord with this section must be in a format that is publicly 339 | documented (and with an implementation available to the public in 340 | source code form), and must require no special password or key for 341 | unpacking, reading or copying. 342 | 343 | 7. Additional Terms. 344 | 345 | "Additional permissions" are terms that supplement the terms of this 346 | License by making exceptions from one or more of its conditions. 347 | Additional permissions that are applicable to the entire Program shall 348 | be treated as though they were included in this License, to the extent 349 | that they are valid under applicable law. If additional permissions 350 | apply only to part of the Program, that part may be used separately 351 | under those permissions, but the entire Program remains governed by 352 | this License without regard to the additional permissions. 353 | 354 | When you convey a copy of a covered work, you may at your option 355 | remove any additional permissions from that copy, or from any part of 356 | it. (Additional permissions may be written to require their own 357 | removal in certain cases when you modify the work.) You may place 358 | additional permissions on material, added by you to a covered work, 359 | for which you have or can give appropriate copyright permission. 360 | 361 | Notwithstanding any other provision of this License, for material you 362 | add to a covered work, you may (if authorized by the copyright holders of 363 | that material) supplement the terms of this License with terms: 364 | 365 | a) Disclaiming warranty or limiting liability differently from the 366 | terms of sections 15 and 16 of this License; or 367 | 368 | b) Requiring preservation of specified reasonable legal notices or 369 | author attributions in that material or in the Appropriate Legal 370 | Notices displayed by works containing it; or 371 | 372 | c) Prohibiting misrepresentation of the origin of that material, or 373 | requiring that modified versions of such material be marked in 374 | reasonable ways as different from the original version; or 375 | 376 | d) Limiting the use for publicity purposes of names of licensors or 377 | authors of the material; or 378 | 379 | e) Declining to grant rights under trademark law for use of some 380 | trade names, trademarks, or service marks; or 381 | 382 | f) Requiring indemnification of licensors and authors of that 383 | material by anyone who conveys the material (or modified versions of 384 | it) with contractual assumptions of liability to the recipient, for 385 | any liability that these contractual assumptions directly impose on 386 | those licensors and authors. 387 | 388 | All other non-permissive additional terms are considered "further 389 | restrictions" within the meaning of section 10. If the Program as you 390 | received it, or any part of it, contains a notice stating that it is 391 | governed by this License along with a term that is a further 392 | restriction, you may remove that term. If a license document contains 393 | a further restriction but permits relicensing or conveying under this 394 | License, you may add to a covered work material governed by the terms 395 | of that license document, provided that the further restriction does 396 | not survive such relicensing or conveying. 397 | 398 | If you add terms to a covered work in accord with this section, you 399 | must place, in the relevant source files, a statement of the 400 | additional terms that apply to those files, or a notice indicating 401 | where to find the applicable terms. 402 | 403 | Additional terms, permissive or non-permissive, may be stated in the 404 | form of a separately written license, or stated as exceptions; 405 | the above requirements apply either way. 406 | 407 | 8. Termination. 408 | 409 | You may not propagate or modify a covered work except as expressly 410 | provided under this License. Any attempt otherwise to propagate or 411 | modify it is void, and will automatically terminate your rights under 412 | this License (including any patent licenses granted under the third 413 | paragraph of section 11). 414 | 415 | However, if you cease all violation of this License, then your 416 | license from a particular copyright holder is reinstated (a) 417 | provisionally, unless and until the copyright holder explicitly and 418 | finally terminates your license, and (b) permanently, if the copyright 419 | holder fails to notify you of the violation by some reasonable means 420 | prior to 60 days after the cessation. 421 | 422 | Moreover, your license from a particular copyright holder is 423 | reinstated permanently if the copyright holder notifies you of the 424 | violation by some reasonable means, this is the first time you have 425 | received notice of violation of this License (for any work) from that 426 | copyright holder, and you cure the violation prior to 30 days after 427 | your receipt of the notice. 428 | 429 | Termination of your rights under this section does not terminate the 430 | licenses of parties who have received copies or rights from you under 431 | this License. If your rights have been terminated and not permanently 432 | reinstated, you do not qualify to receive new licenses for the same 433 | material under section 10. 434 | 435 | 9. Acceptance Not Required for Having Copies. 436 | 437 | You are not required to accept this License in order to receive or 438 | run a copy of the Program. Ancillary propagation of a covered work 439 | occurring solely as a consequence of using peer-to-peer transmission 440 | to receive a copy likewise does not require acceptance. However, 441 | nothing other than this License grants you permission to propagate or 442 | modify any covered work. These actions infringe copyright if you do 443 | not accept this License. Therefore, by modifying or propagating a 444 | covered work, you indicate your acceptance of this License to do so. 445 | 446 | 10. Automatic Licensing of Downstream Recipients. 447 | 448 | Each time you convey a covered work, the recipient automatically 449 | receives a license from the original licensors, to run, modify and 450 | propagate that work, subject to this License. You are not responsible 451 | for enforcing compliance by third parties with this License. 452 | 453 | An "entity transaction" is a transaction transferring control of an 454 | organization, or substantially all assets of one, or subdividing an 455 | organization, or merging organizations. If propagation of a covered 456 | work results from an entity transaction, each party to that 457 | transaction who receives a copy of the work also receives whatever 458 | licenses to the work the party's predecessor in interest had or could 459 | give under the previous paragraph, plus a right to possession of the 460 | Corresponding Source of the work from the predecessor in interest, if 461 | the predecessor has it or can get it with reasonable efforts. 462 | 463 | You may not impose any further restrictions on the exercise of the 464 | rights granted or affirmed under this License. For example, you may 465 | not impose a license fee, royalty, or other charge for exercise of 466 | rights granted under this License, and you may not initiate litigation 467 | (including a cross-claim or counterclaim in a lawsuit) alleging that 468 | any patent claim is infringed by making, using, selling, offering for 469 | sale, or importing the Program or any portion of it. 470 | 471 | 11. Patents. 472 | 473 | A "contributor" is a copyright holder who authorizes use under this 474 | License of the Program or a work on which the Program is based. The 475 | work thus licensed is called the contributor's "contributor version". 476 | 477 | A contributor's "essential patent claims" are all patent claims 478 | owned or controlled by the contributor, whether already acquired or 479 | hereafter acquired, that would be infringed by some manner, permitted 480 | by this License, of making, using, or selling its contributor version, 481 | but do not include claims that would be infringed only as a 482 | consequence of further modification of the contributor version. For 483 | purposes of this definition, "control" includes the right to grant 484 | patent sublicenses in a manner consistent with the requirements of 485 | this License. 486 | 487 | Each contributor grants you a non-exclusive, worldwide, royalty-free 488 | patent license under the contributor's essential patent claims, to 489 | make, use, sell, offer for sale, import and otherwise run, modify and 490 | propagate the contents of its contributor version. 491 | 492 | In the following three paragraphs, a "patent license" is any express 493 | agreement or commitment, however denominated, not to enforce a patent 494 | (such as an express permission to practice a patent or covenant not to 495 | sue for patent infringement). To "grant" such a patent license to a 496 | party means to make such an agreement or commitment not to enforce a 497 | patent against the party. 498 | 499 | If you convey a covered work, knowingly relying on a patent license, 500 | and the Corresponding Source of the work is not available for anyone 501 | to copy, free of charge and under the terms of this License, through a 502 | publicly available network server or other readily accessible means, 503 | then you must either (1) cause the Corresponding Source to be so 504 | available, or (2) arrange to deprive yourself of the benefit of the 505 | patent license for this particular work, or (3) arrange, in a manner 506 | consistent with the requirements of this License, to extend the patent 507 | license to downstream recipients. "Knowingly relying" means you have 508 | actual knowledge that, but for the patent license, your conveying the 509 | covered work in a country, or your recipient's use of the covered work 510 | in a country, would infringe one or more identifiable patents in that 511 | country that you have reason to believe are valid. 512 | 513 | If, pursuant to or in connection with a single transaction or 514 | arrangement, you convey, or propagate by procuring conveyance of, a 515 | covered work, and grant a patent license to some of the parties 516 | receiving the covered work authorizing them to use, propagate, modify 517 | or convey a specific copy of the covered work, then the patent license 518 | you grant is automatically extended to all recipients of the covered 519 | work and works based on it. 520 | 521 | A patent license is "discriminatory" if it does not include within 522 | the scope of its coverage, prohibits the exercise of, or is 523 | conditioned on the non-exercise of one or more of the rights that are 524 | specifically granted under this License. You may not convey a covered 525 | work if you are a party to an arrangement with a third party that is 526 | in the business of distributing software, under which you make payment 527 | to the third party based on the extent of your activity of conveying 528 | the work, and under which the third party grants, to any of the 529 | parties who would receive the covered work from you, a discriminatory 530 | patent license (a) in connection with copies of the covered work 531 | conveyed by you (or copies made from those copies), or (b) primarily 532 | for and in connection with specific products or compilations that 533 | contain the covered work, unless you entered into that arrangement, 534 | or that patent license was granted, prior to 28 March 2007. 535 | 536 | Nothing in this License shall be construed as excluding or limiting 537 | any implied license or other defenses to infringement that may 538 | otherwise be available to you under applicable patent law. 539 | 540 | 12. No Surrender of Others' Freedom. 541 | 542 | If conditions are imposed on you (whether by court order, agreement or 543 | otherwise) that contradict the conditions of this License, they do not 544 | excuse you from the conditions of this License. If you cannot convey a 545 | covered work so as to satisfy simultaneously your obligations under this 546 | License and any other pertinent obligations, then as a consequence you may 547 | not convey it at all. For example, if you agree to terms that obligate you 548 | to collect a royalty for further conveying from those to whom you convey 549 | the Program, the only way you could satisfy both those terms and this 550 | License would be to refrain entirely from conveying the Program. 551 | 552 | 13. Use with the GNU Affero General Public License. 553 | 554 | Notwithstanding any other provision of this License, you have 555 | permission to link or combine any covered work with a work licensed 556 | under version 3 of the GNU Affero General Public License into a single 557 | combined work, and to convey the resulting work. The terms of this 558 | License will continue to apply to the part which is the covered work, 559 | but the special requirements of the GNU Affero General Public License, 560 | section 13, concerning interaction through a network will apply to the 561 | combination as such. 562 | 563 | 14. Revised Versions of this License. 564 | 565 | The Free Software Foundation may publish revised and/or new versions of 566 | the GNU General Public License from time to time. Such new versions will 567 | be similar in spirit to the present version, but may differ in detail to 568 | address new problems or concerns. 569 | 570 | Each version is given a distinguishing version number. If the 571 | Program specifies that a certain numbered version of the GNU General 572 | Public License "or any later version" applies to it, you have the 573 | option of following the terms and conditions either of that numbered 574 | version or of any later version published by the Free Software 575 | Foundation. If the Program does not specify a version number of the 576 | GNU General Public License, you may choose any version ever published 577 | by the Free Software Foundation. 578 | 579 | If the Program specifies that a proxy can decide which future 580 | versions of the GNU General Public License can be used, that proxy's 581 | public statement of acceptance of a version permanently authorizes you 582 | to choose that version for the Program. 583 | 584 | Later license versions may give you additional or different 585 | permissions. However, no additional obligations are imposed on any 586 | author or copyright holder as a result of your choosing to follow a 587 | later version. 588 | 589 | 15. Disclaimer of Warranty. 590 | 591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY 592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT 593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY 594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, 595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM 597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF 598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 599 | 600 | 16. Limitation of Liability. 601 | 602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY 605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE 606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF 607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD 608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), 609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF 610 | SUCH DAMAGES. 611 | 612 | 17. Interpretation of Sections 15 and 16. 613 | 614 | If the disclaimer of warranty and limitation of liability provided 615 | above cannot be given local legal effect according to their terms, 616 | reviewing courts shall apply local law that most closely approximates 617 | an absolute waiver of all civil liability in connection with the 618 | Program, unless a warranty or assumption of liability accompanies a 619 | copy of the Program in return for a fee. 620 | 621 | END OF TERMS AND CONDITIONS 622 | 623 | How to Apply These Terms to Your New Programs 624 | 625 | If you develop a new program, and you want it to be of the greatest 626 | possible use to the public, the best way to achieve this is to make it 627 | free software which everyone can redistribute and change under these terms. 628 | 629 | To do so, attach the following notices to the program. It is safest 630 | to attach them to the start of each source file to most effectively 631 | state the exclusion of warranty; and each file should have at least 632 | the "copyright" line and a pointer to where the full notice is found. 633 | 634 | 635 | Copyright (C) 636 | 637 | This program is free software: you can redistribute it and/or modify 638 | it under the terms of the GNU General Public License as published by 639 | the Free Software Foundation, either version 3 of the License, or 640 | (at your option) any later version. 641 | 642 | This program is distributed in the hope that it will be useful, 643 | but WITHOUT ANY WARRANTY; without even the implied warranty of 644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 645 | GNU General Public License for more details. 646 | 647 | You should have received a copy of the GNU General Public License 648 | along with this program. If not, see . 649 | 650 | Also add information on how to contact you by electronic and paper mail. 651 | 652 | If the program does terminal interaction, make it output a short 653 | notice like this when it starts in an interactive mode: 654 | 655 | Copyright (C) 656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 657 | This is free software, and you are welcome to redistribute it 658 | under certain conditions; type `show c' for details. 659 | 660 | The hypothetical commands `show w' and `show c' should show the appropriate 661 | parts of the General Public License. Of course, your program's commands 662 | might be different; for a GUI interface, you would use an "about box". 663 | 664 | You should also get your employer (if you work as a programmer) or school, 665 | if any, to sign a "copyright disclaimer" for the program, if necessary. 666 | For more information on this, and how to apply and follow the GNU GPL, see 667 | . 668 | 669 | The GNU General Public License does not permit incorporating your program 670 | into proprietary programs. If your program is a subroutine library, you 671 | may consider it more useful to permit linking proprietary applications with 672 | the library. If this is what you want to do, use the GNU Lesser General 673 | Public License instead of this License. But first, please read 674 | . 675 | -------------------------------------------------------------------------------- /usr/share/nvidiux/gpl-3.0.txt: -------------------------------------------------------------------------------- 1 | Ce Programme est distribué sous la licence GPL V3 2 | FR version ici : http://org.rodage.com//gpl-3.0.fr.txt 3 | 4 | GNU GENERAL PUBLIC LICENSE 5 | Version 3, 29 June 2007 6 | 7 | Copyright (C) 2007 Free Software Foundation, Inc. 8 | Everyone is permitted to copy and distribute verbatim copies 9 | of this license document, but changing it is not allowed. 10 | 11 | Preamble 12 | 13 | The GNU General Public License is a free, copyleft license for 14 | software and other kinds of works. 15 | 16 | The licenses for most software and other practical works are designed 17 | to take away your freedom to share and change the works. By contrast, 18 | the GNU General Public License is intended to guarantee your freedom to 19 | share and change all versions of a program--to make sure it remains free 20 | software for all its users. We, the Free Software Foundation, use the 21 | GNU General Public License for most of our software; it applies also to 22 | any other work released this way by its authors. You can apply it to 23 | your programs, too. 24 | 25 | When we speak of free software, we are referring to freedom, not 26 | price. Our General Public Licenses are designed to make sure that you 27 | have the freedom to distribute copies of free software (and charge for 28 | them if you wish), that you receive source code or can get it if you 29 | want it, that you can change the software or use pieces of it in new 30 | free programs, and that you know you can do these things. 31 | 32 | To protect your rights, we need to prevent others from denying you 33 | these rights or asking you to surrender the rights. Therefore, you have 34 | certain responsibilities if you distribute copies of the software, or if 35 | you modify it: responsibilities to respect the freedom of others. 36 | 37 | For example, if you distribute copies of such a program, whether 38 | gratis or for a fee, you must pass on to the recipients the same 39 | freedoms that you received. You must make sure that they, too, receive 40 | or can get the source code. And you must show them these terms so they 41 | know their rights. 42 | 43 | Developers that use the GNU GPL protect your rights with two steps: 44 | (1) assert copyright on the software, and (2) offer you this License 45 | giving you legal permission to copy, distribute and/or modify it. 46 | 47 | For the developers' and authors' protection, the GPL clearly explains 48 | that there is no warranty for this free software. For both users' and 49 | authors' sake, the GPL requires that modified versions be marked as 50 | changed, so that their problems will not be attributed erroneously to 51 | authors of previous versions. 52 | 53 | Some devices are designed to deny users access to install or run 54 | modified versions of the software inside them, although the manufacturer 55 | can do so. This is fundamentally incompatible with the aim of 56 | protecting users' freedom to change the software. The systematic 57 | pattern of such abuse occurs in the area of products for individuals to 58 | use, which is precisely where it is most unacceptable. Therefore, we 59 | have designed this version of the GPL to prohibit the practice for those 60 | products. If such problems arise substantially in other domains, we 61 | stand ready to extend this provision to those domains in future versions 62 | of the GPL, as needed to protect the freedom of users. 63 | 64 | Finally, every program is threatened constantly by software patents. 65 | States should not allow patents to restrict development and use of 66 | software on general-purpose computers, but in those that do, we wish to 67 | avoid the special danger that patents applied to a free program could 68 | make it effectively proprietary. To prevent this, the GPL assures that 69 | patents cannot be used to render the program non-free. 70 | 71 | The precise terms and conditions for copying, distribution and 72 | modification follow. 73 | 74 | TERMS AND CONDITIONS 75 | 76 | 0. Definitions. 77 | 78 | "This License" refers to version 3 of the GNU General Public License. 79 | 80 | "Copyright" also means copyright-like laws that apply to other kinds of 81 | works, such as semiconductor masks. 82 | 83 | "The Program" refers to any copyrightable work licensed under this 84 | License. Each licensee is addressed as "you". "Licensees" and 85 | "recipients" may be individuals or organizations. 86 | 87 | To "modify" a work means to copy from or adapt all or part of the work 88 | in a fashion requiring copyright permission, other than the making of an 89 | exact copy. The resulting work is called a "modified version" of the 90 | earlier work or a work "based on" the earlier work. 91 | 92 | A "covered work" means either the unmodified Program or a work based 93 | on the Program. 94 | 95 | To "propagate" a work means to do anything with it that, without 96 | permission, would make you directly or secondarily liable for 97 | infringement under applicable copyright law, except executing it on a 98 | computer or modifying a private copy. Propagation includes copying, 99 | distribution (with or without modification), making available to the 100 | public, and in some countries other activities as well. 101 | 102 | To "convey" a work means any kind of propagation that enables other 103 | parties to make or receive copies. Mere interaction with a user through 104 | a computer network, with no transfer of a copy, is not conveying. 105 | 106 | An interactive user interface displays "Appropriate Legal Notices" 107 | to the extent that it includes a convenient and prominently visible 108 | feature that (1) displays an appropriate copyright notice, and (2) 109 | tells the user that there is no warranty for the work (except to the 110 | extent that warranties are provided), that licensees may convey the 111 | work under this License, and how to view a copy of this License. If 112 | the interface presents a list of user commands or options, such as a 113 | menu, a prominent item in the list meets this criterion. 114 | 115 | 1. Source Code. 116 | 117 | The "source code" for a work means the preferred form of the work 118 | for making modifications to it. "Object code" means any non-source 119 | form of a work. 120 | 121 | A "Standard Interface" means an interface that either is an official 122 | standard defined by a recognized standards body, or, in the case of 123 | interfaces specified for a particular programming language, one that 124 | is widely used among developers working in that language. 125 | 126 | The "System Libraries" of an executable work include anything, other 127 | than the work as a whole, that (a) is included in the normal form of 128 | packaging a Major Component, but which is not part of that Major 129 | Component, and (b) serves only to enable use of the work with that 130 | Major Component, or to implement a Standard Interface for which an 131 | implementation is available to the public in source code form. A 132 | "Major Component", in this context, means a major essential component 133 | (kernel, window system, and so on) of the specific operating system 134 | (if any) on which the executable work runs, or a compiler used to 135 | produce the work, or an object code interpreter used to run it. 136 | 137 | The "Corresponding Source" for a work in object code form means all 138 | the source code needed to generate, install, and (for an executable 139 | work) run the object code and to modify the work, including scripts to 140 | control those activities. However, it does not include the work's 141 | System Libraries, or general-purpose tools or generally available free 142 | programs which are used unmodified in performing those activities but 143 | which are not part of the work. For example, Corresponding Source 144 | includes interface definition files associated with source files for 145 | the work, and the source code for shared libraries and dynamically 146 | linked subprograms that the work is specifically designed to require, 147 | such as by intimate data communication or control flow between those 148 | subprograms and other parts of the work. 149 | 150 | The Corresponding Source need not include anything that users 151 | can regenerate automatically from other parts of the Corresponding 152 | Source. 153 | 154 | The Corresponding Source for a work in source code form is that 155 | same work. 156 | 157 | 2. Basic Permissions. 158 | 159 | All rights granted under this License are granted for the term of 160 | copyright on the Program, and are irrevocable provided the stated 161 | conditions are met. This License explicitly affirms your unlimited 162 | permission to run the unmodified Program. The output from running a 163 | covered work is covered by this License only if the output, given its 164 | content, constitutes a covered work. This License acknowledges your 165 | rights of fair use or other equivalent, as provided by copyright law. 166 | 167 | You may make, run and propagate covered works that you do not 168 | convey, without conditions so long as your license otherwise remains 169 | in force. You may convey covered works to others for the sole purpose 170 | of having them make modifications exclusively for you, or provide you 171 | with facilities for running those works, provided that you comply with 172 | the terms of this License in conveying all material for which you do 173 | not control copyright. Those thus making or running the covered works 174 | for you must do so exclusively on your behalf, under your direction 175 | and control, on terms that prohibit them from making any copies of 176 | your copyrighted material outside their relationship with you. 177 | 178 | Conveying under any other circumstances is permitted solely under 179 | the conditions stated below. Sublicensing is not allowed; section 10 180 | makes it unnecessary. 181 | 182 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law. 183 | 184 | No covered work shall be deemed part of an effective technological 185 | measure under any applicable law fulfilling obligations under article 186 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or 187 | similar laws prohibiting or restricting circumvention of such 188 | measures. 189 | 190 | When you convey a covered work, you waive any legal power to forbid 191 | circumvention of technological measures to the extent such circumvention 192 | is effected by exercising rights under this License with respect to 193 | the covered work, and you disclaim any intention to limit operation or 194 | modification of the work as a means of enforcing, against the work's 195 | users, your or third parties' legal rights to forbid circumvention of 196 | technological measures. 197 | 198 | 4. Conveying Verbatim Copies. 199 | 200 | You may convey verbatim copies of the Program's source code as you 201 | receive it, in any medium, provided that you conspicuously and 202 | appropriately publish on each copy an appropriate copyright notice; 203 | keep intact all notices stating that this License and any 204 | non-permissive terms added in accord with section 7 apply to the code; 205 | keep intact all notices of the absence of any warranty; and give all 206 | recipients a copy of this License along with the Program. 207 | 208 | You may charge any price or no price for each copy that you convey, 209 | and you may offer support or warranty protection for a fee. 210 | 211 | 5. Conveying Modified Source Versions. 212 | 213 | You may convey a work based on the Program, or the modifications to 214 | produce it from the Program, in the form of source code under the 215 | terms of section 4, provided that you also meet all of these conditions: 216 | 217 | a) The work must carry prominent notices stating that you modified 218 | it, and giving a relevant date. 219 | 220 | b) The work must carry prominent notices stating that it is 221 | released under this License and any conditions added under section 222 | 7. This requirement modifies the requirement in section 4 to 223 | "keep intact all notices". 224 | 225 | c) You must license the entire work, as a whole, under this 226 | License to anyone who comes into possession of a copy. This 227 | License will therefore apply, along with any applicable section 7 228 | additional terms, to the whole of the work, and all its parts, 229 | regardless of how they are packaged. This License gives no 230 | permission to license the work in any other way, but it does not 231 | invalidate such permission if you have separately received it. 232 | 233 | d) If the work has interactive user interfaces, each must display 234 | Appropriate Legal Notices; however, if the Program has interactive 235 | interfaces that do not display Appropriate Legal Notices, your 236 | work need not make them do so. 237 | 238 | A compilation of a covered work with other separate and independent 239 | works, which are not by their nature extensions of the covered work, 240 | and which are not combined with it such as to form a larger program, 241 | in or on a volume of a storage or distribution medium, is called an 242 | "aggregate" if the compilation and its resulting copyright are not 243 | used to limit the access or legal rights of the compilation's users 244 | beyond what the individual works permit. Inclusion of a covered work 245 | in an aggregate does not cause this License to apply to the other 246 | parts of the aggregate. 247 | 248 | 6. Conveying Non-Source Forms. 249 | 250 | You may convey a covered work in object code form under the terms 251 | of sections 4 and 5, provided that you also convey the 252 | machine-readable Corresponding Source under the terms of this License, 253 | in one of these ways: 254 | 255 | a) Convey the object code in, or embodied in, a physical product 256 | (including a physical distribution medium), accompanied by the 257 | Corresponding Source fixed on a durable physical medium 258 | customarily used for software interchange. 259 | 260 | b) Convey the object code in, or embodied in, a physical product 261 | (including a physical distribution medium), accompanied by a 262 | written offer, valid for at least three years and valid for as 263 | long as you offer spare parts or customer support for that product 264 | model, to give anyone who possesses the object code either (1) a 265 | copy of the Corresponding Source for all the software in the 266 | product that is covered by this License, on a durable physical 267 | medium customarily used for software interchange, for a price no 268 | more than your reasonable cost of physically performing this 269 | conveying of source, or (2) access to copy the 270 | Corresponding Source from a network server at no charge. 271 | 272 | c) Convey individual copies of the object code with a copy of the 273 | written offer to provide the Corresponding Source. This 274 | alternative is allowed only occasionally and noncommercially, and 275 | only if you received the object code with such an offer, in accord 276 | with subsection 6b. 277 | 278 | d) Convey the object code by offering access from a designated 279 | place (gratis or for a charge), and offer equivalent access to the 280 | Corresponding Source in the same way through the same place at no 281 | further charge. You need not require recipients to copy the 282 | Corresponding Source along with the object code. If the place to 283 | copy the object code is a network server, the Corresponding Source 284 | may be on a different server (operated by you or a third party) 285 | that supports equivalent copying facilities, provided you maintain 286 | clear directions next to the object code saying where to find the 287 | Corresponding Source. Regardless of what server hosts the 288 | Corresponding Source, you remain obligated to ensure that it is 289 | available for as long as needed to satisfy these requirements. 290 | 291 | e) Convey the object code using peer-to-peer transmission, provided 292 | you inform other peers where the object code and Corresponding 293 | Source of the work are being offered to the general public at no 294 | charge under subsection 6d. 295 | 296 | A separable portion of the object code, whose source code is excluded 297 | from the Corresponding Source as a System Library, need not be 298 | included in conveying the object code work. 299 | 300 | A "User Product" is either (1) a "consumer product", which means any 301 | tangible personal property which is normally used for personal, family, 302 | or household purposes, or (2) anything designed or sold for incorporation 303 | into a dwelling. In determining whether a product is a consumer product, 304 | doubtful cases shall be resolved in favor of coverage. For a particular 305 | product received by a particular user, "normally used" refers to a 306 | typical or common use of that class of product, regardless of the status 307 | of the particular user or of the way in which the particular user 308 | actually uses, or expects or is expected to use, the product. A product 309 | is a consumer product regardless of whether the product has substantial 310 | commercial, industrial or non-consumer uses, unless such uses represent 311 | the only significant mode of use of the product. 312 | 313 | "Installation Information" for a User Product means any methods, 314 | procedures, authorization keys, or other information required to install 315 | and execute modified versions of a covered work in that User Product from 316 | a modified version of its Corresponding Source. The information must 317 | suffice to ensure that the continued functioning of the modified object 318 | code is in no case prevented or interfered with solely because 319 | modification has been made. 320 | 321 | If you convey an object code work under this section in, or with, or 322 | specifically for use in, a User Product, and the conveying occurs as 323 | part of a transaction in which the right of possession and use of the 324 | User Product is transferred to the recipient in perpetuity or for a 325 | fixed term (regardless of how the transaction is characterized), the 326 | Corresponding Source conveyed under this section must be accompanied 327 | by the Installation Information. But this requirement does not apply 328 | if neither you nor any third party retains the ability to install 329 | modified object code on the User Product (for example, the work has 330 | been installed in ROM). 331 | 332 | The requirement to provide Installation Information does not include a 333 | requirement to continue to provide support service, warranty, or updates 334 | for a work that has been modified or installed by the recipient, or for 335 | the User Product in which it has been modified or installed. Access to a 336 | network may be denied when the modification itself materially and 337 | adversely affects the operation of the network or violates the rules and 338 | protocols for communication across the network. 339 | 340 | Corresponding Source conveyed, and Installation Information provided, 341 | in accord with this section must be in a format that is publicly 342 | documented (and with an implementation available to the public in 343 | source code form), and must require no special password or key for 344 | unpacking, reading or copying. 345 | 346 | 7. Additional Terms. 347 | 348 | "Additional permissions" are terms that supplement the terms of this 349 | License by making exceptions from one or more of its conditions. 350 | Additional permissions that are applicable to the entire Program shall 351 | be treated as though they were included in this License, to the extent 352 | that they are valid under applicable law. If additional permissions 353 | apply only to part of the Program, that part may be used separately 354 | under those permissions, but the entire Program remains governed by 355 | this License without regard to the additional permissions. 356 | 357 | When you convey a copy of a covered work, you may at your option 358 | remove any additional permissions from that copy, or from any part of 359 | it. (Additional permissions may be written to require their own 360 | removal in certain cases when you modify the work.) You may place 361 | additional permissions on material, added by you to a covered work, 362 | for which you have or can give appropriate copyright permission. 363 | 364 | Notwithstanding any other provision of this License, for material you 365 | add to a covered work, you may (if authorized by the copyright holders of 366 | that material) supplement the terms of this License with terms: 367 | 368 | a) Disclaiming warranty or limiting liability differently from the 369 | terms of sections 15 and 16 of this License; or 370 | 371 | b) Requiring preservation of specified reasonable legal notices or 372 | author attributions in that material or in the Appropriate Legal 373 | Notices displayed by works containing it; or 374 | 375 | c) Prohibiting misrepresentation of the origin of that material, or 376 | requiring that modified versions of such material be marked in 377 | reasonable ways as different from the original version; or 378 | 379 | d) Limiting the use for publicity purposes of names of licensors or 380 | authors of the material; or 381 | 382 | e) Declining to grant rights under trademark law for use of some 383 | trade names, trademarks, or service marks; or 384 | 385 | f) Requiring indemnification of licensors and authors of that 386 | material by anyone who conveys the material (or modified versions of 387 | it) with contractual assumptions of liability to the recipient, for 388 | any liability that these contractual assumptions directly impose on 389 | those licensors and authors. 390 | 391 | All other non-permissive additional terms are considered "further 392 | restrictions" within the meaning of section 10. If the Program as you 393 | received it, or any part of it, contains a notice stating that it is 394 | governed by this License along with a term that is a further 395 | restriction, you may remove that term. If a license document contains 396 | a further restriction but permits relicensing or conveying under this 397 | License, you may add to a covered work material governed by the terms 398 | of that license document, provided that the further restriction does 399 | not survive such relicensing or conveying. 400 | 401 | If you add terms to a covered work in accord with this section, you 402 | must place, in the relevant source files, a statement of the 403 | additional terms that apply to those files, or a notice indicating 404 | where to find the applicable terms. 405 | 406 | Additional terms, permissive or non-permissive, may be stated in the 407 | form of a separately written license, or stated as exceptions; 408 | the above requirements apply either way. 409 | 410 | 8. Termination. 411 | 412 | You may not propagate or modify a covered work except as expressly 413 | provided under this License. Any attempt otherwise to propagate or 414 | modify it is void, and will automatically terminate your rights under 415 | this License (including any patent licenses granted under the third 416 | paragraph of section 11). 417 | 418 | However, if you cease all violation of this License, then your 419 | license from a particular copyright holder is reinstated (a) 420 | provisionally, unless and until the copyright holder explicitly and 421 | finally terminates your license, and (b) permanently, if the copyright 422 | holder fails to notify you of the violation by some reasonable means 423 | prior to 60 days after the cessation. 424 | 425 | Moreover, your license from a particular copyright holder is 426 | reinstated permanently if the copyright holder notifies you of the 427 | violation by some reasonable means, this is the first time you have 428 | received notice of violation of this License (for any work) from that 429 | copyright holder, and you cure the violation prior to 30 days after 430 | your receipt of the notice. 431 | 432 | Termination of your rights under this section does not terminate the 433 | licenses of parties who have received copies or rights from you under 434 | this License. If your rights have been terminated and not permanently 435 | reinstated, you do not qualify to receive new licenses for the same 436 | material under section 10. 437 | 438 | 9. Acceptance Not Required for Having Copies. 439 | 440 | You are not required to accept this License in order to receive or 441 | run a copy of the Program. Ancillary propagation of a covered work 442 | occurring solely as a consequence of using peer-to-peer transmission 443 | to receive a copy likewise does not require acceptance. However, 444 | nothing other than this License grants you permission to propagate or 445 | modify any covered work. These actions infringe copyright if you do 446 | not accept this License. Therefore, by modifying or propagating a 447 | covered work, you indicate your acceptance of this License to do so. 448 | 449 | 10. Automatic Licensing of Downstream Recipients. 450 | 451 | Each time you convey a covered work, the recipient automatically 452 | receives a license from the original licensors, to run, modify and 453 | propagate that work, subject to this License. You are not responsible 454 | for enforcing compliance by third parties with this License. 455 | 456 | An "entity transaction" is a transaction transferring control of an 457 | organization, or substantially all assets of one, or subdividing an 458 | organization, or merging organizations. If propagation of a covered 459 | work results from an entity transaction, each party to that 460 | transaction who receives a copy of the work also receives whatever 461 | licenses to the work the party's predecessor in interest had or could 462 | give under the previous paragraph, plus a right to possession of the 463 | Corresponding Source of the work from the predecessor in interest, if 464 | the predecessor has it or can get it with reasonable efforts. 465 | 466 | You may not impose any further restrictions on the exercise of the 467 | rights granted or affirmed under this License. For example, you may 468 | not impose a license fee, royalty, or other charge for exercise of 469 | rights granted under this License, and you may not initiate litigation 470 | (including a cross-claim or counterclaim in a lawsuit) alleging that 471 | any patent claim is infringed by making, using, selling, offering for 472 | sale, or importing the Program or any portion of it. 473 | 474 | 11. Patents. 475 | 476 | A "contributor" is a copyright holder who authorizes use under this 477 | License of the Program or a work on which the Program is based. The 478 | work thus licensed is called the contributor's "contributor version". 479 | 480 | A contributor's "essential patent claims" are all patent claims 481 | owned or controlled by the contributor, whether already acquired or 482 | hereafter acquired, that would be infringed by some manner, permitted 483 | by this License, of making, using, or selling its contributor version, 484 | but do not include claims that would be infringed only as a 485 | consequence of further modification of the contributor version. For 486 | purposes of this definition, "control" includes the right to grant 487 | patent sublicenses in a manner consistent with the requirements of 488 | this License. 489 | 490 | Each contributor grants you a non-exclusive, worldwide, royalty-free 491 | patent license under the contributor's essential patent claims, to 492 | make, use, sell, offer for sale, import and otherwise run, modify and 493 | propagate the contents of its contributor version. 494 | 495 | In the following three paragraphs, a "patent license" is any express 496 | agreement or commitment, however denominated, not to enforce a patent 497 | (such as an express permission to practice a patent or covenant not to 498 | sue for patent infringement). To "grant" such a patent license to a 499 | party means to make such an agreement or commitment not to enforce a 500 | patent against the party. 501 | 502 | If you convey a covered work, knowingly relying on a patent license, 503 | and the Corresponding Source of the work is not available for anyone 504 | to copy, free of charge and under the terms of this License, through a 505 | publicly available network server or other readily accessible means, 506 | then you must either (1) cause the Corresponding Source to be so 507 | available, or (2) arrange to deprive yourself of the benefit of the 508 | patent license for this particular work, or (3) arrange, in a manner 509 | consistent with the requirements of this License, to extend the patent 510 | license to downstream recipients. "Knowingly relying" means you have 511 | actual knowledge that, but for the patent license, your conveying the 512 | covered work in a country, or your recipient's use of the covered work 513 | in a country, would infringe one or more identifiable patents in that 514 | country that you have reason to believe are valid. 515 | 516 | If, pursuant to or in connection with a single transaction or 517 | arrangement, you convey, or propagate by procuring conveyance of, a 518 | covered work, and grant a patent license to some of the parties 519 | receiving the covered work authorizing them to use, propagate, modify 520 | or convey a specific copy of the covered work, then the patent license 521 | you grant is automatically extended to all recipients of the covered 522 | work and works based on it. 523 | 524 | A patent license is "discriminatory" if it does not include within 525 | the scope of its coverage, prohibits the exercise of, or is 526 | conditioned on the non-exercise of one or more of the rights that are 527 | specifically granted under this License. You may not convey a covered 528 | work if you are a party to an arrangement with a third party that is 529 | in the business of distributing software, under which you make payment 530 | to the third party based on the extent of your activity of conveying 531 | the work, and under which the third party grants, to any of the 532 | parties who would receive the covered work from you, a discriminatory 533 | patent license (a) in connection with copies of the covered work 534 | conveyed by you (or copies made from those copies), or (b) primarily 535 | for and in connection with specific products or compilations that 536 | contain the covered work, unless you entered into that arrangement, 537 | or that patent license was granted, prior to 28 March 2007. 538 | 539 | Nothing in this License shall be construed as excluding or limiting 540 | any implied license or other defenses to infringement that may 541 | otherwise be available to you under applicable patent law. 542 | 543 | 12. No Surrender of Others' Freedom. 544 | 545 | If conditions are imposed on you (whether by court order, agreement or 546 | otherwise) that contradict the conditions of this License, they do not 547 | excuse you from the conditions of this License. If you cannot convey a 548 | covered work so as to satisfy simultaneously your obligations under this 549 | License and any other pertinent obligations, then as a consequence you may 550 | not convey it at all. For example, if you agree to terms that obligate you 551 | to collect a royalty for further conveying from those to whom you convey 552 | the Program, the only way you could satisfy both those terms and this 553 | License would be to refrain entirely from conveying the Program. 554 | 555 | 13. Use with the GNU Affero General Public License. 556 | 557 | Notwithstanding any other provision of this License, you have 558 | permission to link or combine any covered work with a work licensed 559 | under version 3 of the GNU Affero General Public License into a single 560 | combined work, and to convey the resulting work. The terms of this 561 | License will continue to apply to the part which is the covered work, 562 | but the special requirements of the GNU Affero General Public License, 563 | section 13, concerning interaction through a network will apply to the 564 | combination as such. 565 | 566 | 14. Revised Versions of this License. 567 | 568 | The Free Software Foundation may publish revised and/or new versions of 569 | the GNU General Public License from time to time. Such new versions will 570 | be similar in spirit to the present version, but may differ in detail to 571 | address new problems or concerns. 572 | 573 | Each version is given a distinguishing version number. If the 574 | Program specifies that a certain numbered version of the GNU General 575 | Public License "or any later version" applies to it, you have the 576 | option of following the terms and conditions either of that numbered 577 | version or of any later version published by the Free Software 578 | Foundation. If the Program does not specify a version number of the 579 | GNU General Public License, you may choose any version ever published 580 | by the Free Software Foundation. 581 | 582 | If the Program specifies that a proxy can decide which future 583 | versions of the GNU General Public License can be used, that proxy's 584 | public statement of acceptance of a version permanently authorizes you 585 | to choose that version for the Program. 586 | 587 | Later license versions may give you additional or different 588 | permissions. However, no additional obligations are imposed on any 589 | author or copyright holder as a result of your choosing to follow a 590 | later version. 591 | 592 | 15. Disclaimer of Warranty. 593 | 594 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY 595 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT 596 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY 597 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, 598 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 599 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM 600 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF 601 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 602 | 603 | 16. Limitation of Liability. 604 | 605 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 606 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 607 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY 608 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE 609 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF 610 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD 611 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), 612 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF 613 | SUCH DAMAGES. 614 | 615 | 17. Interpretation of Sections 15 and 16. 616 | 617 | If the disclaimer of warranty and limitation of liability provided 618 | above cannot be given local legal effect according to their terms, 619 | reviewing courts shall apply local law that most closely approximates 620 | an absolute waiver of all civil liability in connection with the 621 | Program, unless a warranty or assumption of liability accompanies a 622 | copy of the Program in return for a fee. 623 | 624 | END OF TERMS AND CONDITIONS 625 | 626 | How to Apply These Terms to Your New Programs 627 | 628 | If you develop a new program, and you want it to be of the greatest 629 | possible use to the public, the best way to achieve this is to make it 630 | free software which everyone can redistribute and change under these terms. 631 | 632 | To do so, attach the following notices to the program. It is safest 633 | to attach them to the start of each source file to most effectively 634 | state the exclusion of warranty; and each file should have at least 635 | the "copyright" line and a pointer to where the full notice is found. 636 | 637 | 638 | Copyright (C) 639 | 640 | This program is free software: you can redistribute it and/or modify 641 | it under the terms of the GNU General Public License as published by 642 | the Free Software Foundation, either version 3 of the License, or 643 | (at your option) any later version. 644 | 645 | This program is distributed in the hope that it will be useful, 646 | but WITHOUT ANY WARRANTY; without even the implied warranty of 647 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 648 | GNU General Public License for more details. 649 | 650 | You should have received a copy of the GNU General Public License 651 | along with this program. If not, see . 652 | 653 | Also add information on how to contact you by electronic and paper mail. 654 | 655 | If the program does terminal interaction, make it output a short 656 | notice like this when it starts in an interactive mode: 657 | 658 | Copyright (C) 659 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 660 | This is free software, and you are welcome to redistribute it 661 | under certain conditions; type `show c' for details. 662 | 663 | The hypothetical commands `show w' and `show c' should show the appropriate 664 | parts of the General Public License. Of course, your program's commands 665 | might be different; for a GUI interface, you would use an "about box". 666 | 667 | You should also get your employer (if you work as a programmer) or school, 668 | if any, to sign a "copyright disclaimer" for the program, if necessary. 669 | For more information on this, and how to apply and follow the GNU GPL, see 670 | . 671 | 672 | The GNU General Public License does not permit incorporating your program 673 | into proprietary programs. If your program is a subroutine library, you 674 | may consider it more useful to permit linking proprietary applications with 675 | the library. If this is what you want to do, use the GNU Lesser General 676 | Public License instead of this License. But first, please read 677 | . 678 | --------------------------------------------------------------------------------