Re: how to make power off button work like halt -p

2012-11-23 Thread Remco
??? wrote:

 i need to install openbsd on a blind computer(without monitor).so i need
 to press power off button to shutdown the computer.i know that use ssh is
 a right way. but press power off is more effective way.
 
 
 
 
 
 in the version 5.2, i just press power off, and the computer shutdown
 directly without clean the file system. i think this would do harm to the
 database server. i want to know how to make power off button work link
 halt -p command.

You may need to enable something in your BIOS along the lines of press the 
power button for 4 seconds in order to power off.

From the software perspective, I think you also need the acpibtn(4) device. 
(check your dmesg for that)



Re: how to make power off button work like halt -p

2012-11-23 Thread Remco
??? wrote:

 do you mean that i should compile the acpictn device to the
 kernel.default 5.2 kernel have acpi device, but without acpibtn.
 

If your dmesg doesn't show a acpibtn device, apart from checking hardware 
setup (e.g. BIOS settings), I'm out of ideas.

 -- Original --From:
  Remcore...@d-compu.dyndns.org;Date:  Fri, Nov 23, 2012 04:00 AMTo:
  眼镜蛇cob...@qq.com; miscmisc@openbsd.org; Subject:  Re: how
 to make power off button work like halt -p
 ??? wrote:
 
 i need to install openbsd on a blind computer(without monitor).so i
 need
 to press power off button to shutdown the computer.i know that use ssh
 is
 a right way. but press power off is more effective way.





 in the version 5.2, i just press power off, and the computer shutdown
 directly without clean the file system. i think this would do harm to
 the
 database server. i want to know how to make power off button work link
 halt -p command.
 
 You may need to enable something in your BIOS along the lines of press
 the
 power button for 4 seconds in order to power off.
 
 From the software perspective, I think you also need the acpibtn(4)
 device.
 (check your dmesg for that)



how to make power off button work like halt -p

2012-11-22 Thread ??????
i need to install openbsd on a blind computer(without monitor).so i need to 
press power off button to shutdown the computer.i know that use ssh is a right 
way. but press power off is more effective way.





in the version 5.2, i just press power off, and the computer shutdown directly 
without clean the file system. i think this would do harm to the database 
server. i want to know how to make power off button work link halt -p command.



Re: how to make power off button work like halt -p

2012-11-22 Thread Renzo Fabriek
On Thursday 22 November 2012 16:13:26 眼镜蛇 wrote:
 i need to install openbsd on a blind computer(without monitor).so i need to 
 press power off button to shutdown the computer.i know that use ssh is a 
 right way. but press power off is more effective way.
 
 
 
 
 
 in the version 5.2, i just press power off, and the computer shutdown 
 directly without clean the file system. i think this would do harm to the 
 database server. i want to know how to make power off button work link halt 
 -p command.
 
 

Have you tried it? Just a short press on the button?



Re: how to make power off button work like halt -p

2012-11-22 Thread David Diggles
You could try uncommenting one of these in /etc/sysctl.conf

#machdep.apmhalt=1  # 1=powerdown hack, try if halt -p doesn't work
#machdep.kbdreset=1 # permit console CTRL-ALT-DEL to do a nice halt 

Also, check your BIOS settings.

On

OnThu, Nov 22, 2012 at 11:13:26PM +0800, ?? wrote:
 i need to install openbsd on a blind computer(without monitor).so i need to 
 press power off button to shutdown the computer.i know that use ssh is a 
 right way. but press power off is more effective way.
 
 
 in the version 5.2, i just press power off, and the computer shutdown 
 directly without clean the file system. i think this would do harm to the 
 database server. i want to know how to make power off button work link halt 
 -p command.



回复: how to make power off button work like halt -p

2012-11-22 Thread 眼镜蛇
À´ÐÅÊÕµ½£¬Ð»Ð»£¡ 

-- ԭʼÓʼþ --

·¢¼þÈË:Renzo Fabriekrfabr...@nerdshack.com;

·¢ËÍʱ¼ä:2012Äê11ÔÂ23ÈÕ(ÐÇÆÚÎå) Á賿1:09

ÊÕ¼þÈË:miscmisc@openbsd.org;

Ö÷Ìâ:Re: how to make power off button work like halt -p



On Thursday 22 November 2012 16:13:26 ÑÛ¾µÉß wrote:

 i need to install openbsd on a blind computer(without monitor).so i need to 
 press power off button to shutdown the computer.i know that use ssh is a 
 right way. but press power off is more effective way.

 

 

 

 

 

 in the version 5.2, i just press power off, and the computer shutdown 
 directly without clean the file system. i think this would do harm to the 
 database server. i want to know how to make power off button work link halt 
 -p command.

 

 



Have you tried it? Just a short press on the button?



回复: how to make power off button work like halt -p

2012-11-22 Thread 眼镜蛇
来信收到,谢谢! 
-- 原始邮件 --
发件人:rfabriekrfabr...@nerdshack.com;
发送时间:2012年11月23日(星期五) 凌晨1:09
收件人:miscmisc@openbsd.org;
主题:Re: how to make power off button work like halt -p

On Thursday 22 November 2012 16:13:26 眼镜蛇 wrote:
 i need to install openbsd on a blind computer(without monitor).so i need to 
 press power off button to shutdown the computer.i know that use ssh is a 
 right way. but press power off is more effective way.
 
 
 
 
 
 in the version 5.2, i just press power off, and the computer shutdown 
 directly without clean the file system. i think this would do harm to the 
 database server. i want to know how to make power off button work link halt 
 -p command.
 
 

Have you tried it? Just a short press on the button?



Re: how to make power off button work like halt -p

2012-11-22 Thread 眼镜蛇
do you mean that i should compile the acpictn device to the
kernel.default 5.2 kernel have acpi device, but without acpibtn.

-- Original --From:
 Remcore...@d-compu.dyndns.org;Date:  Fri, Nov 23, 2012 04:00 AMTo:
 眼镜蛇cob...@qq.com; miscmisc@openbsd.org; Subject:  Re: how
to make power off button work like halt -p
??? wrote:

 i need to install openbsd on a blind computer(without monitor).so i
need
 to press power off button to shutdown the computer.i know that use ssh
is
 a right way. but press power off is more effective way.





 in the version 5.2, i just press power off, and the computer shutdown
 directly without clean the file system. i think this would do harm to
the
 database server. i want to know how to make power off button work link
 halt -p command.

You may need to enable something in your BIOS along the lines of press
the
power button for 4 seconds in order to power off.

From the software perspective, I think you also need the acpibtn(4)
device.
(check your dmesg for that)