[Solved] Allow user to shutdown using the power button

Share your opinion about Porteus Kiosk Edition.
Forum rules
Porteus Kiosk section of the forum is unmaintained now. Its kept in a 'read only' mode for archival purposes.
Please use the kiosk contact page for directing your queries: https://porteus-kiosk.org/contact.html
jordi_ramis
White ninja
White ninja
Posts: 6
Joined: 12 Jan 2014, 18:44
Distribution: Kiosk
Location: Spain

[Solved] Allow user to shutdown using the power button

Post#1 by jordi_ramis » 12 Jan 2014, 18:48

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
Last edited by jordi_ramis on 13 Jan 2014, 20:22, edited 1 time in total.

User avatar
fanthom
Moderator Team
Moderator Team
Posts: 5666
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland
Contact:

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

Post#2 by fanthom » 12 Jan 2014, 19:44

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.
Please add [Solved] to your thread title if the solution was found.

jordi_ramis
White ninja
White ninja
Posts: 6
Joined: 12 Jan 2014, 18:44
Distribution: Kiosk
Location: Spain

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

Post#3 by jordi_ramis » 13 Jan 2014, 11:25

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!.

jordi_ramis
White ninja
White ninja
Posts: 6
Joined: 12 Jan 2014, 18:44
Distribution: Kiosk
Location: Spain

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

Post#4 by jordi_ramis » 13 Jan 2014, 13:09

Hi,

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

Thanks a lot!

User avatar
fanthom
Moderator Team
Moderator Team
Posts: 5666
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland
Contact:

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

Post#5 by fanthom » 13 Jan 2014, 15:02

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.
Please add [Solved] to your thread title if the solution was found.

jordi_ramis
White ninja
White ninja
Posts: 6
Joined: 12 Jan 2014, 18:44
Distribution: Kiosk
Location: Spain

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

Post#6 by jordi_ramis » 13 Jan 2014, 19:04

Great!, I'm very glad to hear this!. Many thanks

User avatar
fanthom
Moderator Team
Moderator Team
Posts: 5666
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland
Contact:

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

Post#7 by fanthom » 15 Jan 2014, 15:07

this request has been implemented now - please build new ISO through the web wizard and check if everything is working as expected.
thanks
Please add [Solved] to your thread title if the solution was found.

jordi_ramis
White ninja
White ninja
Posts: 6
Joined: 12 Jan 2014, 18:44
Distribution: Kiosk
Location: Spain

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

Post#8 by jordi_ramis » 17 Jan 2014, 08:46

I've seen you have implemented it. Will try it probably today and will let you know.

Thanks a lot!

jordi_ramis
White ninja
White ninja
Posts: 6
Joined: 12 Jan 2014, 18:44
Distribution: Kiosk
Location: Spain

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

Post#9 by jordi_ramis » 17 Jan 2014, 19:58

It works!, thanks a lot. I'm just about to make a donation to the project. Thanks again.

stainsby
White ninja
White ninja
Posts: 8
Joined: 03 Dec 2013, 02:38
Distribution: Porteus 2.1 Kiosk Edition
Location: Brisbane, Australia
Contact:

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

Post#10 by stainsby » 21 Jan 2014, 04:34

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.

stainsby
White ninja
White ninja
Posts: 8
Joined: 03 Dec 2013, 02:38
Distribution: Porteus 2.1 Kiosk Edition
Location: Brisbane, Australia
Contact:

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

Post#11 by stainsby » 22 Jan 2014, 05:39

Too easy - the solution using the Slackware package works nicely.

Locked