Choose style:

Author Topic: shut down  (Read 311 times)

0 Members and 1 Guest are viewing this topic.

Offline julius

  • nOOb
  • *
  • Posts: 8
  • Karma: 0
  • New Forum User
    • View Profile
  • Peppermint version(s): 10
shut down
« on: October 03, 2019, 06:32:04 am »
Hi all,
I did install Pepermint on my laptop but when I want to shut down, it does not completely shut dow. The screen does not go to blank/ blackit still does stay Peppermin?
Thank you
julis

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 25661
  • Karma: 2819
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 8R, 9, and 9R
Re: shut down
« Reply #1 on: October 03, 2019, 10:16:31 am »
Can you give us the output from:
Code: [Select]
inxi -Fz
please.
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Online VinDSL

  • Global Moderator
  • Hero
  • *****
  • Posts: 5309
  • Karma: 943
  • Peppermint Mod
    • View Profile
  • Peppermint version(s): Developmental Builds
Re: shut down
« Reply #2 on: October 04, 2019, 01:59:54 am »
Knowing nothing about the OP's machine...

I happened to run across this today, while reading the mail lists: https://is.gd/Nx1JkO

I've never seen that "noefi" grub command line tag before  :-\

Wish I had a machine that hangs on shutdown, to test it.

Okay, carry on...


Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 25661
  • Karma: 2819
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 8R, 9, and 9R
Re: shut down
« Reply #3 on: October 04, 2019, 06:08:58 am »
Yeah that MIGHT work...

FYI, the noefi kernel boot parameter appears to stop the kernel from being able to interact with EFI variables.

If you run (after installing efivar):
Code: [Select]
efivar --list
you'll see a list of EFI variables the kernel can interact with .. if you use the noefi boot parameter that list is disabled.

So sure, if it's an interaction with an EFI variable that's causing the shutdown issue, noefi is a possible solution.

