Nvidia MX150 mobile GPU on Ubuntu with secure boot

I just got a replacement laptop, as my previous Thinkpad T580 started to freeze after > 10 minutes of usage. Luckily my company just replaced the thing, so I didn’t have to think about anything else than reinstalling (since i don’t use coorporate Windows image) and copy in my backup.

The T580 has a Nvidia MX150 GPU alongside with the Intel. I had some issues getting this to work on my old laptop, when I initially installed it with Ubuntu 18.04. Working with the Nvidia driver, pre-summer 2019’ish on Linux, reminded me of trying to get the xserver to work some decades ago. If you don’t know what I’m talking about, pleaae watch Bisqwit trying with SlackWare 3.0 in this video: https://www.youtube.com/watch?v=EanGvOBhr9s

Well, lets forget about the past and watch ahead. Since Ubuntu 19.10 was released, all this Nvidia stuff should be much easier, as Nvidia drivers are now build into Linux and Ubuntu is working to make everything easier.

During installation I selected install third party drivers, and that should more or less be it – it should work. But of course it did not, otherwise I would not have been writing this. Somehow it seemed like Ubuntu was not recognizing the GPU. The prime profile application gave me an option to choose what GPU to use, but it kept using the Intel even though I told it to use Nvidia. After some time of debugging, I learned, that in order to use the Nvidia GPU you have to disable secure boot. I rebooted to BIOS, disabled secure boot, and everything is now working as expected.

LGSM CS:GO not starting

I’m running a small CS:GO server for the local E-Gaming club. It’s based on https://linuxgsm.com/, which makes managing game servers easy.

Today I got a call from the trainer, telling that the server was not running. I have some tasks running every night to check for updates, and my first thought was that something had gone wrong during the update.

when trying to start the server with: “./csgoserver st” it tried to start but immediately stopped again. I inspected the console log file and found hundreds of files, with very few lines in them:

#AppFramework : Unable to load module bin/engine.so!
#Unable to load interface VCvarQuery001 from bin/engine.so, requested from EXE.
Wed Dec 11 16:55:14 CET 2019: Server Quit

Searching google for this did not give me anything related to my issue. Trying to communicate with someone in the LGSM discord channel did not give me any success as well. I tried installing the server again with “./csgoserver i” and I tried the variuos options for updating the server – no luck.

Finally i tried the validate command “./csgoserver v” and even though it seemed to be running forever without anything happening, it finally showed progress, and after 5-7 minutes it finished.

I was now able to start the servers (I have more than one instance, running of the same source) and everything seems to be running just fine.

My assumption is that some kind of download got aborted during an update, and therefore missed or corrupted some files.