12

Hi All,

I am looking at starting a project and was wondering if there was a way to make it so a controller type changed boot conditions. I want to move to linux for my home entertainment and would like to have a ps5 controller boot Lutris and a different controller boot into something like KDE plasma.

Is this a possibility or nonsense?

top 7 comments
sorted by: hot top controversial new old
[-] just_another_person@lemmy.world 3 points 5 months ago

I think the bigger hurdle here is that you need to do some legwork and research, else you would not be here asking this question 😉

It's possible but then I'd ask why? What's the purpose of booting a different DE based on the controller type?

[-] victorz@lemmy.world 0 points 5 months ago

My guess is that they want only the necessary software to run when gaming, which KDE is not. But I'll let OP speak for themselves.

[-] who@feddit.org 2 points 5 months ago

This could use some clarification. Do you mean that you want...

  • Lutris or Plasma (depending on a detected game controller) to automatically launch as soon as your computer finishes booting, instead of the display manager that normally presents a login screen?
  • Lutris to automatically launch when you log in to a Plasma session while your PS5 controller is connected?
  • Lutris to automatically launch whenever you connect a controller while already logged in to a Plasma session?
  • Something else?

The possibilities really depend on what you're after.

[-] Squizzy@lemmy.world 0 points 5 months ago

My understanding is that lutris is a program whereas as Plasma is a desktop environment so I guess I would be looking for plasma to start regardless and if connected to a ps5 controller then open lutris to big picture mode.

I am mainly looking to mirror the current setup of a games console and smart devices from my machine of choice. It is toward usability for the family.

[-] who@feddit.org 1 points 5 months ago* (last edited 5 months ago)

My understanding is that lutris is a program whereas as Plasma is a desktop environment

Yes, that's right.

so I guess I would be looking for plasma to start regardless and if connected to a ps5 controller then open lutris to big picture mode.

Plasma (like many other desktop environments) can automatically launch whatever you like when you log in, if you create an XDG Autostart file for it in the $HOME/.config/autostart/ directory. (Hint: It uses the .desktop file format.)

You could write a script that checks for a Playstation controller and launches Lutris if one is detected. You could then reference that script in the autostart file's Exec= line.

The simplest way I know of to detect a Playstation controller in a shell script would be something like this:

#!/bin/sh
udevadm info -t |grep -q DRIVER=playstation && echo "Hello, Playstation!"

You would have to make the script executable, and replace the echo command at the end with a lutris command line, of course.

Terminology correction to your original post: Booting is something that a computer does when you power it on. Launching a game or game launcher (on a machine that has an OS) is not booting.

[-] superfes@lemmy.world 2 points 5 months ago

Certainly seems like you could make a udev rule to do something along these lines, I know you can execute specific commands /w udev, whether or not you can enable or disable a system service or whatever, I dunno, guess you could always execute a custom start script before WM that decides which WM to start

[-] teppa@piefed.ca 1 points 5 months ago

Do you mind explaining the incentives, why would you want a different controller to boot different things like that?

this post was submitted on 15 Jul 2025
12 points (100.0% liked)

Linux Gaming

22656 readers
20 users here now

Discussions and news about gaming on the GNU/Linux family of operating systems (including the Steam Deck). Potentially a $HOME away from home for disgruntled /r/linux_gaming denizens of the redditarian demesne.

This page can be subscribed to via RSS.

Original /r/linux_gaming pengwing by uoou.

No memes/shitposts/low-effort posts, please.

Resources

WWW:

Discord:

IRC:

Matrix:

Telegram:

founded 2 years ago
MODERATORS