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

Screen Blanking not working #67

Closed
kmpm opened this issue Oct 14, 2023 · 74 comments
Closed

Screen Blanking not working #67

kmpm opened this issue Oct 14, 2023 · 74 comments

Comments

@kmpm
Copy link

kmpm commented Oct 14, 2023

I am running 64-bit bookworm (fresh install) on a 400 and I cant get screen blanking to work.
The screen never shuts of and it used to in bullseye.

I do get the same behavior as described in issue #63 and wlr-randr --output HDMI-A-1 --offshuts of the screen, for a short while.
Don't know if its related or not.

Edit (add some info):

  • Raspberry PI 400
  • Official Raspberry PI power supply
  • Official Raspberry PI USB Mouse
  • 64-bit RaspOS Bookworm using Raspberry PI Imager
  • Kinston 16GB SD-card
  • SAMSUNG SSD PM810 2.5" 7mm 128GB via JMicron USB to ATA/ATAPI Bridge
  • Monitor: AOC model 12801
  • Blanking works if I switch to X (but I don't want to)
@kmpm
Copy link
Author

kmpm commented Oct 14, 2023

Let me add something I found after investigating.

  • I changed idle.dpms_timeout in ~/.config/wayfire.inito 60 (from 600).
  • Reboot
  • Waited for about a minute
  • The screen went blank but came back after about 10 seconds, just as when using wlr-randr --output HDMI-A-1 --off
  • Waited about 5 minutes not doing anything, just to see if it does it again but no. It blanks once.
  • Opened a browser, opened this issue but waited for the dpms_timeout period and... yay new blank that came back after about 10 seconds again.
  • Kept waiting but no more blank.

It seems as it actually blanks the screen after set timeout but it turns it on again.
The screen does not do periodical blanking if left idle.
Only after some activity it starts looking for a new idle timeout.

@qrp73
Copy link

qrp73 commented Oct 14, 2023

it seems that some app requests to wake up...
May be browser?

On my RPI4 bookworm 64 display blanking works ok. There was an issue in beta version, but it was already fixed.

Also check that your mouse don't have false movements. It can leads to wake up. Some old mouses with dust inside can have such behavior. If this is your case, try to clean your mouse from dust.

@kmpm
Copy link
Author

kmpm commented Oct 14, 2023

Thanks @qrp73 for the hints, but...
With all extra panel plugins removed (CPU and CPU-temp), a reboot, with no windows open or mouse connected.

Goes blank for ~10 seconds once after ~idle.dpms_timeout seconds after desktop shows after reboot.
If I start using the keyborad to take it out of idle state I get a new blank after ~dpms_timeout seconds again.

So no windows open and no mouse connected... same buggy behavior.

@kmpm
Copy link
Author

kmpm commented Oct 14, 2023

More investigating.
Just as my monitor, from AOC, shows "NO SIGNAL" the screen comes back to life.
That message usually shows for a second and a half before the monitor goes into standby but now I barely register it before the monitor turns on again and shows the desktop.
Are there any logs that I could monitor from a remote ssh session that might show whats going on?

And blanking works if I switch to X11.

@qrp73
Copy link

qrp73 commented Oct 14, 2023

In my case blanking works as expected on bookworm 64 with Wayland/wayfire.

There is configuration in ~/.config/wayfire.ini

[idle]
screensaver_timeout = -1
dpms_timeout = 300

The signal disappears after 300 seconds and display shows "NO SIGNAL" message and going to a sleep mode. It wake up when I move mouse or pressing keyboard.
I tried different values for dpms_timeout, it works as expected.

screensaver also works

@kmpm
Copy link
Author

kmpm commented Oct 14, 2023

Here is my wayfire.ini

[idle]
dpms_timeout=30

I even tried adding your screensaver_timeout=-1 but it had no effect what so ever.
It goes blank after 30 seconds (or whatever I put there) but it doesn't stay blank, wakes up just as "NO SIGNAL" shows on the monitor.
And still, no input on keyboard, mouse disconnected.
I am booting from an USB connected SSD though, but that shouldn't really matter. Nothing else is connected.

@kmpm
Copy link
Author

kmpm commented Oct 14, 2023

  • Installed Raspberry PI OS Bookworm 64-bit on an SD-card.
  • Disconnected USB-drive. Only mouse connected on USB.
  • Ran apt update and apt upgrade to get all the latest packages.
  • Rebooted
  • Enabled screen blanking using raspi-config
  • Rebooted
  • Got into desktop
  • Waited for 600 seconds
  • Screen went blank for about 10 seconds, once.

So USB-boot or from SD-card does not make a difference.
A fresh install+upgrade before enabling screen blanking does not make a difference.
Official RPI powersupply, official HDMI-cable, official mouse.

@kmpm
Copy link
Author

kmpm commented Oct 15, 2023

Ok. Got hold of a Dell monitor that unfortunately only has DVI so I had to use and HDMI to DVI adapter but with that setup, blanking works.
The AOC monitor that is messing with me has speakers and audio via HDMI, can the new audio framwork have anything to do with it, I see a lot of pipewire and wireplumber entries in journalctl around blanking?
log-20231015-1.txt
edit:
The logfile is showing the output from sudo journalctl --since "2023-10-15 09:53:05" and until after the screen came back. With 09:53:05 being just before screen blanking.

@kmpm
Copy link
Author

kmpm commented Oct 15, 2023

This log is just me switching the monitor of and on again. Similar pipewire messages as when blanking.
log-20231015-2.txt

@qrp73
Copy link

qrp73 commented Oct 16, 2023

Are you testing blanking on virtual console or graphical desktop?

I found that display blanking doesn't works on virtual console.
~/.config/wayfire.ini settings is for wayland graphical desktop.

So there is probably another config file for virtual console blanking or it's just not implemented yet...

@kmpm
Copy link
Author

kmpm commented Oct 16, 2023

Graphical desktop, nothing else.

@lurch
Copy link
Collaborator

lurch commented Oct 16, 2023

So there is probably another config file for virtual console blanking

https://www.raspberrypi.com/documentation/computers/configuration.html#console

@qrp73
Copy link

qrp73 commented Oct 16, 2023

for blanking in console, there is needs to add consoleblank=300 to /boot/cmdline.txt string

just tested, works ok

@kmpm
Copy link
Author

kmpm commented Oct 16, 2023

Sorry @qrp75. Same issue in console mode. Goes blank for about 10 seconds then back but with cursor not blinking and no repeated blanks.

@popcornmix
Copy link

popcornmix commented Oct 16, 2023

@kmpm can you try adding vc4.force_hotplug=1 to start of line in /boot/firmware/cmdline.txt (and reboot)?

I have a suspicion your display is waggling hotplug after it sees the display go blank (I don't know why).
But that behaviour does wake up the display system (it looks like a display has been unplugged and replugged).

@kmpm
Copy link
Author

kmpm commented Oct 16, 2023

Could someone, where blanking works in graphical mode, please check with sudo journalctl -xe or something if you have entries similar to this on or around when the screen went black.

Oct 16 20:50:29 kmpm-pi-4c0625 xdg-desktop-portal-wlr[2232]: 2023/10/16 20:50:29 [ERROR] - pipewire: fatal error event from core
...
Oct 16 20:50:29 kmpm-pi-4c0625 xdg-desktop-por[1132]: Caught PipeWire error: connection error
...
Oct 16 20:50:29 kmpm-pi-4c0625 systemd[915]: xdg-desktop-portal-wlr.service: Main process exited, code=exited, status=1/FAILURE
Oct 16 20:50:29 kmpm-pi-4c0625 systemd[915]: xdg-desktop-portal-wlr.service: Failed with result 'exit-code'.
...
Oct 16 20:50:29 kmpm-pi-4c0625 systemd[915]: xdg-desktop-portal-wlr.service: Scheduled restart job, restart counter is at 6.
Oct 16 20:50:29 kmpm-pi-4c0625 systemd[915]: Stopped xdg-desktop-portal-wlr.service - Portal service (wlroots implementation).
Oct 16 20:50:29 kmpm-pi-4c0625 systemd[915]: Starting xdg-desktop-portal-wlr.service - Portal service (wlroots implementation)...
Oct 16 20:50:29 kmpm-pi-4c0625 xdg-desktop-portal-wlr[2696]: 2023/10/16 20:50:29 [ERROR] - xdpw: Could not find render node
Oct 16 20:50:29 kmpm-pi-4c0625 xdg-desktop-portal-wlr[2696]: 2023/10/16 20:50:29 [ERROR] - xdpw: Could not find render node

I'm curious about why xdg-desktop-portal-wlr fails and restarts.
When I use the Dell monitor, that works, I don't get any of that crap.
That is why I'm suspecting that audio is involved somehow. The AOC monitor has it through HDMI, the Dell one doesn't

@kmpm
Copy link
Author

kmpm commented Oct 16, 2023

@popcornmix , with vc4.force_hotplug=1it could not boot to desktop. Just a blank screen after bootsplash when it normally switches to desktop.

@kmpm
Copy link
Author

kmpm commented Oct 16, 2023

Is there a way of not starting the pipewire stuff at all. I'm really OK without sound while testing :)

there must be a config somewhere that controls those kind of things but I haven't found it.

@qrp73
Copy link

qrp73 commented Oct 17, 2023

Could someone, where blanking works in graphical mode, please check with sudo journalctl -xe or something if you have entries similar to this on or around when the screen went black.

no there is no log records when screen blanking happens.

note: I'm using kernel 6.6.0-rc5-v8+, because there are some unfixed bugs on 6.1

@lurch
Copy link
Collaborator

lurch commented Oct 17, 2023

Is there a way of not starting the pipewire stuff at all.

There's an option in raspi-config to toggle between using PipeWire and PulseAudio, as mentioned in https://www.raspberrypi.com/news/bookworm-the-new-version-of-raspberry-pi-os/

@kmpm
Copy link
Author

kmpm commented Oct 17, 2023

@lurch, thanks for what on paper would have been fine.
But even if i switch to PulseAudio I still get those log entries about pipewire...
So I'll rephrase then question. Does anyone know how to disable all audio frameworks? Not uninstall, not switching just disable.

@popcornmix
Copy link

Possibly:

systemctl --user stop pulseaudio.socket
systemctl --user stop pulseaudio.service
systemctl --user stop pipewire.socket
systemctl --user stop pipewire.service

to stop now, and if you don't want it to restart after boot:

systemctl --user disable pulseaudio.socket
systemctl --user disable pulseaudio.service
systemctl --user disable pipewire.socket
systemctl --user disable pipewire.service

@kmpm
Copy link
Author

kmpm commented Oct 17, 2023

I already tried that, even disable, but to no effect. And after reboot they were all enabled and running anyway.
I'll install on another media and purge pipewire and pulse audio and see if it makes any difference.

@kmpm
Copy link
Author

kmpm commented Oct 18, 2023

sudo apt purge pipewire pulseaudo && sudo reboot does not help with blanking on the AOC monitor.
And it seems as if wf-panel-pi needs it somehow because it didn't show at all when neither pulseaudio or pipewire were present.

@lurch
Copy link
Collaborator

lurch commented Oct 18, 2023

I wonder if you might need to remove the Bluetooth / Volume / etc. taskbar plugins first, and that's why wf-panel-pi isn't launching?

@kmpm
Copy link
Author

kmpm commented Oct 21, 2023

@lurch, removing the taskbar plugins fixes wf-panel-pi. The issue with screen blanking still exists though.

@BGRideout
Copy link

From response on Pi forum, adding vc4.force_hotplug=3 to end of command in /boot/cmdline.txt (value =1 for hda1, 2 hda2, 3 both) corrected the issue in pi400 with 2 monitors.

@pidloop
Copy link

pidloop commented Oct 21, 2023

Tried this on 1 MB Pi4 running bookworm. Now my GUI doesn't run at all, boots to console login. Removing it does not return to normal either, still boots to console. So this broke the GUI completely.

@pidloop
Copy link

pidloop commented Oct 21, 2023

But this lead to some really good news!! I did a fresh download/install of bookworm, then the usual sudo apt update/upgrade and now wlr-randr --output HDMI-A-1 --off works and it stays off! And --on brings it back. Yah!

@1a2a3a1q2s3c
Copy link

Are you able to do a cron job to the dell?

@bembudo
Copy link

bembudo commented Dec 8, 2023

these ones? if so what is the expected result? I can certainly try I just want to be sure ill be able to access my monitor again or will i have to enable through SSH ?

52 17 * * * /usr/bin/wlr-randr --output HDMI-A-2 --on
51 17 * * * /usr/bin/wlr-randr --output HDMI-A-2 --off

@1a2a3a1q2s3c
Copy link

It supposed to turn off on a specific set time and on at a specific time. This is inserted into the cron job. Those code that I gave does not function in cron as expected and I don’t know why…

@pidloop
Copy link

pidloop commented Dec 8, 2023 via email

@1a2a3a1q2s3c
Copy link

@1a2a3a1q2s3c your cron jobs don't pick up your env. so try setting the wayland display name the same as suggested by @popcornmix 52 17 * * * WAYLAND_DISPLAY="wayland-1" /usr/bin/wlr-randr --output HDMI-A-2 --on

On Fri, Dec 8, 2023 at 11:24 AM 1a2a3a1q2s3c @.> wrote: It supposed to turn off on a specific set time and on at a specific time. This is inserted into the cron job. Those code that I gave does not function in cron as expected and I don’t know why… — Reply to this email directly, view it on GitHub <#67 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AC37YZBZDK2BCD7GKMBYMP3YINLMLAVCNFSM6AAAAAA6ACNHISVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNBXGYZTINBTGA . You are receiving this because you were mentioned.Message ID: @.>

Did that and it doesn’t work as well.
Silly question, do I put my code before or after the # at the end of the crontab?

@pidloop
Copy link

pidloop commented Dec 8, 2023

# introduces a comment, anything after that on the same line is ignored.

@1a2a3a1q2s3c
Copy link

Sorry what do you mean? I don’t quite understand.

@pelwell
Copy link

pelwell commented Dec 8, 2023

@pidloop was explaining that anything after the # gets ignored as a comment, but the hash comment was interpreted by markdown as mark-up.

@1a2a3a1q2s3c
Copy link

Yea so I did the wordings before the # and i still doesn’t works.

@lurch
Copy link
Collaborator

lurch commented Dec 19, 2023

I've had a go at experimenting with this myself...
I'm testing with an up-to-date Bookworm 64-bit image running on a Pi 4B, and I've SSHed into the Pi from my laptop.

With just a single HDMI monitor plugged in to HDMI0, if I run

WAYLAND_DISPLAY="wayland-1" /usr/bin/wlr-randr --output HDMI-A-1 --off

over SSH, then the display turns off, and stays off even if I jiggle the USB mouse or type on the USB keyboard directly attached to the Pi. If I run

WAYLAND_DISPLAY="wayland-1" /usr/bin/wlr-randr --output HDMI-A-1 --on

over SSH then the display turns back on again, and everything is fully functional.

If I swap the monitor over to HDMI1, then running the command above to turn off HDMA-A-1 says "unknown output HDMI-A-1", which is to be expected. If I run

WAYLAND_DISPLAY="wayland-1" /usr/bin/wlr-randr --output HDMI-A-2 --off

then the display turns off, but then automatically turns back on again after about 4 seconds!

With a monitor plugged into each of HDMI0 and HDMI1, then running

WAYLAND_DISPLAY="wayland-1" /usr/bin/wlr-randr --output HDMI-A-1 --off

turns off the display connected to HDMI0, and it stays off. HDMI1 stays on, and any application-windows that were on HDMI0 then jump over to HDMI1.
Running

WAYLAND_DISPLAY="wayland-1" /usr/bin/wlr-randr --output HDMI-A-1 --on

turns the display back on again.

With both displays turned on, running

WAYLAND_DISPLAY="wayland-1" /usr/bin/wlr-randr --output HDMI-A-2 --off

turns off the second display (with the first display remaining enabled), and again the HDMI1 display automatically turns back on again after about 4 seconds.

If I run the commands to turn off HDMI-A-1 and then turn off HDMI-A-2 then both displays are off briefly, but they both wake up again after a few seconds.

I also ran the same tests on a Pi5, and that exhibited the same behaviour.

TL;DR - it looks like the wlr-randr command can (currently) only "properly" turn off a single display connected to HDMI0 (the micro-HDMI port nearest to the USB-C power-input port).

@popcornmix
Copy link

Can you add vc4.force_hotplug=3 to cmdline.txt (on existing line) and check if behaviour changes?

@1a2a3a1q2s3c
Copy link

I've had a go at experimenting with this myself... I'm testing with an up-to-date Bookworm 64-bit image running on a Pi 4B, and I've SSHed into the Pi from my laptop.

With just a single HDMI monitor plugged in to HDMI0, if I run

WAYLAND_DISPLAY="wayland-1" /usr/bin/wlr-randr --output HDMI-A-1 --off

over SSH, then the display turns off, and stays off even if I jiggle the USB mouse or type on the USB keyboard directly attached to the Pi. If I run

WAYLAND_DISPLAY="wayland-1" /usr/bin/wlr-randr --output HDMI-A-1 --on

over SSH then the display turns back on again, and everything is fully functional.

If I swap the monitor over to HDMI1, then running the command above to turn off HDMA-A-1 says "unknown output HDMI-A-1", which is to be expected. If I run

WAYLAND_DISPLAY="wayland-1" /usr/bin/wlr-randr --output HDMI-A-2 --off

then the display turns off, but then automatically turns back on again after about 4 seconds!

With a monitor plugged into each of HDMI0 and HDMI1, then running

WAYLAND_DISPLAY="wayland-1" /usr/bin/wlr-randr --output HDMI-A-1 --off

turns off the display connected to HDMI0, and it stays off. HDMI1 stays on, and any application-windows that were on HDMI0 then jump over to HDMI1. Running

WAYLAND_DISPLAY="wayland-1" /usr/bin/wlr-randr --output HDMI-A-1 --on

turns the display back on again.

With both displays turned on, running

WAYLAND_DISPLAY="wayland-1" /usr/bin/wlr-randr --output HDMI-A-2 --off

turns off the second display (with the first display remaining enabled), and again the HDMI1 display automatically turns back on again after about 4 seconds.

If I run the commands to turn off HDMI-A-1 and then turn off HDMI-A-2 then both displays are off briefly, but they both wake up again after a few seconds.

I also ran the same tests on a Pi5, and that exhibited the same behaviour.

TL;DR - it looks like the wlr-randr command can (currently) only "properly" turn off a single display connected to HDMI0 (the micro-HDMI port nearest to the USB-C power-input port).

No dice for me even if I use the hdmi nearest to the usb c. The only way it work properly for me is to insert the vc hotplug command

@lurch
Copy link
Collaborator

lurch commented Dec 19, 2023

Ahhh, the culprit (and cause of my confusion) was that one of my micro-HDMI cables must have a broken (or unconnected) hotplug pin! So this "faulty" cable was the one that I was always connecting to HDMI1, and this is why the monitor connected to that display was "staying off" 🤦

So if I swap over my two HDMI cables, I then see the reversed behaviour - HDMI0 is the display that keeps "waking up" and HDMI1 is the display that "stays asleep". As @popcornmix said in an earlier comment, the act of sending the display to sleep causes the display to wiggle its hotplug pin, and that makes Wayland think that a new display has been plugged in, and so it switches the display back on again.

So (as both @6by9 and @popcornmix suggested, thanks!), if I add vc4.force_hotplug=3 to the end of the line in /boot/firmware/cmdline.txt this then causes the Pi to totally ignore the state of the hotplug pin for both HDMI ports, and I can then use wlr-randr to turn off each HDMI port, and (because hotplug is being ignored) both displays then stay off.

Given that this is presumably quite a common occurrence, is there any way to get Wayland to ignore any HDMI hotplug events that occur in e.g. the 5 seconds immediately after wlr-randr has been used to turn off a display?

@popcornmix
Copy link

Are you sure it is the cable and not the display?
I'd expect a cable with faulty hotplug to not be detected (unless you'd added something like a video=HDMI-A-1:3840x2160@60D line to cmdline.txt.

@lurch
Copy link
Collaborator

lurch commented Dec 19, 2023

Are you sure it is the cable and not the display?

Ahh yes, it seems you're right - with so many different connections I must have been getting confused 😆
If I swap over both ends of each HDMI cable, then it remains HDMI-A-2 that keeps waking up again. And that means that I can "get away with" just vc4.force_hotplug=2 in cmdline.txt, and I can switch both displays off with wlr-randr, and they both stay off, regardless of which cable I use to connect which monitor.

Based on all of that, does everyone agree that this issue can be closed now?

@pidloop
Copy link

pidloop commented Dec 19, 2023

Based on all of that, does everyone agree that this issue can be closed now?

Yes, many thanks to all involved.

But I could use a recap. Please summarize:

  • what the proper commands are for on/off
  • what one-time changes are required on a fresh install
  • whether these will eventually become the default (and thus unnecessary).

@lurch
Copy link
Collaborator

lurch commented Dec 19, 2023

  • what the proper commands are for on/off

Turn off HDMI0: /usr/bin/wlr-randr --output HDMI-A-1 --off
Turn on HDMI0: /usr/bin/wlr-randr --output HDMI-A-1 --on
Turn off HDMI1: /usr/bin/wlr-randr --output HDMI-A-2 --off
Turn on HDMI1: /usr/bin/wlr-randr --output HDMI-A-2 --on

If you're running over SSH (or from within a script) you might need to prefix those commands with
WAYLAND_DISPLAY="wayland-1"

  • what one-time changes are required on a fresh install

None.
But if the monitor you have connected to HDMI0 "wiggles its hotplug" and automatically turns back on again, add vc4.force_hotplug=1 to the end of the existing line in /boot/firmware/cmdline.txt (don't add any extra lines) and reboot. If the monitor you have connected to HDMI1 automatically turns back on again, add vc4.force_hotplug=2 instead. And if both monitors automatically turn back on again after switching them off with wlr-randr, use vc4.force_hotplug=3.

  • whether these will eventually become the default (and thus unnecessary).

We won't be adding those force_hotplug entries to cmdline.txt by default, but we are starting to investigate how much work would be involved in implementing my earlier suggestion of ignoring any hotplug events that occur soon after wlr-randr has switched off a display.

@p1r473
Copy link

p1r473 commented Feb 13, 2024

Ive tried all of these commands over SSH but no matter what I get:

❯ WAYLAND_DISPLAY="wayland-1" /usr/bin/wlr-randr --output HDMI-A-1 --off
failed to connect to display                                                                                                                              
❯ WAYLAND_DISPLAY="wayland-1" /usr/bin/wlr-randr --output HDMI-A-1 --on
failed to connect to display                                                                                                                              
❯ WAYLAND_DISPLAY="wayland-1" /usr/bin/wlr-randr --output HDMI-A-2 --off
failed to connect to display                                                                                                                              
❯ WAYLAND_DISPLAY="wayland-1" /usr/bin/wlr-randr --output HDMI-A-1 --off
failed to connect to display                                                                                                                              
❯ WAYLAND_DISPLAY="wayland-1" /usr/bin/wlr-randr --output HDMI-A-1 --on
failed to connect to display                                                                                                                              
❯ WAYLAND_DISPLAY="wayland-1" /usr/bin/wlr-randr --output HDMI-A-2 --off
failed to connect to display   

Im using a Pi 5 x64 in CLI mode with Bookworm and Im trying to turn off my HDMI monitor.
Ive tried both HDMI ports.

@popcornmix
Copy link

Im using a Pi 5 x64 in CLI mode with Bookworm and Im trying to turn off my HDMI monitor.
Ive tried both HDMI ports.

wayland isn't running in CLI mode, so wlr-randr isn't expected to do anything.

@1liminal1
Copy link

Ok, so how can we send a command using CLI that will turn off the display?

@pidloop
Copy link

pidloop commented Feb 26, 2024

Things seem to have improved since this thread was started. After a fresh "sudo apt update; sudo apt upgrade" running bookworm on a Pi4 and Pi5 I can control the HDMI display connected next to power with these commands:

export WAYLAND_DISPLAY=wayland-1
wlr-randr --output HDMI-A-1 --off
wlr-randr --output HDMI-A-1 --on

@pidloop
Copy link

pidloop commented Feb 26, 2024

Ha! I take it back. The previous lines were working a week ago but I just did another update/upgrade and now setting --off turns off the display but also logs me out!

@1liminal1
Copy link

Ahh ok, Same boat, though I must have started on the version that logs you out with a new Pi5, its always just loged me out (started working on this 2 days ago)

Im glad its not just me with the logout issue though. People are like, what are you talking about LOL

@pidloop
Copy link

pidloop commented Mar 14, 2024

Tried the new release posted today with full-update. The wlr-randr commands I posted work again.

BUT now there are no mouse events delivered to my program while the screen is blank. This prevents me from detecting user activity to know when to turn the screen back on. This is new, events were delivered while off before.

@saxmanio85
Copy link

Ha! I take it back. The previous lines were working a week ago but I just did another update/upgrade and now setting --off turns off the display but also logs me out!

I can also turn off/on the attached screen but unfortunately turning on results in logout. Did anyone find a fix for this?

@lurch
Copy link
Collaborator

lurch commented Apr 11, 2024

See my comments in #219

@saxmanio85
Copy link

See my comments in #219

Thanks @lurch. Weirdly after a reboot or many (I've lost track) I no longer get logged out. So the following works for my situation (for anyone else that lands on this thread):

export WAYLAND_DISPLAY=wayland-1
wlr-randr --output HDMI-A-1 --off
wlr-randr --output HDMI-A-1 --on --transform 270 --custom-mode 1920x1080

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