How to copy custom Xorg.conf settings automatically on each boot

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








up vote
0
down vote

favorite












My issue is with an external graphics card that I sometimes use. When it is plugged in, LXDE changes the DPI settings and text/other items becomes unreadable.



The solution is copying this line into each of the "Screen" sections in "/etc/X11/xorg.conf""
Option "DPI" "96 x 96"



However, the issue is that when I disconnect/reconnect the external graphics card, the settings are reset to their defaults and I have to manually enter these settings again and reboot.



What I would like to do is make sure that my custom xorg.conf file is copied over early-on in the loading of the LXDE environment, this way the settings are permanently saved. (Or otherwise make the changes to xorg.conf permanent.)










share|improve this question





















  • Found Solution: I needed to create this directory: /etc/X11/xorg.conf.d Then place a file called xorg.conf within containing the sections I am modifying, in my case the the file contained these settings to fix the DPI: Section "Screen" Identifier "intel" Device "intel" Option "DPI" "96 x 96" EndSection Section "Screen" Identifier "nvidia" Device "nvidia" Option "AllowEmptyInitialConfiguration" "on" Option "IgnoreDisplayDevices" "CRT" Option "DPI" "96 x 96" EndSection
    – jdubu420
    Mar 19 at 5:38















up vote
0
down vote

favorite












My issue is with an external graphics card that I sometimes use. When it is plugged in, LXDE changes the DPI settings and text/other items becomes unreadable.



The solution is copying this line into each of the "Screen" sections in "/etc/X11/xorg.conf""
Option "DPI" "96 x 96"



However, the issue is that when I disconnect/reconnect the external graphics card, the settings are reset to their defaults and I have to manually enter these settings again and reboot.



What I would like to do is make sure that my custom xorg.conf file is copied over early-on in the loading of the LXDE environment, this way the settings are permanently saved. (Or otherwise make the changes to xorg.conf permanent.)










share|improve this question





















  • Found Solution: I needed to create this directory: /etc/X11/xorg.conf.d Then place a file called xorg.conf within containing the sections I am modifying, in my case the the file contained these settings to fix the DPI: Section "Screen" Identifier "intel" Device "intel" Option "DPI" "96 x 96" EndSection Section "Screen" Identifier "nvidia" Device "nvidia" Option "AllowEmptyInitialConfiguration" "on" Option "IgnoreDisplayDevices" "CRT" Option "DPI" "96 x 96" EndSection
    – jdubu420
    Mar 19 at 5:38













up vote
0
down vote

favorite









up vote
0
down vote

favorite











My issue is with an external graphics card that I sometimes use. When it is plugged in, LXDE changes the DPI settings and text/other items becomes unreadable.



The solution is copying this line into each of the "Screen" sections in "/etc/X11/xorg.conf""
Option "DPI" "96 x 96"



However, the issue is that when I disconnect/reconnect the external graphics card, the settings are reset to their defaults and I have to manually enter these settings again and reboot.



What I would like to do is make sure that my custom xorg.conf file is copied over early-on in the loading of the LXDE environment, this way the settings are permanently saved. (Or otherwise make the changes to xorg.conf permanent.)










share|improve this question













My issue is with an external graphics card that I sometimes use. When it is plugged in, LXDE changes the DPI settings and text/other items becomes unreadable.



The solution is copying this line into each of the "Screen" sections in "/etc/X11/xorg.conf""
Option "DPI" "96 x 96"



However, the issue is that when I disconnect/reconnect the external graphics card, the settings are reset to their defaults and I have to manually enter these settings again and reboot.



What I would like to do is make sure that my custom xorg.conf file is copied over early-on in the loading of the LXDE environment, this way the settings are permanently saved. (Or otherwise make the changes to xorg.conf permanent.)







nvidia lubuntu xorg lxde xserver






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Mar 18 at 15:20









jdubu420

33




33











  • Found Solution: I needed to create this directory: /etc/X11/xorg.conf.d Then place a file called xorg.conf within containing the sections I am modifying, in my case the the file contained these settings to fix the DPI: Section "Screen" Identifier "intel" Device "intel" Option "DPI" "96 x 96" EndSection Section "Screen" Identifier "nvidia" Device "nvidia" Option "AllowEmptyInitialConfiguration" "on" Option "IgnoreDisplayDevices" "CRT" Option "DPI" "96 x 96" EndSection
    – jdubu420
    Mar 19 at 5:38

















  • Found Solution: I needed to create this directory: /etc/X11/xorg.conf.d Then place a file called xorg.conf within containing the sections I am modifying, in my case the the file contained these settings to fix the DPI: Section "Screen" Identifier "intel" Device "intel" Option "DPI" "96 x 96" EndSection Section "Screen" Identifier "nvidia" Device "nvidia" Option "AllowEmptyInitialConfiguration" "on" Option "IgnoreDisplayDevices" "CRT" Option "DPI" "96 x 96" EndSection
    – jdubu420
    Mar 19 at 5:38
















Found Solution: I needed to create this directory: /etc/X11/xorg.conf.d Then place a file called xorg.conf within containing the sections I am modifying, in my case the the file contained these settings to fix the DPI: Section "Screen" Identifier "intel" Device "intel" Option "DPI" "96 x 96" EndSection Section "Screen" Identifier "nvidia" Device "nvidia" Option "AllowEmptyInitialConfiguration" "on" Option "IgnoreDisplayDevices" "CRT" Option "DPI" "96 x 96" EndSection
– jdubu420
Mar 19 at 5:38





