I have an Intel + Nvidia laptop with latest(415.23) Nvidia proprietary drivers running on Ubuntu 18.04. Sometimes it happens that in some large applications (like games) my GPU got more than 95 degrees temperature that immediately causes to shut down the system.

To resolve this problem, I'd like to manually control GPU fan speed and graphics clock level. I tried to generate xorg.conf file with the next command

sudo nvidia-xconfig -a --cool-bits=8 --allow-empty-initial-configuration

It generates configuration file in /etc/X11/xorg.conf. But after rebooting I can't log in to xorg session. I see a purple screen and my cursor is locked. The only thing I can do is Ctrl + Alt + F3 and delete the previously generated file. I also tried to move this conf to /usr/share/X11/ but it obviously doesn't help.

xorg file example:

victor@katarsys:~$ sudo nvidia-xconfig 
victor@katarsys:~$ cat /etc/X11/xorg.conf.backup 
# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 390.87  (buildmeister@swio-display-x64-rhel04-14)  Tue Aug 21 17:33:38 PDT 2018

# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings:  version 415.23

Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0" 0 0
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
    Option         "Xinerama" "0"

Section "Files"

Section "Module"
    Load           "dbe"
    Load           "extmod"
    Load           "type1"
    Load           "freetype"
    Load           "glx"

Section "InputDevice"

    # generated from default
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/psaux"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"

Section "InputDevice"

    # generated from default
    Identifier     "Keyboard0"
    Driver         "kbd"

Section "Monitor"
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "Unknown"
    HorizSync       28.0 - 33.0
    VertRefresh     43.0 - 72.0
    Option         "DPMS"

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce GTX 960M"

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "UseDisplayDevice" "none"
    SubSection     "Display"
        Virtual     3840 1080
        Depth       24

Any help is highly appreciated.

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.