You are not logged in.
Pages: 1
I have a card reader it's connected to the motherboard.
It has 2 LEDs.
When I turn off the computer, LEDs don't turn off.
I've updated BIOS recently and then they started to turn off.
A few weeks later I've ran pacman -Syu and now it doesn't turn off again.
Last edited by megchan (2022-11-07 08:40:13)
Offline
Connected how? USB?
lsusbIs there a parallel windows installation?
(3rd link below)
Offline
Connected how? USB?
F_USB1 if I don't confuse anything
lsusb
Bus 001 Device 002: ID 058f:6362 Alcor Micro Corp. Flash Card Reader/Writer
Is there a parallel windows installation?
Yes. Fast boot is disabled btw when i boot windows and turn it off the LEDs turn off too
Offline
Did you disable Fast Start in Windows itself or only similar-sounding options in BIOS/UEFI?
CLI Paste | How To Ask Questions
Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L
Offline
Also better re-check that - windows frequently re-enables it w/ updates.
Offline
It is turned off in both BIOS and windows I checked
Offline
If you (cold) boot into WIndows and then shut it down, LEDs are still on?
<49,17,III,I> Fama di loro il mondo esser non lassa;
<50,17,III,I> misericordia e giustizia li sdegna:
<51,17,III,I> non ragioniam di lor, ma guarda e passa.
Offline
If you (cold) boot into WIndows and then shut it down, LEDs are still on?
No. It's off.
Offline
Mmm... Maybe I'm totally wrong and it's totally unrelated but... This could be realted to some ACPI and/or UEFI quirks, similar to this:
One rather dirty workaround is to boot to Windows and just reset the system (perform an ungraceful restart/shutdown) thus not giving the Windows driver a chance to disable LAN. The Link light will remain on and the LAN adapter will remain accessible after POST - that is until you boot back to Windows and shut it down properly again.
<49,17,III,I> Fama di loro il mondo esser non lassa;
<50,17,III,I> misericordia e giustizia li sdegna:
<51,17,III,I> non ragioniam di lor, ma guarda e passa.
Offline
A few weeks later I've ran pacman -Syu and now it doesn't turn off again.
Do you use the 6.0.x kernel? Does the same happen w/ the LTS kernel?
I assume the cardreader is an external device, attached w/ a USB cable?
Offline
Just installed lts and nothing has changed.
It's connected to motherboard's F_USB1 connector not to USB A. So it's internal device i think.
Last edited by megchan (2022-11-06 12:59:24)
Offline
If you suspend the system and jam a card into the reader, does it wake the system?
cat /proc/acpi/wakeupOne of those might reflect the card reader - if you disable it by echo'ing the 4-letter code into the file
echo FOO1 | sudo tee /proc/acpi/wakeupit should no longer wake the system, but the interesting question will oc. be whether the LEDs turn off during the shutdown.
Offline
How to suspend the system? With "systemctl suspend" command?
Device S-state Status Sysfs node
GPP0 S4 *disabled
GPP1 S4 *disabled
GPP3 S4 *disabled
GPP4 S4 *disabled
GPP5 S4 *disabled
GPP6 S4 *disabled
GPP7 S4 *disabled
GPP8 S4 *enabled pci:0000:00:03.1
GPP9 S4 *disabled
GPPA S4 *disabled
GPPB S4 *disabled
GPPC S4 *disabled
GPPD S4 *disabled
GPPE S4 *disabled
GPPF S4 *disabled
GP10 S4 *disabled
GP11 S4 *disabled
GP12 S4 *enabled pci:0000:00:07.1
GP13 S4 *enabled pci:0000:00:08.1
XHC0 S4 *enabled pci:0000:0d:00.3
GP30 S4 *disabled
GP31 S4 *disabled
PS2K S3 *enabled pnp:00:04
*disabled serio:serio0
PS2M S3 *disabled
GPP2 S4 *enabled pci:0000:00:01.3
PTXH S4 *enabled pci:0000:01:00.0Offline
With "systemctl suspend" command?
For instance.
GPP8 S4 *enabled pci:0000:00:03.1
GP12 S4 *enabled pci:0000:00:07.1
GP13 S4 *enabled pci:0000:00:08.1
XHC0 S4 *enabled pci:0000:0d:00.3
PS2K S3 *enabled pnp:00:04
GPP2 S4 *enabled pci:0000:00:01.3
PTXH S4 *enabled pci:0000:01:00.0XHC0 is USB for sure. For the other devices compare "lspci" to see what they relate to.
Offline
systemctl suspendLEDs turned off after that. I tried to insert cards no reaction.
There was no signal on the monitor after turning pc on with the power button.
echo XHC0| sudo tee /proc/acpi/wakeupLEDs are on after shutting down
Last edited by megchan (2022-11-06 15:11:48)
Offline
Question is whether that's consistent or a side effect of the (failed) S3 cycle.
If you can control the behavior this way, you could make this a shutdown hook in /usr/lib/systemd/system-shutdown/
Offline
What hook?
PTXH is USB controller: Advanced Micro Devices, Inc. [AMD] 400 Series Chipset USB 3.1 XHCI Controller (rev 01)
Last edited by megchan (2022-11-06 15:47:23)
Offline
Offline
sorry I didn't understand what the hook is supposed to do?
Last edited by megchan (2022-11-06 16:02:40)
Offline
Check the wakeup state of the device and conditionally toggle it (off)?
Offline
Found a solution.
echo 1 > /sys/bus/usb/devices/1-7/removeI've put it into /lib/systemd/system-shutdown/
Offline
Pages: 1