I noticed something similar in Ubuntu Hardy - when LDM shutdown was 
used, the system does not power back on via WoL. The issue seems to stem 
from the command used (shutdown) in LDM itself and the commandline 
options weren't sane for all systems. Here's what was said by Josh, the 
guy I hired to look at this issue for me specifically:

---

I took a look in the ldm source code and it
looks like what you want fixed is line 98 from greeter.c:
g_spawn_command_line_async("/sbin/poweroff -p", error);

As you can see it is hard coded to run "/sbin/poweroff -p", which is
just a symlink to /sbin/halt that signifies -p flag. According to the
man pages there is no -p flag for poweroff, poweroff *means* halt
-p. I think the right thing to do would be to change the call to
"shutdown -h now" or just "init 0" or "halt -f" (since nothing really
needs to come down safely). "shutdown -h now" would be the best
solution in my eyes, but it really depends on the conversation in the
channel. If you want a quick fix you could write a shell script that
runs shutdown and put it in the place of poweroff. Actually fixing
would probably require changing the code, recompiling, and dropping a
diff on the mailing list (ldm is not open for public commits).

---

Hope that helps. I have modified Ubuntu Hardy packages if anyone would 
like those, though they are definitely not official packages, yet the 
only thing that was modified was the shutdown parms. I've installed it 
on my own office network and it seems to be working fine.



Cheers,
Jordan/Lns



Chris Roberts wrote:
> On Wednesday 14 Jan 2009, Leon Hauck wrote:
>   
>> I just got done setting up a couple of homebrew workstations based on
>> the Intel D945GCLF2 Desktop Board With Integrated Atom Processor.
>>
>> Everything works fine except that when 'Shutdown' is chosen from LDM
>> menu the workstation does not power off.
>>
>> I've tried adding the 'acpi=off apm=power_off' kernel options in
>> /var/lib/tftpboot/ltsp/i386/pxelinux.cfg/default with no luck.
>>
>> I'm running Debian Lenny by the way, kernel 2.6.26-1-486
>>
>> Does anyone have any words of wisdom?
>>     
>
> No words of wisdom for this old post, but I have discovered the same also on 
> Debian Lenny also with Intel Atom on a brand new PC.  Oddly the reboot option 
> works perfectly, but the shutdown seems to halt the PC, but leaves the fan 
> still running and the display remains the LDM background colour.
>
> This problem occurs whether you use Alt+SysRq+o or the LDM Shutdown option.
>
>   


-- 
Jordan Erickson
Owner, Logical Networking Solutions
http://www.logicalnetworking.net
707-636-5678

Latest LNS Blogs - http://blog.logicalnetworking.net

        Closed-Circuit TV Ads May Be Watching You Back
        Using Linux considered criminal activity?
        Leaving computers on overnight = $2.8 billion a year


------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
_____________________________________________________________________
Ltsp-discuss mailing list.   To un-subscribe, or change prefs, goto:
      https://lists.sourceforge.net/lists/listinfo/ltsp-discuss
For additional LTSP help,   try #ltsp channel on irc.freenode.net

Reply via email to