EionRobb / pidgin-capsnot

Automatically exported from code.google.com/p/pidgin-capsnot
1 stars 0 forks source link

Doesn't run on Liunx. #3

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
This plugin seems not work under Linux. None of the keyboard leds flashes when 
a message arrives.

It tracked the issue down and found out that:
- ioctl needs an open file descriptor (like "/dev/console" oder /dev/tty")
- to open a file descriptor you need root rights

Since running Pidgin as root isn't proper solution, there must be another way 
to activate the leds.

Original issue reported on code.google.com by Wolkensc...@googlemail.com on 4 Nov 2010 at 1:44

GoogleCodeExporter commented 8 years ago
Thanks for testing.  I wasn't sure if it would work on Linux and hadn't tested 
it yet.  There's another way I've found of setting the leds, but it's only 
through X11 calls.  I'll sniff around and see if I can find any other ways.

Original comment by eionrobb on 4 Nov 2010 at 7:49

tlhonmey commented 5 years ago

/sys/class/leds/*/brightness will let you control LEDs just by writing 1 or 0 to them.

so all you need is to arrange from the user of the plugin to have write permissions to the desired files.