Saturday, April 27, 2024
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 2634  / 1 Year ago, sun, december 4, 2022, 7:59:25

When I try to turn off my laptop everything goes fine and it shows black screen, but it doesn't power off, and the only thing I can do is to power it off manually.
I tried turning off with poweroff -f or shutdown -h now but nothing change.


This problem appeared for the first time on Ubuntu 20.04 LTS. Then I tried to reinstall the same same version of Ubuntu but the problem was still there. I tried installing Ubuntu 21.10, but nothing changed.
In the end I tried a different distribution (Pop!_OS) and it power off normally.
I'm using a Acer Aspire 3 A315-21-92HJ with AMD A9-9420, 8 GB RAM and a 250GB SSD.


EDIT ---


I include the log file obtained with tac /var/log/syslog > ~/log.txt:


Jan  5 17:56:36 Gallimimus systemd[1]: Stopped Hold until boot process finishes up.
Jan 5 17:56:36 Gallimimus systemd[1]: plymouth-quit-wait.service: Deactivated successfully.
Jan 5 17:56:36 Gallimimus systemd[1]: Stopping PackageKit Daemon...
Jan 5 17:56:36 Gallimimus systemd[1]: Stopped OpenVPN service.
Jan 5 17:56:36 Gallimimus systemd[1]: openvpn.service: Deactivated successfully.
Jan 5 17:56:36 Gallimimus systemd[1]: Stopping Dispatcher daemon for systemd-networkd...
Jan 5 17:56:36 Gallimimus systemd[1]: Stopping Tool to automatically collect and submit kernel crash signatures...
Jan 5 17:56:36 Gallimimus systemd[1]: Stopping irqbalance daemon...
Jan 5 17:56:36 Gallimimus systemd[1]: Stopping GNOME Display Manager...
Jan 5 17:56:36 Gallimimus systemd[1]: Stopping Make remote CUPS printers available locally...
Jan 5 17:56:36 Gallimimus systemd[1]: Stopping Regular background program processing daemon...
Jan 5 17:56:36 Gallimimus systemd[1]: Stopping Manage, Install and Generate Color Profiles...
Jan 5 17:56:36 Gallimimus kernel: [ 1444.798835] audit: type=1400 audit(1641401796.100:118): apparmor="DENIED" operation="open" profile="/usr/sbin/cupsd" name="/proc/cmdline" pid=700 comm="cupsd" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
Jan 5 17:56:36 Gallimimus kernel: [ 1444.798776] audit: type=1400 audit(1641401796.100:117): apparmor="DENIED" operation="open" profile="/usr/sbin/cupsd" name="/proc/1/environ" pid=700 comm="cupsd" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
Jan 5 17:56:36 Gallimimus kernel: [ 1444.798678] audit: type=1400 audit(1641401796.100:116): apparmor="DENIED" operation="open" profile="/usr/sbin/cupsd" name="/proc/sys/kernel/osrelease" pid=700 comm="cupsd" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
Jan 5 17:56:36 Gallimimus bluetoothd[606]: Endpoint unregistered: sender=:1.77 path=/MediaEndpoint/A2DPSource/sbc_xq_552
Jan 5 17:56:36 Gallimimus bluetoothd[606]: Endpoint unregistered: sender=:1.77 path=/MediaEndpoint/A2DPSink/sbc_xq_552
Jan 5 17:56:36 Gallimimus bluetoothd[606]: Endpoint unregistered: sender=:1.77 path=/MediaEndpoint/A2DPSource/sbc_xq_512
Jan 5 17:56:36 Gallimimus bluetoothd[606]: Endpoint unregistered: sender=:1.77 path=/MediaEndpoint/A2DPSink/sbc_xq_512
Jan 5 17:56:36 Gallimimus bluetoothd[606]: Endpoint unregistered: sender=:1.77 path=/MediaEndpoint/A2DPSource/sbc_xq_453
Jan 5 17:56:36 Gallimimus bluetoothd[606]: Endpoint unregistered: sender=:1.77 path=/MediaEndpoint/A2DPSink/sbc_xq_453
Jan 5 17:56:36 Gallimimus bluetoothd[606]: Endpoint unregistered: sender=:1.77 path=/MediaEndpoint/A2DPSource/sbc
Jan 5 17:56:36 Gallimimus bluetoothd[606]: Endpoint unregistered: sender=:1.77 path=/MediaEndpoint/A2DPSink/sbc
Jan 5 17:56:36 Gallimimus systemd[1]: Stopping Bluetooth service...
Jan 5 17:56:36 Gallimimus bluetoothd[606]: Terminating
Jan 5 17:56:36 Gallimimus systemd[1]: Stopping LSB: automatic crash report generation...
Jan 5 17:56:36 Gallimimus systemd[1]: Stopping Save/Restore Sound Card State...
Jan 5 17:56:36 Gallimimus systemd[1]: Stopping ACPI event daemon...
Jan 5 17:56:36 Gallimimus systemd[1]: Stopping Accounts Service...
Jan 5 17:56:36 Gallimimus systemd[1]: Stopping Modem Manager...
Jan 5 17:56:36 Gallimimus gnome-shell[1412]: The offending signal was state-changed on NMDeviceWifi 0x55d645ff4390.
Jan 5 17:56:36 Gallimimus gnome-shell[1412]: Attempting to call back into JSAPI during the sweeping phase of GC. This is most likely caused by not destroying a Clutter actor or Gtk+ widget with ::destroy signals connected, but can also be caused by using the destroy(), dispose(), or remove() vfuncs. Because it would crash the application, it has been blocked and the JS callback not invoked.
Jan 5 17:56:36 Gallimimus gnome-shell[1412]: The offending signal was state-changed on NMDeviceEthernet 0x55d645fee250.
Jan 5 17:56:36 Gallimimus gnome-shell[1412]: Attempting to call back into JSAPI during the sweeping phase of GC. This is most likely caused by not destroying a Clutter actor or Gtk+ widget with ::destroy signals connected, but can also be caused by using the destroy(), dispose(), or remove() vfuncs. Because it would crash the application, it has been blocked and the JS callback not invoked.
Jan 5 17:56:36 Gallimimus gnome-shell[1412]: The offending signal was notify on NMActiveConnection 0x55d645ffd180.
Jan 5 17:56:36 Gallimimus gnome-shell[1412]: Attempting to call back into JSAPI during the sweeping phase of GC. This is most likely caused by not destroying a Clutter actor or Gtk+ widget with ::destroy signals connected, but can also be caused by using the destroy(), dispose(), or remove() vfuncs. Because it would crash the application, it has been blocked and the JS callback not invoked.
Jan 5 17:56:36 Gallimimus gnome-shell[1412]: The offending signal was notify on NMDeviceWifi 0x55d645ff4390.
Jan 5 17:56:36 Gallimimus gnome-shell[1412]: Attempting to call back into JSAPI during the sweeping phase of GC. This is most likely caused by not destroying a Clutter actor or Gtk+ widget with ::destroy signals connected, but can also be caused by using the destroy(), dispose(), or remove() vfuncs. Because it would crash the application, it has been blocked and the JS callback not invoked.
Jan 5 17:56:36 Gallimimus gnome-shell[1412]: message repeated 4 times: [ == Stack trace for context 0x55d643bdd1c0 ==]
Jan 5 17:56:36 Gallimimus gnome-shell[1412]: == Stack trace for context 0x55d643bdd1c0 ==
Jan 5 17:56:36 Gallimimus gnome-shell[1412]: The offending signal was notify on NMDeviceEthernet 0x55d645fee250.
Jan 5 17:56:36 Gallimimus gnome-shell[1412]: Attempting to call back into JSAPI during the sweeping phase of GC. This is most likely caused by not destroying a Clutter actor or Gtk+ widget with ::destroy signals connected, but can also be caused by using the destroy(), dispose(), or remove() vfuncs. Because it would crash the application, it has been blocked and the JS callback not invoked.
Jan 5 17:56:36 Gallimimus ModemManager[714]: <info> ModemManager is shut down
Jan 5 17:56:36 Gallimimus NetworkManager[610]: <info> [1641401796.0767] modem-manager: ModemManager no longer available
Jan 5 17:56:36 Gallimimus systemd[1293]: Stopped Monitor Session leader for GNOME Session.
Jan 5 17:56:36 Gallimimus systemd[1293]: gnome-session-monitor.service: Deactivated successfully.
Jan 5 17:56:36 Gallimimus systemd[1]: Closed Load/Save RF Kill Switch Status /dev/rfkill Watch.
Jan 5 17:56:36 Gallimimus ModemManager[714]: <info> caught signal, shutting down...
Jan 5 17:56:36 Gallimimus systemd[1]: systemd-rfkill.socket: Deactivated successfully.
Jan 5 17:56:36 Gallimimus systemd[1]: Stopped target System Time Set.
Jan 5 17:56:36 Gallimimus systemd[1]: Stopped Check to see whether there is a new version of Ubuntu available.
Jan 5 17:56:36 Gallimimus systemd[1]: update-notifier-motd.timer: Deactivated successfully.
Jan 5 17:56:36 Gallimimus systemd[1]: Stopped Download data for packages that failed at package install time.
Jan 5 17:56:36 Gallimimus systemd[1]: update-notifier-download.timer: Deactivated successfully.
Jan 5 17:56:36 Gallimimus systemd[1]: Stopped Ubuntu Advantage Timer for running repeated jobs.
Jan 5 17:56:36 Gallimimus systemd[1]: ua-timer.timer: Deactivated successfully.
Jan 5 17:56:36 Gallimimus systemd[1]: Stopped Daily Cleanup of Temporary Directories.
Jan 5 17:56:36 Gallimimus systemd[1]: systemd-tmpfiles-clean.timer: Deactivated successfully.
Jan 5 17:56:36 Gallimimus systemd[1]: Stopped Message of the Day.
Jan 5 17:56:36 Gallimimus systemd[1]: motd-news.timer: Deactivated successfully.
Jan 5 17:56:36 Gallimimus systemd[1]: Stopped Daily man-db regeneration.
Jan 5 17:56:36 Gallimimus systemd[1]: man-db.timer: Deactivated successfully.
Jan 5 17:56:36 Gallimimus systemd[1]: Stopped Daily rotation of log files.
Jan 5 17:56:36 Gallimimus systemd[1]: logrotate.timer: Deactivated successfully.
Jan 5 17:56:36 Gallimimus systemd[1]: Stopped Refresh fwupd metadata regularly.
Jan 5 17:56:36 Gallimimus systemd[1]: fwupd-refresh.timer: Deactivated successfully.
Jan 5 17:56:36 Gallimimus systemd[1]: Stopped Discard unused blocks once a week.
Jan 5 17:56:36 Gallimimus systemd[1]: fstrim.timer: Deactivated successfully.
Jan 5 17:56:36 Gallimimus systemd[1]: Stopped Periodic ext4 Online Metadata Check for All Filesystems.
Jan 5 17:56:36 Gallimimus systemd[1]: e2scrub_all.timer: Deactivated successfully.
Jan 5 17:56:36 Gallimimus systemd[1]: Stopped Daily apt download activities.
Jan 5 17:56:36 Gallimimus systemd[1]: apt-daily.timer: Deactivated successfully.
Jan 5 17:56:36 Gallimimus systemd[1]: Stopped Daily apt upgrade and clean activities.
Jan 5 17:56:36 Gallimimus systemd[1]: apt-daily-upgrade.timer: Deactivated successfully.
Jan 5 17:56:36 Gallimimus systemd[1]: Stopped Trigger anacron every hour.
Jan 5 17:56:36 Gallimimus systemd[1]: anacron.timer: Deactivated successfully.
Jan 5 17:56:36 Gallimimus systemd[1]: Stopped target Timers.
Jan 5 17:56:36 Gallimimus systemd[1]: Stopped target Sound Card.
Jan 5 17:56:36 Gallimimus systemd[1]: Stopped target Login Prompts.
Jan 5 17:56:36 Gallimimus systemd[1]: Stopped target Multi-User System.
Jan 5 17:56:36 Gallimimus systemd[1]: Stopped target Graphical Interface.
Jan 5 17:56:36 Gallimimus systemd[1]: Stopped target Bluetooth.
Jan 5 17:56:36 Gallimimus systemd[1]: Removed slice system-systemdx2dbacklight.slice.
Jan 5 17:56:36 Gallimimus systemd[1]: Removed slice system-modprobe.slice.
Jan 5 17:56:36 Gallimimus systemd[1293]: Stopped GNOME Session Manager (session: ubuntu).
Jan 5 17:56:36 Gallimimus systemd[1]: Removed slice system-getty.slice.
Jan 5 17:56:36 Gallimimus systemd[1293]: [email protected]: Deactivated successfully.
Jan 5 17:56:36 Gallimimus systemd[1]: Stopping Session 2 of user cosimo.
Jan 5 17:56:36 Gallimimus systemd[1293]: Stopping GNOME Wacom tablet support service...
Jan 5 17:56:36 Gallimimus systemd[1293]: Stopping GNOME power management service...
Jan 5 17:56:36 Gallimimus systemd[1293]: Stopping GNOME keyboard shortcuts service...
Jan 5 17:56:36 Gallimimus systemd[1293]: Stopping GNOME keyboard configuration service...
Jan 5 17:56:36 Gallimimus systemd[1293]: Stopping GNOME color management service...
Jan 5 17:56:36 Gallimimus systemd[1293]: Stopped target GNOME XSettings target.
Jan 5 17:56:36 Gallimimus systemd[1293]: Stopped target GNOME Wacom tablet support target.
Jan 5 17:56:36 Gallimimus systemd[1293]: Stopped target GNOME sound sample caching target.
Jan 5 17:56:36 Gallimimus systemd[1293]: Stopped target GNOME smartcard target.
Jan 5 17:56:36 Gallimimus systemd[1293]: Stopped target GNOME file sharing target.
Jan 5 17:56:36 Gallimimus systemd[1293]: Stopped target GNOME FreeDesktop screensaver target.
Jan 5 17:56:36 Gallimimus systemd[1293]: Stopped target GNOME RFKill support target.
Jan 5 17:56:36 Gallimimus systemd[1293]: Stopped target GNOME printer notifications target.
Jan 5 17:56:36 Gallimimus systemd[1293]: Stopped target GNOME power management target.
Jan 5 17:56:36 Gallimimus systemd[1293]: Stopped target GNOME keyboard shortcuts target.
Jan 5 17:56:36 Gallimimus systemd[1293]: Stopped target GNOME keyboard configuration target.
Jan 5 17:56:36 Gallimimus systemd[1293]: Stopped target GNOME maintenance of expirable data target.
Jan 5 17:56:36 Gallimimus systemd[1293]: Stopped target GNOME date & time target.
Jan 5 17:56:36 Gallimimus systemd[1293]: Stopped target GNOME color management target.
Jan 5 17:56:36 Gallimimus systemd[1293]: Stopped target GNOME accessibility target.
Jan 5 17:56:36 Gallimimus systemd[1293]: Stopped target GNOME Session (session: ubuntu).
Jan 5 17:56:36 Gallimimus systemd[1293]: Stopped target GNOME Wayland Session.
Jan 5 17:56:36 Gallimimus systemd[1293]: Stopped target GNOME Session.
Jan 5 17:56:36 Gallimimus systemd[1293]: Stopped Path trigger for new release of Ubuntu notifications.
Jan 5 17:56:36 Gallimimus systemd[1293]: update-notifier-release.path: Deactivated successfully.
Jan 5 17:56:36 Gallimimus systemd[1293]: Stopped Path trigger for Apport crash notifications.
Jan 5 17:56:36 Gallimimus systemd[1293]: update-notifier-crash.path: Deactivated successfully.
Jan 5 17:56:36 Gallimimus systemd[1293]: Stopped target Current graphical user session.
Jan 5 17:56:36 Gallimimus systemd[1293]: Stopped target GNOME Wayland Session (session: ubuntu).
Jan 5 17:56:36 Gallimimus systemd[1293]: org.gnome.SettingsDaemon.ScreensaverProxy.service: Deactivated successfully.
Jan 5 17:56:36 Gallimimus systemd[1293]: org.gnome.SettingsDaemon.PrintNotifications.service: Deactivated successfully.
Jan 5 17:56:36 Gallimimus systemd[1293]: org.gnome.SettingsDaemon.Housekeeping.service: Deactivated successfully.
Jan 5 17:56:36 Gallimimus systemd[1293]: org.gnome.SettingsDaemon.Datetime.service: Deactivated successfully.
Jan 5 17:56:36 Gallimimus systemd[1293]: org.gnome.SettingsDaemon.Sound.service: Deactivated successfully.
Jan 5 17:56:36 Gallimimus systemd[1293]: org.gnome.SettingsDaemon.Sharing.service: Deactivated successfully.
Jan 5 17:56:36 Gallimimus systemd[1293]: org.gnome.SettingsDaemon.A11ySettings.service: Deactivated successfully.
Jan 5 17:56:35 Gallimimus systemd[1]: unattended-upgrades.service: Deactivated successfully.
Jan 5 17:56:35 Gallimimus gnome-shell[1412]: Unhandled promise rejection. To suppress this warning, add an error handler to your promise chain with .catch() or a try-catch block around your await expression. Stack trace of the failed promise:#012 _seekStatusNotifierItems/<@/usr/share/gnome-shell/extensions/[email protected]/statusNotifierWatcher.js:141:1#012 _seekStatusNotifierItems@/usr/share/gnome-shell/extensions/[email protected]/statusNotifierWatcher.js:141:21#012 async*AppIndicatorsStatusNotifierWatcher@/usr/share/gnome-shell/extensions/[email protected]/statusNotifierWatcher.js:57:14#012 maybeEnableAfterNameAvailable@/usr/share/gnome-shell/extensions/[email protected]/extension.js:54:33#012 enable@/usr/share/gnome-shell/extensions/[email protected]/extension.js:59:5#012 _callExtensionEnable@resource:///org/gnome/shell/ui/extensionSystem.js:168:32#012 loadExtension@resource:///org/gnome/shell/ui/extensionSystem.js:351:26#012 _loadExtensions/<@resource:///org/gnome/shell/ui/extensionSystem.js:597:18#012 collectFromDatadirs@resource:///org/gnome/shell/misc/fileUtils.js:27:28#012 _loadExtensions@resource:///org/gnome/shell/ui/extensionSystem.js:572:19#012 _enableAllExtensions@resource:///org/gnome/shell/ui/extensionSystem.js:606:18#012 _sessionUpdated@resource:///org/gnome/shell/ui/extensionSystem.js:637:18#012 init@resource:///org/gnome/shell/ui/extensionSystem.js:57:14#012 _initializeUI@resource:///org/gnome/shell/ui/main.js:278:22#012 start@resource:///org/gnome/shell/ui/main.js:175:5#012 @<main>:1:47
Jan 5 17:56:35 Gallimimus gnome-shell[1412]: Unhandled promise rejection. To suppress this warning, add an error handler to your promise chain with .catch() or a try-catch block around your await expression. Stack trace of the failed promise:#012 _seekStatusNotifierItems/<@/usr/share/gnome-shell/extensions/[email protected]/statusNotifierWatcher.js:141:1#012 _seekStatusNotifierItems@/usr/share/gnome-shell/extensions/[email protected]/statusNotifierWatcher.js:141:21#012 async*AppIndicatorsStatusNotifierWatcher@/usr/share/gnome-shell/extensions/[email protected]/statusNotifierWatcher.js:57:14#012 maybeEnableAfterNameAvailable@/usr/share/gnome-shell/extensions/[email protected]/extension.js:54:33#012 enable@/usr/share/gnome-shell/extensions/[email protected]/extension.js:59:5#012 _callExtensionEnable@resource:///org/gnome/shell/ui/extensionSystem.js:168:32#012 loadExtension@resource:///org/gnome/shell/ui/extensionSystem.js:351:26#012 _loadExtensions/<@resource:///org/gnome/shell/ui/extensionSystem.js:597:18#012 collectFromDatadirs@resource:///org/gnome/shell/misc/fileUtils.js:27:28#012 _loadExtensions@resource:///org/gnome/shell/ui/extensionSystem.js:572:19#012 _enableAllExtensions@resource:///org/gnome/shell/ui/extensionSystem.js:606:18#012 _sessionUpdated@resource:///org/gnome/shell/ui/extensionSystem.js:637:18#012 init@resource:///org/gnome/shell/ui/extensionSystem.js:57:14#012 _initializeUI@resource:///org/gnome/shell/ui/main.js:278:22#012 start@resource:///org/gnome/shell/ui/main.js:175:5#012 @<main>:1:47
Jan 5 17:56:35 Gallimimus systemd[1293]: org.gnome.SettingsDaemon.Smartcard.service: Deactivated successfully.
Jan 5 17:56:35 Gallimimus systemd[1293]: org.gnome.SettingsDaemon.Rfkill.service: Deactivated successfully.
Jan 5 17:56:35 Gallimimus kernel: [ 1444.612640] rfkill: input handler enabled

