Fix for Unity-based games crashing on Linux (tested on Ubuntu, Debian and openSUSE)

For the longest time, I have had issues with Unity-based games refusing to start and run properly when using the open-source radeonsi driver (Mesa).

Fortunately, a developer from Parabola (using the alias max_sraw on the Steam forums), offered a fix which solved my issue with their game Kona refusing to start. In the mean time, it has proven to become one of the most reliable ways for me to ensure that all my Unity-based games start on all the Linux distributions that I have tested so far (Ubuntu, Debian and openSUSE).

Solution using Steam

If using Steam, simply add the “-force-opengl” argument to the games “launch options”, like so:

  1. Right-click the game in Your Library, and click “Properties
  2. Then, click the “SET LAUNCH OPTIONS…” button under the “GENERALtab
  3. Copy and paste the following code into the input field and click “OK


Note: Make sure to include the leading dash () sign.

For those of You out there also using the radeonsi driver, I would suggest that You also disable “vsync”, by including the “vblank_mode” parameter. This, for me, ensures that the game (and in particular, it’s main menu) does not freeze. If You are experiencing this issue, try adding the following to the games’ launch options instead:

vblank_mode=0 %command% -force-opengl

This effectively disables “vsync” as well as incorporating the aforementioned launch fix.

Non-Steam solution

If You are not using the Steam version of a Unity-based game, I would instead suggest that You create a bash script that incorporates this fix. Generally speaking, something along the lines of the following, should be sufficient:

/path/to/game/[executable] -force-opengl

As described in the previous section, You may also want to disable “vsync” in order for the game not to lock up after launch. If You experience this, instead try:

vblank_mode=0 /path/to/game/[executable] -force-opengl

Note: Obviously, in both cases, replace the path and the [executable] with their appropriate counterparts for the game in question.

A note about Unity and OpenGL version

NoXPhasma” over on Reddit points out that this fix only works for newer games using Unity version 5. Supposedly, games using earlier versions ignores the “–force-opengl” argument on Linux.

NoXPHasma also points out that the game launches using an older OpenGL renderer (version 2). If You are not too concerned about this, I would still suggest that You try this solution.

Thanks for pointing this out!

List of confirmed working Unity titles

I hope this information was useful to some of You. It has completely alleviated all issues for many of the Unity-based games that I play, including (but most likely not limited to);

  • The Long Dark
  • Kona
  • Sky Break
  • Darkwood
  • Frozen State
  • Salt
  • Verdun
  • The Universim (the demo)
  • Wasteland 2

My Nvidia nightmare with Ubuntu 14.04 on a MacBookPro6,2

My fondness of Apple’s software releases has been steadily declining recently, so I decided to switch entirely to a Linux-based operating system. Having recently had very good experiences with Ubuntu’s hardware support on various machines, I decided to try out the latest 14.04 LTS release on my MacBook Pro (Mid 2014) (MacBookPro6,2).

The installation went smoothly – brightness/audio controls, WiFi, Audio and Webcam all seemed to be working without any additional configuration  needed. At this point, I was using the pre-selected open-source Nouveau driver for the Nvidia Geforce 330M GPU.

Continue reading My Nvidia nightmare with Ubuntu 14.04 on a MacBookPro6,2

Authentication Monitor for Debian and Ubuntu

What is Authentication Monitor?

If you have a Linux server running Debian or Ubuntu and want to be notified when certain users gain access to one or more of your critical services (e.g. “ssh/sshd” and “proftpd”), then Authentication Monitor might be just what you’re looking for.

Authentication Monitor runs silently in the background as a system service and monitors a user-defined list of services running on you server. Whenever a user successfully authenticates with one of these services from an unknown IP-address, you will receive an e-mail notifying you of the incident.

Continue reading Authentication Monitor for Debian and Ubuntu

“Connection failed”, when conneting to Avahi advertised Samba-service from OSX Finder

logo_samba.biu7haidj74s00w808s8kcoc4.17ldmg3f9ou8088wk04c40sgo.thIf you own a Mac and have recently tried advertising a Samba-service/share (most likely from a computer running Linux or a NAS-server), you properly also ran into the same problems that I were having, when trying to connect to it from the OSX Finder.

Continue reading “Connection failed”, when conneting to Avahi advertised Samba-service from OSX Finder

Linux 2.6.38 and VIA Chromotion HD 2.0 combination results in blank/black terminal

screen_shot_2011_12_06_at_8_36_20_.46vahpriunmsks84444c0g88g.17ldmg3f9ou8088wk04c40sgo.thAt work, we use HP Thin Clients with a Debian distribution on top. We sometimes buy new hardware and when faced with discontinued models, we of course have to find new ones. Last time we decided on the HP t5550 Thin Client, which were to prove a bit of a challenge when we had to upgrade our Debian installation with a newer kernel.

