View previous topic :: View next topic |
Author |
Message |
davidbryant Tux's lil' helper
Joined: 11 Jun 2020 Posts: 137 Location: Canyon Lake, Texas
|
Posted: Tue Apr 13, 2021 1:55 pm Post subject: DisplayManager |
|
|
This is just a warning / rant to let off steam.
I run emerge --sync and emerge --update (etc.) daily, to keep my system up to date. Usually it goes pretty smoothly. Not today.
Today there was a new package to be installed: gui-libs/display-manager-init. I followed all the instructions to the letter; ran etc-update, and so forth.
When I restarted my system, it didn't go straight to the login screen and the KDE desktop as it always used to do. I was stuck in tty1 with a login prompt. And there was an error message saying that xdm is not installed in my system. That's not surprising. I chose to use sddm as my display manager a long time ago.
Anyway, after a little bit of screwing around I figured out how to fix things up. I had to manually edit a file named /etc/conf.d/display-manager and change the very last line to read "DISPLAYMANAGER=sddm". Now my system boots the way it used to: I can log in as david, and my KDE desktop starts right up.
Anyway, if anyone on the X11 project sees this, maybe y'all could give us poor users better instructions the next time you pull a fast one. Thanks! _________________ David Bryant
Canyon Lake, Texas
Last edited by davidbryant on Wed Apr 14, 2021 12:44 pm; edited 1 time in total |
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 30917 Location: here
|
Posted: Tue Apr 13, 2021 1:59 pm Post subject: |
|
|
eselect news read wrote: | Existing settings from /etc/conf.d/xdm will be migrated to new
/etc/conf.d/display-manager config, however after installation it is
vital not to forget to run either `etc-update` or `dispatch-conf`.
Afterwards check that /etc/conf.d/display-manager contains the
desired value for DISPLAYMANAGER. |
_________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
Anon-E-moose Watchman
Joined: 23 May 2008 Posts: 6098 Location: Dallas area
|
Posted: Tue Apr 13, 2021 2:37 pm Post subject: |
|
|
fedeliallalinea wrote: | eselect news read wrote: | Existing settings from /etc/conf.d/xdm will be migrated to new
/etc/conf.d/display-manager config, however after installation it is
vital not to forget to run either `etc-update` or `dispatch-conf`.
Afterwards check that /etc/conf.d/display-manager contains the
desired value for DISPLAYMANAGER. |
|
To be fair, it's easy to miss that, given that it's not highlighted in the news article nor is it set off so that it gets your attention.
Something like
*********************************
Afterwards check that /etc/conf.d/display-manager contains the desired value for DISPLAYMANAGER.
********************************* _________________ PRIME x570-pro, 3700x, 6.1 zen kernel
gcc 13, profile 17.0 (custom bare multilib), openrc, wayland |
|
Back to top |
|
|
davidbryant Tux's lil' helper
Joined: 11 Jun 2020 Posts: 137 Location: Canyon Lake, Texas
|
Posted: Tue Apr 13, 2021 2:38 pm Post subject: |
|
|
fedeliallalinea wrote: | eselect news read wrote: | Existing settings from /etc/conf.d/xdm will be migrated to new
/etc/conf.d/display-manager config, however after installation it is
vital not to forget to run either `etc-update` or `dispatch-conf`.
Afterwards check that /etc/conf.d/display-manager contains the
desired value for DISPLAYMANAGER. |
|
Well, thanks. I saw no message telling me to read "eselect news" -- just the instruction to run etc-update. But maybe it was my mistake. There's no easy way to check, now. Here's a copy of the instructions -- the ones I saved. But maybe I didn't save everything.
Code: | * Messages for package sys-apps/sysvinit-2.98-r1:
* Log file: /var/log/portage/sys-apps:sysvinit-2.98-r1:20210413-120651.log
* The last/lastb/mesg/mountpoint/sulogin/utmpdump/wall tools have been moved to
* sys-apps/util-linux. The pidof tool has been moved to sys-process/procps.
* Messages for package gui-libs/display-manager-init-1.0-r3:
* Log file: /var/log/portage/gui-libs:display-manager-init-1.0-r3:20210413-120813.log
* The 'xdm' service has been replaced by new 'display-manager'
* service, please switch now:
*
* # rc-update del xdm default
* # rc-update add display-manager default
*
* Remember to run etc-update or dispatch-conf to update the
* config protected service files. |
Maybe there was something about eselect news, and I missed it. I don't think so, though. _________________ David Bryant
Canyon Lake, Texas |
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 30917 Location: here
|
Posted: Tue Apr 13, 2021 3:03 pm Post subject: |
|
|
Anon-E-moose wrote: | To be fair, it's easy to miss that, given that it's not highlighted in the news article nor is it set off so that it gets your attention.
Something like
*********************************
Afterwards check that /etc/conf.d/display-manager contains the desired value for DISPLAYMANAGER.
********************************* |
I agree nevertheless it's wrote even if a highlighting could be done with bash formatting. _________________ Questions are guaranteed in life; Answers aren't.
Last edited by fedeliallalinea on Tue Apr 13, 2021 3:05 pm; edited 1 time in total |
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 30917 Location: here
|
Posted: Tue Apr 13, 2021 3:05 pm Post subject: |
|
|
davidbryant wrote: | Well, thanks. I saw no message telling me to read "eselect news" -- just the instruction to run etc-update. But maybe it was my mistake. There's no easy way to check, now. Here's a copy of the instructions -- the ones I saved. But maybe I didn't save everything. |
All news is
Quote: | 2021-01-30-display-manager-init
Title New OpenRC Display Manager Initializer Scripts
Author Aisha Tammy <gentoo@aisha.cc>
Author Andreas Sturmlechner <asturm@gentoo.org>
Posted 2021-01-30
Revision 6
There has been a refactoring of the old 'xdm' init script into a new
script called 'display-manager', provided by a new package that will
be introduced by your @world update routine as a dependency of
x11-base/xorg-server-1.20.10-r1:
gui-libs/display-manager-init
The package is now in ~arch and will be available to stable users
starting with 2nd March 2021. [1]
Its purpose is to provide the same startup mechanism for your chosen
display manager (like GDM, SDDM etc. [2]) as xdm did previously, but
without depending on x11-base/xorg-server. This is necessary to
support new DMs that no longer depend on Xorg.
Existing settings from /etc/conf.d/xdm will be migrated to new
/etc/conf.d/display-manager config, however after installation it is
vital not to forget to run either `etc-update` or `dispatch-conf`.
Afterwards check that /etc/conf.d/display-manager contains the
desired value for DISPLAYMANAGER.
The old 'xdm' init script is no longer supported and henceforth
removed from x11-base/xorg-server-1.20.10-r1, so it is imperative that
you switch from xdm to display-manager service in default runlevel:
# rc-update del xdm default
# rc-update add display-manager default
The changes are complete and on the next reboot, 'display-manager'
will start your chosen DM.
To switch to the new script without rebooting, run the following
commands in a tty:
# rc-service xdm stop
# rc-service display-manager start
Finally, the following action is necessary *ONLY* if you are running
a) a DM (and rest of system) without Xorg
b) a DM from an overlay, to make sure display-manager persists
# emerge --noreplace gui-libs/display-manager-init
[1] To make this change *now*, and proceed with this news item already,
stable users would need to add the following entries to
/etc/portage/package.accept_keywords [3] and update @world:
~sys-apps/sysvinit-2.98
~x11-apps/xinit-1.4.1
~x11-base/xorg-server-1.20.10
~gui-libs/display-manager-init-1.0
[2] https://wiki.gentoo.org/wiki/Display_manager
[3] https://wiki.gentoo.org/wiki//etc/portage/package.accept_keywords
|
_________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
asturm Developer
Joined: 05 Apr 2007 Posts: 8936
|
Posted: Tue Apr 13, 2021 7:46 pm Post subject: Re: DisplayManager |
|
|
davidbryant wrote: | Anyway, if anyone on the X11 project sees this, maybe y'all could give us poor users better instructions the next time you pull a fast one. Thanks! |
There's only so much you can do.
This kind of etc-update mishap could have happened to you on any xorg-server update in the past. |
|
Back to top |
|
|
dmpogo Advocate
Joined: 02 Sep 2004 Posts: 3267 Location: Canada
|
Posted: Wed Apr 14, 2021 3:21 am Post subject: Re: DisplayManager |
|
|
asturm wrote: | davidbryant wrote: | Anyway, if anyone on the X11 project sees this, maybe y'all could give us poor users better instructions the next time you pull a fast one. Thanks! |
There's only so much you can do.
This kind of etc-update mishap could have happened to you on any xorg-server update in the past. |
It seems something does not work as expected. After installing display-manager-int /etc/conf.d/display-manager actually contains a right string, since this file seems to be a direct cp of present /etc/conf.d/xdm
(has the same time stamp)
However, if you run etc-update later and don't pay attention but just accept new version, I was getting ( here is a diff from etc-update)
Code: |
-DISPLAYMANAGER="sddm"
+DISPLAYMANAGER="xdm"
|
|
|
Back to top |
|
|
davidbryant Tux's lil' helper
Joined: 11 Jun 2020 Posts: 137 Location: Canyon Lake, Texas
|
Posted: Wed Apr 14, 2021 11:15 am Post subject: |
|
|
fedeliallalinea wrote: |
Quote: | 2021-01-30-display-manager-init
...
|
|
Well, now that you mention it, I guess I did read that ... about three months ago. I guess my memory is not as good as an elephant's. _________________ David Bryant
Canyon Lake, Texas |
|
Back to top |
|
|
asturm Developer
Joined: 05 Apr 2007 Posts: 8936
|
Posted: Wed Apr 14, 2021 11:42 am Post subject: Re: DisplayManager |
|
|
dmpogo wrote: | However, if you run etc-update later and don't pay attention but just accept new version, I was getting ( here is a diff from etc-update)
Code: |
-DISPLAYMANAGER="sddm"
+DISPLAYMANAGER="xdm"
|
|
No different to xorg-server updates, you just need to pay attention. |
|
Back to top |
|
|
davidbryant Tux's lil' helper
Joined: 11 Jun 2020 Posts: 137 Location: Canyon Lake, Texas
|
Posted: Wed Apr 14, 2021 12:58 pm Post subject: Re: DisplayManager |
|
|
asturm wrote: | dmpogo wrote: | However, if you run etc-update later and don't pay attention but just accept new version, I was getting ( here is a diff from etc-update)
Code: |
-DISPLAYMANAGER="sddm"
+DISPLAYMANAGER="xdm"
|
|
No different to xorg-server updates, you just need to pay attention. |
As dmpogo pointed out, there was no need for an etc-update of /etc/conf.d/display-manager, because it was already coded correctly before the etc-update ran.
Telling users to take an extra manual step that cannot possibly make the system work any better -- and may break it -- is not a good way to win friends and influence people. _________________ David Bryant
Canyon Lake, Texas |
|
Back to top |
|
|
dbtx Tux's lil' helper
Joined: 20 Jan 2020 Posts: 117
|
Posted: Wed Apr 14, 2021 4:06 pm Post subject: Re: DisplayManager |
|
|
davidbryant wrote: | there was no need for an etc-update |
I prefer dispatch-conf but you generally do need to clean up after emerge and fold in any of upstream's changed defaults and new defaults, or discard them, and that is exactly etc-update's job. And IMO it's good to be reminded (without breaking everything) that root can break things. Once upon a time there was a Linux support forum sig 'somewhere', that said something like, Quote: | Be advised that if I can get you to "su and say" anything without knowing what it does, then your system has a serious security problem that needs to be addressed immediately |
(edit: it was a quote by Paul Vixie of cron fame) |
|
Back to top |
|
|
dmpogo Advocate
Joined: 02 Sep 2004 Posts: 3267 Location: Canada
|
Posted: Thu Apr 15, 2021 5:27 am Post subject: Re: DisplayManager |
|
|
asturm wrote: | dmpogo wrote: | However, if you run etc-update later and don't pay attention but just accept new version, I was getting ( here is a diff from etc-update)
Code: |
-DISPLAYMANAGER="sddm"
+DISPLAYMANAGER="xdm"
|
|
No different to xorg-server updates, you just need to pay attention. |
Yes, but the point is that if I don't do etc-update, everything is fine, because installing display-manager did create a proper config. That is a bit confusing.
I installed display-manager logged out, logged in back - everything fine. Day later etc-update -- not working. A bit confusing, why one even needed etc-update on /etc/conf.d/display-manager ? |
|
Back to top |
|
|
asturm Developer
Joined: 05 Apr 2007 Posts: 8936
|
Posted: Thu Apr 15, 2021 11:12 am Post subject: |
|
|
And my point is that this is exactly the same "issue" you had on an xorg-server update in the past. It is the standard way to carry over configuration files using Portage facilities. |
|
Back to top |
|
|
flyerone n00b
Joined: 19 Nov 2019 Posts: 61 Location: 127 0 0 1
|
Posted: Thu Apr 22, 2021 6:13 pm Post subject: |
|
|
I was caught today by the update of /etc/conf.d/xdm, I'm also using sddm and it was changed to xdm. I'll update on the 1st, 11th and the 22nd in the cute way they priced the Apple II. Yes I've pulled a Wozniac.
The sddm package didn't get rebuilt so I tried that. Looking at the xdm file with couple reboots took me fifteen minutes before I've fired up my tricked out windowmaker, it has been a while. I've also done the etc-update and had to sort the files by date to spot the omission. A search of /var/db/pkg for CONTENTS files with the /etc/conf.d/xdm which came up with nothing. So I search the thing the original poster did. /vent
Why the actual thing couldn't they continue to use the xdm file with the new scheme, so just to share the config file? Perhaps it didn't play well.
I was done venting, I've just tried to find it myself before reading this. The eselect news has eluded me as I've had updates since march 2nd. Should this be adressed on the xorg wiki? |
|
Back to top |
|
|
|