Page 1 of 1

[Solved] Allow user to shutdown using the power button

Posted: 12 Jan 2014, 18:48
by jordi_ramis
Hi,

I'm testing Porteus Kiosk 3.0RC1 and I've noted that I'm unable to shutdown the computer using the power button. I don't know if this is by design or it's a bug. Can anyone help? How can I allow users to shutdown the computer using the power button?.

Thanks a lot.!


Jordi Ramis
jordi_ramis@hotmail.com

Re: Allow user to shutdown the computer using the power butt

Posted: 12 Jan 2014, 19:44
by fanthom
this is by design as kiosk is meant for public places. you could enable shutdown key combination in the web wizard (ctrl+alt+del) which will let you power off kiosk easily. if you are not happy with this solution and want to get power button to work then please grab acpid package from here:
http://ftp.heanet.ie/mirrors/ftp.slackw ... i486-1.txz
and convert to xzm module using porteus standard edition. once done move it to /porteus/modules of your unpacked kiosk ISO.
last thing is to start acpid daemon so you can do it through /porteus/rootcopy/etc/rc.d/rc.local (make it executable):

Code: Select all

#!/bin/sh

# Start acpid:
sh /etc/rc.d/rc.acpid start
and now power button will work. please refer to kiosk FAQ when in doubt how to implement these customizations.

Re: Allow user to shutdown the computer using the power butt

Posted: 13 Jan 2014, 11:25
by jordi_ramis
Hi,

Thanks for your response!. The fact is that I'm using the kiosk mode for the guest to be able to browse but this is not an hotel but an apartment. So the guest must be able to shutdown the computer easily (he is paying for the electricity!). Is there any easier way to activate the power button, can this be included in the webpage version of the wizard?.

Thanks a lot!.

Re: Allow user to shutdown the computer using the power butt

Posted: 13 Jan 2014, 13:09
by jordi_ramis
Hi,

Another question, what is the file I need to make exectuable? rc.local? Can I use simply a chmod?.

Thanks a lot!

Re: Allow user to shutdown the computer using the power butt

Posted: 13 Jan 2014, 15:02
by fanthom
i always thought that ctrl+alt+del solution is enough but maybe you are right. will add possibility for shutting down kiosk also by pressing a power button on Thursday.
thanks for suggestion.

[Solved]Allow user to shutdown the computer using the power

Posted: 13 Jan 2014, 19:04
by jordi_ramis
Great!, I'm very glad to hear this!. Many thanks

Re: [Solved] Allow user to shutdown using the power button

Posted: 15 Jan 2014, 15:07
by fanthom
this request has been implemented now - please build new ISO through the web wizard and check if everything is working as expected.
thanks

Re: [Solved] Allow user to shutdown using the power button

Posted: 17 Jan 2014, 08:46
by jordi_ramis
I've seen you have implemented it. Will try it probably today and will let you know.

Thanks a lot!

Re: [Solved] Allow user to shutdown using the power button

Posted: 17 Jan 2014, 19:58
by jordi_ramis
It works!, thanks a lot. I'm just about to make a donation to the project. Thanks again.

Re: [Solved] Allow user to shutdown using the power button

Posted: 21 Jan 2014, 04:34
by stainsby
Actually, I'm glad to see this answer — I've been meaning to ask about it myself. Our client has kiosks which are locked away in cabinets. So, touch screens but no keyboard available to normal users. Power button shutdown could be a handy thing, especially since we have modified PKE to allow a writeable content storage areas: a tidy shutdown option is desirable for semi-skilled staff co-located with the kiosks.

Re: [Solved] Allow user to shutdown using the power button

Posted: 22 Jan 2014, 05:39
by stainsby
Too easy - the solution using the Slackware package works nicely.