Continue reading Linux 2.6.38 and VIA Chromotion HD 2.0 combination results in blank/black terminal

How I Got “lm-sensors” Working on my Via Epia SN1800 Motherboard

via.8azvymjas0kc0s4k4s8wg8kk4.17ldmg3f9ou8088wk04c40sgo.thI’ve been the owner of a Via Epia SN1800 motherboard for quite some time now, and ever since I got it, I’ve always wanted to be able to monitor the CPU temperature from inside the operating system.

Since I’m using Linux, this means using the “lm-sensors” program, which in my experience never seems to work “out of the box” without a lot of Google searching and configuration tweaking.

Continue reading How I Got “lm-sensors” Working on my Via Epia SN1800 Motherboard

Egen mail-server hos Telenor

imagegen_aspx_.8jti2zaxdag4gs04kggcocg0s.17ldmg3f9ou8088wk04c40sgo.thThe contents of this article is only available/relevant in Danish.

Jeg har netop skiftet fra Stofanet til Telenor Bredbånd.

Jeg har egen mail-server kørende på min Internet forbindelse. Opsætningen på Stofanet’s netværk var lige til at gå til, da de har en fin vejledning på deres hjemmeside, som beskriver hvordan man gør.

Men efter mit nylige skift til Telenor fandt jeg, til min store forbavselse, at Telenor ikke har oplysninger liggende på deres hjemmeside, som beskriver hvorledes du skal konfigurere din mail-server, så den kan sende og modtage mails på deres netværk.

Continue reading Egen mail-server hos Telenor

iPhone Bluetooth Tethering in Ubuntu

iphone_tethering_waiting.xv1g76k0ei8s8cwo8gck0gw8.17ldmg3f9ou8088wk04c40sgo.thUbuntu is, out of the box, pretty good at handling mobile Internet connections via bluetooth from various mobile devices. It even supports the iPhone to some extent.

I’ve been using Ubuntu’s built in functions to access the Internet from my netbook via my iPhone for quite a while now, but I have never been completely satisfied with the reliability, when connecting/disconnecting to the iPhone.

I take the train to work just about every day, and usually I would have to do some tinkering with both my iPhone and my netbook, every time I wanted to connect to the Internet.

Continue reading iPhone Bluetooth Tethering in Ubuntu

Ubuntu freezing on Via EPIA 10000 M

ubuntu_logo.1edt085urikkokgoc0c880s8g.17ldmg3f9ou8088wk04c40sgo.thI recently tried installing the latest version of Ubuntu on my Via EPIA 10000 M board, to use it as a Media Center. But I experienced some strange behavior.

After about 30 to 60 minutes of use, my system completely locked up.
All I could do to get the system back up, was perform a hard reboot.

Continue reading Ubuntu freezing on Via EPIA 10000 M

Make ‘dd’ talk

harddisk.eakokp9bh40kww4w8kcs4ggko.17ldmg3f9ou8088wk04c40sgo.thI’ve always felt frustrated when using the ‘dd’ program to clone harddisks. It does it’s job beautifully and I’ve come to use it somewhat regularly at work lately, but it’s a pain to have to sit around waiting for it to finish. You simply have no clue how long it’s going to take.

If you’ve ever used ‘dd’ before, you properly know that it produces absolutely no output at all while running. Just like the ‘mv’ and ‘cp’ programs.

To my relief, I finally found a solution to make ‘dd’ display some active output. It requires a second terminal window, though.

Continue reading Make ‘dd’ talk

The sleeping Debian console

debian1.4j6cqlamocu8kok8wgw84c4k.17ldmg3f9ou8088wk04c40sgo.thHere’s a way of altering, or completely disabling, a feature in Debian, causing the console-monitor to black out after 15 minutes with no user inputs.

This is an old feature meant to prevent an image from being frozen solid into CRT monitors, leaving it somewhat obsolete to people using TFT monitors.

The following line completely disables this feature:

setterm -blank 0

How to mount a Samba share in a Linux/UNIX environment

logo_samba.biu7haidj74s00w808s8kcoc4.17ldmg3f9ou8088wk04c40sgo.thThere are certain things I always forget.

This is one of the things that has kept me starring at a blank UNIX terminal, a few times to many. So I decided to finally document the solution I always end up searching for.

Continue reading How to mount a Samba share in a Linux/UNIX environment

How to avoid fsck prompts during the boot sequence

debian1.4j6cqlamocu8kok8wgw84c4k.17ldmg3f9ou8088wk04c40sgo.thI just found this wonderful word of advice, on a subject that has been bugging me for quite some time now, regarding the system disc on my Debian server.

Write FSCKFIX=yes in /etc/default/rcS. You will not face the fsck problem from the next reboot onwards. However, if the disk is corrupted very badly, your presence may be required. I had done some kernel tweaks also for that. I will write about in subsequent tips.