Changing screen resolution using xorg.conf file

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








up vote
1
down vote

favorite












I recently (today) installed Nvidia graphic drivers on my laptop, I followed the instruction on the tutorial and generated a xorg.conf file using nvidia-xconfig. I have am using a laptop and have plugged an external montior to it, The external monitor's resolution is fine however the main laptop screen has gone to 4:3 resolution. I have no idea what's in the xorg.conf file, I have never seen anything like this, can anyone help me changing the screen resolution back to 16:9, 1366x768.



Here is the xorg.conf file.



# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig: version 390.48 (buildmeister@swio-display-x86-rhel47-07) Thu Mar 22 01:07:32 PDT 2018


Section "ServerLayout"
Identifier "layout"
Screen 0 "nvidia" 0 0
Inactive "intel"
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "Mouse0" "CorePointer"
EndSection

Section "InputDevice"

# generated from default
Identifier "Keyboard0"
Driver "keyboard"
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 "Monitor"
Identifier "Monitor0"
VendorName "Unknown"
ModelName "Unknown"
HorizSync 60.0 - 100.0
VertRefresh 60.0 - 100.0
Option "DPMS"
EndSection

Section "Device"
Identifier "nvidia"
Driver "nvidia"
BusID "PCI:1:0:0"
EndSection

Section "Device"
Identifier "intel"
Driver "modesetting"
EndSection

Section "Screen"
Identifier "nvidia"
Device "nvidia"
Monitor "Monitor0"
DefaultDepth 24
Option "AllowEmptyInitialConfiguration"
Option "RegistryDwords" "PrefLevelSrc=0x2222"
Option "TripleBuffer" "True"
SubSection "Display"
Depth 24
Modes "nvidia-auto-select"
EndSubSection
EndSection

Section "Screen"
Identifier "intel"
Device "intel"
Monitor "Monitor0"
EndSection









share|improve this question





















  • What is external monitor resolution? Is it 4:3? Do you have desktop mirrored to have the same picture on both screens? If you have mirrored picture than the resolution will be the same on both.
    – nobody
    Apr 9 at 11:03














up vote
1
down vote

favorite












I recently (today) installed Nvidia graphic drivers on my laptop, I followed the instruction on the tutorial and generated a xorg.conf file using nvidia-xconfig. I have am using a laptop and have plugged an external montior to it, The external monitor's resolution is fine however the main laptop screen has gone to 4:3 resolution. I have no idea what's in the xorg.conf file, I have never seen anything like this, can anyone help me changing the screen resolution back to 16:9, 1366x768.



Here is the xorg.conf file.



# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig: version 390.48 (buildmeister@swio-display-x86-rhel47-07) Thu Mar 22 01:07:32 PDT 2018


Section "ServerLayout"
Identifier "layout"
Screen 0 "nvidia" 0 0
Inactive "intel"
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "Mouse0" "CorePointer"
EndSection

Section "InputDevice"

# generated from default
Identifier "Keyboard0"
Driver "keyboard"
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 "Monitor"
Identifier "Monitor0"
VendorName "Unknown"
ModelName "Unknown"
HorizSync 60.0 - 100.0
VertRefresh 60.0 - 100.0
Option "DPMS"
EndSection

Section "Device"
Identifier "nvidia"
Driver "nvidia"
BusID "PCI:1:0:0"
EndSection

Section "Device"
Identifier "intel"
Driver "modesetting"
EndSection

Section "Screen"
Identifier "nvidia"
Device "nvidia"
Monitor "Monitor0"
DefaultDepth 24
Option "AllowEmptyInitialConfiguration"
Option "RegistryDwords" "PrefLevelSrc=0x2222"
Option "TripleBuffer" "True"
SubSection "Display"
Depth 24
Modes "nvidia-auto-select"
EndSubSection
EndSection

Section "Screen"
Identifier "intel"
Device "intel"
Monitor "Monitor0"
EndSection









share|improve this question





















  • What is external monitor resolution? Is it 4:3? Do you have desktop mirrored to have the same picture on both screens? If you have mirrored picture than the resolution will be the same on both.
    – nobody
    Apr 9 at 11:03












up vote
1
down vote

favorite









up vote
1
down vote

favorite











