Choose style:

Author Topic: Peppermintos won't shutdown. *SOLVED  (Read 827 times)

0 Members and 1 Guest are viewing this topic.

Offline kuhitsu

  • nOOb
  • *
  • Posts: 20
  • Karma: 1
  • New Forum User
    • View Profile
Peppermintos won't shutdown. *SOLVED
« on: April 09, 2019, 10:39:39 am »
I've been off peppermint for a while, again, now i'm back.
My Asus E403S has this weird little hiccup, that about half of times, this wont shutdown. It get stuck in that shutdown .. white... line.. thingie.

so.. where should I start to fix this? 

ok.. edit.. funny fact. I made it so that when I push the power button.. computer should shutdown.  Well.. this get things stuck.  if I go the ... menu - log out- shutdown.. all work. EDIT 2. forget that.. it turns out.. that no matter the method, 80% times the shutdown get stuck.

« Last Edit: April 15, 2019, 02:28:03 pm by kuhitsu »

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 25451
  • Karma: 2798
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 8R, 9, and 9R
Re: Peppermintos won't shutdown.
« Reply #1 on: April 09, 2019, 03:04:56 pm »
When shutting down, and the shutdown appears to stall

a) does it eventually shutdown if left for about 5 minutes
and/or
b) If you hit the Esc key whilst shutdown appears stalled .. is there any writing displayed on screen ?

[EDIT]

ok.. edit.. funny fact. I made it so that when I push the power button.. computer should shutdown.  Well.. this get things stuck.  if I go the ... menu - log out- shutdown.. all work.

So what are you saying here, shutdown works perfectly if triggered in the normal way .. but ONLY doesn't work if you use the power button to shut down ?
« Last Edit: April 09, 2019, 03:07:29 pm by PCNetSpec »
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline kuhitsu

  • nOOb
  • *
  • Posts: 20
  • Karma: 1
  • New Forum User
    • View Profile
Re: Peppermintos won't shutdown.
« Reply #2 on: April 10, 2019, 01:37:37 am »
Quote
When shutting down, and the shutdown appears to stall

a) does it eventually shutdown if left for about 5 minutes
and/or
well. No.

Quote
b) If you hit the Esc key whilst shutdown appears stalled .. is there any writing displayed on screen ?
ESC does nothing.
[EDIT]

ok.. edit.. funny fact. I made it so that when I push the power button.. computer should shutdown.  Well.. this get things stuck.  if I go the ... menu - log out- shutdown.. all work.

So what are you saying here, shutdown works perfectly if triggered in the normal way .. but ONLY doesn't work if you use the power button to shut down ?

Well. that's what I was saying, but since I've learn that I was wrong. it's about 80% times, no matter the way I shutdown, that the process get stuck.

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 25451
  • Karma: 2798
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 8R, 9, and 9R
Re: Peppermintos won't shutdown.
« Reply #3 on: April 10, 2019, 06:45:17 am »
Just a second or so after hitting shutdown (as soon as the "Shutting Down" screen appears) hit Esc .. can you see text relaying the shutdown process ?

And can you post the output from:
Code: [Select]
inxi -Fz
and do the commands
Code: [Select]
sudo reboot -f
and
Code: [Select]
sudo poweroff -f
reboot, and poweroff respectively ?

Link for my future reference
https://freedesktop.org/wiki/Software/systemd/Debugging/#index2h1
« Last Edit: April 10, 2019, 06:54:40 am by PCNetSpec »
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline kuhitsu

  • nOOb
  • *
  • Posts: 20
  • Karma: 1
  • New Forum User
    • View Profile
Re: Peppermintos won't shutdown.
« Reply #4 on: April 10, 2019, 08:24:00 am »
inxi -Fz
Quote
System:     Host: Shiny Kernel: 4.15.0-47-generic x86_64 bits: 64 Desktop: N/A
Distro:       Peppermint Nine
Machine:   Device: laptop System: ASUSTeK product: E403SA v: 1.0 serial: N/A
Mobo:       ASUSTeK model: E403SA v: 1.0 serial: N/A
UEFI:         American Megatrends v: E403SA.301 date: 08/26/2016
Battery     BAT0: charge: 41.4 Wh 87.4% condition: 47.4/57.0 Wh (83%)
CPU:         Dual core Intel Celeron N3050 (-MCP-) cache: 1024 KB
clock speeds:  max: 2160 MHz 1: 1191 MHz 2: 541 MHz
Graphics:  Card: Intel Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Integrated Graphics Controller
                    Display Server: x11 (X.Org 1.19.6 )
