You are not logged in.
Pages: 1
Restart and shutdown don't work for me using oblogout in OpenBox.
In /etc/.oblogout,
shutdown = shutdown -h now
restart = reboot
I tried changing this to..,
shutdown = dbus-send --system --print-reply --dest=org.freedesktop.Hal /org/freedesktop/Hal/devices/computer org.freedesktop.Hal.Device.SystemPowerManagement.Shutdown
restart = dbus-send --system --print-reply --dest=org.freedesktop.Hal /org/freedesktop/Hal/devices/computer org.freedesktop.Hal.Device.SystemPowerManagement.Reboot
...but no go.
Can someone tell me what I should be doing?
x86_64 Arch Openbox, Debian PEKwm
Offline
Hi,
what does the output of obloagout say if you run it from commandline?
Website: andrwe.org
Offline
The following works for me:
shutdown = dbus-send --system --print-reply --dest="org.freedesktop.ConsoleKit" /org/freedesktop/ConsoleKit/Manager org.freedesktop.ConsoleKit.Manager.Stop
restart = dbus-send --system --print-reply --dest="org.freedesktop.ConsoleKit" /org/freedesktop/ConsoleKit/Manager org.freedesktop.ConsoleKit.Manager.Restart
suspend = dbus-send --system --print-reply --dest="org.freedesktop.DeviceKit.Power" /org/freedesktop/DeviceKit/Power org.freedesktop.DeviceKit.Power.Suspend
Offline
Perhaps a permission error? Might have to setup sudo and change .oblogout to use it to run those commands
Offline
Two things I'd check would be:
Are you in the power group?
Are you launching your session with "exec ck-launch-session openbox-session"?
Offline
wriggary:
Yes to both.
Owain:
Tried yours still no go
Doesn't work as root from CLI either.
I have found a bug posted here
x86_64 Arch Openbox, Debian PEKwm
Offline
Anyone got oblogout working? having same problems .... maybe edit sudo file...
Mr Green I like Landuke!
Offline
I haven't tried oblogout recently but it should be simple enough to add the commands to the sudoers file:
%wheel ALL=(ALL) NOPASSWD:/sbin/shutdown
%wheel ALL=(ALL) NOPASSWD:/sbin/reboot
Offline
Would be nice to get it working, GDM is way too massive for my small netbook
Added too sudo file but still no joy... error
you must be root to do that!
Followed wiki guide
http://wiki.archlinux.org/index.php/All … o_Shutdown
Now seems to work....
Got to figure out nice login screen now
Thanks
MrG
Mr Green I like Landuke!
Offline
Oblogout works perfectly for me. Add these lines to the end of /etc/sudorc:
%power ALL=NOPASSWD: /sbin/shutdown
%power ALL=NOPASSWD: /usr/sbin/pm-hibernate
%power ALL=NOPASSWD: /usr/sbin/pm-suspend
You have to be in the power group. Good luck.
Last edited by knedlyk (2010-05-31 18:05:16)
Offline
Still doesn't work for me...
gives the following error when either halting or rebooting:
Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/oblogout/__init__.py", line 360, in click_button
self.dbus.shutdown()
File "/usr/lib/python2.6/site-packages/oblogout/dbushandler.py", line 156, in shutdown
if not self.__auth_perms("org.freedesktop.hal.power-management.shutdown"):
File "/usr/lib/python2.6/site-packages/oblogout/dbushandler.py", line 94, in __auth_perms
if self.__check_perms(id):
File "/usr/lib/python2.6/site-packages/oblogout/dbushandler.py", line 80, in __check_perms
res = self._polkit.IsProcessAuthorized(id, os.getpid(), False)
File "/usr/lib/python2.6/site-packages/oblogout/dbushandler.py", line 50, in _polkit
pk = self._sysbus.get_object ("org.freedesktop.PolicyKit", "/")
File "/usr/lib/python2.6/site-packages/dbus/bus.py", line 244, in get_object
follow_name_owner_changes=follow_name_owner_changes)
File "/usr/lib/python2.6/site-packages/dbus/proxies.py", line 241, in __init__
self._named_service = conn.activate_name_owner(bus_name)
File "/usr/lib/python2.6/site-packages/dbus/bus.py", line 183, in activate_name_owner
self.start_service_by_name(bus_name)
File "/usr/lib/python2.6/site-packages/dbus/bus.py", line 281, in start_service_by_name
'su', (bus_name, flags)))
File "/usr/lib/python2.6/site-packages/dbus/connection.py", line 630, in call_blocking
message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.PolicyKit was not provided by any .service files
I have added above lines to the sudo file with visudo, and I am in the power group.
Any more tips?
Offline
Do you have polkit-{gnome,kde,qt} installed?
Offline
The following works for me:
shutdown = dbus-send --system --print-reply --dest="org.freedesktop.ConsoleKit" /org/freedesktop/ConsoleKit/Manager org.freedesktop.ConsoleKit.Manager.Stop restart = dbus-send --system --print-reply --dest="org.freedesktop.ConsoleKit" /org/freedesktop/ConsoleKit/Manager org.freedesktop.ConsoleKit.Manager.Restart suspend = dbus-send --system --print-reply --dest="org.freedesktop.DeviceKit.Power" /org/freedesktop/DeviceKit/Power org.freedesktop.DeviceKit.Power.Suspend
There seems to be a problem with oblogout i think. Or the configuration of our systems.
The above commands work when I enter them in terminal. But not in oblogout.
Offline
Do you have polkit-{gnome,kde,qt} installed?
polkit-gnome and polkit-qt, yes. polkit-kde wouldn't install, but I'm not sure if I want its 130 mb bulk added to my system, anyway. Anyway, polkit-gnome nor -qt seems to solve it.
Offline
Has anyone solved the problem yet? I have polkit installed and I'm in power group, but still nothing.
Offline
Had to edit /etc/oblogout.conf and change "usehal" to "false" to get it to work.
But otherwise great package
Last edited by algorythm (2010-08-10 10:44:29)
“Talent you can bloom. Instinct you can polish.” — Haikyuu!! (adapted)
“If everybody thought alike, no one would be thinking very much.” — Walter Lippmann (adapted)
“The important thing is to be able, at any moment, to sacrifice what we are for what we could become.” — Charles Dubois
Offline
I added to be false on usehal but i have problem still not work
$ oblogout
** Message: pygobject_register_sinkfunc is deprecated (GtkWindow)
** Message: pygobject_register_sinkfunc is deprecated (GtkInvisible)
** Message: pygobject_register_sinkfunc is deprecated (GtkObject)
/usr/share/themes/Black-Diamond/gtk-2.0/gtkrc:92: Murrine configuration option "gradients" is no longer supported and will be ignored.
reboot: must be superuser.
Offline
it works for me, i have this in my /etc/oblogout.conf
usehal = false
[commands]
shutdown = sudo shutdown -h now
restart = sudo reboot
and then, i have my non-root user on /etc/sudoers like this:
your_username ALL=(ALL) NOPASSWD: /usr/bin/oblogout
and that's all... it works well for me.
@Kosava
hmm, make sure you have installed gtk-engine-murrine
pacman -S gtk-engine-murrine murrine-themes-collection
Last edited by Eddotan (2010-09-24 00:20:06)
Offline
It clearly says "reboot: must be superuser" .
“Talent you can bloom. Instinct you can polish.” — Haikyuu!! (adapted)
“If everybody thought alike, no one would be thinking very much.” — Walter Lippmann (adapted)
“The important thing is to be able, at any moment, to sacrifice what we are for what we could become.” — Charles Dubois
Offline
hi,
I use this, found on archlinux.fr
http://wiki.archlinux.fr/openbox-logout … 055239c5a0
it works very well
don't forget to change
#!/usr/bin/env python
to
#!/usr/bin/env python2
Last edited by jarbowski (2010-10-21 23:13:55)
Offline
The suspend line has been changed to this by the latest system updates
Bug report here.
dbus-send --system --print-reply --dest="org.freedesktop.UPower" /org/freedesktop/UPower org.freedesktop.UPower.Suspend
Offline
For anyone else having issues, it looks like this package has been abandoned by the dev.
First, assuming you have consolekit and dbus running correctly --
Edit /etc/oblogout.conf
Change usehal=true to usehal=false
Change the shutdown and restart commands to
shutdown = dbus-send --system --print-reply --dest="org.freedesktop.ConsoleKit" /org/freedesktop/ConsoleKit/Manager org.freedesktop.ConsoleKit.Manager.Stop
restart = dbus-send --system --print-reply --dest="org.freedesktop.ConsoleKit" /org/freedesktop/ConsoleKit/Manager org.freedesktop.ConsoleKit.Manager.Restart
As for suspending, I dont do it but the above command should work.
There's absolutely no good reason to have to edit sudoers to shutdown your machine if you are in the power group. It took me 2 minutes to research the correct dbus commands to shutdown and restart, instead of throwning the commands "shutdown -h now" and "reboot" into a script.
Offline
For anyone else having issues, it looks like this package has been abandoned by the dev.
First, assuming you have consolekit and dbus running correctly --Edit /etc/oblogout.conf
Change usehal=true to usehal=falseChange the shutdown and restart commands to
shutdown = dbus-send --system --print-reply --dest="org.freedesktop.ConsoleKit" /org/freedesktop/ConsoleKit/Manager org.freedesktop.ConsoleKit.Manager.Stop
restart = dbus-send --system --print-reply --dest="org.freedesktop.ConsoleKit" /org/freedesktop/ConsoleKit/Manager org.freedesktop.ConsoleKit.Manager.RestartAs for suspending, I dont do it but the above command should work.
There's absolutely no good reason to have to edit sudoers to shutdown your machine if you are in the power group. It took me 2 minutes to research the correct dbus commands to shutdown and restart, instead of throwning the commands "shutdown -h now" and "reboot" into a script.
perfect.... worked a treat for me... thanks
2007 - Started using Arch Linux as my only/main OS
- Samsung Series 3, Intel(R) Core(TM) i5-3210M CPU @ 2.50GHz - 8Gb DDR3 ram - 700Gb HDD
On board intel Graphics & Sound
Offline
There is also fixed oblogout here: https://github.com/Cloudef/oblogout-fork with bonus multimonitor support
Though, I haven't been using consolekit for ages now, so no quarntees it works still.
Last edited by Cloudef (2012-06-02 13:44:08)
Offline
Hey there,
After watching at "oblogout --verbose" I could see that the values set in the /etc/oblogout.conf was charged but not used.
So I'm gone to see what the program was doing in /usr/share/pyshared/oblogout/__init__.py
After a bit of reading, i just saw what seems to be a fun mistake :
if key[1] in ['logout', 'restart', 'shutdown', 'suspend', 'hibernate', 'safesuspend', 'lock', 'switch']:
if key[1]: setattr(self, "cmd_" + key[0], key[1])
Was wrong, because it was inverting the "key" and the "content". I just had to change that :
if key[0] in ['logout', 'restart', 'shutdown', 'suspend', 'hibernate', 'safesuspend', 'lock', 'switch']:
if key[0]: setattr(self, "cmd_" + key[0], key[1])
And now, it works as expected.
The others that have oblogout working aren't using oblogout.conf to set the [command] section, you are just using hardcoded default values.
Or i did not get the same version of you guys (I get it from https://launchpad.net/oblogout)
Last edited by otyugh (2013-01-27 15:48:58)
Offline
Pages: 1