openSUSE / SUSEPrime

Provide nvidia-prime like package for openSUSE
65 stars 11 forks source link

prime-select.sh does not find X session logout message in journal #92

Closed h-fehlis closed 1 year ago

h-fehlis commented 1 year ago

The part of prime-select.sh which is supposed to run after X session logout never gets executed on my system that uses "autologin". The reason is that the following message gets dumped into the kernel log upon logout:

pam_unix(lightdm-autologin:session): session closed

but the _"user_logoutwaiter" part of prime-select.sh waits for this message:

pam_unix(lightdm:session): session closed

Changing the corresponding line in prime-select.sh like this solves the problem:

pam_unix(lightdm.*:session): session closed

(Sorry, no experience with pull requests.)

sndirsch commented 1 year ago

Thanks a lot! Fixed now. I also made a new release 0.8.11 and also updated the suse-prime package for Tumbleweed.

sndirsch commented 1 year ago

0.8.11 release was broken (identical to 0.8.10). I removed it and made a new release 0.8.12 with the fix.

sndirsch commented 1 year ago

https://github.com/openSUSE/SUSEPrime/commit/165860a5ec0a81b941af96983d4f0984a48e3483 https://github.com/openSUSE/SUSEPrime/releases/tag/0.8.12 https://build.opensuse.org/request/show/1041276