drivers:      modesetting (unloaded: fbdev,vesa)
                   Resolution: 1366x768@60.00hz
           OpenGL: renderer: Mesa DRI Intel HD Graphics 400 (Braswell)
           version: 4.5 Mesa 18.2.8
Audio:     Card Intel Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series High Def. Audio Controller
           driver: snd_hda_intel
           Sound: Advanced Linux Sound Architecture v: k4.15.0-47-generic
Network:   Card: Qualcomm Atheros AR9462 Wireless Network Adapter driver: ath9k
           IF: wlp2s0 state: up mac: <filter>
Drives:    HDD Total Size: NA (-)
           ID-1: /dev/mmcblk0 model: N/A size: 31.3GB
Partition: ID-1: / size: 29G used: 9.3G (35%) fs: ext4 dev: /dev/mmcblk0p2
RAID:      No RAID devices: /proc/mdstat, md_mod kernel module present
Sensors:   System Temperatures: cpu: 34.0C mobo: 0.0C
           Fan Speeds (in rpm): cpu: 0
Info:      Processes: 170 Uptime: 2 min Memory: 531.9/1898.1MB
           Client: Shell (bash) inxi: 2.3.56

sudo poweroff -f = computer shutdown fast.
Sudo  reboot -f  = get's stuck without the shutdown window.
« Last Edit: April 10, 2019, 08:31:47 am by kuhitsu »

Offline kuhitsu

  • nOOb
  • *
  • Posts: 20
  • Karma: 1
  • New Forum User
    • View Profile
Re: Peppermintos won't shutdown.
« Reply #5 on: April 10, 2019, 09:24:14 am »
Is there someway to get that info, what it give when shuttingdown (but wont) .?

I took a photo it, but I have no idea how to add it here anyhow.

I have strong believe that with Linux, everything can be found from somewhere?

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 25451
  • Karma: 2798
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 8R, 9, and 9R
Re: Peppermintos won't shutdown.
« Reply #6 on: April 10, 2019, 10:07:16 am »
Can you post the output from
Code: [Select]
lsmod
[EDIT]

See here for posting images on this forum:
https://forum.peppermintos.com/index.php/topic,4284.msg42728.html#msg42728
« Last Edit: April 10, 2019, 10:08:56 am by PCNetSpec »
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline kuhitsu

  • nOOb
  • *
  • Posts: 20
  • Karma: 1
  • New Forum User
    • View Profile
Re: Peppermintos won't shutdown.
« Reply #7 on: April 10, 2019, 02:47:32 pm »
That's what happens when it tries to shut down.



