[SOLVED] Gamemoded ERROR: Failed to acquire service name: File exists

Anything related to gaming on Linux Mint including game discussion or questions concerning Steam or Wine.
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Post Reply
User avatar
Pimple
Level 1
Level 1
Posts: 10
Joined: Mon Jul 03, 2023 4:17 pm

[SOLVED] Gamemoded ERROR: Failed to acquire service name: File exists

Post by Pimple »

Running gamemoded has begun to result in an error for me. Since noticing this there are games in Steam I can only run without game mode. I find barely any search results on the error, and nothing that has helped me understand or fix it. Purging all things game mode and reinstalling, including config files, has made no difference.

I'm running Linux Mint 21.3 Cinnamon 64-bit. If anybody has some advice I would appreciate it! Here's the error message:

Code: Select all

user on ~ # gamemoded
v1.6.1
Loading config file [/usr/share/gamemode/gamemode.ini]
ERROR: Failed to acquire service name: File exists
I don't know if these two things are related but when I run vulkaninfo and when running some games in Steam I get this message in the log:

Code: Select all

WARNING: [Loader Message] Code 0 : terminator_CreateInstance: Failed to CreateInstance in ICD 1.  Skipping ICD.
In case it's helpful:
Last edited by Pimple on Mon Feb 19, 2024 7:41 am, edited 2 times in total.
User avatar
MiZoG
Level 8
Level 8
Posts: 2395
Joined: Fri Jan 26, 2018 8:30 pm
Location: Athens, Greece

Re: Gamemoded ERROR: Failed to acquire service name: File exists

Post by MiZoG »

AFAIK gamemoderun service must run as a user service.
When I run gamemoded -t with root privileges I receive a couple of failure messages though not the same with yours.

Your vulkan error message looks related to this bug. Not 100% sure.

Anyway, gamemoderun modifies CPU's behaviour and Vulkan errors have to do with the level of Vulkan support offered by you graphics hardware and/or drivers.
I believe they're not related.
1000
Level 6
Level 6
Posts: 1040
Joined: Wed Jul 29, 2020 2:14 am

Re: Gamemoded ERROR: Failed to acquire service name: File exists

Post by 1000 »

Maybe this app has a bug/missing something.
Because after command

Code: Select all

gamemoded -t
and when is finished
I noticed process in system

Code: Select all

$ pstree -p | grep  game
           |               |-gamemoded(2594070)---{gamemoded}(2594071)
and error with next command

Code: Select all

$ gamemoded 
v1.6.1
Loading config file [/usr/share/gamemode/gamemode.ini]
ERROR: Failed to acquire service name: File exists
You can kill process, for example

Code: Select all

killall gamemoded
But someone has to ask/report the bug if it hasn't been fixed.

I can try search support like this

Code: Select all

$ type -P gamemoded
/usr/bin/gamemoded

Code: Select all

$ apt-file search /usr/bin/gamemoded
gamemode-daemon: /usr/bin/gamemoded

Code: Select all

$ apt-cache show gamemode-daemon | grep 'Source\|Maintainer\|Bugs\|Homepage'
Source: gamemode
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Original-Maintainer: Debian Games Team <pkg-games-devel@lists.alioth.debian.org>
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Homepage: https://github.com/FeralInteractive/gamemode
User avatar
Pimple
Level 1
Level 1
Posts: 10
Joined: Mon Jul 03, 2023 4:17 pm

Re: Gamemoded ERROR: Failed to acquire service name: File exists

Post by Pimple »

Clearly I've managed to mix the gamemoded and gamemoderun commands up in my head. I'll go ahead and not tell you how long I spent looking into things before even posting this thread :)

One wonders what the error message is about but presumably you're not supposed to call the daemon like that anyway, in which case it's not necessarily a bug?

As long as it works which, now that I'm spelling it right, it does, I'm happy. So thanks for the replies!

MiZoG wrote: Sat Feb 17, 2024 6:28 pmYour vulkan error message looks related to this bug. Not 100% sure.
Yeah probably. If that turns out to be an issue I guess I should post another thread, but I haven't looked into that very much at this point.
1000
Level 6
Level 6
Posts: 1040
Joined: Wed Jul 29, 2020 2:14 am

Re: Gamemoded ERROR: Failed to acquire service name: File exists <Solved/Brainfart>

Post by 1000 »

It all depends on the developer's idea.
However ...
From command " man gamemoded "
-t, --test
Run diagnostic tests on the current installation
and do you also have this problem with other things, that if you just want to test something, you can't run it again because something stays in the background?
I guess not.
I know, the test works again. But I don't think that's how we manage daemons.
So, as a courtesy, it could end only this new process when the command ends.
So check if the problem has been fixed and if not, report it to the developers.
Post Reply

Return to “Gaming”