forum

Ultimate guide to low-latency osu! on Linux (rev.12)

posted
Total Posts
277
show more
marshallracer
So I tried to install everything through the POL way on Ubuntu 17.10 on my Laptop and I'm kinda stuck with an error message about wine not being able to use TrueType Fonts because of a missing/insufficient Freetype version (starting with the registry editor not working properly and continuing with spitting out errors during dotnet45 install and crashing osu bevor it can download/install anything)
I don't know if I screwed up myself somewhere or if there's some dependency or basic package I overlooked, I reinstalled libfreetype6, wine and POL but still nothing doing
XHPLAYER[_]
developedby
Using wine 1.8.3 results in massive stuttering for me. Updating the version to 3.1 solves that problem, while still having the same amount of latency (somewhat bad, i'm using wayland)
MrFoxLT
Mint 18.3 here, i tried all possible methods but osu keeps restarting on "We are updating your game"
goeo_
i recently successfully installed osu on linux, and here are some neat tips i've collected from mostly franc[e]sco and thepoon, the two osu-on-linux professionals:

1) you can get the same latency as from wine 1.8 on recent wine versions (i've tested this on 3.5) if you use alsa and not pulse. to do this without completely removing pulse, you will need to

WINEPREFIX=whatever WINEARCH=win32 winetricks sound=alsa
WINEPREFIX=whatever WINEARCH=win32 pasuspender -- winecfg

and in the Audio tab, set the proper Output device for your system, click Apply, then Test Sound to make sure it works. Now, you can run your game with pasuspender (so for example,
WINEPREFIX=whatever WINEARCH=win32 pasuspender -- wine 'C:\\osu\osu!.exe'
) and it should work fine!

2) if you use a wacom tablet and you do not drag, you may notice that you go out of your tablet's range much easier than on windows. this is because of a tablet feature where it has two different states of being in proximity, and in range, in which the pen is still close enough that the tablet detects it but not as close as "in proximity". the current linux wacom drivers completely ignore this second state, and only update your pen's location if it's in proximity. but the maintainer of the linuxwacom project has done some work on it (i'm not sure if they're planning to merge it (perhaps as a setting) to the main driver), and this branch is the fixed driver where you can lift your pen as high as you could on windows.

3) approach circles look weird? limit your fps.

while the game is not running, open your osu!.user.cfg, and set the CustomFrameLimit to the highest fps your computer can handle stably. Note that osu! normally shows how many milliseconds it takes to render a frame instead of the fps in the "fps counter", so the math is
fps = 1000/(how many milliseconds it takes to render one frame)
Topic Starter
Franc[e]sco
rewrote most of the guide for wine 3+ with a lot less complicated steps

also added a fix for having both the main menu top-right icons and working japanese fonts thanks to _goeo's testing as well as the wacom hover distance fix
Neil Watts
Hey,
Thanks for having written this - and keeping up to date.

That said, it doesn't seem to work on my side - under Debian stable (stretch).
I've tried so many tutorials but I'm really stuck. Since I wiped my Windows partition in December, I didn't find a way to play osu! again and it's quite troublesome to me.

Here's a video showing my problem, just dumbly copypasting your commands :
https://youtu.be/_cDb7CYPcjE

As usual, wine is going nuts and I don't have a clue of what's happening.
I know your tutorial isn't especially designed for Debian systems, but if you have any idea of where I can start digging to have a chance to make it run, please let me know.
Thanks for your help.
Topic Starter
Franc[e]sco

Neil Watts wrote:

Hey,
Thanks for having written this - and keeping up to date.

That said, it doesn't seem to work on my side - under Debian stable (stretch).
I've tried so many tutorials but I'm really stuck. Since I wiped my Windows partition in December, I didn't find a way to play osu! again and it's quite troublesome to me.

Here's a video showing my problem, just dumbly copypasting your commands :
https://youtu.be/_cDb7CYPcjE

As usual, wine is going nuts and I don't have a clue of what's happening.
I know your tutorial isn't especially designed for Debian systems, but if you have any idea of where I can start digging to have a chance to make it run, please let me know.
Thanks for your help.


thanks for debugging my guide

looks like I made a copypaste mistake, the osu!install command is supposed to be

WINEPREFIX=~/osu-wine WINEARCH=win32 wine ~/Downloads/osu\!install.exe


other than that it looks like the other steps went fine
Neil Watts
Oh my god, seriously, thank you.
https://i.imgur.com/SZHfiTV.png

I was thinking the installation failed because of all the errors wine was throwing in the console, without even trying to understand why there was a command attempting to open osu!install.exe with regedit.

