Once upon a time, Rajaram R <rajaram.officemail@xxxxxxxxx> said: > On Thu, Dec 14, 2023 at 12:48 AM Chris Adams <linux@xxxxxxxxxxx> wrote: > > > > I accidentally plugged my notebook into a 15W phone charger instead of > > the 65W computer charger... but got no notice under Linux about it. I > > happened to reboot for updates and got a message from the BIOS about it > > (this is a Thinkpad T14s AMD gen 4). So I started looking to see if > > there's a way to tell that from within Linux, but I couldn't find > > anything. > > > > Am I missing a way to tell? Would this even fall under the USB stack > > (if not, any suggestions for where might I ask)? I know USB-C is a > > "complicated" port. > > Please have a look at > https://github.com/Rajaram-Regupathy/libtypec/wiki/typecstatus---Gauge-your-USB-C-port-for-better-UX Hmm, that doesn't show anything on my system. It looks like that uses info from /sys/class/typec ... but that's empty on my systems. -- Chris Adams <linux@xxxxxxxxxxx>