Found Solution: I needed to create this directory: /etc/X11/xorg.conf.d Then place a file called xorg.conf within containing the sections I am modifying, in my case the the file contained these settings to fix the DPI: Section "Screen" Identifier "intel" Device "intel" Option "DPI" "96 x 96" EndSection Section "Screen" Identifier "nvidia" Device "nvidia" Option "AllowEmptyInitialConfiguration" "on" Option "IgnoreDisplayDevices" "CRT" Option "DPI" "96 x 96" EndSection
– jdubu420
Mar 19 at 5:38











1 Answer
1






active

oldest

votes

















up vote
0
down vote













Found Solution:



I needed to create this directory:



/etc/X11/xorg.conf.d


Then place a file called xorg.conf within containing the sections I am modifying, in my case the the file contained these settings to fix the DPI:



Section "Screen"
Identifier "intel"
Device "intel"
Option "DPI" "96 x 96"
EndSection

Section "Screen"
Identifier "nvidia"
Device "nvidia"
Option "AllowEmptyInitialConfiguration" "on"
Option "IgnoreDisplayDevices" "CRT"
Option "DPI" "96 x 96"
EndSection


Each time XServer is loaded, it will first generate the default Xorg.conf file, then it will load any changes from xorg.conf.d/*.conf files. Finally the service will start.



I was losing my settings made to xorg.conf because I had to place my modified xorg.conf file in /etc/X11/xorg.conf.d/






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%2f1017017%2fhow-to-copy-custom-xorg-conf-settings-automatically-on-each-boot%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
    0
    down vote













    Found Solution:



    I needed to create this directory:



    /etc/X11/xorg.conf.d


    Then place a file called xorg.conf within containing the sections I am modifying, in my case the the file contained these settings to fix the DPI:



    Section "Screen"
    Identifier "intel"
    Device "intel"
    Option "DPI" "96 x 96"
    EndSection

    Section "Screen"
    Identifier "nvidia"
    Device "nvidia"
    Option "AllowEmptyInitialConfiguration" "on"
    Option "IgnoreDisplayDevices" "CRT"
    Option "DPI" "96 x 96"
    EndSection


    Each time XServer is loaded, it will first generate the default Xorg.conf file, then it will load any changes from xorg.conf.d/*.conf files. Finally the service will start.



    I was losing my settings made to xorg.conf because I had to place my modified xorg.conf file in /etc/X11/xorg.conf.d/






    share|improve this answer
























      up vote
      0
      down vote













      Found Solution:



      I needed to create this directory:



      /etc/X11/xorg.conf.d


      Then place a file called xorg.conf within containing the sections I am modifying, in my case the the file contained these settings to fix the DPI:



      Section "Screen"
      Identifier "intel"
      Device "intel"
      Option "DPI" "96 x 96"
      EndSection

      Section "Screen"
      Identifier "nvidia"
      Device "nvidia"
      Option "AllowEmptyInitialConfiguration" "on"
      Option "IgnoreDisplayDevices" "CRT"
      Option "DPI" "96 x 96"
      EndSection


      Each time XServer is loaded, it will first generate the default Xorg.conf file, then it will load any changes from xorg.conf.d/*.conf files. Finally the service will start.



      I was losing my settings made to xorg.conf because I had to place my modified xorg.conf file in /etc/X11/xorg.conf.d/






      share|improve this answer






















        up vote
        0
        down vote










        up vote
        0
        down vote









        Found Solution:



        I needed to create this directory:



        /etc/X11/xorg.conf.d


        Then place a file called xorg.conf within containing the sections I am modifying, in my case the the file contained these settings to fix the DPI:



        Section "Screen"
        Identifier "intel"
        Device "intel"
        Option "DPI" "96 x 96"
        EndSection

        Section "Screen"
        Identifier "nvidia"
        Device "nvidia"
        Option "AllowEmptyInitialConfiguration" "on"
        Option "IgnoreDisplayDevices" "CRT"
        Option "DPI" "96 x 96"
        EndSection


        Each time XServer is loaded, it will first generate the default Xorg.conf file, then it will load any changes from xorg.conf.d/*.conf files. Finally the service will start.



        I was losing my settings made to xorg.conf because I had to place my modified xorg.conf file in /etc/X11/xorg.conf.d/






        share|improve this answer












        Found Solution:



        I needed to create this directory:



        /etc/X11/xorg.conf.d


        Then place a file called xorg.conf within containing the sections I am modifying, in my case the the file contained these settings to fix the DPI:



        Section "Screen"
        Identifier "intel"
        Device "intel"
        Option "DPI" "96 x 96"
        EndSection

        Section "Screen"
        Identifier "nvidia"
        Device "nvidia"
        Option "AllowEmptyInitialConfiguration" "on"
        Option "IgnoreDisplayDevices" "CRT"
        Option "DPI" "96 x 96"
        EndSection


        Each time XServer is loaded, it will first generate the default Xorg.conf file, then it will load any changes from xorg.conf.d/*.conf files. Finally the service will start.



        I was losing my settings made to xorg.conf because I had to place my modified xorg.conf file in /etc/X11/xorg.conf.d/







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Mar 19 at 5:42









        jdubu420

        33




        33



























             

            draft saved


            draft discarded















































             


            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1017017%2fhow-to-copy-custom-xorg-conf-settings-automatically-on-each-boot%23new-answer', 'question_page');

            );

            Post as a guest













































































            Popular posts from this blog

            GRUB: Fatal! inconsistent data read from (0x84) 0+xxxxxx

            What makes Checkinstall packages not suitable for distribution?

            Running the scala interactive shell from the command line