Skip to content

Instantly share code, notes, and snippets.

View 2E0PGS's full-sized avatar

Peter Stevenson 2E0PGS

View GitHub Profile
@2E0PGS
2E0PGS / gigabyte-usb3-fix.md
Last active May 2, 2024 11:56
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"

@2E0PGS
2E0PGS / linux-usb-file-copy-fix.md
Last active April 29, 2024 15:21
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 / vmware-workstation-khugepaged-fix.md
Last active April 29, 2024 04:31
Fixing khugepaged CPU usage VMware Workstation

If you run VMware Workstation 11 or above you may encounter high CPU usage from process khugepaged on Ubuntu 15.04+

The fix is to disable transparent hugepages. It seems Ubuntu has it enabled by default.

You can check the current status on your system by running:

cat /sys/kernel/mm/transparent_hugepage/enabled

cat /sys/kernel/mm/transparent_hugepage/defrag

@2E0PGS
2E0PGS / xbox-one-controller-bluetooth-ubuntu-fix.md
Last active December 20, 2023 06:16
Fix to pair Xbox One S Bluetooth controller on Ubuntu

First things first you need to have a new ish bluetooth adapter I have found in my testing.

It may need to be bluetooth 4 compatible I am not sure but my laptop and phone worked whereas my desktop using a £1 dongle did not.

Once you get a successful pair you may notice the controller still has a blinking light. If this is the case see below.

Install sysfsutils

sudo apt-get install sysfsutils

@2E0PGS
2E0PGS / epsxe-x64-linux-fix.md
Last active September 10, 2022 21:26
How to get ePSXe x64 binary to work on Linux

If you get this error when executing the binary via terminal:

./epsxe_x64: error while loading shared libraries: libSDL_ttf-2.0.so.0: cannot open shared object file: No such file or directory

Fix:

  • sudo apt-get install libsdl-ttf2.0-0

Tested and works on Ubuntu 16.04.2 LTS.

Other deps were already met if not you may need to grab them too:

@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 / Xresources.md
Last active February 2, 2021 17:53
Ambiance / Ambience Colour Theme for XTerm.

Moved to my blog: here

@2E0PGS
2E0PGS / atom-style-hidden-characters-vim.md
Last active February 2, 2021 17:51
Atom style hidden characters for Vim.

Moved to my blog: here

@2E0PGS
2E0PGS / exsi-minimum-ram-workaround.md
Last active October 1, 2020 17:29
Workaround for EXSI minimum RAM requirements.

Moved to my blog: here

@2E0PGS
2E0PGS / winpower-ups-software-vmware.md
Last active October 1, 2020 17:02
Winpower UPS Software VMware

Moved to my blog: here