| Summary: | tdekbdledsync clashes with standard XKB grp_led options and contributes to battery drain. | ||
|---|---|---|---|
| Product: | TDE | Reporter: | Pavel Pisa <ppisa4lists> |
| Component: | tdebase | Assignee: | Michele Calgaro <michele.calgaro> |
| Status: | RESOLVED FIXED | ||
| Severity: | enhancement | CC: | bugwatch, fatzer2, kb9vqf, michele.calgaro, ppisa4lists, russell, slavek.banko |
| Priority: | P5 | ||
| Version: | R14.0.x [Trinity] | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Compiler Version: | TDE Version String: | ||
| Application Version: | Application Name: | ||
| Bug Depends on: | |||
| Bug Blocks: | 3060 | ||
|
Description
Pavel Pisa
2014-01-19 17:06:48 CST
This daemon was introduced to fix long-standing Bug 427 which affects multiple desktop environments. The root cause is some sort of bug in Xorg that has not been fixed for many, many years despite repeated attempts to do so. It would seem reasonable to allow configuration of the daemon in two ways: 1.) Disable the daemon entirely, but with a strong warning that Bug 427 will resurface if the daemon is disabled 2.) Adjust the daemon polling interval. Effectively, this would adjust the maximum amount of time the keyboard could remain in an inconsistent state. Reasonable values would be from 1 to 30 seconds, with Bug 427 essentially resurfacing if the delay is set much longer than 30 seconds. I have another use-case where tdekbdledsync fails. We run a 'traditional' setup with a big powerful server in the middle and 'dumb' x-terminals connecting to it via XDMCP. tdekbdledsync ends up trying to control the LEDs on the main server's keyboard and not the ones on the remote terminals... so every logged in user has tdekbdledsync opening /dev/ttyX and /dev/input/eventX on the main server. I don't know if tdekbdledsync can determine if the DISPLAY is remote, and if so ignore it, but if it can't, an 'official' way of disabling tdekdbledsync other than employing rm would be nice. Because my XKB global setting is good enough for me, I solve the problem by renaming daemon executable mv /opt/trinity/bin/tdekbdledsync /opt/trinity/bin/tdekbdledsync-off and then I am happy with Trinity as it is. There is no problem if executable is not present. But option to control the trinity_desktop_synchronize_keyboard_lights variable would be nice. I think we can proceed in three steps to solve this problem: 1. Change tdm_greet to make tdekbdledsync not run on remote terminals. 2. Add an option to a configuration file that allows to set the trinity_desktop_synchronize_keyboard_lights value - so far without the GUI. 3. Add a GUI for the trinity_desktop_synchronize_keyboard_lights option. Steps 1 and 2 would be good if we could get them into R14.0.6. Step 3 then to R14.1.0. Step 1 is resolved in commits c80e5d45 (master) and 5b65df75 (r14.0.x). Step 2 and 3 solved in commit be1c4f22 (R14.1) and d008372a (R14.0). |