You are not logged in.
Pages: 1
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
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
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
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
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
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.shthen, create /usr/local/bin/shutdownsync.sh with this content:
#!/bin/sh
sync
/usr/bin/systemctl --force poweroffdon'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
Pages: 1