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.

Turning off a Dell Laptop Monitor: Keyboard shortcut(s)

I am someone who is particular about power savings and I don't leave appliances powered on when not in use. The same applies to computing devices - be it a smartphone or a PC/Laptop. I power off the desktop monitor when I step out for a tea break or hit Fn+F2 on my Lenovo laptop that turns off the display. Recently, I got a Dell Laptop and I was surprised to discover that Dell does not provide any shortcut to turn off the display. This led to some exploration and I found two ways to achieve that which are outlined below - 

The Mutual Fund Mandate Conundrum

I always use the biller option in net banking to set up mutual fund SIPs. This time I was set to help an elderly gentleman to set up a SIP in a scheme run by UTI Mutual fund and that led me to write this post - one after several months in this blog! He has his savings account with a PSU - Canara Bank and I must say that is one tough bank to deal with. Every update requires a branch visit and they charge for literally everything - even for mobile number and email ID updates, separately. It cost us ₹59/- including GST. Tip : If you are unable to reset your net banking password for Canara Bank due to your date of birth not being registered with them, use the Unix default - 01 January 1970!