I turned the pc off at 17:56:35 and I waited until 17:37:35 for the forced power off.


EDIT 2 ---


I include the output of ls -al /usr/share/gnome-shell/extensions:


total 20
drwxr-xr-x 5 root root 4096 ago 19 12:35 .
drwxr-xr-x 7 root root 4096 ago 19 12:40 ..
drwxr-xr-x 2 root root 4096 ago 19 12:35 desktop-icons@csoriano
drwxr-xr-x 3 root root 4096 ago 19 12:35 [email protected]
drwxr-xr-x 3 root root 4096 ago 19 12:35 [email protected]

EDIT 3 ---
I tried many different things, and I may found something:


From the GRUB menu, choosing Advanced options for Ubuntu, I find 4 elements (2 kernel in normal and recovery mode):


Ubuntu, with Linux 5.11.0-46-generic


Ubuntu, with Linux 5.11.0-46-generic (recovery mode)


Ubuntu, with Linux 5.11.0-27-generic


Ubuntu, with Linux 5.11.0-27-generic (recovery mode)


If I choose the third option, and boot normally, my pc power off successfully
If I choose recovery mode for both kernel, and in the next window choose resume to boot normally, it power off successfully.
If I choose the first option (which i suppose to be the default kernel), and boot normally, my pc doesn't power off.