I recently (today) installed Nvidia graphic drivers on my laptop, I followed the instruction on the tutorial and generated a xorg.conf file using nvidia-xconfig. I have am using a laptop and have plugged an external montior to it, The external monitor's resolution is fine however the main laptop screen has gone to 4:3 resolution. I have no idea what's in the xorg.conf file, I have never seen anything like this, can anyone help me changing the screen resolution back to 16:9, 1366x768.



Here is the xorg.conf file.



# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig: version 390.48 (buildmeister@swio-display-x86-rhel47-07) Thu Mar 22 01:07:32 PDT 2018


Section "ServerLayout"
Identifier "layout"
Screen 0 "nvidia" 0 0
Inactive "intel"
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "Mouse0" "CorePointer"
EndSection

Section "InputDevice"

# generated from default
Identifier "Keyboard0"
Driver "keyboard"
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 "Monitor"
Identifier "Monitor0"
VendorName "Unknown"
ModelName "Unknown"
HorizSync 60.0 - 100.0
VertRefresh 60.0 - 100.0
Option "DPMS"
EndSection

Section "Device"
Identifier "nvidia"
Driver "nvidia"
BusID "PCI:1:0:0"
EndSection

Section "Device"
Identifier "intel"
Driver "modesetting"
EndSection

Section "Screen"
Identifier "nvidia"
Device "nvidia"
Monitor "Monitor0"
DefaultDepth 24
Option "AllowEmptyInitialConfiguration"
Option "RegistryDwords" "PrefLevelSrc=0x2222"
Option "TripleBuffer" "True"
SubSection "Display"
Depth 24
Modes "nvidia-auto-select"
EndSubSection
EndSection

Section "Screen"
Identifier "intel"
Device "intel"
Monitor "Monitor0"
EndSection









share|improve this question













I recently (today) installed Nvidia graphic drivers on my laptop, I followed the instruction on the tutorial and generated a xorg.conf file using nvidia-xconfig. I have am using a laptop and have plugged an external montior to it, The external monitor's resolution is fine however the main laptop screen has gone to 4:3 resolution. I have no idea what's in the xorg.conf file, I have never seen anything like this, can anyone help me changing the screen resolution back to 16:9, 1366x768.



Here is the xorg.conf file.



# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig: version 390.48 (buildmeister@swio-display-x86-rhel47-07) Thu Mar 22 01:07:32 PDT 2018


Section "ServerLayout"
Identifier "layout"
Screen 0 "nvidia" 0 0
Inactive "intel"
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "Mouse0" "CorePointer"
EndSection

Section "InputDevice"

# generated from default
Identifier "Keyboard0"
Driver "keyboard"
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 "Monitor"
Identifier "Monitor0"
VendorName "Unknown"
ModelName "Unknown"
HorizSync 60.0 - 100.0
VertRefresh 60.0 - 100.0
Option "DPMS"
EndSection

Section "Device"
Identifier "nvidia"
Driver "nvidia"
BusID "PCI:1:0:0"
EndSection

Section "Device"
Identifier "intel"
Driver "modesetting"
EndSection

Section "Screen"
Identifier "nvidia"
Device "nvidia"
Monitor "Monitor0"
DefaultDepth 24
Option "AllowEmptyInitialConfiguration"
Option "RegistryDwords" "PrefLevelSrc=0x2222"
Option "TripleBuffer" "True"
SubSection "Display"
Depth 24
Modes "nvidia-auto-select"
EndSubSection
EndSection

Section "Screen"
Identifier "intel"
Device "intel"
Monitor "Monitor0"
EndSection






nvidia xorg xrandr xserver






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Apr 9 at 9:05









Sahil

187




187











  • What is external monitor resolution? Is it 4:3? Do you have desktop mirrored to have the same picture on both screens? If you have mirrored picture than the resolution will be the same on both.
    – nobody
    Apr 9 at 11:03
















  • What is external monitor resolution? Is it 4:3? Do you have desktop mirrored to have the same picture on both screens? If you have mirrored picture than the resolution will be the same on both.
    – nobody
    Apr 9 at 11:03















What is external monitor resolution? Is it 4:3? Do you have desktop mirrored to have the same picture on both screens? If you have mirrored picture than the resolution will be the same on both.
– nobody
Apr 9 at 11:03




What is external monitor resolution? Is it 4:3? Do you have desktop mirrored to have the same picture on both screens? If you have mirrored picture than the resolution will be the same on both.
– nobody
Apr 9 at 11:03










1 Answer
1






active

oldest

votes

















up vote
1
down vote



accepted