lsmod
Code: [Select]
Module                  Size  Used by
ccm                    20480  6
rfcomm                 77824  4
cmac                   16384  1
bnep                   20480  2
snd_hda_codec_hdmi     49152  1
dcdbas                 16384  0
dell_wmi_descriptor    16384  0
snd_hda_codec_realtek   106496  1
nls_iso8859_1          16384  1
snd_hda_codec_generic    73728  1 snd_hda_codec_realtek
joydev                 24576  0
asus_nb_wmi            28672  0
asus_wmi               28672  1 asus_nb_wmi
sparse_keymap          16384  1 asus_wmi
intel_rapl             20480  0
intel_powerclamp       16384  0
coretemp               16384  0
kvm_intel             212992  0
kvm                   598016  1 kvm_intel
irqbypass              16384  1 kvm
punit_atom_debug       16384  0
crct10dif_pclmul       16384  0
crc32_pclmul           16384  0
arc4                   16384  2
ghash_clmulni_intel    16384  0
pcbc                   16384  0
ath9k                 151552  0
ath9k_common           36864  1 ath9k
ath9k_hw              471040  2 ath9k_common,ath9k
aesni_intel           188416  6
aes_x86_64             20480  1 aesni_intel
ath                    28672  3 ath9k_common,ath9k,ath9k_hw
crypto_simd            16384  1 aesni_intel
glue_helper            16384  1 aesni_intel
cryptd                 24576  3 crypto_simd,ghash_clmulni_intel,aesni_intel
mac80211              778240  1 ath9k
intel_cstate           20480  0
input_leds             16384  0
serio_raw              16384  0
ath3k                  20480  0
btusb                  45056  0
cfg80211              622592  4 ath9k_common,ath9k,ath,mac80211
i915                 1617920  4
btrtl                  16384  1 btusb
btbcm                  16384  1 btusb
rtsx_usb_ms            20480  0
btintel                16384  1 btusb
drm_kms_helper        167936  1 i915
bluetooth             548864  34 btrtl,btintel,btbcm,bnep,ath3k,btusb,rfcomm
memstick               16384  1 rtsx_usb_ms
snd_hda_intel          40960  4
snd_hda_codec         126976  4 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec_realtek
uvcvideo               86016  0
videobuf2_vmalloc      16384  1 uvcvideo
videobuf2_memops       16384  1 videobuf2_vmalloc
drm                   401408  5 drm_kms_helper,i915
lpc_ich                24576  0
videobuf2_v4l2         24576  1 uvcvideo
videobuf2_core         40960  2 videobuf2_v4l2,uvcvideo
snd_hda_core           81920  5 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek
snd_hwdep              20480  1 snd_hda_codec
snd_pcm                98304  5 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_hda_core
videodev              184320  3 videobuf2_core,videobuf2_v4l2,uvcvideo
snd_timer              32768  1 snd_pcm
media                  40960  2 videodev,uvcvideo
ecdh_generic           24576  2 bluetooth
mei_txe                20480  0
i2c_algo_bit           16384  1 i915
fb_sys_fops            16384  1 drm_kms_helper
processor_thermal_device    16384  0
snd                    81920  15 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hwdep,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek,snd_timer,snd_pcm
mei                    90112  1 mei_txe
shpchp                 36864  0
syscopyarea            16384  1 drm_kms_helper
int340x_thermal_zone    16384  1 processor_thermal_device
soundcore              16384  1 snd
sysfillrect            16384  1 drm_kms_helper
sysimgblt              16384  1 drm_kms_helper
intel_soc_dts_iosf     16384  1 processor_thermal_device
wmi                    24576  2 asus_wmi,dell_wmi_descriptor
dw_dmac                16384  0
dw_dmac_core           24576  1 dw_dmac
video                  45056  2 asus_wmi,i915
pwm_lpss_platform      16384  0
elan_i2c               36864  0
int3400_thermal        16384  0
mac_hid                16384  0
acpi_thermal_rel       16384  1 int3400_thermal
pwm_lpss               16384  1 pwm_lpss_platform
asus_wireless          16384  0
intel_int0002_vgpio    16384  1
sch_fq_codel           20480  1
parport_pc             36864  0
ppdev                  20480  0
lp                     20480  0
sunrpc                335872  1
parport                49152  3 parport_pc,lp,ppdev
ip_tables              28672  0
x_tables               40960  1 ip_tables
autofs4                40960  2
btrfs                1122304  0
xor                    24576  1 btrfs
zstd_compress         163840  1 btrfs
raid6_pq              114688  1 btrfs
hid_logitech_hidpp     32768  0
hid_logitech_dj        20480  0
rtsx_usb_sdmmc         28672  0
usbhid                 49152  0
rtsx_usb               20480  2 rtsx_usb_sdmmc,rtsx_usb_ms
mmc_block              36864  3
i2c_hid                20480  0
hid                   118784  4 i2c_hid,usbhid,hid_logitech_dj,hid_logitech_hidpp
sdhci_acpi             16384  0
sdhci                  49152  1 sdhci_acpi

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 25451
  • Karma: 2798
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 8R, 9, and 9R
Re: Peppermintos won't shutdown.
« Reply #8 on: April 10, 2019, 07:16:25 pm »
can you try running
Code: [Select]
sudo rmmod ath9k ath9k_common ath9k_hw asus_wireless mei_txe mei pwm_lpss pwm_lpss_platform
prior to shutting down, and THEN see if it shuts down properly ?
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline kuhitsu

  • nOOb
  • *
  • Posts: 20
  • Karma: 1
  • New Forum User
    • View Profile
