this post was submitted on 10 May 2025
23 points (92.6% liked)

Linux

54064 readers
1823 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 6 years ago
MODERATORS
 

I can log in from tty just fine and faster too sddm is kinda bloated imo, and why it called "Display Manager" instead of "Session Manager"?

top 8 comments
sorted by: hot top controversial new old
[–] Canadian_Cabinet@lemmy.ca 1 points 36 minutes ago

I use SDDM to log in to Sway. Mainly because I started on KDE and am too lazy to figure out a different login manager

[–] flubba86@lemmy.world 2 points 1 hour ago* (last edited 1 hour ago)

The term Display Manager is a vestige of the use of X11.

X11 is a Server/Client protocol.

When a user logs in to an XServer, they are given an Xsession. The user can use that Xsession to create one or more X11 Displays (they are just IDs). The X11 Display ID is passed to the X11 client application (that's what the XDISPLAY environment variable is for). The client apps render their content to that Display ID. This whole thing allows for more than one user to be able to use a single operating system on a single XServer at the same time.

All of that is pretty cumbersome for a user to do themselves in their terminal, that's what Display Managers are for. They:

  • Start the XServer if it isn't started yet
  • Provide a method (eg, login with username and password), to start a new XSession.
  • Use that XSession to create an empty X11 Display.
  • Look up which is your configured default DE or WM
  • Launch the DE or WM with the right parameters, passing it the new XSession and XDisplay

If you're using Wayland, then the architecture is very different. The Display Manager then simply operates as a login screen.

[–] ReversalHatchery@beehaw.org 2 points 3 hours ago* (last edited 3 hours ago)

It's interesting because instead of "display manager" it should be "graphical login manager", and the current "login manager" should be called "session manager". I don't know the origin of the name, though.

[–] mactan@lemmy.ml 6 points 6 hours ago

kde is making an SSDM replacement right now, not sure when it's going to be ready for general use much less early adopters

[–] BananaTrifleViolin@lemmy.world 18 points 10 hours ago* (last edited 10 hours ago) (1 children)

Most people expect a GUI interface to get into their desktop. But you dont have to use one if you dont want. SDDM can log into any desktops you have - KDE but also Gnome or XFCE etc. It can also help select X11 vs Wayland sessions.

There are alternatives like LightDM if you dont like SDDM. Or TTY is fine too. But generally they're not large pieces of software and while they are undoubtedly bloated from what they could be, they are still small and lightweight in the era of Tbs of storage and Gb of memory. The savings you'd get in not using them would be small on the scale of the rest of the OS. Obviously they're useless for none GUI machines / servers.

They're called display managers because historically the concept was added to X11 system where you'd have a stand alone X terminal running locally for the end user with an X server which would then connect to an X display manager on a central machine. This was in the Unix days and shared spaces like governments, universities or corporations and the set up was potentially less hardware intensive allowing cheaper X terminals and an expensive central server.

The concept has gone now - PCs are vastly more poweful and can easily run the entire OS locally, and thin clients are the modern set up if you do want terminals/clients and central servers. The most common scenario is now the display manager running on your local PC, alongside everything else and essentially replicates the TTY login in a GUI form. So yes its basically a session manager but the name is historical and probably won't be going anywhere fast.

[–] sxan@midwest.social 2 points 9 hours ago

Ak-shually.. you're completely right!

But you left out an important option for OP: they can just turn on auto-login and bypass the login screen entirely. If they want any security, they'll need a display manager, but maybe they don't care. Also, while this doesn't apply to them, I discovered accidentally that after I log in to herbstluftwm, it goes directly to screen lock. I don't know what I did to make that happen, but I've realized I can just disable the display manager, have auto-login, and still get security. Probably not as much, and if I ever get around to encrypting home that won't work anymore, but I've been considering doing it because typing my password in twice is a drag.

[–] Oinks@lemmy.blahaj.zone 17 points 10 hours ago* (last edited 10 hours ago)

It's prettier than a TTY and you can pick whether you want a Wayland or an X11 session without having to know the correct startup commands. You can pick between different desktops too. And a Display Manager can offer on-screen keyboard and touchscreen support while a TTY can't (at least GDM does, I'm not sure about SDDM off the top of my head).

Aside from that whatever command you are using in the TTY to launch Plasma might or might not be the same commands SDDM uses, which might or might not lead to issues in setting up the environment. If your environment is fine and you don't care about having to use a physical keyboard then of course you can remove it. It's not exactly load bearing.

[–] spv@lemmy.spv.sh 9 points 11 hours ago

i mean, most of them are celled "display managers" -- lightDM, gDM, lxDM