You are not logged in.

#1 2023-08-26 07:37:27

uchiha_vk
Member
Registered: 2023-08-26
Posts: 5

File not found (/sys/kernel/debug/ec)

I did a fresh install and updated my arch, now i can't locate my file /sys/kernel/debug/ec/ec0/io. The ec directory doesn't exist now.

Offline

#2 2023-08-26 12:28:57

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 74,307

Re: File not found (/sys/kernel/debug/ec)

Is the module there and loaded?

modinfo ec_sys
lsmod | grep ec

Offline

#3 2023-08-26 14:32:43

uchiha_vk
Member
Registered: 2023-08-26
Posts: 5

Re: File not found (/sys/kernel/debug/ec)

This is the output i got
https://pastebin.com/dDs01jmv

Last edited by uchiha_vk (2023-08-26 14:33:14)

Offline

#4 2023-08-26 14:46:32

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 74,307

Re: File not found (/sys/kernel/debug/ec)

So the module is there but not loaded, let alone write-enabled - what do you expect?
Also better

mount | grep debugfs

Maybe elaborate a bit on the precondition:

I did a fresh install and updated my arch and now i can't locate my file

How do we square "a fresh install and updated my arch" - which one is it?
Also what was before and  it's not "your" file, why do you expect it to be there itfp?

Do you have *any* idea what you're doing there  or are you trying to blindly follow some random blog article?

Offline

#5 2023-08-27 06:42:16

uchiha_vk
Member
Registered: 2023-08-26
Posts: 5

Re: File not found (/sys/kernel/debug/ec)

 $ mount | grep debugfs
debugfs on /sys/kernel/debug type debugfs (rw,nosuid,nodev,noexec,relatime)

I'm sorry i should have elaborated the issue, I'm using a MSI laptop which controls fan through a EC, even read fan output is through EC. I found this project https://github.com/dmitry-s93/MControlCenter has everything that i need but i did not read the documentation, when straight for installation. Like you have guessed, it din work coz it was a widget (haven't configured dwm yet). Which i suspect loaded the ec_sys module. Now i have added

options ec_sys write_support=1

to modprobe.

seth wrote:

How do we square "a fresh install and updated my arch" - which one is it?

Fresh install using an old image, then updated. (The fresh install... is a disaster by me trying to shrink the partition and corrupting fs).

Then found https://github.com/torvalds/linux/blob/ … 6/msi-ec.c (Linux now supports this out of the box!! big_smile ) and also i found https://github.com/IvanoiuAlexandruPaul … C-L.py#L16, which gave me the file location. I made a script now it works perfect!!

I think im dragging it, ill keep it short next time. Thank you with lots of love wink!!

Offline

Board footer

Powered by FluxBB