LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-24-2017, 02:02 PM   #1
eco_bach
Member
 
Registered: Dec 2016
Posts: 242

Rep: Reputation: Disabled
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).
 
Old 12-24-2017, 02:09 PM   #2
Drakeo
Senior Member
 
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 3,716
Blog Entries: 3

Rep: Reputation: 483Reputation: 483Reputation: 483Reputation: 483Reputation: 483
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
 
Old 12-24-2017, 02:24 PM   #3
Drakeo
Senior Member
 
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 3,716
Blog Entries: 3

Rep: Reputation: 483Reputation: 483Reputation: 483Reputation: 483Reputation: 483
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.

Last edited by Drakeo; 12-24-2017 at 02:46 PM.
 
  


Reply

Tags
bash, nvidia


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] xorg.conf causes parse error on line 1 of section InputClass JZL240I-U Linux - Desktop 18 03-08-2011 03:27 AM
There is no "Input Device" section in xorg.conf MooseMagnet Linux - Newbie 3 01-03-2009 05:35 PM
Using Xubuntu 7.10 gusty, want to create own monitor section in xorg.conf rngetter Ubuntu 4 03-10-2008 08:23 PM
Help with the monitor section of xorg.conf needed ssenuta Linux - Hardware 3 07-29-2007 10:17 AM
xorg.conf need monitor section help lesmyer Linux - Software 0 06-14-2006 12:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:07 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration