public inbox for linux-usb@vger.kernel.org
 help / color / mirror / Atom feed
* See USB-C charger info?
@ 2023-12-13 19:16 Chris Adams
  2023-12-14  4:49 ` Rajaram R
  0 siblings, 1 reply; 3+ messages in thread
From: Chris Adams @ 2023-12-13 19:16 UTC (permalink / raw)
  To: linux-usb

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.

-- 
Chris Adams <linux@cmadams.net>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: See USB-C charger info?
  2023-12-13 19:16 See USB-C charger info? Chris Adams
@ 2023-12-14  4:49 ` Rajaram R
  2023-12-14 15:44   ` Chris Adams
  0 siblings, 1 reply; 3+ messages in thread
From: Rajaram R @ 2023-12-14  4:49 UTC (permalink / raw)
  To: Chris Adams; +Cc: linux-usb

On Thu, Dec 14, 2023 at 12:48 AM Chris Adams <linux@cmadams.net> 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

>
> --
> Chris Adams <linux@cmadams.net>
>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: See USB-C charger info?
  2023-12-14  4:49 ` Rajaram R
@ 2023-12-14 15:44   ` Chris Adams
  0 siblings, 0 replies; 3+ messages in thread
From: Chris Adams @ 2023-12-14 15:44 UTC (permalink / raw)
  To: Rajaram R; +Cc: linux-usb

Once upon a time, Rajaram R <rajaram.officemail@gmail.com> said:
> On Thu, Dec 14, 2023 at 12:48 AM Chris Adams <linux@cmadams.net> 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@cmadams.net>

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-12-14 15:44 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-13 19:16 See USB-C charger info? Chris Adams
2023-12-14  4:49 ` Rajaram R
2023-12-14 15:44   ` Chris Adams

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox