From 33183104e21ff67b27a67d9e3004ca6d4b9632f9 Mon Sep 17 00:00:00 2001 From: "David T. Sadler" Date: Mon, 19 Jul 2021 22:36:09 +0100 Subject: Remove index.html from atom and sitemap to match urls used on the site --- www/posts/linux/atom.xml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'www/posts/linux') diff --git a/www/posts/linux/atom.xml b/www/posts/linux/atom.xml index febc9d2..a6022d1 100644 --- a/www/posts/linux/atom.xml +++ b/www/posts/linux/atom.xml @@ -2,13 +2,13 @@ The Home of David T. Sadler - All Posts About Linux https://davidtsadler.com/posts/linux/atom.xml - + 2021-06-05T12:00:00Z Xrandr: Failed to Get Size of Gamma for Output Default - https://davidtsadler.com/posts/linux/2021-06-05/xrandr-failed-to-get-size-of-gamma-for-output-default/index.html - + https://davidtsadler.com/posts/linux/2021-06-05/xrandr-failed-to-get-size-of-gamma-for-output-default/ + David T. Sadler. 2021-06-05T12:00:00Z 2021-06-05T12:00:00Z @@ -17,8 +17,8 @@ Modeline &quot;1368x768_60.00&quot; 85.25 1368 1440 1576 1784 768 771 781 798 -hsync +vsync</code></pre><p>This mode is then added with xrandr.</p><pre><code class="shell">$ xrandr --newmode &quot;1368x768_60.00&quot; 85.25 1368 1440 1576 1784 768 771 781 798 -hsync +vsync</code></pre><p>The mode can then be associated with the display.</p><pre><code class="shell">$ xrandr --addmode default 1368x768_60</code></pre><p>Like I said, normally this is all that is required but in this instance the xrandr command kept displaying the below message and the desired resolution would not be applied.</p><pre><code class="shell">xrandr: Failed to get size of gamma for output default</code></pre><p>After several fruitless attempts at fixing this I eventually found that the nomodeset kernel boot option had been set. This instructs the kernel to not load any video drivers and instead use BIOS modes. Apparently many open source drivers have removed support for non-kernel modes and fall back to using a very basic VESA driver. I'm assuming this basic driver does not support the resolution I want.</p><p>With further investigation I found that nomodeset was been specified via grub so removing it meant re-configuring grub by editing /etc/default/grub.</p><pre><code class="shell">$ sudo vim /etc/default/grub</code></pre><p>In this file I located the below line.</p><pre>GRUB_CMDLINE_LINUX_DEFAULT=&quot;quiet splash nomodeset&quot;</pre><p>I edited this line to remove nomodeset and saved the changes.</p><pre>GRUB_CMDLINE_LINUX_DEFAULT=&quot;quiet splash&quot;</pre><p>Now all I needed to do was update grub with the new default settings.</p><pre><code class="shell">$ sudo update-grub</code></pre><p>After a reboot the laptop was using the correct resolution and there was no need to use xrandr.</p><h3>Links</h3><a href="https://askubuntu.com/questions/207175/what-does-nomodeset-do">askubuntu/ question regarding nomodeset does.</a><a href="/posts/linux/">Linux - Read More Posts.</a><p>I don't have comments as I don't want to manage them. You can however contact me at the below address if you want to.</p><a href="mailto:david@davidtsadler.com">Email david@davidtsadler.com</a><h3>License</h3><a href="https://creativecommons.org/licenses/by-sa/4.0/">The contents of this site is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.</a><p>Copyright © 2021 David T. Sadler.</p><a href="/">Return to Homepage.</a> Sudo: sorry, you must have a tty to run sudo - https://davidtsadler.com/posts/linux/2020-07-13/sudo-sorry-you-must-have-a-tty-to-run-sudo/index.html - + https://davidtsadler.com/posts/linux/2020-07-13/sudo-sorry-you-must-have-a-tty-to-run-sudo/ + David T. Sadler. 2020-07-13T12:00:00Z 2020-07-13T12:00:00Z -- cgit v1.2.3-13-gbd6f