dah85.com

*not* just another blog ;)

Note to self: Only use LTS releases

- Posted in Quick Tip by with comments

I, for some reason, had a VM running Ubuntu 17.04 which is not an LTS release. To be honest, I never knew what all the fuss about LTS was anyway.

As it turns out, unsupported means apt doesn't work!

Upgrade to the next distro by doing:

do-release-upgrade

And let it rip. In my case, I was trying to install an FTP server on a VM that was running Ubuntu 17.04 and apt kept saying that there was no release file, also giving me an error about not being able to securely download a list when trying to update.

WiFi on Acer Swift 5 in Ubuntu

- Posted in Quick Tip by with comments

I have recently in the past few months purchased an Acer Swift 5 laptop and it's an amazing laptop with a full HD 1080 screen, 256mb nvme drive and an i7 processor, plus excellent wifi.

The problem is that with the WiFi, it will drop out occasionally and while I've been able to deal with it just assuming it's an issue with the network or just the noisy 2.4/5ghz band around here, it turns out it's actually an issue with my laptop!

The specific problem is with the power management in Ubuntu for some reason shutting the wifi off when it thinks it needs to, even if I have it plugged into power.

The solution!:

sudo nano /etc/NetworkManager/conf.d/default-wifi-powersave-on.conf

You will see a line that looks like this:

wifi.powersave = 3

We need to change that so it says:

wifi.powersave = 2

The difference being that 3 means power management will be used if available, and 2 means to disable power management.

Once you've made the change, save and reboot. Your wifi will not drop anymore (unless there's an actual issue with your wifi of course)

Let me know if that's helped anyone else with the same thing, for all I know this could affect other laptops, possibly even other brands.