! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Battery plugin blocks keypress events
Status:
RESOLVED: INVALID
Product:
Xfce4-battery-plugin
Component:
General

Comments

Description citral 2007-01-20 00:49:30 CET
Hi,

I've been a happy Xfce4.2 user, and decided to try out the beta. However, in the new xfce, randomy input keystrokes dissapear. Like when typing this exact message, some keystrokes don't get through, and I need to repeat them; very annoying! It's about one keystroke on every word that misses. But I can't really discover a pattern. I've tried looking in xev, and there input also misses.

I figured it might be an X prob (even though I didn't update X), but starting a basic X w/out a WM and only xterm, everything is OK. Even with xfwm4 started; no problem. However, if I then start the panel, it starts going wrong. I guess the problem lies in some xfce lib?

I've tried the keyboard config settings in the settings dialog. Disabled/enabled all options, tried the sliders all 2 left & Right, but no hope.

If I knew more how to debug this, I'm glad to do so.
Comment 1 Olivier Fourdan editbugs 2007-01-20 08:20:29 CET
Looks like a bug in your X driver (from memory, we had a similar report from a user with a laptop) or in the kernel (like with interrupts).

I think it's triggered when changing X keyboard settings. This is why you don't see that with basic window managers (which don't touch keyboard settings at all)

You could try from a terminal

   xset r off

You could also remove the MCS keyboard settings[*] and restart X completely to see if that's related.

[*] locate keyboard_plugin.so and remove or rename it so it doesn't get loaded at startup. On my system, the plugin is located here: 

   /usr/local/lib/xfce4/mcs-plugins/keyboard_plugin.so

Comment 2 citral 2007-01-20 11:50:54 CET
I've tried  your cmd, as well as chmod 000 'ing that lib, but both did not help.

I'm indeed a laptop user though, so maybe I have the same problem has the other user. Did he solve his problem?

Comment 3 Olivier Fourdan editbugs 2007-01-20 17:02:56 CET
(In reply to comment #2)
> I've tried  your cmd, as well as chmod 000 'ing that lib, but both did not
> help

I'm not sure chmod would suffice, try renaming it.

> I'm indeed a laptop user though, so maybe I have the same problem has the other
> user. Did he solve his problem?

He has never followed up on his report, so we basically close it. 

Comment 4 citral 2007-01-21 05:50:11 CET
I've tried it, unfortunately, no improvement.

Their is no relation with cpu usage, however typing at aprox. 1char/0.5sec is a remedy.

should I post my X log?
Comment 5 citral 2007-01-22 22:33:46 CET
I'll report back when I've tried the 4.4 release...
Comment 6 citral 2007-01-25 15:23:11 CET
As far as I can see for now, removing the Battery status monitor from my XFCE Panel has resolved the issue! 

God knows why the battery plugin ate up input, but I'm happy to help you guys debug it.

I'm a laptop user, and the battery plugin worked excellent on my system.
Comment 7 Olivier Fourdan editbugs 2007-01-25 20:37:57 CET
Wow, at least we can pinpoint it... Thanks.
Comment 8 Nick Schermer editbugs 2007-01-25 21:06:47 CET
I guess it's my bug then...
Comment 9 citral 2007-04-13 20:10:37 CEST
Can I do anything to help debug this?
Comment 10 Micah Stetson 2008-02-11 17:36:56 CET
I notice missed keystrokes using the battery monitor on Neoware m100 laptops (Via VN800 Chipset).  Stopping the battery monitor causes the keyboard to behave normally.

I believe this is actually a Linux kernel bug.  I've traced the problem to reading /proc/acpi/battery/BAT1/info.  I can reliably cause keyboard events to be lost by running this from the shell:

while sleep 1; do cat /proc/acpi/battery/BAT1/info >/dev/null; done

I lose keystrokes even without X running.  I'm not sure which exact kernel patch fixed the problem, but it does not occur in Linux 2.6.24 and later.  I haven't tested too far back to see if the bug is long standing, but it appears to be in all of the 2.6.22 and 2.6.23 kernels.
Comment 11 Florian Rivoal editbugs 2010-12-27 04:12:34 CET
This was a linux kernel bug, which has been fixed. Nothing to do here

Bug #2780

Reported by:
citral
Reported on: 2007-01-20
Last modified on: 2010-12-27

People

Assignee:
Xfce-Goodies Maintainers
CC List:
1 user

Version

Version:
0.5.1 or older

Attachments

Additional information