LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   xorg.conf - no section labeled 'Device' (https://www.linuxquestions.org/questions/linux-newbie-8/xorg-conf-no-section-labeled-device-4175620255/)

eco_bach 12-24-2017 02:02 PM

xorg.conf - no section labeled 'Device'
 
Hi
Trying to get this GPU fan curve script running properly on my PC(Ubuntu Mate 17.10)
https://github.com/nan0s7/nfancurve

Following these directions
https://github.com/nan0s7/nfancurve/...aster/USAGE.md

The section under
making sure your bits are always cool
says open xorg.conf and get the Identifier value under the "Device" section.
I have no "Device" section! Only 2 sections labeled "Input Device"


Code:

# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 384.90  (buildmeister@swio-display-x86-rhel47-05)  Tue Sep 1$


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

Section "Files"
!EndSection

Section "InputDevice"

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

Section "InputDevice"

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


And if I simply try to run the temp.sh script it almost works with one error.
Any shell script experts able to suggest what is wrong and what I should try next?



Code:

###################################
# nan0s7's fan speed curve script #
###################################

No other versions of temp.sh running in background

A likely supported driver version was detected.
The fan curves match up!
Good job! :D
Number of Fans detected:
2
Number of GPUs detected:
2
tdiff average: 6

  Attribute 'GPUFanControlState' (Art3mis:0[gpu:0]) assigned value 1.



Using maximum limit for the temperature difference
Started process for n-GPUs and n-Fans

  Attribute 'GPUTargetFanSpeed' (Art3mis:0[fan:0]) assigned value 40.



ERROR: Error assigning value 25 to attribute 'GPUTargetFanSpeed'
      (Art3mis:0[fan:1]) as specified in assignment
      '[fan:1]/GPUTargetFanSpeed=25' (Unknown Error).


Drakeo 12-24-2017 02:09 PM

Code:

A small and lightweight Bash script for using a custom fan curve in Linux for those with an Nvidia GPU.
DID YOU INSTALL THE NVIDA MODULE.
Code:

# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings:  version 375.66  (buildmeister@swio-display-x86-rhel47-06)  Mon May  1 15:44:21 PDT 2017

# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 375.66  (buildmeister@swio-display-x86-rhel47-06)  Mon May  1 15:45:32 PDT 2017

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

Section "Files"
    FontPath        "/usr/lib64/X11/fonts/misc/:unscaled"
    FontPath        "/usr/lib64/X11/fonts/100dpi/:unscaled"
    FontPath        "/usr/lib64/X11/fonts/75dpi/:unscaled"
    FontPath        "/usr/lib64/X11/fonts/misc/"
    FontPath        "/usr/lib64/X11/fonts/Type1/"
    FontPath        "/usr/lib64/X11/fonts/Speedo/"
    FontPath        "/usr/lib64/X11/fonts/100dpi/"
    FontPath        "/usr/lib64/X11/fonts/75dpi/"
    FontPath        "/usr/lib64/X11/fonts/cyrillic/"
    FontPath        "/usr/lib64/X11/fonts/TTF/"
EndSection

Section "InputDevice"

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

Section "InputDevice"

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

Section "Monitor"
    Identifier    "Monitor0"
    VendorName    "Unknown"
    ModelName      "HP 2010"
    HorizSync      24.0 - 83.0
    VertRefresh    50.0 - 76.0
    Option        "DPMS"
EndSection

Section "Device"
    Identifier    "Device0"
    Driver        "nvidia"
    VendorName    "NVIDIA Corporation"
    BoardName      "GeForce GT 640"
EndSection

Section "Screen"
    Identifier    "Screen0"
    Device        "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option        "Stereo" "0"
    Option        "nvidiaXineramaInfoOrder" "CRT-0"
    Option        "metamodes" "nvidia-auto-select +0+0"
    Option        "SLI" "Off"
    Option        "MultiGPU" "Off"
    Option        "BaseMosaic" "off"
    SubSection    "Display"
        Depth      24
    EndSubSection
EndSection


Drakeo 12-24-2017 02:24 PM

Code:

Section "Device"
    Identifier    "Device0"
    Option        "Coolbits" "12"
    Driver        "nvidia"
    VendorName    "NVIDIA Corporation"
    BoardName      "GeForce GT 640"
EndSection

https://github.com/nan0s7/nfancurve/...aster/USAGE.md
little something nvida uses json to parse the xorg.config.

Code:

Option "Coolbits" "12"
this could be placed anywhere pretty much.
when parsed the commands are triggers.
I used to have a seperate section years ago
when I played with this blob during the Compiz Fusion days.
for the sake of the script writer keep to that device section.


All times are GMT -5. The time now is 06:39 PM.