Can't thank you enough, I'll be able to click circles again now.
Feel free to contact me if you need to debug anything under Debian.
ExploXd
hello there. i have got arch linux. i was about to throw this away because no internet connection on wine. but now i figured how to fix that. write "sudo pacman -S lib32-gnutls" and i guess your issue will be fixed.
ExploXd
https://osu.ppy.sh/ss/10759611 do you think i can do anything with this?

specs: HP ProBook 450 G1 (arch linux + KDE)
processor : i5-4200M @ 2.50 ghz
graphics: intergrated
ram: 3.7gb
thats all sadly.

i have got better performance on win.
XHPLAYER[_]
XHPLAYER[_]
Topic Starter
Franc[e]sco

snowbliss wrote:

you messed up a lot of the links when you edited the post to newest revision



they turned out like this . . " https://github.com/Francesco149/loli-ov ... sound.conf "

" https://wiki.archlinux.org/index.php/Ad " --> ur alsa arch wiki link lol

newcomers might be confused


uhh I think that's the new forums' fault, I'm pretty sure I pasted the links correctly lol will try to fix

EDIT: fixed them, thanks for the info

snowbliss wrote:

wine staging is updated for wine 3.5 / 3.6 now

staging might improve quality of gameplay as it offers improvements for "realtime" and "I/O heavy" games/apps


good to know! but staging never affected performance on osu for me and I think arch is the only one that has up to date wine staging so i decided to leave it out

EDIT: guess I'll add that staging is fine too if desired

[Vanilla Coke] wrote:

hello there. i have got arch linux. i was about to throw this away because no internet connection on wine. but now i figured how to fix that. write "sudo pacman -S lib32-gnutls" and i guess your issue will be fixed.


ah, I thought arch had fixed this by now, guess I'll readd this to the guide, thanks for testing

[Vanilla Coke] wrote:

https://osu.ppy.sh/ss/10759611 do you think i can do anything with this?

specs: HP ProBook 450 G1 (arch linux + KDE)
processor : i5-4200M @ 2.50 ghz
graphics: intergrated
ram: 3.7gb
thats all sadly.

i have got better performance on win.


if you already tried everything on https://wiki.archlinux.org/index.php/intel_graphics I recommend trying a barebones window manager like jwm ( https://wiki.archlinux.org/index.php/JWM ) or a lightweight DE with no fancy effects like lxde

KDE plasma is gpu accelerated and might be eating fps

