WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: ⚡➔❌ Press Power Button to Shutdown  (Read 10950 times)

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14535
Re: ⚡➔❌ Press Power Button to Shutdown
« Reply #15 on: June 15, 2017, 01:44:21 PM »
You don't need to run it every time, that was just to test things.

Start the acpi daemon via the init.d script for normal use.

Offline evertvaningen

  • Jr. Member
  • **
  • Posts: 60
Re: ⚡➔❌ Press Power Button to Shutdown
« Reply #16 on: June 15, 2017, 01:57:11 PM »
What I did with my own understanding. :) it works :P

Code: [Select]
nano /home/tc/.X.d/run.sh
Containing
Code: [Select]
#!/bin/sh
sudo acpid -dfl

Make it runnable...
Code: [Select]
sudo chmod +x /home/tc/.X.d/run.sh

Quote
Start the acpi daemon via the init.d script for normal use.

So edit the init.d file and add
Code: [Select]
sudo acpi start
« Last Edit: June 15, 2017, 01:59:58 PM by evertvaningen »

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: ⚡➔❌ Press Power Button to Shutdown
« Reply #17 on: June 15, 2017, 02:18:41 PM »
Add "/usr/local/etc/init.d/ acpid start" to /opt/bootlocal.sh
Do NOT edit the init.d file, and don't put anything in ~/.X.d.

Offline evertvaningen

  • Jr. Member
  • **
  • Posts: 60
Re: ⚡➔❌ Press Power Button to Shutdown
« Reply #18 on: June 15, 2017, 03:39:37 PM »
Add "/usr/local/etc/init.d/ acpid start" to /opt/bootlocal.sh
Do NOT edit the init.d file, and don't put anything in ~/.X.d.

Got it...

Quote
Do NOT edit the init.d file, and don't put anything in ~/.X.d.
Why Gerald?

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: ⚡➔❌ Press Power Button to Shutdown
« Reply #19 on: June 15, 2017, 03:51:06 PM »
The init.d file works as distributed.
Don't break it.

Offline polikuo

  • Hero Member
  • *****
  • Posts: 714
Re: ⚡➔❌ Press Power Button to Shutdown
« Reply #20 on: June 15, 2017, 08:42:13 PM »
Quote
don't put anything in ~/.X.d.

The scripts under ~/.X.d only execute whenever the X server starts.

Some users do not need X server on their machine.

/opt/bootlocal.sh is for system maintenance.

Offline evertvaningen

  • Jr. Member
  • **
  • Posts: 60
Re: ⚡➔❌ Press Power Button to Shutdown
« Reply #21 on: June 16, 2017, 07:54:59 AM »
Add "/usr/local/etc/init.d/ acpid start" to /opt/bootlocal.sh

After boot button does nothing, still have to do sudo acpid start to get it to work.
« Last Edit: June 16, 2017, 07:58:39 AM by evertvaningen »

Offline Misalf

  • Hero Member
  • *****
  • Posts: 1702
Re: ⚡➔❌ Press Power Button to Shutdown
« Reply #22 on: June 16, 2017, 07:59:31 AM »
It seems a space accidentally slipped in.
/usr/local/etc/init.d/ acpid start
should be
/usr/local/etc/init.d/acpid start
Download a copy and keep it handy: Core book ;)

Offline evertvaningen

  • Jr. Member
  • **
  • Posts: 60
Re: ⚡➔❌ Press Power Button to Shutdown
« Reply #23 on: June 16, 2017, 08:10:28 AM »
It seems a space accidentally slipped in.
/usr/local/etc/init.d/ acpid start
should be
/usr/local/etc/init.d/acpid start

It can happen, thank you... now my tutorial is complete.

You'll see ;)