Tag Archives: ubuntu

StarCraft II on Ubuntu 12.04 crash

After updating to Ubuntu 12.04 StarCraft II started crashing during login with an “ACCESS VIOLATION” error.
I did a quick google search and found this post about it.

Basically the workaround is to turn off a kernes security feature by executing:

sudo sysctl kernel.yama.ptrace_scope=0

You can turn it back on by executing:

sudo sysctl kernel.yama.ptrace_scope=1

Better Fullscreen Flash Detection in Caffeine

Why: I’m currently running Ubuntu 11.10 and I recently discovered Caffeine to help me overcome a problem with the screensaver/screenlock kicking in when watching videos on the web. Unfortunately the option to “Activate for flash video” will not work for iPlayer and yousee.tv, so I added firefox to the list of programs that Caffeine activates for. Although this is working it’s not optimal, since the screensaver/screenlock won’t kick in if I forget to close firefox. So I have been trying to come up with a better solution, that effectively detects fullscreen Flash.

How: I wrote a small bash script called flash_detect.sh that checks if the current window is libflashplayer. I changed the _check_for_Flash method in core.py and made it call flash_detect.sh instead of flash_detect.py.

Download: Better Fullscreen Flash Detection in Caffeine.tar.gz

I had some inspiration for the fullscreen flash detection in anĀ ubuntuforums.org thread