On 1/9/07, Julien Danjou <[EMAIL PROTECTED]> wrote:
At 1168289040 time_t, hugo vanwoerkom wrote:
Hi Hugo,

> I changed the tleds code to get LED display of net traffic in X.
>
> I added an option '-x' that would if used, open the available X
> displays and flask the LEDs.
>
> Bug#50842 now into its seventh year, prevents the NumLock LED from
> working, so under X the LEDs work as if the -n option is specified.
>
> The diff file is attached.

I tried your patch. I'm not yet very familiar with tled, but at first
glance, I just installed tleds 1.05beta10-10 and my LEDs are blinking :)
And your patch does not change anything for me (with -x it does not
work).

I'm running xorg 7.1 with on kernel 2.6.18-3-k7.
What are you using ?


Hi Julien,

This is a strange one all right.
I am using 2.6.18 from kernel.org or 2.6.19.1-ck2 or 2.6.17.14-ck1.

To summarize again: the issue is running tleds as a Debian started
task and having the LEDs blink when in a VT text console *and* also
when in X.

Going back to last October 2006 I noticed that when I ran a kernel >=
2.6.18 the LEDs blinked in VT text consoles but *not* when in X.

I posted various times to LDU and I must say that nobody can verify this. E.g.
http://lists.debian.org/debian-user/2006/10/msg01036.html
http://lists.debian.org/debian-user/2007/01/msg00773.html
http://lists.debian.org/debian-user/2007/01/msg00774.html

Yet, I have tried the kernel you use on Sid, with xorg 7.1 and the
LEDs definitely do *not* blink in X and *do* blink in a VT.

So now the tleds change.

Tleds goes back a while. In its present Debian version it essentially
has 2 modes of operating: as root and as non-root.

As root it opens /dev/console and uses ioctl's to set the LEDs based on traffic.

As non-root it can run in X and use the xbase-clients API to set the
LEDs. To get this to work you have to recompile without the
-DNO_X_SUPPORT option.

But the above does away with the Debian started task of course.

So I added a -x option that will use the X API when it finds displays
openable, based on the MAXDISPLAYS define.

Yet, the problem only seems to occur on my box.

I have the latest Sid installed, but run xorg 7.1 to support 2
simultaneous users (I have 2 Nvidia
cards/Xservers/mice/keyboards/monitors). But is all just Sid.

As I indicated in the addendum to 392237 bug#50842 prevents both the
NumLock LED *and* the ScrollLock LED from operating in X: that bug is
now more than 7 years old and means that 'xset led' will *only* turn
on the ScrollLock LED. So in X tleds works as if the -n option is
used: that is a Debian change to operate only the latter LED.

I'll CC this to 392237 just for the record.

If I can do anything else let me know. I appreciate you attention.

Hugo


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to