Skip to content
This repository has been archived by the owner on Sep 23, 2021. It is now read-only.

How to run a command after unlock? #95

Open
ceremcem opened this issue May 16, 2020 · 1 comment
Open

How to run a command after unlock? #95

ceremcem opened this issue May 16, 2020 · 1 comment

Comments

@ceremcem
Copy link

A workaround for this serious bug is that if we could issue xrandr --auto on the graphical TTY (TTY-7), display starts working. However, this command must be issued after unlocking, not after resuming. So I need to run a command after unlocking. How can I make this happen?

@ceremcem
Copy link
Author

As a workaround to this "running command after unlock" issue, I use an infinite loop after pm-suspend until it succeeds:

echo "suspending..."
pm-suspend

echo "Performing workaround for LightDM bug"
while :; do
    xrandr --auto && break 
    sleep 1s
done

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

No branches or pull requests

1 participant