if that still doesn't help, most likely the intel drivers aren't quite as good for your gpu :[ you can also try installing a cutting edge kernel and mesa for newer drivers but from what i can see the stock arch packages for those are already quite cutting-edge
XHPLAYER[_]
Topic Starter
Franc[e]sco

snowbliss wrote:

after a bunch of testing wine 1.8.3 still seems to offer far superior audio latency with winetricks sound=alsa flag


idk how to change winealsa.drv on newer versions of wine, i'm guessing that's the problem ? ?
well, we had a bug report on wine's tracker about it and never managed to figure it out even though I remember bisecting commits and finding exactly which commits broke it

idk, maybe it's cause I'm on pure alsa now but 3.5 latency feels the same as what I had back when I was on 1.8.3 and pulseaudio
XHPLAYER[_]
XHPLAYER[_]
Ryu Sei
Just came back from eternal slumber. Wine 3.0.1 seems to have neat and good compatibility though.

Ubuntu 18.04 with Artful build of Wine. Running it with generic kernel gives me usual latency and lag, while with low-latency kernel gives me better gameplay but... crappy sound (especially when it comes to hit sounds).
AmakawaKen
Hi,
I have question about the dsound regedit setup, I'm lost on how it suppose to be set up exactly in wine regedit. I've done everything else and it all works except for the audio latency issue. I'm using Manjaro kernal 4.14.

Any help will be appreciated.
Forefront
regedit: No such file or directory

regedit: Unable to open the file 'dsound.reg'.


I guess you can manually use regedit to add i
ExploXd
I'm using i3wm and I cant open .osk files. I tried xdg-mime but I don't know how to get it to work. thank you for help.

edit: i know that i can drag it to the window with osu or install firefox to open it but that just takes time. i liked how it worked on my xfce or kde.
Forefront
Suggestions:
1. Install `cabextract`: `sudo apt install cabextract`
2. Install Wine (I mean, you told me to add the repository WITHOUT installing wine?!) `sudo apt install winehq-stable`
3. On Bionic (18.04), you probably don't need the repository (no bionic in repo): `sudo apt install --install-recommends wine-development`
ExploXd
nvm, i figured it out.

btw i use arch. in aur repository is a package named mimeo so install that. you also should install xdg-utils and perl-file-mimeinfo from official repositories.

then download some skin and beatmap (their file extensions must be: .osk and .osz) and in terminal write:

# replace the directory with your directory with these files.
cd directory
# now we'll use the tool we installed. change file.osk with the name of the actual file.
mimeopen -d file.osk
# now it will say if you want to open it with smth so select other if it's there. then write just osu and it will open osu with that file and also it will set as default. if #you don't have an option other in mimeopen then select osu!.
#
#now we'll do this same with .osz extension
mimeopen -d file.osz
# now it will say if you want to open it with smh so select other if it's there. then write just osu and it will open osu with that file and also it will set as default. if #you don't have option other in mimeopen then select osu!.

sorry if it's not clear. i hope that francesco will rewrite this to actual guide. be free to ask me for smth
cykip
fps drop. playonlinux is better oon performance. can help me increase fps?
thnkg
It should noted that the hovering issue on Wacom tablets has been fixed upstream since input-wacom version 0.41.0 and kernel 4.18.
See this github issue: https://github.com/linuxwacom/xf86-input-wacom/issues/14
cynaax
When trying to create a new wine prefix and install .NET 4.6.2, gdiplus and japanese font aliases, I keep getting this specific error "sha256sum mismatch! Rename /home/anthony/.cache/winetricks/dotnet462/dotNetFx462_Full_x86_x64_Slim.exe and try again."

Now, I have tried countless things, reinstalling, deleting Wine and Winetricks from "/home/usr/.cache" But nothing seems to work.

The reason I have switched to Linux is because of the countless issues I get with Windows 10, bsod's, Bad performance and constant bugs, overall the main reason I got bored of Windows was because it lost it's charm and ultimately got boring to use.

I knew switching to Linux would have some worth getting used to. But running osu is my main priority for now.

Hopefully this issue can be resolved quickly.

Thanks for your time!

-Cynical
CaptainKriss

_Cynical_ wrote:

When trying to create a new wine prefix and install .NET 4.6.2, gdiplus and japanese font aliases, I keep getting this specific error "sha256sum mismatch! Rename /home/anthony/.cache/winetricks/dotnet462/dotNetFx462_Full_x86_x64_Slim.exe and try again."

Now, I have tried countless things, reinstalling, deleting Wine and Winetricks from "/home/usr/.cache" But nothing seems to work.

The reason I have switched to Linux is because of the countless issues I get with Windows 10, bsod's, Bad performance and constant bugs, overall the main reason I got bored of Windows was because it lost it's charm and ultimately got boring to use.

I knew switching to Linux would have some worth getting used to. But running osu is my main priority for now.

Hopefully this issue can be resolved quickly.

Thanks for your time!

-Cynical


The download for dotnet462 changed, for now you can just change the dotnet version, dotnet461 should be good.
https://github.com/Winetricks/winetricks/issues/1124
Kruitana
Hi, I've looked through a fair amount of this thread over and I can't find anything addressing this so can anyone help?

The issue is, whenever I get a notification, whether it be from steam or a native desktop notification (KDE Plasma) I get a large amount of stutter and/also tracking issues with my mouse.

I've disabled my compositor when osu launches and I use the proprietary NVIDIA drivers with a 1070.

Any help would be be appreciated, thanks in advance!
Xantis
Hi! I have similar issue as CrypticInsanity. I am using 2 displays and when I play Osu! and have facebook opened on the second display, Osu! suddenly starts to shutter when I receive a message. I have external notifications disabled, but it "blinks" on facebook site. The problem disappears, when the message is read. I'm using Nvidia RTX2070 with proprietary drivers and have VBlank disabled. I have tried to change sync from Auto to display, which is used for Osu! but it didn't help.
Zantetsuken
2000 fps with 1/3 this guide and a 1050Ti, thank you noble man
http://www.webupd8.org/2016/06/how-to-install-latest-nvidia-drivers-in.html

Monitor refreshrate not working ingame tho
GrunclePug
cant get it to launch, osu is stuck updating client info and this is my console output

pugchan@ubuntupc:~$ osu
0034:err:ole:CoGetContextToken apartment not initialised
0043:err:winsock:WSAIoctl -> SIO_ADDRESS_LIST_CHANGE request failed with status 0x2733
0043:err:winsock:WSAIoctl -> SIO_ADDRESS_LIST_CHANGE request failed with status 0x2733
0043:err:winsock:WSAIoctl -> SIO_ADDRESS_LIST_CHANGE request failed with status 0x2733
0043:err:winsock:WSAIoctl -> SIO_ADDRESS_LIST_CHANGE request failed with status 0x2733
0043:err:winediag:SECUR32_initNTLMSP ntlm_auth was not found or is outdated. Make sure that ntlm_auth >= 3.0.25 is in your path. Usually, you can find it in the winbind package of your distribution.
Pata-Kun
According to the last error, the component called "ntlm_auth" (in its 3.0.25 version or above) must be installed on your computer (anywhere in the PATH environment variable, but don't worry about that).
Then it is said that this component is distributed through the "winbind" package. All you have to do is: "sudo apt-get install winbind" (since you are on an Ubuntu OS, apt/apt-get is your default package manager) (after updating the package list, "sudo apt-get update"). Then retry. I don't know if it will clear everything though.

(Sorry for the delayed reply, hope it helps and don't hesitate to reach out again if you still have issues)
marshallracer
as it is usual, once per year I got the whim to freshen up my Linux setup and see how this guide holds up to the test of time and I gotta say .. it works better than ever

Manjaro Cinnamon latest stable (18.04 I believe) with the default 4.19 kernel
Intel Xeon E3-1231v3
Radeon RX580 with free drivers shipped with Manjaro
Creative Sound Blaster X-Fi Xtreme
wine-4.11 Staging

The game runs buttery smooth in windowed mode and while there is still some latency, it is noticably lower than it has been before with -9 ms global offset being spot-on (previously having to struggle with something around ~-20ms)

I should mention that wine-staging is somewhat necessary by now (I think) since regular wine locks threads during osu install and is never able to finish though maybe I also just had some bad luck?
I am honestly surprised how well it runs now, performance-wise on par with Windows

also why is this damn thread still not pinned
abbperson
For some reason I cannot for the life of me get any internet in/out no matter how many different ways I try to config everything before/during/after install.

I'm currently running Ubuntu 19.04 Disco Dingo, mostly stock out of the box
All the steps work out fine, but I can't ever get an auth from bancho once I'm in the game.

If anyone has a similar issue feel free to chime in, I've decided to give up on it for now, unless I have an epiphany about something I did wrong :(
marshallracer

abbperson wrote:

For some reason I cannot for the life of me get any internet in/out no matter how many different ways I try to config everything before/during/after install.

I'm currently running Ubuntu 19.04 Disco Dingo, mostly stock out of the box
All the steps work out fine, but I can't ever get an auth from bancho once I'm in the game.

If anyone has a similar issue feel free to chime in, I've decided to give up on it for now, unless I have an epiphany about something I did wrong :(

Have you tried installing lib32-gnutls?
This has been a common issue in the past which required that package to be installed to make osu connect to the internet
abbperson

marshallracer wrote:

abbperson wrote:

For some reason I cannot for the life of me get any internet in/out no matter how many different ways I try to config everything before/during/after install.

I'm currently running Ubuntu 19.04 Disco Dingo, mostly stock out of the box
All the steps work out fine, but I can't ever get an auth from bancho once I'm in the game.

If anyone has a similar issue feel free to chime in, I've decided to give up on it for now, unless I have an epiphany about something I did wrong :(

Have you tried installing lib32-gnutls?
This has been a common issue in the past which required that package to be installed to make osu connect to the internet



Yea I read about lib32-gnults for arch users, but I can't locate it for ubuntu, my searches are consisting of the default apt repos with Ubuntu 19.04, and some googling.

I found some posts saying to try
`apt-get install libgnults30:i386`
but no package is located.

GUI software browser brings up nothing for gnults

It seems like an arch only package almost, but I'm not foolhardy enough to assume I'm right about that.
marshallracer
It's definitely not Arch-only as I needed that package myself a few years back, though back then it has been at version 2.8 or 2.6 I believe

I've found a link to the 32-bit package, though I can't check rn if it's any useful (I should set up a Ubuntu VM at some point to test stuff) or if you've tried it already
https://packages.ubuntu.com/disco/i386/libgnutls30/download

edit:
https://packages.ubuntu.com/disco/libgnutls28-dev
the 2.8 package I believe has been used
abbperson

marshallracer wrote:

It's definitely not Arch-only as I needed that package myself a few years back, though back then it has been at version 2.8 or 2.6 I believe

I've found a link to the 32-bit package, though I can't check rn if it's any useful (I should set up a Ubuntu VM at some point to test stuff) or if you've tried it already
https://packages.ubuntu.com/disco/i386/libgnutls30/download

edit:
https://packages.ubuntu.com/disco/libgnutls28-dev
the 2.8 package I believe has been used


Thanks I'll give it another install through and through and report back, shame about naming conventions having no standard between package managers.

Edit: libgnutls28-dev was indeed the needed package. osu! seems to be working just fine now, thank you so much!
Akiko Masayoshi
typing "osu" in ternal
sends back
bash: /usr/bin/osu: Permission denied
followed all the steps,
any possable solutions?
show more
Please sign in to reply.

New reply