Sean Finney on 17 Mar 2011 01:03:01 -0700


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] Having Trouble With HAL Scripts


On Wed, 2011-03-16 at 19:19 -0400, Casey Bralla wrote:
> KDE calls the scripts in /usr/lib/hal/scripts/ to execute hibernation.   
> However, these scripts bomb if I try to directly execute them.   A little 
> digging says that these scripts call another level of scripts in 
> /usr/lib/hal/linux.  If I directly execute these scripts, IT WORKS!

are you sure that you need hal?  i'm only running gnome, but have had
hald removed for quite some time and suspend/resume works just peachy.


> The first script fails with a cryptic message ".: 3: hal-functions: not found".  
> A little digging showed that this sub-script "hal-function" was not being 
> found because the path to it was not known to the system.  When I re-wrote the 
> first script to add the path to the script "hal-function", it got farther bu 
> still bombed.
> 
> 
> So I'm convinced that the scripts are failing because the system does not know 
> the path to the scripts.   So....  does anybody know how I can set the path to 
> the hal scripts?

i think '.' will respect PATH when it goes looking, but the fact that
you need to do this suggests that there's something more sinister going
on.  one thing i can suggest is adding a "set -x" under the shebang of
hte scripts you're looking at, to get a (much) more verbose idea of
what's going on, which could give you further hints.


	sean

Attachment: signature.asc
Description: This is a digitally signed message part

___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug