Posts: 9
Gullible Jones
Joined: 07 Dec 2008
#1
Just some thoughts on Antix 8... If anyone has suggestions of their own, or objections to mine, feel free to add them to the thread.

1. ivman and PCManFM's mounting mechanism conflict; also, ivman is unmaintained (and kind of buggy in my experience). IMHO it might be better to switch to Thunar - thunar-volman handles automounting very well, and Thunar in general is more intuitive than ROX. ivman at least should probably be replaced.

2. For the session exit dialog, it would be cool to have additional options to suspend and hibernate (locking the screen beforehand). FWIW HAL suspend can be invoked with

Code: Select all

dbus-send --system --print-reply --dest=org.freedesktop.Hal \
 /org/freedesktop/Hal/devices/computer \
 org.freedesktop.Hal.Device.SystemPowerManagement.Suspend \
 int32:0
and hibernate with

Code: Select all

dbus-send --system --print-reply --dest=org.freedesktop.Hal \
 /org/freedesktop/Hal/devices/computer \
 org.freedesktop.Hal.Device.SystemPowerManagement.Hibernate
Posts: 1,081
OU812
Joined: 29 Sep 2007
#2
I believe adding hibernate and suspend support to the exit dialog would be easy enough.

I doubt we'd include thunar because of the dependencies.

As for ivman, anti would need to weigh in on that issue.

Thanks for your thread!

john
anticapitalista
Posts: 5,955
Site Admin
Joined: 11 Sep 2007
#3
Yes, I like the idea of hibernate and suspend, and will include it in the next release.
(I have never used either so I wouldn't know if it is working properly or not).

As OU812 mentioned, thunar drags in a lot of dependencies, and so will not be included.
Pcmanfm has been working well on all my boxes, rox-filer plus ivman has worked well on most of them. I don't really want to dump ivman (yet) and rox is as integral to antiX as fluxbox so it won't go. __{{emoticon}}__
Posts: 1,081
OU812
Joined: 29 Sep 2007
#4
I tried writing the hibernate and suspend options into the exit script, but got a bunch of errors (commands and directories not found). Then I found this thread:


========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"http://ubuntuforums.org/showthread.php?t=471855"
linktext was:"http://ubuntuforums.org/showthread.php?t=471855"
====================================


I tried issuing

Code: Select all

/usr/lib/hal/scripts/linux/hal-system-power-hibernate-linux
as root. It looked like it was working, but returned an error code. My guess is that the error code was because I'm testing on a desktop, which doesn't have this capability.

So let's say using the commands

Code: Select all

/usr/lib/hal/scripts/linux/hal-system-power-hibernate-linux
/usr/lib/hal/scripts/linux/hal-system-power-suspend-linux
will work on your laptop. Well, since they have to be invoked by root, we'd need to edit sudoers to allow users to invoke these commands, otherwise it would be annoying.

Unless someone has other ideas? Thanks.

john

P.S. I may still have the original fluxbox mint edition on which so many of my ideas are based. Maybe I can find it and see how they did it.
Posts: 1,081
OU812
Joined: 29 Sep 2007
#5
Somehow I still have the original logout script (written in zenity) from the first release of fluxbox mint. Here's what it has:

Code: Select all

if ["$ans" ="Suspend" ]; then
    gksu 'pmi action sleep'
#echo"kill"
fi
if ["$ans" ="Hibernate" ]; then
    gksu 'pmi action hibernate'
So it still looks like sudoers would need to be edited and I'm not quite sure what the whole pmi thing is. Is it part of antix? A little help, please. Thanks.

john
Posts: 903
plvera
Joined: 11 Oct 2008
#6
John:

I've been trying to get my laptop to hibernate or even to blank out and haven't gotten it to work.
I tried the commands (as root) you listed on your post.

/usr/lib/hal/scripts/linux/hal-system-power-hibernate-linux

gave me the following messages:

method return sender=:1.3 -> dest=:1.48 reply_serial=2
boolean false
method return sender=:1.3 -> dest=:1.49 reply_serial=2
boolean false
method return sender=:1.3 -> dest=:1.50 reply_serial=2
boolean false
method return sender=:1.3 -> dest=:1.51 reply_serial=2
boolean false
method return sender=:1.3 -> dest=:1.52 reply_serial=2
boolean true
method return sender=:1.3 -> dest=:1.53 reply_serial=2
boolean false
method return sender=:1.3 -> dest=:1.54 reply_serial=2
boolean false
method return sender=:1.3 -> dest=:1.55 reply_serial=2
boolean false
method return sender=:1.3 -> dest=:1.57 reply_serial=2
boolean false
method return sender=:1.3 -> dest=:1.59 reply_serial=2
boolean false

/usr/lib/hal/scripts/linux/hal-system-power-suspend-linux

terminal just hangs, nothing happens.

Pedro
Posts: 903
plvera
Joined: 11 Oct 2008
#7
John:

as a follow up, while suspend just made the terminal hang, after I killed the terminal it DID go into suspend, but I couldn't get the screen back and had to reboot.

So, is that a partial success?

Best regards,
Pedor
Posts: 1,081
OU812
Joined: 29 Sep 2007
#8
I got suspend working by doing

Code: Select all

s2ram --force
as root. But when I did

Code: Select all

s2disk
I got a"could not stat the resume device file. Directory does not exist." Error. I searched a bit but couldn't find a fix.

BTW I looked on the iso and the /usr/share/hal directories look different than the ones on my desktop (7.5 install).

john
Posts: 1,520
eriefisher
Joined: 07 Oct 2007
#9
I tried Gullible Jone's suggested method and the suspend works perfectly, hibernate not so much. I got the same results with johns suggestions.

My laptop will"sometimes" suspend just by closing the lid. Open it back up and I get back to where I was.
Posts: 1,081
OU812
Joined: 29 Sep 2007
#10
How?

john
Posts: 1,520
eriefisher
Joined: 07 Oct 2007
#11
OU812 wrote:How?

john
I haven't done anything myself to invoke this but it works. It is acpi related I believe, an event is seen and an action taken. I do use xfce though but I will try it with fluxbox/icewm.

Also I'm still 7.5.
Posts: 9
Gullible Jones
Joined: 07 Dec 2008
#12
Hmm. Hibernate via the HAL method didn't work? What error did it produce?

IMHO, it would be nicer to use the HAL method - I feel that using sudo to suspend is kind of hackish - however, I'm not the programmer here. __{{emoticon}}__

Perhaps an even better option would be to incorporate more of LXDE in the form of lxsession-lite, and patch lxsession-logout to lock the screen on suspend and hibernate?
Posts: 1,520
eriefisher
Joined: 07 Oct 2007
#13
I get the same error messages that Pedro posted earlier, well similar. I will investigate more.
Posts: 9
Gullible Jones
Joined: 07 Dec 2008
#14
FWIW, the scripts in /usr/lib/hal/scripts/linux/ should never work under any conditions - they are simply not designed to be invoked from the command line.
mariel77
Joined: 13 Sep 2007
#15
Another suggestion:
I would like an all white arrow cursor to use on the darker backgrounds. I installed antiX 8 test 2 and keep losing the cursor in the beautiful green background of the default icewm desktop. For me the cursor blends in too well; I am not sure an all white one will show up either though. I guess I can always change the wallpaper though; I'll play with it some more.
Thanks for all the work you all do on antiX!