I’ve broken Gamescope/Gaming Mode (I think)

I have the HTC ISO installed and wanted to try it without my PC booting directly to Big Picture Mode, so I used: sudo rm -r /etc/sddm.conf.d/ It worked perfectly however it has removed the shortcut to return to gaming mode. I know I can log into BPM at the login screen in the bottom left, but I would like to completely reverse what I’ve done.
I rebased but it didn’t resolve. Help please and thanks!
32 Replies
CheckYourFax
CheckYourFax2mo ago
Unless someone can provide the config files the only way to restore this is to reinstall. Be careful making changes in /etc Next time instead of rm rename the file sudo mv /etc/sddm.conf.d /etc/sddm.conf.d.bak so you can reverse the process works even for folders
samessss.
samessss.OP2mo ago
Thanks, it’s a pretty fresh install so no problem reinstalling.
CheckYourFax
CheckYourFax2mo ago
wait there might be another way you can try first which is rebasing to non-gaming mode and then back and hope it merges itself into /etc/ again this should also restore the shortcut
samessss.
samessss.OP2mo ago
So I did rebase to the HTC ISO but to no avail
CheckYourFax
CheckYourFax2mo ago
and if it doesn't the shortcut itself can be restored with an ujust
samessss.
samessss.OP2mo ago
Is that a simpler option?
CheckYourFax
CheckYourFax2mo ago
please don't blindly delete files in /etc it will very quickly break your install its root-only for a reason
samessss.
samessss.OP2mo ago
Yeah I’m getting the learning curve ha Sorry, explain this to me like the n00b I am please.
CheckYourFax
CheckYourFax2mo ago
ujust --choose one of the commands is to restore the .desktop just gotta scroll through the options to find it, i forgot the name not at a pc right now
samessss.
samessss.OP2mo ago
No worries, appreciate the help!
CheckYourFax
CheckYourFax2mo ago
another option is to go to terminal and type bazzite-session-select gamescope
samessss.
samessss.OP2mo ago
Unfortunately the ujust option to restore said it was already working and the bazzite-session didnt work because I had removed the .conf file Currently if i click 'return to gaming mode' it just goes to my login screen
asen23
asen232mo ago
can you try copying the file from /usr/etc/sddm.conf.d
samessss.
samessss.OP2mo ago
I removed it didn't I
asen23
asen232mo ago
you cannot remove stuff from /usr lol
samessss.
samessss.OP2mo ago
So what did it do when i ran sudo rm -r /etc/sddm.conf.d/ ?
asen23
asen232mo ago
/etc and /usr/etc are different places
samessss.
samessss.OP2mo ago
Right ok I dont have permission to write to /etc
asen23
asen232mo ago
use sudo
samessss.
samessss.OP2mo ago
yep i got some chatgpt help, all recreated# again, thanks for your help! only issue, is the return to gaming mode mode just sends me to my login screen
CheckYourFax
CheckYourFax2mo ago
its because your sddm autologin setup is broken i don't think just copying /usr/etc/sddm.conf.d is going to solve that issue you use gaming mode? maybe there's some user specific setup in sddm that needs to be added i don't use it so i can't really check
asen23
asen232mo ago
i dont, but i figure it wont hurt to try
CheckYourFax
CheckYourFax2mo ago
i dont think gaming mode works in a VM?
asen23
asen232mo ago
need real gpu afaik you could go to tty and switch to desktop tho
CheckYourFax
CheckYourFax2mo ago
true ok let me install bazzite-deck in a VM and I'll get back will be easy to see if there's something specific like username and stuff im gonna just compare files between /usr/etc and /etc
amel
amel2mo ago
GitHub
bazzite/system_files/deck/shared/etc/sddm.conf.d at main · ublue-o...
Bazzite makes gaming and everyday use smoother and simpler across desktop PCs, handhelds, tablets, and home theater PCs. - ublue-os/bazzite
amel
amel2mo ago
or are they the same as /usr/etc/sddm.conf.d/*?
samessss.
samessss.OP2mo ago
Ok I borked it so I’m starting fresh Learnt the hard way by messing with /etc
CheckYourFax
CheckYourFax2mo ago
yeah, don't mess with etc they contain almost all of your system configuration
DisplayServer=wayland

[Autologin]
Relogin=true
Session=gamescope-session.desktop
#User=

[X11]
# Janky workaround for wayland sessions not stopping in sddm, kills
# all active sddm-helper sessions on teardown
DisplayStopCommand=/usr/bin/gamescope-wayland-teardown-workaround
DisplayServer=wayland

[Autologin]
Relogin=true
Session=gamescope-session.desktop
#User=

[X11]
# Janky workaround for wayland sessions not stopping in sddm, kills
# all active sddm-helper sessions on teardown
DisplayStopCommand=/usr/bin/gamescope-wayland-teardown-workaround
Wait what if you uncomment User and put your username there? assuming those files are the same as the ones located in /usr/etc
KruKru
KruKru2mo ago
have the same issue when i reboot just send me back to desktop mode since i accidentally reset my drive
samessss.
samessss.OP2mo ago
I can send you the contents of sddm.conf and you can try recreating it?
amel
amel2mo ago
eh, theoretically you can just copy paste the files in the github folder, remove # from the User= line and add your username, no?

Did you find this page helpful?