# How do I increase the response speed of /sys/class/leds

- From: \<hidden\>
- Date: 2013-01-24 04:48:33 
- List: linux-input
- Page: https://ratatoskr.run/linux-input/2013/01/8920871
- Thread: https://ratatoskr.run/linux-input/2013/01/8920871/t.md

```text
I'm looking at using the LEDs on a gaming wheel via the /sys/class/leds
interface, and I am seeing that the response time is slow when I want to
set/clear all the LEDs simultaneously.

I've attached example C code which which slowly draws the bar, and then
flashes everything on/off. I can clearly see the 'progression' when
flashing.

Q. If there a method to minimise file access across LEDs and/or
synchronise the flashing?


If I run the same code on a G27 wheel (5 leds via /sys/class/leds) the
response timeh is much better.

Q. Is there a way to increase the polling/writing speed to a HID device?


Thanks,
Simon.
```

## Attachments

- [led\_test.c](https://ratatoskr.run/linux-input/2013/01/8920871/attachment/0) (text/x-csrc, 1938 bytes)
