Grazie per la risposta,
credo che lo spazio sia stato un errore di battitura quando riprovavo i comandi per copiarne l'output.
Ad ogni modo ecco qui i comandi corretti, compreso quello che mi chiedevi di eseguire (prima e dopo aver cambiato i permessi al file 'led'):
- Codice: Seleziona tutto
$ dmesg|grep -i 'optical'
[ 4.371378] input: HP Wireless Optical Mobile Mouse as /devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1:1.0/input/input9
[ 4.372632] generic-usb 0003:03F0:8207.0001: input,hidraw0: USB HID v1.00 Mouse [HP Wireless Optical Mobile Mouse] on usb-0000:00:1a.0-1/input0
$ cat /sys/devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1:1.0/input/input9/name
HP Wireless Optical Mobile Mouse
- Codice: Seleziona tutto
$ ls -hl /sys/devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1:1.0/input/input9/capabilities/led
-r--r--r-- 1 root root 4,0K ago 8 21:06 /sys/devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1:1.0/input/input9/capabilities/led
$ sudo chmod +w /sys/devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1:1.0/input/input9/capabilities/led
$ ls -hl /sys/devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1:1.0/input/input9/capabilities/led
-rw-r--r-- 1 root root 4,0K ago 8 21:08 /sys/devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1:1.0/input/input9/capabilities/led
- Codice: Seleziona tutto
$ sudo echo 1 > /sys/devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1:1.0/input/input9/capabilities/led
bash: /sys/devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1:1.0/input/input9/capabilities/led: Permesso negato
andrea@andrea-R519:~$ sudo su
# echo 1 > /sys/devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1:1.0/input/input9/capabilities/led
bash: echo: errore in scrittura: Errore di input/output
(P.S.: la cartella da /sys/devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1:1.0/input/
input15 è diventata /sys/devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1:1.0/input/
input9, quasi sicuramente perché la prima volta avevo scollegato e ricollegato il connettore wireless del mouse all'usb dopo l'avvio. Ho provato riavviare più volte ed input9 non cambia

)
Al riavvio inoltre i permessi tornano quelli di default, ovvero -r--r--r--.
Ho provato anche con il comando
xset che mi permette di controllare il led del "Scroll Lock", e solo quello, sulla tastiera ma niente da fare, la rotellina non si accende!
- Codice: Seleziona tutto
$ xset -q
Keyboard Control:
auto repeat: on key click percent: 0 LED mask: 00000002
XKB indicators:
00: Caps Lock: off 01: Num Lock: on 02: Scroll Lock: off
03: Compose: off 04: Kana: off 05: Sleep: off
06: Suspend: off 07: Mute: off 08: Misc: off
09: Mail: off 10: Charging: off 11: Shift Lock: off
12: Group 2: off 13: Mouse Keys: off
auto repeat delay: 500 repeat rate: 33
auto repeating keys: 00ffffffdffffbbf
fadfffefffedffff
9fffffffffffffff
fff7ffffffffffff
bell percent: 50 bell pitch: 400 bell duration: 100
Pointer Control:
acceleration: 11/2 threshold: 10
Screen Saver:
prefer blanking: yes allow exposures: yes
timeout: 0 cycle: 0
Colors:
default colormap: 0x20 BlackPixel: 0 WhitePixel: 16777215
Font Path:
/usr/share/fonts/X11/misc,/usr/share/fonts/X11/Type1,built-ins
DPMS (Energy Star):
Standby: 0 Suspend: 0 Off: 0
DPMS is Enabled
Monitor is On
$ xset led named "Mouse Keys"
$ xset -q
Keyboard Control:
auto repeat: on key click percent: 0 LED mask: 00002002
XKB indicators:
00: Caps Lock: off 01: Num Lock: on 02: Scroll Lock: off
03: Compose: off 04: Kana: off 05: Sleep: off
06: Suspend: off 07: Mute: off 08: Misc: off
09: Mail: off 10: Charging: off 11: Shift Lock: off
12: Group 2: off 13: Mouse Keys: on
auto repeat delay: 500 repeat rate: 33
auto repeating keys: 00ffffffdffffbbf
fadfffefffedffff
9fffffffffffffff
fff7ffffffffffff
bell percent: 50 bell pitch: 400 bell duration: 100
Pointer Control:
acceleration: 11/2 threshold: 10
Screen Saver:
prefer blanking: yes allow exposures: yes
timeout: 0 cycle: 0
Colors:
default colormap: 0x20 BlackPixel: 0 WhitePixel: 16777215
Font Path:
/usr/share/fonts/X11/misc,/usr/share/fonts/X11/Type1,built-ins
DPMS (Energy Star):
Standby: 0 Suspend: 0 Off: 0
DPMS is Enabled
Monitor is On
