• [wayland] Spegnere il led Bloc Num da utente normale

    From Davide Prina@21:1/5 to All on Sun May 12 12:00:01 2024
    stavo cercando di spegnere il led Bloc Num da script come utente normale
    e sto usando wayland.

    Sono riuscito solo come root
    # echo 0 > /sys/class/leds/input4\:\:numlock/brightness

    inoltre, da quello che ho letto, il numero dell'input (nell'esempio
    input4) potrebbe cambiare con il riavvio del sistema.

    Però a me servirebbe poterlo fare da utente non root.

    Ciao
    Davide

    --
    La mia privacy non è affar tuo
    https://noyb.eu/it
    - You do not have my permission to use this email to train an AI -
    If you use this to train your AI than you accept to distribute under AGPL license >= 3.0 all the model trained, all the source you have used to
    training your model and all the source of the program that use that model

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Davide Prina@21:1/5 to All on Sun May 19 12:10:02 2024
    Felipe Salvador ha scritto:

    On Sun, May 12, 2024 at 11:55:41AM +0200, Davide Prina wrote:
    stavo cercando di spegnere il led Bloc Num da script come utente normale
    e sto usando wayland.

    Sono riuscito solo come root
    # echo 0 > /sys/class/leds/input4\:\:numlock/brightness

    sul controllo dei LED in userspace non ho trovato software

    per X ci sono diverse modalità di poter fare questa
    gestione lato utente non root e, dai tentativi che ho fatto,
    nessuna sembra funzionare sotto wayland.
    Probabilmente non è ancora stato implementato in wayland o,
    più probabilmente, non riesco a trovarlo io.

    ls -l /sys/class/leds/
    lrwxrwxrwx 1 root root 0 14 mag 08.54 input3::numlock -> ../../devices/pci0000:00/0000:00:12.0/usb9/9-3/9-3:1.3/0003:1B1C:1BAC.0004/input/input3/input3::numlock

    sì, è lo stesso che ho indicato sopra, ma è modificabile solo
    come utente root e, da quel che ho visto, non dovrebbe
    essere possibile metterlo neanche nel file di configurazione
    di sysconf per applicarlo all'avvio.

    Ciao
    Davide

    --
    La mia privacy non è affar tuo
    https://noyb.eu/it
    - You do not have my permission to use this email to train an AI -
    If you use this to train your AI than you accept to distribute under AGPL license >= 3.0 all the model trained, all the source you have used to
    training your model and all the source of the program that use that model

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Davide Prina@21:1/5 to All on Sun May 26 09:40:01 2024
    Felipe Salvador ha scritto:

    Mi sfugge un dettaglio, tu vuoi spengere il LED semplicemente o
    disabilitare Bloc Num?

    no vorrei semplicemente poterne controllare da script non root
    lo spegnimento e di conseguenza anche l'accensione.

    Ho provato un po' tutto quello che dovrebbe funzionare con X, ma
    sembra che con wayland non funzioni nulla e non ho trovato nulla
    specifico per wayland. Come dicevo probabilmente o non ho trovato
    io come fare o non è ancora stato implementato o magari non è
    previsto che sia possibile fare una cosa simile da utente normale
    (per motivi di sicurezza?)

    Ciao
    Davide

    --
    La mia privacy non è affar tuo
    https://noyb.eu/it
    - You do not have my permission to use this email to train an AI -
    If you use this to train your AI than you accept to distribute under AGPL license >= 3.0 all the model trained, all the source you have used to
    training your model and all the source of the program that use that model

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)