If gdm supports running scripts when starting a greeter seession or right after stopping X, then it's doable.
These are the relevant fields in the lightdm configuration file: # display-setup-script = Script to run when starting a greeter session (runs as root) # display-stopped-script = Script to run after stopping the display server (runs as root) ** Changed in: nvidia-prime (Ubuntu) Importance: Undecided => Wishlist ** Changed in: nvidia-prime (Ubuntu) Status: New => Triaged -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1262068 Title: nvidia-prime should support gdm also To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu-gnome/+bug/1262068/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs