Page 10 of 10 FirstFirst ... 8910
Results 91 to 100 of 100

Thread: HOWTO: Replace gnome-screensaver with xscreensaver

  1. #91
    Join Date
    Nov 2007
    Beans
    12

    Re: HOWTO: Replace gnome-screensaver with xscreensaver

    Giggity... Works like a charm on my ancient p4!!!

  2. #92
    Join Date
    Oct 2010
    Location
    Wolverhampton
    Beans
    14
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: HOWTO: Replace gnome-screensaver with xscreensaver

    I got it working.
    Hopefully I don't screw anything up.

  3. #93
    Join Date
    Nov 2010
    Beans
    1

    Re: HOWTO: Replace gnome-screensaver with xscreensaver

    Thanks man, worked like a charm.

  4. #94
    Join Date
    Nov 2010
    Beans
    1

    Thumbs down Re: HOWTO: Replace gnome-screensaver with xscreensaver

    Quote Originally Posted by dhasenan View Post
    If you want System->Quit->Lock Screen to work, just do this:
    Code:
    $ sudo ln -f /usr/bin/xscreensaver-command /usr/bin/gnome-screensaver-command
    after following the rest of that guide. The query, throttle, and unthrottle flags from gnome-screensaver-command won't work, though.
    This won't work at least in Gnome 2.22.3.

    The 'Lock Screen' actually only send a dbus request to invoke the lock method of the dbus object org.gnome.ScreenSaver.

    Since you have disabled the gnome-screensaver, the dbus object org.gnome.ScreenSaver is not created while the Gnome starts.

    We need to create the dbus object org.gnome.ScreenSaver and implement the Lock method.

    I use the below python script to create the org.gnome.ScreenSaver.

    ----------- myscreen-dbus.py --------
    Code:
    #!/usr/bin/python
    
    import dbus
    import dbus.service
    import dbus.glib
    import gobject
    import os
    
    class ScreenDbusObj(dbus.service.Object):
        def __init__(self):
            session_bus = dbus.SessionBus()
            bus_name=dbus.service.BusName("org.gnome.ScreenSaver",bus=session_bus)
            dbus.service.Object.__init__(self,bus_name, '/org/gnome/ScreenSaver')
    
        @dbus.service.method("org.gnome.ScreenSaver")
        def Lock(self):
            os.system( "xscreensaver-command -lock" )
    
    
    if __name__ == '__main__':
        object=ScreenDbusObj()
        gobject.MainLoop().run()
    You should keep this script running on the background. The 'Lock Screen' button will call the method Lock and the method Lock will execute the xscreensaver-command -lock.

    To automatically start this script, you need to add the command, i.e. /path-to-the-script/myscreen-dbus.py & in the System/Preferences/Sessions.

    Furthermore, the options is used by xscreensaver-command and gnome-screensaver-command for lock is different. For xscreensaver-command, the option is -lock. But for gnome-screensaver-command, the option is --lock ( there are two hyphen before the 'lock').

  5. #95
    Join Date
    Nov 2010
    Beans
    1

    Red face Re: HOWTO: Replace gnome-screensaver with xscreensaver

    didnt work for me im using ubuntu 10.04 dual booted with win7,

    intel i5, 4gb RAM, 500GB SATA, Nvidia 9600gt

    did i go wrong somewhere ? or its unavaible in 10.04 ?

  6. #96
    Join Date
    Jul 2007
    Location
    North Central Ohio, USA
    Beans
    Hidden!

    Re: HOWTO: Replace gnome-screensaver with xscreensaver

    Quote Originally Posted by tracyjames View Post
    didnt work for me im using ubuntu 10.04 dual booted with win7,

    intel i5, 4gb RAM, 500GB SATA, Nvidia 9600gt

    did i go wrong somewhere ? or its unavaible in 10.04 ?
    what didn't work? xscreensaver in general or the lockscreen function.
    AMD Phenom II X4 B55 3.4GHz, 8GB RAM, Galaxy NVIDIA GT620 2GB, Biostar A880G+ mobo, dual-booting LinuxMint 14 Nadia MATE 64-bit , Windows 7 64-bit.

  7. #97
    Join Date
    Jun 2011
    Beans
    12

    Re: HOWTO: Replace gnome-screensaver with xscreensaver

    i was just curious if anyone's been able to get the dpms working properly after switching to xscreensaver, it seems that no matter what i try, removing gnome-screensaver or just disabling it and/or certain power management settings in gconf, when the display is suspended/goes to sleep, via dpms, i get hard locks. so my only choice was to remove xscreensaver altogether and revert to gnome screensaver.

  8. #98
    Join Date
    Jul 2008
    Beans
    37

    Re: HOWTO: Replace gnome-screensaver with xscreensaver

    Excellent, worked like a charm. This is Ubuntu and it's helpful community at it's best!

  9. #99
    Join Date
    Sep 2006
    Location
    Michigan
    Beans
    101
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: HOWTO: Replace gnome-screensaver with xscreensaver

    Has anyone been able to use myscreen-dbus.py (comment #94) on Ubuntu 12.04 (Precise Pangolin)? When it's running it doesn't seem to exist on dbus:
    qdbus org.gnome.ScreenSaver /ScreenSaver org.gnome.ScreenSaver.Lock

    Error: org.freedesktop.DBus.Error.UnknownMethod
    Method "Lock" with signature "" on interface "org.gnome.ScreenSaver" doesn't exist

  10. #100
    Join Date
    Aug 2012
    Beans
    2

    Re: HOWTO: Replace gnome-screensaver with xscreensaver

    very cool thanks for this little, how to

Page 10 of 10 FirstFirst ... 8910

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •