SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
That's interesting about sddm. It hardly seems useful if you don't use runlevel 4. I'd never heard of sddm before this thread in fact, possibly because I have only ever used runlevel 3. I'll experiment with runlevel 4 on my laptop when I upgrade it to 15.0. Hopefully that won't be too much longer.
That's interesting about sddm. It hardly seems useful if you don't use runlevel 4. I'd never heard of sddm before this thread in fact, possibly because I have only ever used runlevel 3. I'll experiment with runlevel 4 on my laptop when I upgrade it to 15.0. Hopefully that won't be too much longer.
BUT, it is exceptionally useful WHEN you use the runlevel 4.
And many people just uses their boxes for a graphical desktop environment, then having also a graphical login manager makes all the sense on the World.
related plasma crashes ( nouveau + 5.10.3 #1 SMP Sat Dec 26 15:18:15)
This all works very well EXCEPT:
When screensaver kicks in, all screens & VTs freeze, can still ssh in, X is gone.
This happens whether I leave it on plasma or on VTs
install from --current
3357841408 Dec 29 19:59 slackware64-current-29_Dec_2020-DVD.iso
5.10.3 #1 SMP
messages gives many of these
segfault at c ip 00007ffab2a079b1 sp 00007ffd6413a630 error
4 in libQt5XcbQpa.so.5.15.2[7ffab29d7000+8f000]
ACPI: \_SB_.PCI0.P0P2.GFX0: failed to evaluate _DSM
1) some posts say QT is the problem: Is there any way to tell whether the QT patch noted at
https://forums.gentoo.org/viewtopic-t-1030398-start-0.html
is on the qt5-5.15.2-x86_64-2 in --current?
2) some posts talk about a problem in xproto
3) some posts say that the problem is in kernel 5.10.3
That's interesting about sddm. It hardly seems useful if you don't use runlevel 4. I'd never heard of sddm before this thread in fact, possibly because I have only ever used runlevel 3. I'll experiment with runlevel 4 on my laptop when I upgrade it to 15.0. Hopefully that won't be too much longer.
In many use cases, there is no reason to run a login manager from the console you're already logged in on. You're already logged in as a user on the console and xwmconfig has been used to set the WM/DE you want to start. Simply running startx will do the same thing as what sddm does (with the extra work of typing your username/password and ensuring the proper WM/DE is selected.
sddm and other login managers are designed for use with starting the system to runlevel 4, and would be the first instance where a user is able to log into the system.
This all works very well EXCEPT:
When screensaver kicks in, all screens & VTs freeze, can still ssh in, X is gone.
This happens whether I leave it on plasma or on VTs
install from --current
3357841408 Dec 29 19:59 slackware64-current-29_Dec_2020-DVD.iso
5.10.3 #1 SMP
messages gives many of these
segfault at c ip 00007ffab2a079b1 sp 00007ffd6413a630 error
4 in libQt5XcbQpa.so.5.15.2[7ffab29d7000+8f000]
ACPI: \_SB_.PCI0.P0P2.GFX0: failed to evaluate _DSM
1) some posts say QT is the problem: Is there any way to tell whether the QT patch noted at
https://forums.gentoo.org/viewtopic-t-1030398-start-0.html
is on the qt5-5.15.2-x86_64-2 in --current?
2) some posts talk about a problem in xproto
3) some posts say that the problem is in kernel 5.10.3
That seems a lot different than my circumstances. I did not have segfaults, nor was I using 5.10.3 kernel, nor any indication of QT problems. Also, you have nvidia graphics card, whereas I am using Intel onboard graphics with i915 driver, no separate video card.
You should open a separate thread for your problem because I think it is different from mine.
That said, if X goes away when the screen blanks, don't allow it to blank. Ever. Because if it does, you won't get X back.
Disable screen blanking when at the command line using the commented out line at the bottom of /etc/rc.d/rc.setterm. Just comment out the normal setterm command above it. You want this one to be in effect:
Code:
/bin/setterm -blank 0 -powersave off -powerdown 0
I left my screen locker enabled in plasma, set to display an image, not a blank screeen, when it locks. In plasma settings, disable the Screen Energy Saving option in the Energy Savings tab of the Power Management settings.
Now, you will spend energy rather than save it, and your screen will never go dark, but at least X won't go away. Hope for a fix in a future kernel.
But again, I think the issues you raise deserve their own thread, as they don't seem related to mine, except for the one symptom of X going away.
I noticed that there are several different threads going on this, each focusing on GPU. This leads me to suspect that at least some of the common problems ( X freezes or crashes & inability to get back to VTs, related to screen saver/blanker) are either in the X.Org X Server ( not sure if pure Wayland installs are immune to the freezes), ACPI, or kernel based.
I updated
x/mesa-20.3.2-x86_64-1.txz:
kernel-huge-5.10.4-x86_64-1.txz
as well as the setterm change, turning off everything but screen dimming in X and added acpi=off to elilo.conf
So far it is stable. To be nice to my screens, I run
Code:
for i in DP-1 DP-2 DP-3 ; do
xrandr --output $i --brightness .09
done
before I leave... (and then return the brightness to 0.90 for working) not sure if this saves energy though.
--- An observation for other people having this problem:
One interesting thing occasionally happened during my experimentation. Starting sddm or xdm first spews the regular lines of text output, then the X screen flashes on, then I am returned to VT looking like X died. If I try other CTL_ALT_Fn up to 7, I could find X on F2 sometimes, F4 sometimes, and F7 sometimes. I am suggesting that people try 1 to 7 before rebooting. Could it be that there is an off-by-1 or other numeric error and setterm or screensaver are locking the wrong thing? I am not familiar enough with the various levels of the server and VTs etc to know where the state is for these, so I could be pushing on a rope here. I mention this because the more 'signs and symptoms' we have, the better the diagnosis.
This problem went away after I upgraded from the 5.10.4 kernel to the 5.10.6 kernel packages. I no longer lose X when the screen blanks, so I've reverted all my power management settings to their original values.
Interesting. Though I never had any interest in KDE/Plasma I did try it initially when it became available in the updates and I suffered from the same problems. I gave up quickly, finding no solutions.
Will give it another go now and see how I fare.
I updated to kernel 5.10.7 and just for safety, reinstalled libdrm libevdev xorg. Other than a bit of background corruption, I have xinerama working properly across 3 2560x1440 screens (one is a 43" 4K TV). Screen saver seems to be ok, and an earlier problem ( something was grabbing the keyboard/graphics so clicking in the display settings window or even Chromium were unusable) having something to do with miniDP or HDP connections, is gone. I still get that behaviour that is different from kdm: I used to run kdm as root from VT1 and it would automagically send me to VT7 which was X. Now I do sddm on VT1, some stdout messages come, X flashes up
and then back to VT1. In the beginning I thought X had failed, but sure enough, there it was on VT7. In the 25 years I have been doing linux, I had never seen that behaviour. Well something new.
there it was on VT7. In the 25 years I have been doing linux, I had never seen that behaviour. Well something new.
The behaviour is due to sddm.conf which stipulates by default "MinimumVT=7". This is new. The auto-switching works fine with some combinations of hardware and software apparently but fails on some others. I mentioned this months ago and was told it is some odd hardware thing but that's not the whole issue nor is it uncommon. LiveSlak for example, auto-switches no problem but every install, even from a full iso, to storage, fails to auto-switch. I have to either hit "Alt-F7" or edit sddm.conf back to "MinimumVT=1". It really should be noted in docs since there seems to be a lot of posts about new installs and upgrades exhibiting this puzzling behaviour.
If you boot with your previous kernel does everything work as before ?
When I install new kernels I always configure the bootloader to give me an option for booting with old kernel just in case the new kernel has something so bad that it makes it difficult to go back without using another boot media. It just happened that once away in a trip (pre smartphone era) I decided to compile a new kernel, I did something wrong with the setup and kernel panicked before I could get a prompt: as a result I had no computer until I got back home some 2 weeks later.
In the following example I not only have the old kernel but even an option for booting a stock kernel from current:
I just use the upgraded kernel to keep things simple. This is a 'production' machine so I like more deterministic settings than experimental. Whatever the causes or interactions that are making X and wayland unstable, they seem to be affecting a wide range of hardware, and also exposing weaknesses in some other 'drivers' ... glad I no longer have the dreaded i810 or i915. The latter seems to be especially vulnerable to whatever is going on.
As with most-things HDMI, people (me included) need to remember to check problems with different cables. The early days of USB were like this. Cheapo cables sometimes were no problem and other times caused intermittent grief. At the same time, there seem to be outrageously expensive cables that I am not sure are any benefit.
I also noticed (in trying to get a DisplayLink adapter going) that HDMI audio seems to be a problem: if the audio pins? or protocols? report errors, this sometimes takes the video link down with it. I would prefer a dialog or log in such a case that says: Video link OK, Audio link Failed, proceeding with Video only. After all, for Monitors, the HDMI audio is less critical than actually getting video in some cases.
At least I have a somewhat stable system at this point.
But:
1) Screensaver and Sleep are still broken
2) "NOUVEAU(0): Backing store disabled" which is very ugly.
3) (EE) NOUVEAU(0): failed to set mode: Permission denied [ has something to do with VTs I think ]
4) (WW) NOUVEAU(0): Option "DPI" is not used
(WW) NOUVEAU(0): Option "PreferredMode" is not used
which means using xrandr to kick the 4K tv to at 2160x1440
5) many USB devices are "tagged by udev as: Keyboard" which may be innocuous
I am slowing trying to solve each of these. As usual, WW and EE and other log messages are like body pain... something might be really bad, or just a mild reminder. The trick is to figure out which.
X.Org X Server 1.20.10
X Protocol Version 11, Revision 0
[ 84656.006] Build Operating System: Slackware 15.0 Slackware Linux Project
[ 84656.006] Current Operating System: Linux macabre.upstairs.net 5.10.8 #1 SMP Sun Jan 17 12:54:46 CS
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.