More From » power-management

 Answers
6

As I wrote in EDIT 3 of my answer:


From the GRUB menu, choosing Advanced options for Ubuntu, I find 4 elements (2 kernel in normal and recovery mode):


Ubuntu, with Linux 5.11.0-46-generic


Ubuntu, with Linux 5.11.0-46-generic (recovery mode)


Ubuntu, with Linux 5.11.0-27-generic


Ubuntu, with Linux 5.11.0-27-generic (recovery mode)


If I choose the third option, hence a different kernel, my pc power off successfully.


Since it was a problem of my Acer with that specific kernel (Ubuntu, with Linux 5.11.0-46-generic), I simply changed the default kernel following this answer.


In my specific case I:



  • made a backup copy of /etc/default/grub:


sudo cp /etc/default/grub /etc/default/grub.bak


  • Edited the file


sudo -H gedit /etc/default/grub


  • Changed the line GRUB_DEFAULT from GRUB_DEFAULT=0 to:


GRUB_DEFAULT='Advanced options for Ubuntu>Ubuntu, with Linux 5.11.0-27-generic'


  • Updated grub menu:


sudo update-grub

[#879] Tuesday, December 6, 2022, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
rstride

Total Points: 305
Total Questions: 112
Total Answers: 118

Location: Mali
Member since Sat, Dec 26, 2020
3 Years ago
;