leopoldek has quit [Remote host closed the connection]
dbuckley has quit [Ping timeout: 264 seconds]
traidare has joined #river
alexherbo2 has joined #river
Inga has joined #river
<Inga>
Hi folks! I have this weird issue with resuming from lid close, and while I think that this is probably not a river issue, I have no idea what can cause it (wlroots? elogind?), so maybe you have any ideas?
<Inga>
I have a pretty simple Alpine setup with elogind, greetd (+agreety) and river (and I disabled suspend-on-lid-close in both elogind and acpi configs, because it was causing audio problems for me).
<Inga>
So the laptop does not go to suspend every time I close the lid, but when I open the lid, I get a black screen. And the only way I found to recover from it is to switch to another terminal (with agetty login prompt, but I can't see it because the screen is black regardless of the terminal), move the mouse around, then switch back to the terminal
<Inga>
where river is running, move the mouse around, and a couple of seconds the screen will slowly fade in from black (and all the other terminals become visible too). Simply moving the mouse around in the terminal where river is running is not enough, I have to switch to another terminal and then back to river.
<Inga>
The weird thing is that when I first log into river, I also get that fade-in effect (as in: I enter my username and password into terminal-based agreety prompt, press enter, the text on the screen disappears (or the screen turns black, which would look the same), and over the next ~half-second, river home screen fades in). And I'm not sure if it's
<Inga>
supposed to do this, but I _think_ that it used to be instant on my previous PC, without any pretty fade-in effects?
<leon-p>
we definitely don't have any fade effects
<Inga>
Oh, and I don't have any lockscreens or anything installed
<leon-p>
(although they would be pretty)
<leon-p>
I wonder if closing the laptop lid disables the output somehow...
<leon-p>
a river log would be helpful probably
<ifreund>
I'd be curious if it happens with seatd rather than elogind
<ifreund>
also, someone just opened an issue that sounds similar, also using elogind
<Inga>
For logs, do I just run `river -log-level debug &>/tmp/river.log`? Sorry, I'm pretty new to all this Linux stuff :)
<ifreund>
I wonder if there was an elogind update or something that changed things
<ifreund>
yeah, anything that collects stderr should be fine
<Inga>
Actually I've had this happening to me for over a week, what a coincidence that someone just opened a similar issue just as I decided to ask this in the chat :)
<Inga>
(I even checked the issue tracker yesterday...)
<Inga>
Just checked and I don't think it was a (recent) elogind update specifically, because Alpine elogind package was last built in August 2023
<Inga>
will check logs and seatd now
<leon-p>
the fade-in is suspicious IMO. I would be really surprised if that's caused by elogind. Fade-ins the big desktops use are done differently
<Inga>
oh and one more thing, even without lid close, I'm not only getting fade-in on startup; when switching to another tty and then back to river, I also get that half-second fade-in before seeing river
Inga has quit [Quit: Client closed]
<leon-p>
maybe that's a new kernel KMS setting or something? haven't kept up with that in a while
tiosgz has joined #river
<tiosgz>
well fwiw i've had a short-lived black screen when switching tty for quite a while; never much of an issue
<tiosgz>
(re-checked just now, it happens only when going back to river. and it doesn't happen on river startup)
<tiosgz>
so it's possible that this is unrelated /shrug
Inga has joined #river
<Inga>
leon-p, switching between text ttys is instantaneous, the fade-in only happens when switching into the tty where river is running
<ifreund>
the tty switching code is all in wlroots, libseat, and either seatd or elogind
<Inga>
just checked, and I'm getting the same problem with lid open on seatd as well. to make things clear, the way I started river with seatd was: log in on text terminal using agetty, start seatd service (without stopping logind service), set XDG_RUNTIME_DIR manually, launch river the same way agreety usually does it.
<Inga>
I also got a lot of logs, and some of them might be relevant. where do I post them?
<ifreund>
any kind of pastebin works, I often use 0x0.st
<Inga>
last entry before the lid close there is at 2024-02-17 14:49:55.081
<Inga>
also I just checked, and it's only the screen that's blank, everything else is definitely still working:
<Inga>
* launch gedit;
<Inga>
* close the lid;
<Inga>
* open the lid;
<Inga>
* type some text while the screen is blank;
<Inga>
* do the manipulations needed to get the screen not blank (via switching to another tty, moving the mouse around, switching back, moving the mouse around);
<Inga>
* observe that the text typed while the screen was blank was actually processed by gedit
kotto has joined #river
<LarstiQ>
does it happen if you skip seatd/elogind/agetty, just straight river launching after logging into console?
<Inga>
LarstiQ, river does not start for me when it cannot create a seat. just to make things clear, agetty is not related to seatd or logind, agetty is the default out-of-the-box login prompt on minimal Alpine, I won't be able to log into console without it :)
<LarstiQ>
check
<Inga>
here is what I'm getting when I try to launch river with seatd service stopped, after logging into console from minimal login prompt (without involving elogind): https://0x0.st/s/wZ5qBIRDfhCyUivb-xPN0Q/Hn_D.noseat
<novakane>
yeah you can't launch river without elogind or seatd, that's normal
<Inga>
yes I thought so, that's why I was surprised by that question :)
<LarstiQ>
I'm just flailing around trying to rule things out, if more knowledgeable people are present, follow their lead :)
<Inga>
one more thing I've just realized: since this is an OLED screen, it could be that what I see as black screen or fade-in is actually brightness set to zero or gradually increasing to the level that was set before the lid close / before switching to text terminal.
<Inga>
but once again, no idea what would be responsible for that.
<novakane>
I don't really see anything obvious in the logs, but then I'm on mobile right now so it's pretty shitty to look at logs
<ifreund>
Inga: to be clear, this is a regression that happened in the past few weeks right? What version of river are you using?
<novakane>
is it a true black screen, or something dark blue, because depending on how powerful the laptop is sometimes you see the default river background colour
<LarstiQ>
how quick is the fadein?
justine has joined #river
<justine>
:close
justine has left #river [#river]
<Inga>
ifreund not sure if this is a regression. I had another laptop before, used river there for 1.5 years, didn't have any problems. Now I got a new laptop (and no longer have the previous one, because I changed jobs and both are work-provided), and have this problem on it from day one. The system configurations were pretty similar on the old one and
<Inga>
the new one, but then IIRC the last time I updated the old one was in December. so it can be something that's different between system configurations, could be hardware difference, or could be something that changed in the last couple of months. my river version is 0.2.6.
peelz has quit [Read error: Connection reset by peer]
<ifreund>
Inga: would you be able to test river's master branch? It uses wlroots 0.17.1 rather than 0.16 which could make a difference
<Inga>
novakane looks like true black screen to me, and also it stays black when I switch to another tty (even though I should see a standard login prompt there, in white text on black background).
<Inga>
but one thing with this screen that I've just realized is that when I set backlight to 0, I get absolutely black screen, as opposed to all the previous laptops that I've had where the screen only became very dim with backlight set to 0.
<ifreund>
actually, testing with the tinywl example compositor in the wlroots repo would be interesting too
<Inga>
LarstiQ, around half-second, plus a couple of seconds before fade-in starts happening (after lid open)
<ifreund>
(it has hardcoded Alt+ESC to exit)
peelz has joined #river
peelz has quit [Changing host]
peelz has joined #river
traidare has quit [Ping timeout: 272 seconds]
<Inga>
ifreund, I will try to build river from main at some point later. I'm not sure where to get tinywl binaries for my system though, or how to build it.
leopoldek has joined #river
<tiosgz>
Inga: hmm, if there's actual fade-in, is it possible the laptop does it? (ig there could be a bios setting or something like that)
<ifreund>
Inga: I don't think anyone distributes tinywl binaries, to build it one would clone the wlroots git repository and run make in the tinywl directory
<Inga>
tiosgz, I'd suspect that it was a hardware issue, if not for the fact that I'm getting the same fade-in when I launch river, or when I switch from working, visible river to another tty and then back
<ifreund>
I think it's most likely an issue lower than river in the software stack, at a guess either wlroots or the linux kernel, but it's hard to say for sure
<ifreund>
if it's reproducible with tinywl as well we can rule out river and move this to the wlroots issue tracker
<Inga>
just installed sway and tried to launch it (with seatd), and while I'm not getting that fade-in effect on startup with sway, I'm still getting black screen on lid close. so yes, the issue is definitely not in river
Inga has quit [Quit: Client closed]
Inga has joined #river
<Inga>
Got a suspicion, rebooted without logging in, the lid close issue is still there (except I couldn't get the screen back on).
<Inga>
Disabled greetd and elogind services, rebooted without logging in, the lid close issue is still there. What the f...
<Inga>
I guess this is a kernel driver bug then, and I should be grateful that with river I can at least recover from it.
<Inga>
Thank you all for the support anyway! :)
elshize has joined #river
elshize has quit [Client Quit]
elshize has joined #river
<ifreund>
no problem! hopefully it gets fixed upsteam soon
pkap has joined #river
tiosgz has quit [Quit: tiosgz]
Inga has quit [Quit: Client closed]
alexherbo2 has quit [Ping timeout: 250 seconds]
Axenntio has joined #river
Axenntio has quit [Remote host closed the connection]
Axenntio has joined #river
Axenntio has quit [Remote host closed the connection]
traidare has joined #river
pkap has quit [Quit: Client closed]
leopoldek has quit [Remote host closed the connection]
traidare has quit [Ping timeout: 256 seconds]
lordmzte has joined #river
Axenntio has joined #river
Axenntio has quit [Remote host closed the connection]
alexherbo2 has joined #river
lordmzte has quit [Quit: WeeChat 4.2.1]
lordmzte has joined #river
Guest59 has joined #river
Guest56 has joined #river
Guest56 has quit [Client Quit]
Guest31 has joined #river
Guest59 has quit [Quit: Client closed]
Guest31 has quit [Client Quit]
Guest66 has joined #river
Guest66 has quit [Quit: Client closed]
Guest22 has joined #river
Guest22 has quit [Quit: Client closed]
angry_vincent has joined #river
leopoldek has joined #river
lordmzte has quit [Quit: WeeChat 4.2.1]
alexherbo2 has quit [Remote host closed the connection]