Worth a shot....
(though I'd probably test it first manually rather than adding it permanently)
« Last Edit: October 04, 2019, 06:13:15 am by PCNetSpec »
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline julius

  • nOOb
  • *
  • Posts: 8
  • Karma: 0
  • New Forum User
    • View Profile
  • Peppermint version(s): 10
Re: shut down
« Reply #4 on: October 05, 2019, 12:42:28 pm »
Knowing nothing about the OP's machine...

I happened to run across this today, while reading the mail lists: https://is.gd/Nx1JkO

I've never seen that "noefi" grub command line tag before  :-\

Wish I had a machine that hangs on shutdown, to test it.

Okay, carry on...


Knowing nothing about the OP's machine...

I happened to run across this today, while reading the mail lists: https://is.gd/Nx1JkO

I've never seen that "noefi" grub command line tag before  :-\

Wish I had a machine that hangs on shutdown, to test it.

Okay, carry on...

-- Kernel: 5.0.0-29-generic i686 it is Pepermin 10....sounds complicated??

Yeah that MIGHT work...

FYI, the noefi kernel boot parameter appears to stop the kernel from being able to interact with EFI variables.

If you run (after installing efivar):
Code: [Select]
efivar --list
you'll see a list of EFI variables the kernel can interact with .. if you use the noefi boot parameter that list is disabled.

So sure, if it's an interaction with an EFI variable that's causing the shutdown issue, noefi is a possible solution.

Worth a shot....
(though I'd probably test it first manually rather than adding it permanently)

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 25661
  • Karma: 2819
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 8R, 9, and 9R
Re: shut down
« Reply #5 on: October 05, 2019, 12:45:58 pm »
Can you give us the output from running:
Code: [Select]
inxi -Fz
in a terminal.

and also the output from:
Code: [Select]
[ -d /sys/firmware/efi ] && echo "UEFI" || echo "Legacy BIOS"
?
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline jjpwn1

  • nOOb
  • *
  • Posts: 8
  • Karma: 0
  • New Forum User
    • View Profile
Re: shut down
« Reply #6 on: October 06, 2019, 07:27:37 pm »
Hello all,

I'm currently experiencing the same problem. I will try to help by giving logs. Hopefully this case can be useful for OP.

Quote
System:    Host: CS Kernel: 5.0.0-31-generic x86_64 bits: 64 Desktop: N/A
           Distro: Peppermint Ten
Machine:   Device: laptop System: Microsoft product: Surface Pro 4 v: D:0B:09F:1C:03P:38 serial: N/A
           Mobo: Microsoft model: Surface Pro 4 serial: N/A
           UEFI: Microsoft v: 108.2706.768 date: 04/18/2019
Battery    BAT1: charge: 35.6 Wh 99.9% condition: 35.6/38.2 Wh (93%)
CPU:       Dual core Intel Core i5-6300U (-MT-MCP-) cache: 3072 KB
           clock speeds: max: 3000 MHz 1: 500 MHz 2: 500 MHz 3: 500 MHz 4: 500 MHz
Graphics:  Card: Intel Skylake GT2 [HD Graphics 520]
           Display Server: x11 (X.Org 1.20.4 )
           drivers: modesetting (unloaded: fbdev,vesa)
           Resolution: 2736x1824@59.96hz
           OpenGL: renderer: Mesa DRI Intel HD Graphics 520 (Skylake GT2)
           version: 4.5 Mesa 19.0.8
Audio:     Card Intel Sunrise Point-LP HD Audio driver: snd_hda_intel
           Sound: Advanced Linux Sound Architecture v: k5.0.0-31-generic
Network:   Card: Marvell 88W8897 [AVASTAR] 802.11ac Wireless driver: mwifiex_pcie
           IF: wlp2s0 state: down mac: <filter>
Drives:    HDD Total Size: 4256.8GB (0.3% used)
           ID-1: /dev/nvme0n1 model: SAMSUNG_MZFLV256HCHP size: 256.1GB
           ID-2: USB /dev/sda model: My_Passport_25E2 size: 4000.8GB
Partition: ID-1: / size: 946G used: 5.7G (1%) fs: ext4 dev: /dev/sda5
           ID-2: swap-1 size: 8.19GB used: 0.00GB (0%) fs: swap dev: /dev/sda2
RAID:      No RAID devices: /proc/mdstat, md_mod kernel module present
Sensors:   System Temperatures: cpu: 45.0C mobo: N/A
           Fan Speeds (in rpm): cpu: N/A
Info:      Processes: 198 Uptime: 6 min Memory: 759.3/7899.8MB
           Client: Shell (bash) inxi: 2.3.56

I am using UEFI.

The last message from shutdown('Esc') was "[OK] Reached target final step".  What's even more interesting is that all filesystems were succesfully unmounted, it doesn't seem to be a disk issue.
In any case, how can I post the full logs from shutdown? I can't copy and paste anything. I don't even know how to transverse up and down the text. Looks like I'll have to post a picture of it...


Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 25661
  • Karma: 2819
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 8R, 9, and 9R
Re: shut down
« Reply #7 on: October 07, 2019, 11:01:55 am »
Have you tried the noefi kernel boot parameter yet ?
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Online VinDSL

  • Global Moderator
  • Hero
  • *****
  • Posts: 5309
  • Karma: 943
  • Peppermint Mod
    • View Profile
  • Peppermint version(s): Developmental Builds
Re: shut down
« Reply #8 on: October 07, 2019, 01:45:48 pm »
Have you tried the noefi kernel boot parameter yet ?

Don't know about the OP, but I added it to my Dell Dimension 3000 doorstop, last night.

No problems or surprises, here. I actually had a 9-second boot (11-second consistently reproducible).  8)


Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 25661
  • Karma: 2819
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 8R, 9, and 9R
Re: shut down
« Reply #9 on: October 07, 2019, 02:37:06 pm »
I kinda meant the OP (julius) and jjpwn1
« Last Edit: October 07, 2019, 02:41:02 pm by PCNetSpec »
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Online VinDSL

  • Global Moderator
  • Hero
  • *****
  • Posts: 5309
  • Karma: 943
  • Peppermint Mod
    • View Profile
  • Peppermint version(s): Developmental Builds
Re: shut down
« Reply #10 on: October 07, 2019, 06:00:03 pm »
I kinda meant the OP (julius) and jjpwn1

Right.

I thought, as long as I'm suggesting something, I might as well test it on my own machine.

I did some reading, before adding it to my boot parameter, and I couldn't see it doing any harm - and, it didn't.

I also commented out the useless (IMO) 'mintsystem.service' script. That alone saved me 3-seconds on boot.  :)

