Guest User

Untitled

a guest
Oct 24th, 2017
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.35 KB | None | 0 0
  1. sudo -s
  2. nvidia-settings
  3.  
  4. # nvidia-settings: X configuration file generated by nvidia-settings
  5. # nvidia-settings: version 337.12 (buildd@charichuelo) Wed Apr 9 12:25:02 UTC
  6. 2014
  7.  
  8. # nvidia-xconfig: X configuration file generated by nvidia-xconfig
  9. # nvidia-xconfig: version 331.38 (buildmeister@swio-display-x64-rhel04-15) Wed
  10. Jan 8 19:53:14 PST 2014
  11.  
  12. Section "ServerLayout"
  13. Identifier "Layout0"
  14. Screen 0 "Screen0" 0 0
  15. InputDevice "Keyboard0" "CoreKeyboard"
  16. InputDevice "Mouse0" "CorePointer"
  17. Option "Xinerama" "0"
  18. EndSection
  19.  
  20. Section "Files"
  21. EndSection
  22.  
  23. Section "InputDevice"
  24.  
  25. # generated from default
  26. Identifier "Mouse0"
  27. Driver "mouse"
  28. Option "Protocol" "auto"
  29. Option "Device" "/dev/psaux"
  30. Option "Emulate3Buttons" "no"
  31. Option "ZAxisMapping" "4 5"
  32. EndSection
  33.  
  34. Section "InputDevice"
  35.  
  36. # generated from default
  37. Identifier "Keyboard0"
  38. Driver "kbd"
  39. EndSection
  40.  
  41. Section "Monitor"
  42.  
  43. # HorizSync source: edid, VertRefresh source: edid
  44. Identifier "Monitor0"
  45. VendorName "Unknown"
  46. ModelName "Samsung S27C590"
  47. HorizSync 30.0 - 81.0
  48. VertRefresh 50.0 - 75.0
  49. Option "DPMS"
  50. EndSection
  51.  
  52. Section "Device"
  53. Identifier "Device0"
  54. Driver "nvidia"
  55. VendorName "NVIDIA Corporation"
  56. BoardName "GeForce GTX 670M"
  57. Option "RegistryDwords" "PowerMizerEnable=0x1; PerfLevelSrc=0x3322;
  58. PowerMizerDefault=0x2; PowerMizerDefaultAC=0x2"
  59.  
  60. EndSection
  61.  
  62. Section "Screen"
  63. Identifier "Screen0"
  64. Device "Device0"
  65. Monitor "Monitor0"
  66. DefaultDepth 24
  67. Option "Stereo" "0"
  68. Option "nvidiaXineramaInfoOrder" "DFP-2"
  69. Option "metamodes" "HDMI-0: nvidia-auto-select +0+0"
  70. Option "SLI" "Off"
  71. Option "MultiGPU" "Off"
  72. Option "BaseMosaic" "off"
  73. SubSection "Display"
  74. Depth 24
  75. EndSubSection
  76. EndSection
  77.  
  78. $ sudo xrandr
  79. Screen 0: minimum 8 x 8, current 3840 x 1080, maximum 16384 x 16384
  80. VGA-0 disconnected (normal left inverted right x axis y axis)
  81. LVDS-0 connected 1920x1080+1920+0 (normal left inverted right x axis y axis) 382mm x
  82. 215mm
  83. 1920x1080 60.0*+ 40.0
  84. DP-0 disconnected (normal left inverted right x axis y axis)
  85.  
  86. HD MI-0 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis)
  87. 598mm
  88. x 336mm
  89. 1920x1080 60.0*+ 59.9 50.0
  90. 1680x1050 60.0
  91. 1600x900 60.0
  92. 1440x900 59.9
  93. 1280x1024 75.0 60.0
  94. 1280x800 59.8
  95. 1280x720 60.0 59.9 50.0
  96. 1152x864 75.0
  97. 1024x768 75.0 70.1 60.0
  98. 800x600 75.0 72.2 60.3 56.2
  99. 720x576 50.0
  100. 720x480 59.9
  101. 640x480 75.0 72.8 59.9
  102. DP-1 disconnected (normal left inverted right x axis y axis)
  103.  
  104. sudo nvidia-settings
  105.  
  106. xrandr --output LVDS-0 --off
  107.  
  108. xrandr --output HDMI-0 --auto --primary --output LVDS-0 --mode 1920x1080 --right-of HDMI-0
  109.  
  110. #!/usr/bin/env bash
  111.  
  112. if [[ $1 = "off" ]]; then
  113. xrandr --output LVDS-0 --off
  114. else
  115. xrandr --output HDMI-0 --auto --primary --output LVDS-0 --mode 1920x1080 --right-of HDMI-0
  116. fi
  117.  
  118. ~/switch_screens.sh
  119.  
  120. ~/switch_screens.sh off
  121.  
  122. sudo mv /etc/X11/xorg.conf /etc/X11/xorg.conf.old
  123. sudo mv /home/%user/Desktop/xorg.conf /etc/x11/xorg.conf
  124.  
  125. sudo rm /etc/X11/xorg.conf
  126. sudo cp /etc/X11/xorg.conf.old /etc/X11/xorg.conf
Add Comment
Please, Sign In to add comment