Skip to content

Instantly share code, notes, and snippets.

View 2E0PGS's full-sized avatar

Peter Stevenson 2E0PGS

View GitHub Profile
@2E0PGS
2E0PGS / nvidia-resolution-dvi-fix.md
Last active July 13, 2021 13:02
Nvidia driver wont detect correct resolution of monitor via DVI on Ubuntu

If you have a Nvidia graphics card and have the Nvidia proprietary dirver installed and notice that it wont detect monitor information over DVI then try apply this:

First run nvidia-xconfig in a terminal to generate the /etc/X11/xorg.conf file.

Then you need to lookup your monitors specifications to find its Horizontal and Vertical refresh rates.

The edit the xorg config like so:

sudo nano /etc/X11/xorg.conf

@2E0PGS
2E0PGS / linux-usb-file-copy-fix.md
Last active April 12, 2024 13:19
Fix Ubuntu and other Linux slow/hanging file copying via USB.

If your running a x64 bit Ubuntu or other Linux and find USB transfers hang at the end apply this fix:

echo $((16*1024*1024)) > /proc/sys/vm/dirty_background_bytes
echo $((48*1024*1024)) > /proc/sys/vm/dirty_bytes

I suggest you edit your /etc/rc.local file to make this change persistant across reboots.

sudo nano /etc/rc.local

@2E0PGS
2E0PGS / gigabyte-usb3-fix.md
Last active January 18, 2023 16:18
GIGABYTE GA-970A-DS3 USB3 fix for Ubuntu x64

Ok so for anyone with "GIGABYTE GA-970A-DS3" I have done alot of testing and research. The best config I found to get USB3 working is this:

Edit Grub config:

sudo nano /etc/default/grub

Edit the line that looks like this:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

Keybase proof

I hereby claim:

  • I am 2e0pgs on github.
  • I am 2e0pgs (https://keybase.io/2e0pgs) on keybase.
  • I have a public key ASAXB7hkI7Nkiq8p1ciiWPq1p4CszIFpcXGiNyHXNw-ZEwo

To claim this, I am signing this object: