Gamescope wont open

i think i messed up smth on bazzite , when trying out hyprland (didnt work out for me at all), and gamescope just stopped working, start return-to-gamemode.service is not working , i just getting back to kde desktop again
72 Replies
wolfyreload
wolfyreload2w ago
maybe you still have something layered that is breaking things. What do you get if you run rpm-ostree status does it show any layered packages?
Jason
JasonOP2w ago
Let me check
Jason
JasonOP2w ago
No description
termdisc
termdisc2w ago
👀 rpm-ostree reset
Jason
JasonOP2w ago
:dispair: would it delete stuff ?
termdisc
termdisc2w ago
it'll remove your layered packages
wolfyreload
wolfyreload2w ago
It will just remove what is layered so you can see if it's something that you layered that is breaking stuff
Jason
JasonOP2w ago
but will it break my waydroid ? i dont wanna reinstall a lot of stuff
wolfyreload
wolfyreload2w ago
waydroid is included in Bazzite, you don't have that layered before you reset, just copy the text of all your layered stuff for if you want to re-layer anything again later
Jason
JasonOP2w ago
Same stuff Reboot straight to KDE Something wrong with configs
termdisc
termdisc2w ago
can you show your complete rpm-ostree status?
Jason
JasonOP2w ago
No description
Jason
JasonOP2w ago
it was doubled now i have the list of layered packages still but it is written once it was written twice before resetting
termdisc
termdisc2w ago
the deployment with ● is the current deployment. you currently have no layered packages
Jason
JasonOP2w ago
oh still no gamescope mode tho I can’t even run it manually
wolfyreload
wolfyreload2w ago
you could try re-install steam with ujust fix-reset-steam then see if you can get into gamemode It keeps the games but forces steam to re-install
Jason
JasonOP2w ago
I don’t think it will keep the games that are not from steam I have a lot of non steam games with custom configurations Steam work, big picture mode works, inside KDE
termdisc
termdisc2w ago
why do you say it won't keep the games? the point of the command is to keep the content but reset the Steam app
Jason
JasonOP2w ago
I meant shortcuts Non steam games shortcuts
termdisc
termdisc2w ago
do you have a reason to believe that they will be removed?
Jason
JasonOP2w ago
I have the previous experience When u re-install steam they all gone, shortcuts , not the games tho
termdisc
termdisc2w ago
with this specific command or just in general?
Jason
JasonOP2w ago
Just in general Deleting steam and installing it
termdisc
termdisc2w ago
⤴️
Jason
JasonOP2w ago
I was talking about shortcuts.
Jason
JasonOP2w ago
I am talking about games for emulators etc, that are in steam as shortcuts
termdisc
termdisc2w ago
shortcuts.vdf is in the userdata folder
Jason
JasonOP2w ago
Didn’t resolve the issue still
wolfyreload
wolfyreload2w ago
if you run /usr/bin/return-to-gamemode in the terminal you might be able to see something useful in the logs why it's not working
Jason
JasonOP2w ago
Yeah I tried it earlier Was trying out thing with chat gpt Nothing resolved That’s why I’m here deck@fedora:~$ ~/return-to-gamemode.sh /home/deck/return-to-gamemode.sh: line 18: /etc/sddm.conf.d/zz-steamos-autologin.conf: Permission denied Something like that
wolfyreload
wolfyreload2w ago
oh right try sudo /usr/bin/return-to-gamemode the script runs as a service as a priviledged user
Jason
JasonOP2w ago
Nothing happens lol
wolfyreload
wolfyreload2w ago
Do you have a custom sddm.conf file? e.g. do you get output if you run this? cat /etc/sddm.conf
Jason
JasonOP2w ago
yes
wolfyreload
wolfyreload2w ago
That might be your problem then what is the content of your /etc/sddm.conf If it's set to auto login it will overwrite the steam one and always log you into a single session
Jason
JasonOP2w ago
cand send it text limit
termdisc
termdisc2w ago
click "upload as file" then
Jason
JasonOP2w ago
one sec
Jason
JasonOP2w ago
termdisc
termdisc2w ago
Jason
JasonOP2w ago
trying to edit it so its starts in gamescope will see after reboot Oh. Interesting After reboot it’s goes straight to gamescope But now it can’t go back to desktop :dispair: lol what I put this in sddm.conf [Autologin] Relogin=true Session=gamescope-session.desktop User=(my user name) Do I need to make Relogin=false ?
termdisc
termdisc2w ago
I would just rename the file to be sddm.conf.bak and let it be recreated
To reset everything just clear the /etc/sddm.conf file to go back to the defaults of auto logging into gamemode.
Jason
JasonOP2w ago
Oh. I hope it will work. This is my my only machine
termdisc
termdisc2w ago
you should always have a bootable usb live drive that you can use to gain access and rename the file back
Jason
JasonOP2w ago
I mean I have Clear or delete the file? I deleted file with rm after backing up Now it boots same to desktop again
termdisc
termdisc2w ago
maybe have it just an empty file
Jason
JasonOP2w ago
Hm
termdisc
termdisc2w ago
otherwise, you'll need to wait for @wolfyreload to become available to provide more insight
Jason
JasonOP2w ago
Yeah sure I guess He is here I’ll try to reboot with just cleared sddm.conf Didn’t work. Goes back to desktop Did not recreate contents of sddm.conf
wolfyreload
wolfyreload2w ago
If you set relogin as false and user as blank then you'll get a login screen where the default is gamescope. if you log out you can log into desktop mode by selecting it and logging in again. I'm guessing there might be some extra files in your /etc/sddm.conf.d folder that is causing the issue if I run ll /etc/sddm.conf.d I have the following 3 files, what do you have? -rw-r--r--. 1 root root 165 Jan 30 17:31 kde_settings.conf -rw-r--r--. 1 root root 290 Apr 22 18:32 steamos.conf -rw-r--r--. 1 root root 40 Apr 18 22:43 virtualkbd.conf
Jason
JasonOP2w ago
total 40 -rw-r--r-- 1 root root 29 Apr 21 18:29 00-default.conf -rw-r--r-- 1 root root 2763 Apr 21 13:58 sddm.conf -rw-r--r-- 1 root root 2761 Apr 21 13:58 sddm.conf.bak -rw-r--r-- 1 root root 289 Apr 22 17:59 steamos.conf -rw-r--r-- 1 root root 289 Apr 21 13:58 steamos.conf.bak -rw-r--r-- 1 root root 28 Apr 21 13:58 theme.conf.user -rw-r--r--. 1 root root 40 Apr 21 18:10 virtualkbd.conf -rw-r--r-- 1 root root 40 Apr 21 13:58 virtualkbd.conf.bak -rw-r--r-- 1 root root 46 Apr 22 17:59 zz-steamos-autologin.conf -rw-r--r-- 1 root root 59 Apr 21 13:58 zz-ste yeah i guess a bit much
wolfyreload
wolfyreload2w ago
I'm guessing that this file might be to blame 00-default.conf what's in it?
Jason
JasonOP2w ago
nothing its empty i checked steamos.conf and virtualkbd.conf also empty should it be like that ?
termdisc
termdisc2w ago
GitHub
bazzite/system_files/deck/shared/etc/sddm.conf.d at 674cf6ecfb508bf...
Bazzite makes gaming and everyday use smoother and simpler across desktop PCs, handhelds, tablets, and home theater PCs. - ublue-os/bazzite
Jason
JasonOP2w ago
okay i will copy it one sec Maybe I should copy also default sddm.conf Just don’t know where is it in repository
asen23
asen232w ago
the default for /etc are in /usr/etc
Jason
JasonOP2w ago
i mean yeah sddm.conf should be there if undestand correctly
asen23
asen232w ago
yes
Jason
JasonOP2w ago
oops i meant should not be there if i have it with [Autologin] Relogin=false Session=gamescope-session.desktop User=(my user name) i can boot in gamescope cant go back to desktop
asen23
asen232w ago
you could just copy /usr/etc/sddm.conf.d to /etc/sddm.conf.d
Jason
JasonOP2w ago
u mean from repository ? on github
asen23
asen232w ago
no from your drive
Jason
JasonOP2w ago
deck@fedora:~$ ll /usr/etc/sddm.conf.d total 8 -rw-r--r--. 1 root root 286 Jan 1 1970 steamos.conf -rw-r--r--. 1 root root 40 Jan 1 1970 virtualkbd.conf deck@fedora:~$ ll /etc/sddm.conf.d total 32 -rw-r--r-- 1 root root 2761 Apr 21 13:58 sddm.conf.bak -rw-r--r-- 1 root root 289 Apr 22 18:18 steamos.conf -rw-r--r-- 1 root root 289 Apr 21 13:58 steamos.conf.bak -rw-r--r-- 1 root root 28 Apr 21 13:58 theme.conf.user -rw-r--r--. 1 root root 40 Apr 21 18:10 virtualkbd.conf -rw-r--r-- 1 root root 40 Apr 21 13:58 virtualkbd.conf.bak -rw-r--r-- 1 root root 46 Apr 22 18:44 zz-steamos-autologin.conf -rw-r--r-- 1 root root 59 Apr 21 13:58 zz-steamos-autologin.conf.bak deck@fedora:~$ this is what i have i did copy it to /etc/sddm.conf.d does not work
termdisc
termdisc2w ago
all the random stuff you have added to /etc/sddm.conf.d is probably throwing it off like why is zz-steamos-autologin.conf there? the first google result for that file is on /r/holoiso
wolfyreload
wolfyreload2w ago
Essentially backup what you currently have in /etc/sddm.conf.d and put it somewhere else, then copy the files from /usr/etc/sddm.conf.d/ to /etc/sddm.conf.d/ and rename the current /etc/sddm.conf file. See if that fixes it. Effectively a factory reset of the sddm files to see if that's the problem
Jason
JasonOP2w ago
will do one sec Boots to gamescope by default ✅ Able to return to desktop ✅ Returns to gamescope from desktop ✅
wolfyreload
wolfyreload2w ago
sweet 🙂
termdisc
termdisc2w ago
now don't mess with your sddm files again!
Jason
JasonOP2w ago
Damn Now I learned the lesson I was just trying to hyprland make work lol What a journey Thx guys, appreciate it 😭
termdisc
termdisc2w ago
hyprland probably would be better served with a custom image than layering everything yourself
Jason
JasonOP2w ago
Or probably just using it without gamescope I guess Or writing custom sddm files properly

Did you find this page helpful?