Haxored mintsystem.service script
╭─vindsl@Fenris-3 ~ 
╰─$ cat /etc/init.d/mintsystem           
#! /bin/sh

### BEGIN INIT INFO
# Provides:          mintsystem
# Required-Start:    $local_fs $syslog $remote_fs
# Required-Stop:
# Default-Start:     2 3 4 5
# Default-Stop:
### END INIT INFO

###. /lib/lsb/init-functions

### case $1 in
#    start|restart|force-reload)
#   /usr/lib/linuxmint/mintSystem/mint-adjust.py
#   ;;
#    stop)
#   ;;
#    status)
#   exit 0
#   ;;
#    *)
#   echo "Usage: $0 {start|stop|status|restart|force-reload}" >&2
#   exit 3
#   ;;
# esac
###

exit 0
╭─vindsl@Fenris-3 ~ 
╰─$
[close]




Just saying. Carry on...  ;)

Offline Slim.Fatz

  • Trusted User
  • Veteran
  • *****
  • Posts: 1777
  • Karma: 469
  • Where's the mouse?
    • View Profile
  • Peppermint version(s): Peppermint 7, 8.5 & 10 - 64bit
Re: shut down
« Reply #11 on: October 08, 2019, 11:26:49 am »
Hi VinDSL,

Yes, I too have been dumping the mintsystem.service for quite some time now. No problems that I can report and quicker boot as a result.  8)

Regards,

-- Slim
"Life first -- Peppermint a close 2nd!" -- Zeb

Tread lightly: Fluxbox, JWM, i3, Openbox, awesome

Online VinDSL

  • Global Moderator
  • Hero
  • *****
  • Posts: 5309
  • Karma: 943
  • Peppermint Mod
    • View Profile
  • Peppermint version(s): Developmental Builds
Re: shut down
« Reply #12 on: October 08, 2019, 04:07:46 pm »
Hi VinDSL,

Yes, I too have been dumping the mintsystem.service for quite some time now. No problems that I can report and quicker boot as a result.  8)

Regards,

-- Slim

Hi Slim,

Yeah, digging around in the code...

All that service does is make MINT look mintier, change the look of Fx slightly, to match the MINT UI and so forth. Plus, if the service is needed, it will autostart anyway - no need to preload it at startup IMO, blah, blah, blah.

I don't care about a few milliseconds, on (say) a 64-bit box with an i7 processor; but, 3-seconds makes a big difference on a 32-bit doorstop machine.  ;)

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 25661
  • Karma: 2819
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 8R, 9, and 9R
Re: shut down
« Reply #13 on: October 08, 2019, 05:58:07 pm »
What the mintsystem service actually does is replace system files that we've edited with OUR versions should they get overwritten by package defaults during an upstream update.

The most important of which is probably the configs for the repos and release info .. without that service running there's a risk the repos and updates (amongst other things) could break after an update.

Yes, the service **should** get run after apt updates so 99.9% of the time isn't necessary at boot time .. but this is NOT guaranteed in all cases .. hence why it is also run at each boot as a safety measure.

Stopping the service IS NOT ADVISABLE unless you know how to dig yourself out of a hole should an important Peppermint system file get overwritten by an update .. can we please stop posting this as a 'boot tweak' suggestion in the NEW USERS board ;)
(specially as Team Peppermint members .. TIA)
« Last Edit: October 08, 2019, 06:38:09 pm by PCNetSpec »
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Online VinDSL

  • Global Moderator
  • Hero
  • *****
  • Posts: 5309
  • Karma: 943
  • Peppermint Mod
    • View Profile
  • Peppermint version(s): Developmental Builds
Re: shut down
« Reply #14 on: October 09, 2019, 12:27:24 am »
Stopping the service IS NOT ADVISABLE unless you know how to dig yourself out of a hole should an important Peppermint system file get overwritten by an update .. can we please stop posting this as a 'boot tweak' suggestion in the NEW USERS board ;)
(specially as Team Peppermint members .. TIA)


Aye, Aye, Captain  ;)

* Damn it. I missed "Talk Like A Pirate Day," this year: https://is.gd/2BkxaN
« Last Edit: October 09, 2019, 12:45:47 am by VinDSL, Reason: Addendum »