Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 198421 Details for
Bug 216926
Keyboard repeat does not work correctly with vnc paravirt frame buffer
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Patch to repeat keystrokes
linux-2.6.9-xen-input-repeat-key.patch (text/plain), 1.32 KB, created by
Chris Lalancette
on 2007-09-18 14:48:39 UTC
(
hide
)
Description:
Patch to repeat keystrokes
Filename:
MIME Type:
Creator:
Chris Lalancette
Created:
2007-09-18 14:48:39 UTC
Size:
1.32 KB
patch
obsolete
>diff -up linux-2.6.9/drivers/xen/fbfront/xenkbd.c.orig linux-2.6.9/drivers/xen/fbfront/xenkbd.c >--- linux-2.6.9/drivers/xen/fbfront/xenkbd.c.orig 2007-09-18 10:42:55.000000000 -0400 >+++ linux-2.6.9/drivers/xen/fbfront/xenkbd.c 2007-09-18 10:44:50.000000000 -0400 >@@ -50,6 +50,9 @@ static irqreturn_t input_handler(int rq, > struct xenkbd_info *info = dev_id; > struct xenkbd_page *page = info->page; > __u32 cons, prod; >+ __u8 pressed; >+ static __u8 last_pressed; >+ static __u32 last_keycode; > > prod = page->in_prod; > if (prod == page->out_cons) >@@ -65,7 +68,19 @@ static irqreturn_t input_handler(int rq, > input_report_rel(info->dev, REL_Y, event->motion.rel_y); > break; > case XENKBD_TYPE_KEY: >- input_report_key(info->dev, event->key.keycode, event->key.pressed); >+ if ((event->key.keycode == last_keycode) && (last_pressed == event->key.pressed)) { >+ pressed = 2; >+ } >+ else { >+ pressed = event->key.pressed; >+ last_keycode = event->key.keycode; >+ last_pressed = event->key.pressed; >+ } >+ >+ // NOTE: we have to use input_event instead of >+ // input_report_key here because the latter passes the >+ // last argument as !!value, which can lose information >+ input_event(info->dev, EV_KEY, event->key.keycode, pressed); > break; > case XENKBD_TYPE_POS: > input_report_abs(info->dev, ABS_X, event->pos.abs_x);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 216926
: 198421