Okay so after scrounging the web, this is the solution I came up with.
I was using the manually generated xorg.conf file by using nvidia-xconfig. Which wasn't generating the correct config. This is what finally worked for me.



Press ctrl+alt+f2 (or whatever key combination you use to get into command line mode)



Login as the administrator.



If you're using GDM like me go ahead and stop the process, using service gdm stop.



Check if your X-server is running or not. Use ps -C Xorg and then kill the process. kill -9 PID



Use Xorg -configure which will generate xorg.conf.new



now simply move the .new file to the /etc/X11/ directory, using

mv xorg.conf.new /etc/X11/xorg.conf



now restart the GDM
service gdm start



And you're done.






share|improve this answer




















    Your Answer







    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "89"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    convertImagesToLinks: true,
    noModals: false,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













     

    draft saved


    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1023275%2fchanging-screen-resolution-using-xorg-conf-file%23new-answer', 'question_page');

    );

    Post as a guest






























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    1
    down vote



    accepted










    Okay so after scrounging the web, this is the solution I came up with.
    I was using the manually generated xorg.conf file by using nvidia-xconfig. Which wasn't generating the correct config. This is what finally worked for me.



    Press ctrl+alt+f2 (or whatever key combination you use to get into command line mode)



    Login as the administrator.



    If you're using GDM like me go ahead and stop the process, using service gdm stop.



    Check if your X-server is running or not. Use ps -C Xorg and then kill the process. kill -9 PID



    Use Xorg -configure which will generate xorg.conf.new



    now simply move the .new file to the /etc/X11/ directory, using

    mv xorg.conf.new /etc/X11/xorg.conf



    now restart the GDM
    service gdm start



    And you're done.






    share|improve this answer
























      up vote
      1
      down vote



      accepted










      Okay so after scrounging the web, this is the solution I came up with.
      I was using the manually generated xorg.conf file by using nvidia-xconfig. Which wasn't generating the correct config. This is what finally worked for me.



      Press ctrl+alt+f2 (or whatever key combination you use to get into command line mode)



      Login as the administrator.



      If you're using GDM like me go ahead and stop the process, using service gdm stop.



      Check if your X-server is running or not. Use ps -C Xorg and then kill the process. kill -9 PID



      Use Xorg -configure which will generate xorg.conf.new



      now simply move the .new file to the /etc/X11/ directory, using

      mv xorg.conf.new /etc/X11/xorg.conf



      now restart the GDM
      service gdm start



      And you're done.






      share|improve this answer






















        up vote
        1
        down vote



        accepted







        up vote
        1
        down vote



        accepted






        Okay so after scrounging the web, this is the solution I came up with.
        I was using the manually generated xorg.conf file by using nvidia-xconfig. Which wasn't generating the correct config. This is what finally worked for me.



        Press ctrl+alt+f2 (or whatever key combination you use to get into command line mode)



        Login as the administrator.



        If you're using GDM like me go ahead and stop the process, using service gdm stop.



        Check if your X-server is running or not. Use ps -C Xorg and then kill the process. kill -9 PID



        Use Xorg -configure which will generate xorg.conf.new



        now simply move the .new file to the /etc/X11/ directory, using

        mv xorg.conf.new /etc/X11/xorg.conf



        now restart the GDM
        service gdm start



        And you're done.






        share|improve this answer












        Okay so after scrounging the web, this is the solution I came up with.
        I was using the manually generated xorg.conf file by using nvidia-xconfig. Which wasn't generating the correct config. This is what finally worked for me.



        Press ctrl+alt+f2 (or whatever key combination you use to get into command line mode)



        Login as the administrator.



        If you're using GDM like me go ahead and stop the process, using service gdm stop.



        Check if your X-server is running or not. Use ps -C Xorg and then kill the process. kill -9 PID



        Use Xorg -configure which will generate xorg.conf.new



        now simply move the .new file to the /etc/X11/ directory, using

        mv xorg.conf.new /etc/X11/xorg.conf



        now restart the GDM
        service gdm start



        And you're done.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Apr 11 at 5:03









        Sahil

        187




        187



























             

            draft saved


            draft discarded















































             


            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1023275%2fchanging-screen-resolution-using-xorg-conf-file%23new-answer', 'question_page');

            );

            Post as a guest













































































            Popular posts from this blog

            pylint3 and pip3 broken

            Missing snmpget and snmpwalk

            How to enroll fingerprints to Ubuntu 17.10 with VFS491