You are not logged in.

#1 2024-08-23 04:46

Mbah Ujang
Member
Registered: 2024-08-17
Posts: 3

Reached target power off in Acer - [SOLVED]

Hello everyone, after installing 4QOS Aquarius, the laptop screen is still on but the status [OK] Reached Target PowerOff. I have tried in the control panel> ... > Turn Off, I made Shutdown (previously End Session) but it still doesn't work.
I use an Acer Aspire E1-410 laptop. I have also followed the same solution from this forum.
I have tried “sudo dpkg-reconfigure tdm-trinity”, “shutdown -h 0” .
Please help.

Last edited by Mbah Ujang (2024-08-26 12:42)

Offline

#2 2024-08-23 08:26

hchiper
Member
From: Belgium
Registered: 2020-07-28
Posts: 519

Re: Reached target power off in Acer - [SOLVED]

There are some posts on this forum on that subject, with different solutions.
Please use the search tool with "Reached Target Power Off' as keywords and check "Q4OS Support", then look in the results if one corresponds to your case.


Q4OS machine: Samsung R519 - Pentium T4200 2.0 GHz - 4 GB RAM - 500 GB SSD

Offline

#3 2024-08-23 13:04

seb3773
Member
Registered: 2023-11-01
Posts: 147

Re: Reached target power off in Acer - [SOLVED]

I already encountered this problem before with some laptops. Try this from a terminal:

sync
/usr/bin/systemctl --force poweroff

if it works, we can "patch" /usr/lib/systemd/system/systemd-poweroff.service to sync before powering off.


My Q4OS scripts: win10/osx theming, perfs optimisation, laptop configuration, ...  for trinity users -->  https://github.com/seb3773/q4osXpack

Offline

#4 2024-08-23 16:35

Mbah Ujang
Member
Registered: 2024-08-17
Posts: 3

Re: Reached target power off in Acer - [SOLVED]

before I thank you all, after I tried using “sudo /usr/bin/systemctl poweroff”, it worked fine. I added “ExecStartPre=/usr/bin/sync” in /usr/lib/systemd/system/systemd-poweroff.service, then “sudo systemctl daemon-reload” and “sudo shutdown -h now” it worked. When I turn it on and test again, it doesn't work anymore.

Offline

#5 2024-08-23 21:54

seb3773
Member
Registered: 2023-11-01
Posts: 147

Re: Reached target power off in Acer - [SOLVED]

Yeah, it won't work like that.
Instead, try this:

modify systemd-poweroff.service like that: (remove the ExecStartPre you added)

[Unit]
Description=System Power Off
Documentation=man:systemd-poweroff.service(8)
DefaultDependencies=no
Requires=shutdown.target umount.target final.target
After=shutdown.target umount.target final.target
SuccessAction=poweroff-force

[Service]
Type=oneshot
ExecStart=/usr/local/bin/shutdownsync.sh




then, create /usr/local/bin/shutdownsync.sh with this content:


#!/bin/sh
sync
/usr/bin/systemctl --force poweroff


don't forget to set it executable: sudo chmod +x /usr/local/bin/shutdownsync.sh

This should work after reboot.

Last edited by seb3773 (2024-08-23 21:59)


My Q4OS scripts: win10/osx theming, perfs optimisation, laptop configuration, ...  for trinity users -->  https://github.com/seb3773/q4osXpack

Offline

#6 2024-08-26 12:41

Mbah Ujang
Member
Registered: 2024-08-17
Posts: 3

Re: Reached target power off in Acer - [SOLVED]

seb3773 wrote:

Yeah, it won't work like that.
Instead, try this:

modify systemd-poweroff.service like that: (remove the ExecStartPre you added)

[Unit]
Description=System Power Off
Documentation=man:systemd-poweroff.service(8)
DefaultDependencies=no
Requires=shutdown.target umount.target final.target
After=shutdown.target umount.target final.target
SuccessAction=poweroff-force

[Service]
Type=oneshot
ExecStart=/usr/local/bin/shutdownsync.sh




then, create /usr/local/bin/shutdownsync.sh with this content:


#!/bin/sh
sync
/usr/bin/systemctl --force poweroff


don't forget to set it executable: sudo chmod +x /usr/local/bin/shutdownsync.sh

This should work after reboot.


I have followed your instructions, but it still doesn't work. it says “[OK] Reached final.target - Late Shutdown Service”. then, “Starting systemd-poweroff.service - system Power Off”, but not [OK].
if “journalctl -xe”
mbahUjang : TTY=pts/1 ; PWD=/home/mbahUjang ; USER=root ; COMMAND=/usr/bin/nano /usr/lib/systemd/system/system/systemd-poweroff.service

but no problem, I just need to run the shutdownsync.sh file in the terminal. THANK YOU for helping me.

Offline

Board footer

Powered by FluxBB