Skip to main content

Making Screen Resolution Persist on a Linux Machine after Restart

I encountered a situation with a low powered Linux machine wherein the screen resolution would not persist after restart. I used to change the screen resolution under 'Monitor Settings'. The Linux distro in question was a custom build based on OpenSUSE Xfce. That's when I took to creating a new xorg.conf file with necessary parameters!


Steps Involved

Generate a 'modeline' for the most suitable resolution of your monitor. In my case it was 1680 x 1050. The modeline can be generated using:

cvt 1680 1050

Create a file by name xorg.conf with the following contents:


Section “Monitor”
Identifier “Default Monitor”
Modeline "1680x1050_60.00" 146.25 1680 1784 1960 2240  1050 1053 1059 1089 -hsync +vsync
EndSection
 
Section "Screen"
    Identifier "Default Screen"
    Device "Card"
    Monitor "Default Monitor"
    SubSection "Display"
        Modes "1680x1050_60.00"
        Depth 24
    EndSubSection
EndSection

The xorg.conf must now be copied to /etc/X11. Use the below command to do that:

sudo cp xorg.conf /etc/X11

Now restart the machine to see the changes persist.

Note: I did try to directly create the file in /etc/X11 folder but the text editor failed to come up when invoked as 'root' through terminal. As I mentioned above, it was a custom Linux with lot of features absent!


Comments

Popular posts from this blog

Resolving INS-20802: Oracle Net Configuration Assistant failed error on Windows 10

I was all excited about the migration to Windows 10 until I had to install Oracle client 12.1.0.2 on it. The Oracle client installation used to fail miserably at the last stage with this error named INS-20802.


SSL VPN: Configuring and Using Forticlient on Ubuntu, creating a Launcher

Is your primary OS at home Linux and do you use Windows only to connect to your work PC over VPN or to attend meetings? Do you often wish to connect to your work VPN from a Linux PC?  If your answer is 'Yes' to the above questions, I have an answer if your workplace uses Fortinet SSL VPN. Note that it's possible to connect to Fortinet and other VPNs like Cisco VPN from Linux through the inbuilt network manager by installing additional tools but this post would focus on using the standard Forticlient for accessing the resources on your work network.
Obtaining Forticlient The most important thing to note w.r.t. using Forticlient for Ubuntu (or any Linux distro) is to note that the client is not publicly available for download from the official website. You will have to ask your IT department to download the client for you, in case they haven't provided it.

Nginx - Solution for 10060: A connection attempt failed because the connected party did not properly respond

I was in the process of setting up Nginx to serve as the reverse proxy for Nexus Repository Manager OSS. However, the Nexus repository started loading really slowly post this and used to repeatedly display disconnected and reconnected messages. The Nginx log file used to log the below error -

<timestamp> [error] 3240#3632: *1 upstream timed out (10060: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond) while connecting to upstream, client: <ip address="">, server: <fqdn>, request: "GET /nexus HTTP/1.1", upstream: "http://[::1]:8081/nexus", host: "<fqdn>"