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

Automatic Screen Blank Not Working Ubuntu 24.04 - Wayland Regoloith 3.2 #1051

Open
2 tasks done
raman162 opened this issue Aug 30, 2024 · 2 comments
Open
2 tasks done
Labels
bug Something isn't working needs-triage Any bug that requires classification by a contributor

Comments

@raman162
Copy link

Describe the bug
It seems that swayidle isn't triggering the screen lock as expected per the configured settings in the power saving menu. What's interesting is that it does perform the automatic suspend.

To Reproduce

  • Log in regolith wayland session on ubuntu 24.04 and regolith 3.2
  • Set power saving screen blank to 5 minutes
  • Wait 5 minute

Expected behavior

  • Screen automatically locks

Actual Behavior

  • Screen doesn't dim or lock

Screenshots
image

Configuration file(s)
No additional files configured

Installation Details

  • Regolith Install Stage: ("current-3_2")
  • Regolith Version: [3.2]
  • Host OS: [Ubuntu]

Additional context
Pgrep of swayidle

raman@raman-asus-vivobook15:~$ ps aux | grep swayidle
raman      56575  0.0  0.0   6400  3456 ?        S    17:01   0:00 swayidle -w timeout 300                  export curr_brightness=$(light)                 echo $curr_brightness | tee $XDG_RUNTIME_DIR/screen_brightness_old.var                 if [ 1 -eq "$(echo "${curr_brightness} > 30" | bc)" ]; then                     light -S 30                 fi                  resume light -S $(cat $XDG_RUNTIME_DIR/screen_brightness_old.var) timeout 900              if on_ac_power; then                 systemctl suspend             fi              timeout 900              if ! on_ac_power; then                 systemctl suspend             fi              before-sleep swaymsg output '*' dpms off;$(trawlcat wm.program.lock "gtklock -d --background $(trawlcat regolith.lockscreen.wallpaper.file /dev/null)");playerctl -a pause;sleep 1 after-resume swaymsg output '*' dpms on lock $(trawlcat wm.program.lock "gtklock -d --background $(trawlcat regolith.lockscreen.wallpaper.file /dev/null)")
@raman162 raman162 added bug Something isn't working needs-triage Any bug that requires classification by a contributor labels Aug 30, 2024
@SoumyaRanjanPatnaik
Copy link

The current behavior is the screen dims to 30% brightness. Although, what you're suggesting does sound pretty reasonable. The screen should automatically lock.

@raman162
Copy link
Author

Ahh that makes sense. My current brightness is usually set low so that explains why I didn't see any changes.

Auto locking the screen is also how the i3 session behaves so it makes sense for the sway session to match. If desired, this is something I can probably submit a pr for if I'm pointed in the right direction of what to update

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs-triage Any bug that requires classification by a contributor
Projects
None yet
Development

No branches or pull requests

3 participants
@raman162 @SoumyaRanjanPatnaik and others