Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[resolved]gamemode renice not working.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
JustCauseWhyNot
Tux's lil' helper
Tux's lil' helper


Joined: 07 Dec 2021
Posts: 124

PostPosted: Sat Mar 09, 2024 6:26 pm    Post subject: [resolved]gamemode renice not working. Reply with quote

Sorry if this should've been placed in gamer section, but the issue is more security related I believe than gamer. Here's
Code:
id
uid=1000(justcausewhynot) gid=1000(justcausewhynot) groups=1000(justcausewhynot),10(wheel),18(audio),27(video),85(usb),97(input),100(users),250(portage),272(plugdev),385(gamemode)
and
Code:
❯ gamemoded -v
gamemode version: v1.8.1

Code:
❯ pkaction --version
pkaction version 124


Fianlly here's everything logged in /var/log/everything/current by metalog during `gamemoded -t` run time

Code:
Mar 09 11:59:29 [polkitd] Started polkitd version 124
Mar 09 11:59:29 [polkitd] Loading rules from directory /etc/polkit-1/rules.d
Mar 09 11:59:29 [polkitd] Loading rules from directory /usr/share/polkit-1/rules.d
Mar 09 11:59:29 [polkitd] Finished loading, compiling and executing 2 rules
Mar 09 11:59:29 [dbus-daemon] [system] Successfully activated service 'org.freedesktop.PolicyKit1'
Mar 09 11:59:29 [polkitd] Acquired the name org.freedesktop.PolicyKit1 on the system bus
Mar 09 11:59:29 [pkexec] pam_unix(polkit-1:session): session opened for user root(uid=0) by (uid=1000)
Mar 09 11:59:29 [pkexec] justcausewhynot: Executing command [USER=root] [TTY=unknown] [CWD=/] [COMMAND=/usr/libexec/cpugovctl set performance]
Mar 09 11:59:29 [pkexec] pam_unix(polkit-1:session): session opened for user root(uid=0) by (uid=1000)
Mar 09 11:59:29 [pkexec] justcausewhynot: Executing command [USER=root] [TTY=unknown] [CWD=/] [COMMAND=/usr/libexec/gpuclockctl 0 set -1 -1 1]
Mar 09 11:59:29 [pkexec] pam_unix(polkit-1:session): session opened for user root(uid=0) by (uid=1000)
Mar 09 11:59:29 [pkexec] justcausewhynot: Executing command [USER=root] [TTY=unknown] [CWD=/] [COMMAND=/usr/libexec/gpuclockctl 0 set 0 0 1]
Mar 09 11:59:29 [pkexec] pam_unix(polkit-1:session): session opened for user root(uid=0) by (uid=1000)
Mar 09 11:59:29 [pkexec] justcausewhynot: Executing command [USER=root] [TTY=unknown] [CWD=/] [COMMAND=/usr/libexec/cpugovctl set ]
Mar 09 11:59:29 [pkexec] pam_unix(polkit-1:session): session opened for user root(uid=0) by (uid=1000)
Mar 09 11:59:29 [pkexec] justcausewhynot: Executing command [USER=root] [TTY=unknown] [CWD=/] [COMMAND=/usr/libexec/cpugovctl set performance]
Mar 09 11:59:29 [pkexec] pam_unix(polkit-1:session): session opened for user root(uid=0) by (uid=1000)
Mar 09 11:59:29 [pkexec] justcausewhynot: Executing command [USER=root] [TTY=unknown] [CWD=/] [COMMAND=/usr/libexec/gpuclockctl 0 set -1 -1 1]
Mar 09 11:59:29 [pkexec] pam_unix(polkit-1:session): session opened for user root(uid=0) by (uid=1000)
Mar 09 11:59:29 [pkexec] justcausewhynot: Executing command [USER=root] [TTY=unknown] [CWD=/] [COMMAND=/usr/libexec/gpuclockctl 0 set 0 0 1]
Mar 09 11:59:29 [pkexec] pam_unix(polkit-1:session): session opened for user root(uid=0) by (uid=1000)
Mar 09 11:59:29 [pkexec] justcausewhynot: Executing command [USER=root] [TTY=unknown] [CWD=/] [COMMAND=/usr/libexec/cpugovctl set ]
Mar 09 11:59:29 [pkexec] pam_unix(polkit-1:session): session opened for user root(uid=0) by (uid=1000)
Mar 09 11:59:29 [pkexec] justcausewhynot: Executing command [USER=root] [TTY=unknown] [CWD=/] [COMMAND=/usr/libexec/cpugovctl set performance]
Mar 09 11:59:30 [pkexec] pam_unix(polkit-1:session): session opened for user root(uid=0) by (uid=1000)
Mar 09 11:59:30 [pkexec] justcausewhynot: Executing command [USER=root] [TTY=unknown] [CWD=/] [COMMAND=/usr/libexec/gpuclockctl 0 set -1 -1 1]
Mar 09 11:59:34 [pkexec] pam_unix(polkit-1:session): session opened for user root(uid=0) by (uid=1000)
Mar 09 11:59:34 [pkexec] justcausewhynot: Executing command [USER=root] [TTY=unknown] [CWD=/] [COMMAND=/usr/libexec/gpuclockctl 0 set 0 0 1]
Mar 09 11:59:34 [pkexec] pam_unix(polkit-1:session): session opened for user root(uid=0) by (uid=1000)
Mar 09 11:59:34 [pkexec] justcausewhynot: Executing command [USER=root] [TTY=unknown] [CWD=/] [COMMAND=/usr/libexec/cpugovctl set ]
Mar 09 11:59:35 [pkexec] pam_unix(polkit-1:session): session opened for user root(uid=0) by (uid=1000)
Mar 09 11:59:35 [pkexec] justcausewhynot: Executing command [USER=root] [TTY=unknown] [CWD=/] [COMMAND=/usr/libexec/cpugovctl set performance]
Mar 09 11:59:35 [pkexec] pam_unix(polkit-1:session): session opened for user root(uid=0) by (uid=1000)
Mar 09 11:59:35 [pkexec] justcausewhynot: Executing command [USER=root] [TTY=unknown] [CWD=/] [COMMAND=/usr/libexec/gpuclockctl 0 set -1 -1 1]
Mar 09 11:59:35 [pkexec] pam_unix(polkit-1:session): session opened for user root(uid=0) by (uid=1000)
Mar 09 11:59:35 [pkexec] justcausewhynot: Executing command [USER=root] [TTY=unknown] [CWD=/] [COMMAND=/usr/libexec/gpuclockctl 0 set 0 0 1]
Mar 09 11:59:35 [pkexec] pam_unix(polkit-1:session): session opened for user root(uid=0) by (uid=1000)
Mar 09 11:59:35 [pkexec] justcausewhynot: Executing command [USER=root] [TTY=unknown] [CWD=/] [COMMAND=/usr/libexec/cpugovctl set ]


Last edited by JustCauseWhyNot on Thu Mar 14, 2024 3:25 pm; edited 1 time in total
Back to top
View user's profile Send private message
JustCauseWhyNot
Tux's lil' helper
Tux's lil' helper


Joined: 07 Dec 2021
Posts: 124

PostPosted: Sat Mar 09, 2024 7:20 pm    Post subject: Reply with quote

I found out the issue. It's the fact that in /etc/security/limits.d/10-gamemode.conf it's set to -10 not -20. The odd thing is that despite me now changing it to -20 gamemoded renice is still failing with anything past 10. Do I need to do something to update polkit configs?

After more testing the max I can set is -19. -20 doesn't work for somereason despite setting -20 in gamemode.conf
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum