libera/#devuan/ Sunday, 2024-04-07

rrqbandali: .. here ?03:04
coreshi, i'm running Devuan 5 on a T470 type thinkpad. I closed my lid last night and this morning my desktop was frozen. i can move the mouse cursor but nothing else responds.15:05
coresthis happened before and thought it was the nouveau driver, so i disabled that and rebooted but i guess that wasn't the problem becuase it still happened. i'm not sure what action i set for closing the lid in power settings15:06
coresXorg, XFCE 4.18, xscreensaver15:06
coresit actually says 'xscreensaver-systemd' even though i'm on sysvinit. not sure what that's about yet15:06
ted-iouscores: Do any of your led's change when you hit caps or num lock?15:27
corested-ious: the caps lock led changes when i hit it. there's no num lock led15:31
ted-iousWell that's better than nothing. :)15:31
coresactually i closed the lid early this morning around 3 hours ago and i opened it about 45 minutes ago15:32
ted-iousCan you get to a console with ctrl-alt-f1?15:32
corested-ious: yes, i can15:32
coresthats how i looked through /var/log/syslog.1 and didn't see anything suspicious15:32
coreswhen i switch to a console then switch back to X the top panel with the time, battery, etc updates but when i just have X open, nothing changes15:33
coreswhen i try to launch an X app from the console like $ export DISPLAY=0.0 && xterm; nothing happens on X, no new window and xterm doesn't exit immediately15:36
coresi could just restart x from the console (once i figure out how) but i do also want to find the cause of this so i can prevent it in the future, if possible15:43
rustyaxesyslog.1 would be an old (logrotated) file15:52
rustyaxeso you wouldnt find recent messages there15:52
coresright, i wasn't looking for the most recent messages, i was looking for messages around the time when i closed the lid15:53
gnarfacewithout finding any errors, it's difficult to make meaningful speculations, because it could be anything from a bios bug to a kernel bug to a faulty power supply, to hung sound effect15:55
coresyeah, you're right. i don't even see the lid close event in the syslog.1 file but according to the timestamps, it should be there15:56
gnarfacesome drivers just can't wake up from sleep well even to this day, and if it's actually a nvidia video card, not only will it not ever do that reliably without their non-free drivers, you will also have to edit some of the acpi scripts using examples from their docs15:56
coresi suspected nvidia, so i disabled the nouveau driver: $ lsmod | grep nouveau returns nothing15:59
gnarfacelogging is important, you might want to make sure you have rsyslog installed and verify that the /etc/rsyslog.conf is actually writing the stuff you want to the files you're expecting (i've noticed they've been stripping stuff out of it in recent updates, but if you add stuff back in there just make sure you also add the corresponding lines back into /etc/logrotate.d/rsyslog )15:59
coresi basically followed this: https://docs.nvidia.com/ai-enterprise/deployment-guide-vmware/0.1.0/nouveau.html15:59
gnarfaceremoving nouveau doesn't actually automatically add the non-free nvidia drivers16:00
coresi didn't want to do that either, i didn't want to run with the nvidia gpu at all16:00
coresi'll look into the rsyslog logger16:00
gnarfacemaybe it won't matter if you have two and it's not the primary, but i can't be sure of that16:01
coresfirst i wanted to disable the nvidia gpu in the bios, but that wasn't possible16:01
gnarfacei wouldn't get tunnel vision on just the nvidia card though, it could still be just about anything at this point16:01
coresi do have a /usr/sbin/rsyslogd so that's a start16:02
gnarfaceinstalling perf then running "perf top" as root while it's hung might help16:02
CueXXIIIcores: i have that bug, too… on my laptop it is the screen saver actually locking the display, but due to the closed lid not finding any output on which to display the unlock dialog. i can enter my pasword blind, though, unlock16:06
coresthe first entry in "perf top" is "module_get_kallsym". it was about 20% Overhead for a few perf refresh iterations but now it's gone16:07
CueXXIIIto unlock the session16:07
CueXXIIIcores: you could try first killing all xscreensaver processes16:07
coresCueXXIII: oh ok, my screen was already unlocked. i think i set it to not lock the screen automatically16:07
coresit's not a security issue because i'm leaving this laptop at home16:08
CueXXIIIcores: then your xsession might actuallylock the screen again when it receives a lid_closed event16:09
coresoh ok, so you're saying my X desktop might not look locked but it really is locked?16:09
CueXXIIIthat's the case with my laptop, yes16:09
coreswow you're right. i typed my password and now i'm back in16:10
coresCueXXIII: thanks!16:10
coresthat's freaky...16:10
gnarfacehard to know really what to do about something like this16:12
gnarfacethe typical fallout is: xscreensaver people will blame it on the video drivers, the video driver people will blame it on the window manager, and the window manager people will blame it on xscreensaver, nobody will fix it16:13
gnarfacethen meanwhile in a dark cubicle over at RedHat, some jerks cook up a plan to use it as an excuse to throw the lot of them out and start over from scratch with wayland16:14
gnarfaceand then nothing works16:14
CueXXIIIgnarface: well, it is not THE video driver, i have intel hd graphics16:15
ted-iouscores: So was it screensaver that was messing up or some other locker?16:18
ted-iousOops I meant xscreensaver.16:18
al1r4dhttps://github.com/systemd/systemd/issues/32028?fbclid=IwAR1D-KuggXJ96WpewK9ixUWKLZJ51za0VE6D6VDQZZewoQklm_cxxnZs69g16:20
gnarfacewith xscreensaver, i've noticed some of the screensavers are more stable than others. it varies depending on the drivers and hardware involved of course, but the worst ones are mostly opengl ones16:20
gnarfaceon older hardware that rotoscope one suffers too16:21
gnarfaceseems to require some hardware feature that is nearly ubiquitous today but was not always16:21
CueXXIIIand xscreensaver is really still missing a "just display a random picture without additional effects" screensaver.16:22
|cos|slock from suckless is a good minimalistic screensaver imho16:22
ted-iousCan you kill it from a console and get control back?16:28
ted-iousI remember reading that xscreensaver didn't allow that for security reasons but unfortunately that means you can end up in a really bad situation if it crashes.16:29
fsmithredCueXXIII, you can edit a chosen screensaver and change the command to something that displays a static image.16:30
|cos|ted-ious: what does that even mean? xscreensaver is a process. if it gets killed, it dies and looses control.16:30
ted-iousI don't really know since I'm not a developer.16:31
fsmithredpress a key or move the mouse to get control back.16:31
fsmithredif it's set to lock the screen, then you also need to enter a password16:31
ted-iousBut I think I read that the author didn't like it being possible to kill the process and unlock the screen because somebody could get access to running x applications that way.16:31
|cos|sounds strange.16:32
corested-ious: i guess it was screensaver related16:33
fsmithredIf the screensaver is running and the screen is locked, you can drop to console with ctrl-alt-Fn, log in as the user who started xscreensaver and kill it.16:39
fsmithredjust tested.16:39
fsmithredif you're another user, you can't kill it.16:40
coresCueXXIII: what's your workaround? i'd like to be able to close the lid and not have to enter a password16:42
CueXXIIIcores: then don't run xscreensaver. or configure your desktop to not lock the screen16:42
coresfsmithred: my problem was when i opened my lid again, it didn't look like xscreensaver was still running, i just saw my desktop as i left it last. CueXXIII told me about this problem they had so i typed my password and i was back in again16:43
coresCueXXIII: in the xscreensaver settings i unchecked "lock screen after ..."16:44
coresoh, it's a different setting16:46
coresin the power manager i had close lid set to lock screen16:46
fsmithredI have the screensaver turned off and use power manager to handle the lid.16:53
fsmithredno lock16:53
ted-iouscores: Does xfce have its own settings for screensaving?16:54
CueXXIIIxfce has it's own settings for acpi events like lid close17:05
corested-ious: i'm not sure. i only see two options for screen lock, xscreensaver settings and power management settings17:07
coresi don't see a section in the xfce settings manager for screensaver17:07
ted-iouscores: You missed this. CueXXIII> xfce has it's own settings for acpi events like lid close17:17
fsmithredwhere?17:18
fsmithredCueXXIII, are those acpi settings somewhere other than the power manager settings?17:19
CueXXIIIcores: does it still lock up without dialog?17:20
CueXXIIIfsmithred: that should be those settings there17:20
fsmithredok, thanks17:20
CueXXIIIyou could also put scipts in /etc/acpi/events/17:21
coresCueXXIII: no, it does not lock up without dialog any more. i had already disabled lock in the xscreensaver settings and now i have disabled lock in the xfce power management settings18:42
coresCueXXIII: Xfce Applications menu->Settings->Power Manager->System tab->Security pane->Lock screen when system is going to sleep18:44
coresAnd I set "Laptop Lid" in Power Manager System settings to "When laptop lid is closed: Switch off display"18:44
coresWith these settings, so far so good18:44

Generated by irclog2html.py 2.17.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!