by googling i found out that cros_debug_fs is a linux driver for ChromeOS? im not sure if this means its exclusive available only for it? see linux/drivers/platform/chrome/cros_ec_debugfs.c at master · torvalds/linux · GitHub
but by searching for debugfs i found this: DebugFS — The Linux Kernel documentation
and was able to activate it by executing mount -t debugfs none /sys/kernel/debug
does this help by any means? it contains this folder structure:
sudo ls /sys/kernel/debug/
in another thread here Viewing information about USB-C power delivery in Linux i found that you can see the current for usb charging
cat /sys/class/power_supply/ucsi-source-psy-USBC000\:001/current_now 1000000
at /sys/class/power_supply/ucsi-source-psy-USBC000\:002/current_now 0
cat /sys/class/power_supply/ucsi-source-psy-USBC000\:003/current_now 680000
cat /sys/class/power_supply/ucsi-source-psy-USBC000\:004/current_now 0
not sure why 2 usb port show a current while i just have one cable plugged in
while plugged in the old macbook charger it looks like this:
cat /sys/class/power_supply/ucsi-source-psy-USBC000\:00*/current_now 3000000 0 680000 0