Re: Peppermintos won't shutdown.
« Reply #9 on: April 11, 2019, 02:07:16 am »
can you try running
Code: [Select]
sudo rmmod ath9k ath9k_common ath9k_hw asus_wireless mei_txe mei pwm_lpss pwm_lpss_platform
prior to shutting down, and THEN see if it shuts down properly ?

well it says :
Code: [Select]
rmmod: ERROR: Module pwm_lpss is in use by: pwm_lpss_platform

BUT does it really matter since 5/5 times it shuts down properly. :D How can I make this permanent?

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 25451
  • Karma: 2798
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 8R, 9, and 9R
Re: Peppermintos won't shutdown.
« Reply #10 on: April 11, 2019, 08:55:29 pm »
Okay let's get a bit more specific, if you run only
Code: [Select]
sudo rmmod mei_txe mei
then does it shut down properly consistently ?

If not, does instead running
Code: [Select]
sudo rmmod ath9k ath9k_common ath9k_hw asus_wireless
result in a consistent shutdown ?

In effect I'm trying to figure out if it's the wireless card/driver .. or the Intel management engine/driver that's at the root of the issue.
« Last Edit: April 11, 2019, 08:57:21 pm by PCNetSpec »
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline kuhitsu

  • nOOb
  • *
  • Posts: 20
  • Karma: 1
  • New Forum User
    • View Profile
Re: Peppermintos won't shutdown.
« Reply #11 on: April 13, 2019, 03:52:42 pm »
Code: [Select]
sudo rmmod mei_txe mei

5/5 .. full and painless shut down. I repeat. 5/5 full and painless shut down.

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 25451
  • Karma: 2798
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 8R, 9, and 9R
Re: Peppermintos won't shutdown.
« Reply #12 on: April 14, 2019, 07:11:06 am »
I'm glad it was the mei drivers and not the wireless ones .. mei isn't really necessary, so we can simply blacklist it :)

Okay try this...

Run:
Code: [Select]
sudo rmmod mei_txe mei
then
Code: [Select]
gksudo xed /etc/modprobe.d/blacklist.conf
add these 4 lines at the bottom:-
Code: [Select]
## BEGIN manually blacklisted mei and mei_txe to solve shutdown issue.
blacklist mei
blacklist mei_txe
## END manually blacklisted mei and mei_txe to solve shutdown issue.
SAVE the file and exit the text editor.

Back in the terminal run:
Code: [Select]
sudo update-initramfs -uk all
once that's finished, reboot a few times to test.



If you ever want to UNDO these changes, remove the 4 lines you added to blacklist.conf, then run the update-initramfs command, then reboot.
« Last Edit: April 14, 2019, 12:01:26 pm by PCNetSpec »
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline kuhitsu

  • nOOb
  • *
  • Posts: 20
  • Karma: 1
  • New Forum User
    • View Profile
Re: Peppermintos won't shutdown.
« Reply #13 on: April 15, 2019, 02:27:22 pm »
I'm glad it was the mei drivers and not the wireless ones .. mei isn't really necessary, so we can simply blacklist it :)

Okay try this...

Run:
Code: [Select]
sudo rmmod mei_txe mei
then
Code: [Select]
gksudo xed /etc/modprobe.d/blacklist.conf
add these 4 lines at the bottom:-
Code: [Select]
## BEGIN manually blacklisted mei and mei_txe to solve shutdown issue.
blacklist mei
blacklist mei_txe
## END manually blacklisted mei and mei_txe to solve shutdown issue.
SAVE the file and exit the text editor.

Back in the terminal run:
Code: [Select]
sudo update-initramfs -uk all
once that's finished, reboot a few times to test.



If you ever want to UNDO these changes, remove the 4 lines you added to blacklist.conf, then run the update-initramfs command, then reboot.

Thank you so much. 10/10 everything shutdown as it should.

Offline VinDSL

  • Global Moderator
  • Hero
  • *****
  • Posts: 5241
  • Karma: 940
  • Peppermint Mod
    • View Profile
  • Peppermint version(s): Developmental Builds
Re: Peppermintos won't shutdown. *SOLVED
« Reply #14 on: April 15, 2019, 07:35:44 pm »
Good job, Detective NetSpec  :D