Re: xmodmap causes openbox 3.5.x to stop responding, consume cpu cycles
Robbie Smith <[email protected]>
| Newsgroups | gmane.comp.window-managers.openbox |
|---|---|
| Message-ID | <[email protected]> |
On 21/04/14 14:30, Parke wrote: > Hi, > > When I run the following command on Openbox 3.5.2 on Ubuntu 14.04: > > xmodmap -pke | xmodmap - > > CPU usage spikes to 100% for 50+ seconds. During this time, openbox > does not respond to any mouse (or keyboard?) actions. > > Running the same command in Unity uses about 2 seconds of CPU. > > I believe this problem appeared some years ago with Openbox 3.5. > > On a slower machine, running Openbox 3.4.10, when I run the above > xmodmap command, openbox is sluggish (but still responds) for 10 > seconds. During seconds 10-20, CPU usage is still 100%, but openbox > is highly responsive. After 20 seconds, CPU usage drops to normal > levels. > > Thanks, > > -Parke > _______________________________________________ > openbox mailing list > [email protected] > http://icculus.org/mailman/listinfo/openbox > xmodmap is broken: don't use it. I don't recall the exact reason why or how, but I used to get this all the time too. Use xkb instead if you need a custom layout, you can roll your own fairly easily without modifying any system files assuming that the configs it's built on already exist (and they probably do, there are a lot of layouts and options in there). This is mine, for example: ~/.config/xkb/keymap/custom.xkb default xkb_keymap "default" { xkb_keycodes { include "evdev+aliases(qwerty)+fixes(insert)" }; xkb_types { include "complete" }; xkb_compat { include "complete" }; xkb_symbols { include "pc+us+inet(evdev)+capslock(thirdlevel)+vimkeys+compose(ralt)+keypad(oss)+keypad(pointerkeys)" }; xkb_geometry { include "pc(pc104)" }; }; That will load a US keyboard layout, with - Caps Lock set as a third level chooser - Vim-style arrow keys on H J K L - Compose key on my right alt - Extra mathematical symbols on my number pad - Pointer keys using the number pad I think I've also got a bit in there to fix up my insert/print screen keys which my laptop keyboard gets backwards. I load it with the following command which I've put in a session autostart script so it's desktop-agnostic. $ xkbcomp -I /home/robbie/.config/xkb/ /home/robbie/.config/xkb/keymap/custom.xkb ${DISPLAY%%.*} _______________________________________________ openbox mailing list [email protected] http://icculus.org/mailman/listinfo/openbox
signature.asc
(application/pgp-signature, 1 KB)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQJ8BAEBCgBmBQJTVmHMXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXRCMEFDQ0NBQkFDOEJGOEIyQkUyN0IzQzUx NkRGRjFGODYxNjQ0Mzg3AAoJEBbf8fhhZEOHRTAP/13Vk1AV/P00v3ESw1tmd0/0 T2cieshT5wNqm3BftHw2/GyqlR9QiBQO+qWU6YblVPTO5K59GbS1pZgX2QoTzoK6 s7EQxfCYR1t0seXf2P7Gm6YDaiyJFenP7PjvLIHX4RbtmkQ5hpAjafQzssBKFRzx X/d8Ld2CBrqO1sN2zsoXXtcgiG78NOLrRPNiYfuEd6iaz/DhRV/yt/Q5Zs4DEDnr 418K2GxUnF0JVKhmnul7DQ4l6/X2lmC2f6w0EUTzBn81pG6kIjtvhbyGRGMulrds J0bPWcagYh6O1ETZuK7fKDG8aD6fJvGwyCq2xi/E0lKEwYDfplMDonyxdUrNw0Hq K+g+IMmWSVIMHuNoBn0sm5HlI/vwXY71rIPyRY9BCRTx1RCmx1tJsYPbZ4oGZsbR c8IkBqJ7pFZo0OECXwP0VIMpUM9m9DGD3xSDP6hSQvRsvCbDoUvQ02NY4wY81uEZ yY7LmJDV8+kHUUAAGvZu0kWesjqZvmwb6qKknP/SSBpBB6m2ylnaHyFwpv1J/CYG C7rWzvI0HCNbxFKTBx5a/dmZGIyqu6IJ4V05VWm8jMV1E3ipAjetIlCIdrJBWVfE K8/mXKdDvSTGm3ap4wmKgz9ykq5RtyZsv2jfKZ06BOcz4V93AvBFAymPSVfak+KV v1BxiPJe6lenmFLGDjYA =h41Z -----END PGP SIGNATURE-----