WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

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

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 9282
Re: ⚡➔❌ Press Power Button to Shutdown
« Reply #15 on: June 15, 2017, 12: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, 12: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, 12:59:58 PM by evertvaningen »

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4231
Re: ⚡➔❌ Press Power Button to Shutdown
« Reply #17 on: June 15, 2017, 01: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, 02: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: 4231
Re: ⚡➔❌ Press Power Button to Shutdown
« Reply #19 on: June 15, 2017, 02:51:06 PM »
The init.d file works as distributed.
Don't break it.

Offline polikuo

  • Full Member
  • ***
  • Posts: 155
Re: ⚡➔❌ Press Power Button to Shutdown
« Reply #20 on: June 15, 2017, 07: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, 06: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, 06:58:39 AM by evertvaningen »

Online Misalf

  • Hero Member
  • *****
  • Posts: 1528
Re: ⚡➔❌ Press Power Button to Shutdown
« Reply #22 on: June 16, 2017, 06: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, 07: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 ;)