Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Recent Apt Update package wayfire causes desktop to logout when HDMI input source is changed on my monitor #217

Closed
bit-bash opened this issue Feb 24, 2024 · 14 comments

Comments

@bit-bash
Copy link

On my RPi 5 running 64-bit bookworm desktop OS, there was a recent apt update that upgraded several packages.
After the upgrade, when I changed the input on my HDMI monitor from INP1 (RPi) to INP2 (PC) then back to INP1 (RPi) my desktop session ended and I was at the login screen. Everything running in my session was lost.
I traced the issue down to the update package wayfire.
If I revert to the previous apt release of wayfire, the problem does not occur. The problem re-occurs when I re-install the update wayfire package.
Recent changes to wayfire from the changelog in the update are:
wayfire (0.7.5-1bpo11+1rpt32) bookworm; urgency=medium

  • Fix for crash when closing pixdecor window on touchscreen
    -- Simon Long [email protected] Tue, 20 Feb 2024 14:07:02 +0000
    wayfire (0.7.5-1bpo11+1rpt31) bookworm; urgency=medium
  • Andri headless changes
    -- Simon Long [email protected] Mon, 05 Feb 2024 08:35:12 +0000
    I'm not sure what my HDMI monitor is doing when I change the input source, but I suspect it's probably something to do with power saving modes. But, what ever my HDMI display is "saying" to the RPi is causing the RPi to end my desktop session and log me out.
@spl237
Copy link

spl237 commented Feb 26, 2024

If you update to the latest version of wayfire now in apt, this should be fixed, but I do not understand why HDMI input changes should have caused the problem to occur - leaving this open until you can confirm that the patch fixes it.

@bit-bash
Copy link
Author

Yes the patch now fixes it when I switch HDMI inputs.
I'm not sure what my monitor is doing, but whatever it was, the RPi saw it and triggered the bug.
Maybe when I switch HDMI inputs, my monitor sends/reports a sleep state or not sure if there's an HDMI signal like "ready" or "online".

@spl237
Copy link

spl237 commented Feb 27, 2024

Ok, thanks for confirming!

@spl237 spl237 closed this as completed Feb 27, 2024
@lurch
Copy link
Collaborator

lurch commented Feb 27, 2024

not sure if there's an HDMI signal like "ready" or "online".

"hotplug" 🙂

@mgriego
Copy link

mgriego commented Jun 22, 2024

I know this issue is close, but I've noticed this happen to me as well even on the latest wayfire package (0.7.5-1~bpo11+1~rpt35), but it's VERY sporadic. I sometimes I turn my monitor off when I leave my Pi running. At least one time, when I came back and turned the monitor back on, wayfire ended my session. The logs indicated the session survived after turning the monitor off. It wasn't until the monitor turned back on that wayfire logged me out, so some signal between the monitor and the Pi on monitor power-on caused wayfire to log the session out. But like I said, this doesn't happen all the time. I now tend to just leave my monitor on so that it doesn't log me out.

Oh, one other thing that might be pertinent is that I use swaylock to lock the session when I step away using a launcher menu entry I created that calls /usr/bin/swaylock -i /usr/share/rpd-wallpaper/aurora.jpg.

@pelkuk
Copy link

pelkuk commented Jul 11, 2024

On my RPi 5 running 64-bit bookworm desktop OS, there was a recent apt update that upgraded several packages. After the upgrade, when I changed the input on my HDMI monitor from INP1 (RPi) to INP2 (PC) then back to INP1 (RPi) my desktop session ended and I was at the login screen. Everything running in my session was lost. I traced the issue down to the update package wayfire. If I revert to the previous apt release of wayfire, the problem does not occur. The problem re-occurs when I re-install the update wayfire package. Recent changes to wayfire from the changelog in the update are: wayfire (0.7.5-1bpo11+1rpt32) bookworm; urgency=medium

  • Fix for crash when closing pixdecor window on touchscreen
    -- Simon Long [email protected] Tue, 20 Feb 2024 14:07:02 +0000
    wayfire (0.7.5-1bpo11+1rpt31) bookworm; urgency=medium
  • Andri headless changes
    -- Simon Long [email protected] Mon, 05 Feb 2024 08:35:12 +0000
    I'm not sure what my HDMI monitor is doing when I change the input source, but I suspect it's probably something to do with power saving modes. But, what ever my HDMI display is "saying" to the RPi is causing the RPi to end my desktop session and log me out.

Hi!
Exactly the same problem! Rpi400 newest version for today 64bit. When I switch my monitor from HDMI (Rpi) input to Display Port (PC) and then back to hdmi, my session ended and I was at the login screen. Everything running in my session was lost!
Exactly the same! :-( I have to return to 32 bit version.

@pelkuk
Copy link

pelkuk commented Jul 12, 2024

So I dont understand why the case is closed, if I face it today with newest upgrades

@spl237
Copy link

spl237 commented Jul 12, 2024

So I dont understand why the case is closed, if I face it today with newest upgrades

Because the issue which was causing the problem as previously reported was found and fixed, and those who had originally reported it confirmed that the problem had gone away.

So if you are still seeing a similar problem, either a) you do not actually have the fix, or b) what you are seeing is a different problem which happens to have the same symptoms, or c) it is specific to your hardware, such as your particular model of monitor.

To eliminate a), please download the latest OS image (4 July 2024) from https://www.raspberrypi.com/software/operating-systems/, flash it to a new SD card, and see if the problem still occurs.

@pelkuk
Copy link

pelkuk commented Jul 14, 2024 via email

@spl237
Copy link

spl237 commented Jul 14, 2024

In that case, please try switching to the new labwc compositor to see if that fixes the problem.

Open a terminal, run raspi-config, and under Advanced Settings -> Wayland, choose option 3, labwc, then reboot.

@pelkuk
Copy link

pelkuk commented Jul 15, 2024 via email

@spl237
Copy link

spl237 commented Jul 15, 2024

And then I tried with xset s 300 300

That's not going to work. xset, as the name suggests, is for X settings. It has no effect under Wayland.

The only way to blank the screen under labwc is by calling wlopm to power down the monitor, and not all monitors respond correctly to this.

@pelkuk
Copy link

pelkuk commented Jul 15, 2024 via email

@pelkuk
Copy link

pelkuk commented Jul 16, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants