LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 07-04-2022, 11:27 AM   #1
dr_berta
Member
 
Registered: Sep 2005
Location: Carpi (Modena) - Italy
Distribution: Ubuntu 20.04_x86_64 LTS; Slackware 13 64bit; Gentoo, Fedora, Yocto
Posts: 98

Rep: Reputation: 1
How to avoid automatic switch-off of the panel pc at poweroff


HI all,

for an application working on Ubuntu 16.04 LTS, I would like to avoid to have the automatic switch off of a panel PC after the poweroff command because I want to force a physical switch off from the mains switch.

I have two models of panel PCs: one behaves as I want (the pc goes in halt condition and the monitor remains on with a screen saying to turn off the device), while the other at the shutdown shows me the shutdown screen but after 2-3 seconds it is turned off.
Unfortunately I cannot understand where the difference between the two panel PCs lies.

Any suggestion about how to have the desired behavior?
Could it be a BIOS setting? I didn't find it.

Thanks
Claudio
 
Old 07-04-2022, 12:24 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,388

Rep: Reputation: 581Reputation: 581Reputation: 581Reputation: 581Reputation: 581Reputation: 581
Quote:
Originally Posted by dr_berta View Post
HI all,

for an application working on Ubuntu 16.04 LTS, I would like to avoid to have the automatic switch off of a panel PC after the poweroff command because I want to force a physical switch off from the mains switch.

I have two models of panel PCs: one behaves as I want (the pc goes in halt condition and the monitor remains on with a screen saying to turn off the device), while the other at the shutdown shows me the shutdown screen but after 2-3 seconds it is turned off.
Unfortunately I cannot understand where the difference between the two panel PCs lies.

Any suggestion about how to have the desired behavior?
Could it be a BIOS setting? I didn't find it.

Thanks
Claudio
No, it is not a BIOS setting. It will be a command in your poweroff script. Here is a link to how the shutdown, halt, and the poweroff commands work.

https://www.tecmint.com/shutdown-pow...ands-in-linux/

Instead of using the panel menu you could open a terminal and issue the shutdown or poweroff command in the form that you want.

Or you could find out where the panel keeps the commands that it issues when you click on that command in the panel menu and change the panel command to what you want. I don't use Ubuntu so I can't look up where the Ubuntu panel keeps its commands for you.

Last edited by jailbait; 07-04-2022 at 12:25 PM.
 
Old 07-04-2022, 05:18 PM   #3
dr_berta
Member
 
Registered: Sep 2005
Location: Carpi (Modena) - Italy
Distribution: Ubuntu 20.04_x86_64 LTS; Slackware 13 64bit; Gentoo, Fedora, Yocto
Posts: 98

Original Poster
Rep: Reputation: 1
Thank you for your answer, I will read carefully the content of the link.

In any case I'm not using the windows manager of Ubuntu. I use only X.
The system works in kiosk mode and I have a script to launch the application at the automatic login.
When the application is closed, the script sends the command "poweroff".

I use plymouth to show the final screen. It is at this moment that the behavior of the two panel PCs is different.

Claudio
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] using switch in a function to call another function with a switch but it is not going into 2 switch ... BW-userx Programming 2 08-20-2017 11:47 PM
Tomcat 6 - Avoid automatic webapp startup fasta Linux - Server 1 04-18-2011 01:48 PM
[SOLVED] poweroff does not turn off Fujitsu N3530 notebook traveller1212 Slackware 7 06-19-2010 12:35 PM
Poweroff scheduled using atd: System does not power off. Borax_Man Linux - General 13 04-04-2009 02:14 AM
Avoid cat file1>>file2 automatic add return after file2. AshesOfTime Programming 5 11-25-2004 07:27 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 05:03 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration