Announcement

Collapse
No announcement yet.

shutdown issue

Collapse
This topic is closed.
X
This topic has been answered.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • jglen490
    replied
    That's still a BIOS/UEFI issue, not an OS issue. Windows Fast Startup remains in control of hardware during its apparent shutdown in order to have a more rapid startup. Linux uses power management to turnoff hardware power during its actual shutdown. The BIOS/UEFI overrides each OS by retaining power control on certain hardware, even after the OS bails out.

    That's why I asked about Windows Fast Startup to determine the actual hardware impact in the Windows environment. So not saying your conclusion is wrong, and it would be interesting to see given the BIOS/UEFI requirements, but the actual question is still open.

    Leave a comment:


  • maximan
    replied
    Originally posted by lednyk View Post

    It seems like a BIOS setting problem on Asus motherboards. I found this guide on Asus page.
    Asus Motherboard - How to disable standby power of the USB connected device​
    finally!

    After following the instructions you suggested, USB devices are now completely closed. It just seems strange to me that Windows shuts down the computer by closing the USB devices without any problems or adjustments, but in Linux, it is necessary to change a setting to achieve this. thank you for helping me!

    Leave a comment:


  • lednyk
    replied
    I noticed that when I issue the shutdown command in Linux, the USB connected devices continue to work. However, when I do the same in Windows, all the USB devices are shut down. What could be the reason for this?
    It seems like a BIOS setting problem on Asus motherboards. I found this guide on Asus page.
    Asus Motherboard - How to disable standby power of the USB connected device​

    Leave a comment:


  • claydoh
    replied
    So....what about the eRp settings in the bios, or maybe Windows Fast Restart/fast reboot?


    https://www.reddit.com/r/pcmasterrac..._if_the_pc_is/

    Leave a comment:


  • maximan
    replied
    I think I didn't explain the problem exactly. This problem is not only about the external hard drive continuing to work even though the computer is turned off. It is about the USB ports having power even though the computer is turned off. I exemplified the problem with the external drive, but other devices also work because the USB ports have power.

    Leave a comment:


  • jlittle
    replied
    I don't know what's going on, sorry.

    You may find out something by looking at the shutdown messages. You can see some of them using, in a konsole,
    Code:
    journalctl -b-1
    If you're using the default pager you can press G to go to the end, then page backwards. I wrote "some of them" because the messages stop when the journal stops. There's hundreds of entries, but something going wrong may be coloured yellow or red.

    Another approach is to edit /etc/default/grub and remove the words "quiet splash" where they appear:
    Code:
    GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
    ​
    becomes
    Code:
    GRUB_CMDLINE_LINUX_DEFAULT=""
    ​
    ​then run
    Code:
    sudo update-grub
    The next boot will show the details of the system starting, then the details of the system shutting down. Very nerdy, but I have, not often, identified shutdown problems by looking at these.

    Another thing... you've got the removable drive in /etc/fstab. This can cause problems, such as delaying startup, if the drive is not plugged in. There at least these ways to avoid problems:
    1. I prefer to mount removable drives by clicking on them in dolphin, but if you don't like where they get mounted, under /media somewhere, I suggest leaving them in /etc/fstab and adding "noauto,user" to the options (so that it reads "defaults,noauto,user"). Then, if you click on a drive in dolphin it will mount according to the fstab.
    2. One can add "nofail" to the options.
    3. Don't use /etc/fstab, rather use system settings, removable storage, removable devices.

    Leave a comment:


  • jglen490
    replied
    Originally posted by maximan View Post

    As you said, I turned off the "fast boot" feature, but it's still the same. I even turned off the xHCI feature in the bios. the result is still the same. What I don't understand is this: While Windows can shut down the PC completely, why linux can't (on my pc). I think many Linux users actually have this problem, but no one may be fully aware of it.
    We may be talking about the same thing, but just to be sure you have disabled the "FAST STARTUP" (a specifically named feature) in Windows. Not talking about anything in BIOS/UEFI.

    But I have never seen a USB attached drive (of any kind) remain powered in Linux after a successful shutdown. Not doubting what you are observing, just leveling the conversation and trying to get to the root cause.

    Leave a comment:


  • maximan
    replied
    Originally posted by jlittle View Post

    Weird. Is the drive mounted via /etc/fstab, or as a removable device? I tend to think the latter is better, using system settings, removable storage, removable devices.

    If the drive is seen as a removable drive, does it spin down if you "safely remove" mounted file systems on the drive, using the "Disks and Devices" item in the system tray? (IME, it's sometimes been annoyingly difficult to avoid the devices turning off, which can be inconvenient, because they have to be physically unplugged and plugged back in to access them.)

    Does the drive spin down if you tell it to? To do this, determine the device name in Linux, something like /dev/sda, perhaps using the "Info Centre", or findmnt --real in a konsole. Then, in a konsole,
    Code:
    sudo hdparm -y /dev/sda
    Note that that does not turn the drive off, or remove it. Some of my removable drives do not spin down with that command. Using -Y instead of -y is supposed to shut down a drive.
    The output after giving this command is as follows.

    /dev/sde:
    issuing standby command
    SG_IO: bad/missing sense data, sb[]: 70 00 05 00 00 00 00 0a 00 00 00 00 24 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00


    Sharing files from external drive, I had to make the following settings on fstab. The disk named "harici" is an external portable HDD. Other hard drives are not included in fstab

    #UUID=8D9E-7EC2 /boot/efi vfat defaults 0 2
    UUID=e4b15030-06ca-4235-bec0-8bbe28c362ba / ext4 defaults 0 1
    UUID=a41973ae-55da-4168-b102-4b299b57a8c7 /home ext4 defaults 0 2
    /swapfile swap swap defaults 0 0
    tmpfs /tmp tmpfs noatime,mode=1777 0 0
    UUID=8D9E-7EC2 /boot/efi vfat defaults 0 1
    UUID=0aa7a3b9-1dc4-49a6-84b9-c6e4c5d08ee3 /mnt/viext4 ext4 defaults 0 0
    UUID=584686B61B0543EF /mnt/st1000 ntfs defaults 0 0
    UUID=4AD80D16D80D0245 /mnt/harici ntfs defaults 0 0
    Last edited by maximan; Aug 10, 2024, 08:47 AM.

    Leave a comment:


  • maximan
    replied
    Originally posted by jglen490 View Post
    I've not seen that behavior in Linux for as long as I've been using Linux. So, this may sound weird, but if you are dual booting with Windows 10, is Fast Startup enabled in your Windows? If it is, disable that (I believe it's in the Power menu) and see if the behavior continues. Just try to eliminate one possibility.
    As you said, I turned off the "fast boot" feature, but it's still the same. I even turned off the xHCI feature in the bios. the result is still the same. What I don't understand is this: While Windows can shut down the PC completely, why linux can't (on my pc). I think many Linux users actually have this problem, but no one may be fully aware of it.

    Leave a comment:


  • jlittle
    replied
    Originally posted by maximan View Post
    i have usb external harddrive. when pc shutdown it's still spinning. but only when linux shutdown to pc.
    Weird. Is the drive mounted via /etc/fstab, or as a removable device? I tend to think the latter is better, using system settings, removable storage, removable devices.

    If the drive is seen as a removable drive, does it spin down if you "safely remove" mounted file systems on the drive, using the "Disks and Devices" item in the system tray? (IME, it's sometimes been annoyingly difficult to avoid the devices turning off, which can be inconvenient, because they have to be physically unplugged and plugged back in to access them.)

    Does the drive spin down if you tell it to? To do this, determine the device name in Linux, something like /dev/sda, perhaps using the "Info Centre", or findmnt --real in a konsole. Then, in a konsole,
    Code:
    sudo hdparm -y /dev/sda
    Note that that does not turn the drive off, or remove it. Some of my removable drives do not spin down with that command. Using -Y instead of -y is supposed to shut down a drive.

    Leave a comment:


  • jglen490
    replied
    I've not seen that behavior in Linux for as long as I've been using Linux. So, this may sound weird, but if you are dual booting with Windows 10, is Fast Startup enabled in your Windows? If it is, disable that (I believe it's in the Power menu) and see if the behavior continues. Just try to eliminate one possibility.

    Leave a comment:


  • maximan
    replied
    Originally posted by jlittle View Post

    Sorry, curiosity burns sometimes...

    How can you tell, if the PC is off? Are they drives, with lights still on? Or maybe RGB mice or keyboards?
    i have usb external harddrive. when pc shutdown it's still spinning. but only when linux shutdown to pc.

    Leave a comment:


  • jlittle
    replied
    Originally posted by maximan View Post
    ... usb devices still working...
    Sorry, curiosity burns sometimes...

    How can you tell, if the PC is off? Are they drives, with lights still on? Or maybe RGB mice or keyboards?

    Leave a comment:


  • maximan
    replied
    Originally posted by Snowhog View Post
    Not working as in it doesn't do anything, or not working as in it does power off and shutdown your PC, but the attached USB devices are still, what, powered on?
    pc is shutting down but usb devices still working. same system same machine, windows shuts down completely to pc but linux don't.

    Leave a comment:


  • Snowhog
    replied
    Originally posted by maximan View Post
    yes, i tried. it's not working.
    Not working as in it doesn't do anything, or not working as in it does power off and shutdown your PC, but the attached USB devices are still, what, powered on?

    Leave a comment:

Users Viewing This Topic

Collapse

There are 0 users viewing this topic.

Working...
X