Re: Request for Comment: LED device naming for netdev LEDs

2020-11-25 Thread Pavel Machek
Hi! > > > What are your ideas about this problem? > > > > > > Marek > > > > BTW option b) and c) can be usable if we create a new utility, ledtool, > > to report infromation about LEDs and configure LEDs. > > > > In that case it does not matter if the LED is named > > ethernet-adapter0:red:ac

Re: Request for Comment: LED device naming for netdev LEDs

2020-11-25 Thread Pavel Machek
Hi! > > What I am wondering is how should we select a name for the device part > > of the LED for network devices, when network namespaces are enabled. > > > > a) We could just use the interface name (eth0:yellow:activity). The > >problem is what should happen when the interface is renamed, o

Re: Request for Comment: LED device naming for netdev LEDs

2020-09-28 Thread Marek Behun
On Mon, 28 Sep 2020 19:10:05 +0200 Alexander Dahl wrote: > Hei hei, > > On Mon, Sep 28, 2020 at 05:52:09PM +0200, Marek Behun wrote: > > On Mon, 28 Sep 2020 15:04:10 +0200 > > Alexander Dahl wrote: > > > > > Hei Marek, > > > > > > Am Sonntag, 27. September 2020, 02:52:58 CEST schrieb Marek

Re: Request for Comment: LED device naming for netdev LEDs

2020-09-28 Thread Alexander Dahl
Hei hei, On Mon, Sep 28, 2020 at 05:52:09PM +0200, Marek Behun wrote: > On Mon, 28 Sep 2020 15:04:10 +0200 > Alexander Dahl wrote: > > > Hei Marek, > > > > Am Sonntag, 27. September 2020, 02:52:58 CEST schrieb Marek Behun: > > > On Sun, 27 Sep 2020 00:40:25 +0200 > > > > > > Marek Behun wrote

Re: Request for Comment: LED device naming for netdev LEDs

2020-09-28 Thread Marek Behun
On Mon, 28 Sep 2020 15:04:10 +0200 Alexander Dahl wrote: > Hei Marek, > > Am Sonntag, 27. September 2020, 02:52:58 CEST schrieb Marek Behun: > > On Sun, 27 Sep 2020 00:40:25 +0200 > > > > Marek Behun wrote: > > > What I am wondering is how should we select a name for the device part > > > of

Re: Request for Comment: LED device naming for netdev LEDs

2020-09-28 Thread Alexander Dahl
Hei Marek, Am Sonntag, 27. September 2020, 02:52:58 CEST schrieb Marek Behun: > On Sun, 27 Sep 2020 00:40:25 +0200 > > Marek Behun wrote: > > What I am wondering is how should we select a name for the device part > > of the LED for network devices, when network namespaces are enabled. > > > > a

Re: Request for Comment: LED device naming for netdev LEDs

2020-09-26 Thread Andrew Lunn
> So I will have > /sys/class/net/eth0/phydev/leds/eth0:green:activity > || > symlink | > | > symlink > > and I will also have > /sys/class/leds/eth0:green:activity > | >

Re: Request for Comment: LED device naming for netdev LEDs

2020-09-26 Thread Marek Behun
On Sun, 27 Sep 2020 00:40:25 +0200 Marek Behun wrote: > What I am wondering is how should we select a name for the device part > of the LED for network devices, when network namespaces are enabled. > > a) We could just use the interface name (eth0:yellow:activity). The >problem is what shoul

Re: Request for Comment: LED device naming for netdev LEDs

2020-09-26 Thread Marek Behun
On Sun, 27 Sep 2020 02:29:35 +0200 Andrew Lunn wrote: > On Sun, Sep 27, 2020 at 12:40:25AM +0200, Marek Behun wrote: > > Hi, > > > > linux-leds is trying to create a consistent naming mechanism for LEDs > > The schema is: > > device:color:function > > for example > > system:green:power > >

Re: Request for Comment: LED device naming for netdev LEDs

2020-09-26 Thread Andrew Lunn
On Sun, Sep 27, 2020 at 12:40:25AM +0200, Marek Behun wrote: > Hi, > > linux-leds is trying to create a consistent naming mechanism for LEDs > The schema is: > device:color:function > for example > system:green:power > keyboard0:green:capslock > > But we are not there yet. > > LEDs are oft

Request for Comment: LED device naming for netdev LEDs

2020-09-26 Thread Marek Behun
Hi, linux-leds is trying to create a consistent naming mechanism for LEDs The schema is: device:color:function for example system:green:power keyboard0:green:capslock But we are not there yet. LEDs are often dedicated to specific function by manufacturers, for example there can be an icon