You are not logged in.

#1 2022-11-05 20:12:11

megchan
Member
Registered: 2022-03-03
Posts: 19

[SOLVED] LEDs don't turn off

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

#2 2022-11-05 20:40:03

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,786

Re: [SOLVED] LEDs don't turn off

Connected how? USB?

lsusb

Is there a parallel windows installation?
(3rd link below)

Offline

#3 2022-11-05 21:21:07

megchan
Member
Registered: 2022-03-03
Posts: 19

Re: [SOLVED] LEDs don't turn off

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

#4 2022-11-05 21:47:01

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,171

Re: [SOLVED] LEDs don't turn off

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

#5 2022-11-05 21:50:18

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,786

Re: [SOLVED] LEDs don't turn off

Also better re-check that - windows frequently re-enables it w/ updates.

Offline

#6 2022-11-06 09:00:31

megchan
Member
Registered: 2022-03-03
Posts: 19

Re: [SOLVED] LEDs don't turn off

It is turned off in both BIOS and windows I checked

Offline

#7 2022-11-06 10:45:20

d.ALT
Member
Registered: 2019-05-10
Posts: 959

Re: [SOLVED] LEDs don't turn off

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

#8 2022-11-06 10:58:40

megchan
Member
Registered: 2022-03-03
Posts: 19

Re: [SOLVED] LEDs don't turn off

d.ALT wrote:

If you (cold) boot into WIndows and then shut it down, LEDs are still on?

No. It's off.

Offline

#9 2022-11-06 11:03:24

d.ALT
Member
Registered: 2019-05-10
Posts: 959

Re: [SOLVED] LEDs don't turn off

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.

(https://wiki.archlinux.org/title/Networ … ows_driver)


<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

#10 2022-11-06 12:28:54

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,786

Re: [SOLVED] LEDs don't turn off

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

#11 2022-11-06 12:58:39

megchan
Member
Registered: 2022-03-03
Posts: 19

Re: [SOLVED] LEDs don't turn off

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

#12 2022-11-06 13:10:20

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,786

Re: [SOLVED] LEDs don't turn off

If you suspend the system and jam a card into the reader, does it wake the system?

cat /proc/acpi/wakeup

One 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/wakeup

it should no longer wake the system, but the interesting question will oc. be whether the LEDs turn off during the shutdown.

Offline

#13 2022-11-06 14:07:01

megchan
Member
Registered: 2022-03-03
Posts: 19

Re: [SOLVED] LEDs don't turn off

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.0

Offline

#14 2022-11-06 14:25:24

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,786

Re: [SOLVED] LEDs don't turn off

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.0

XHC0 is USB for sure. For the other devices compare "lspci" to see what they relate to.

Offline

#15 2022-11-06 15:08:28

megchan
Member
Registered: 2022-03-03
Posts: 19

Re: [SOLVED] LEDs don't turn off

systemctl suspend

LEDs 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/wakeup

LEDs are on after shutting down

Last edited by megchan (2022-11-06 15:11:48)

Offline

#16 2022-11-06 15:29:18

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,786

Re: [SOLVED] LEDs don't turn off

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

#17 2022-11-06 15:40:51

megchan
Member
Registered: 2022-03-03
Posts: 19

Re: [SOLVED] LEDs don't turn off

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

#18 2022-11-06 15:52:23

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,786

Offline

#19 2022-11-06 16:02:17

megchan
Member
Registered: 2022-03-03
Posts: 19

Re: [SOLVED] LEDs don't turn off

sorry I didn't understand what the hook is supposed to do?

Last edited by megchan (2022-11-06 16:02:40)

Offline

#20 2022-11-06 16:08:33

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,786

Re: [SOLVED] LEDs don't turn off

Check the wakeup state of the device and conditionally toggle it (off)?

Offline

#21 2022-11-07 08:22:04

megchan
Member
Registered: 2022-03-03
Posts: 19

Re: [SOLVED] LEDs don't turn off

Found a solution.

echo 1 > /sys/bus/usb/devices/1-7/remove

I've put it into /lib/systemd/system-shutdown/

Offline

Board footer

Powered by FluxBB