cardkeron.blogg.se

Redhat repository xscreensaver
Redhat repository xscreensaver










redhat repository xscreensaver redhat repository xscreensaver
  1. #Redhat repository xscreensaver how to#
  2. #Redhat repository xscreensaver install#
  3. #Redhat repository xscreensaver code#

WantedBy=sleep.target suspend.target hibernate.target hybrid-sleep.target suspend-then-hibernate.target usr/bin/gnome-screensaver-command -lock sleep 2Īnd this is the systemd unit that executes our script sudo nano /etc/systemd/system/rviceīefore=sleep.target suspend.target hibernate.target hybrid-sleep.target suspend-then-hibernate.target GsPid="`pgrep -n gnome-session | egrep '^+$'`"Įcho "gnome-session does not appear to be running" 1>&2Įxport DBUS_SESSION_BUS_ADDRESS="`grep -z ^DBUS_SESSION_BUS_ADDRESS= /proc/$/environ | cut -f2-d=`" # have to grab the newest gnome-session so we don't grab gdm's d-bus session information by mistake This is the script for calling gnome-screensaver before suspending sudo nano /opt/lock-screen.sh Combining pieces of information from here and here I managed to get the following working. Now the really tricky thing is to make gnome-screensaver lock the screen after resuming from suspend/hibernate.

redhat repository xscreensaver

#Redhat repository xscreensaver how to#

I didn't figure out how to change the current lock screen background, Once gnome-screensaver is running, locking the screen via Super+L works out desktop file from the answer by the user aseq sudo nano /etc/xdg/autostart/sktop

#Redhat repository xscreensaver install#

Luckily, we still have gnome-screensaver around: sudo dnf install gnome-screensaver However, now I need to take care about the screen lock by myself, as this is usually what GDM does for you. Once I switched to SDDM these issues do not occur anymore. Just google for "gnome freeze except mouse". I also ended up asking myself the same question in 2020 (Fedora 32, Gnome 3.36 on X11), since the current version of GDM appears to have a very annoying bug: My Gnome session freezes up, but I still can move the mouse cursor. TryExec=/etc/xdg/autostart/gscreenlock.py Then make it executable: chmod a+rx /etc/xdg/autostart/gscreenlock.pyĪnd edit /etc/xdg/autostart/sktop like this:

redhat repository xscreensaver

Os.system( "xscreensaver-command -lock" ) Note that in rhel7 the key combination to lock is super + l.Ĭreate /etc/xdg/autostart/gscreenlock.py like this: #!/usr/bin/pythonĬlass ScreenDbusObj():īus_name=("",bus=session_bus)ĭ._init_(self,bus_name, Lock(self): If this is a problem for you, you will need to find another solution like the LightDM Lock Screen extension.Ī work around I successfully used in debian, ubuntu and rhel7 is creating a short python script that's started automatically when you log into the gnome session. Make sure this does not conflict with the GDM 'Lock Screen' shortcut under 'System'.Ĭaveat: Notification popups will still be visible over the locked screen.

  • Click 'Disabled' and type the key combination you would like to lock the screen (mine is Ctrl-Alt-L).
  • Click the + button, then enter whatever you want as the name and xscreensaver-command -l as the command.
  • In the GNOME keyboard settings, select the Shortcuts tab, then 'Custom Shortcuts'.
  • Be sure to select 'Lock screen after 0 minutes'.
  • Run xscreensaver to configure the screensaver how you want it.
  • Install the xscreensaver package (and optionally xscreensaver-data and xscreensaver-data-extra).
  • (Note: Although the gnome-screensaver package currently exists on Debian sid, it does not seem to be usable) How to enable screen locking in Gnome Shell (3.14) using xscreensaver (on Debian): As gnome-screensaver is no more in gnome 3.8 In old versions of gnome the command gnome-screensaver-command -l Other display managers (such as XDM) have not been designed to respond to this dbus message, and so the screen cannot be locked. So the only Gnome-integrated way of locking the screen is to have GDM running, which will respond to a dbus message telling it to lock the screen.

    #Redhat repository xscreensaver code#

    This was done for three reasons: reduced code complexity coupled with the fact that the screensaver is seen as an unneeded feature, and the fact that the eventual move to Wayland will require screensaver, locking, etc. Starting in Gnome Shell 3.8 (included in Fedora 19), gnome-screensaver support has been dropped completely. In Gnome Shell 3.6 and earlier, the old gnome-screensaver program was present, and if GDM was not running, gnome-screensaver would be invoked - allowing you to lock the screen. After some research, I think I've got enough information to post an answer to my own question.












    Redhat repository xscreensaver