{"id":486,"date":"2009-03-26T18:07:12","date_gmt":"2009-03-27T01:07:12","guid":{"rendered":"http:\/\/www.graphics-muse.org\/wp\/?p=486"},"modified":"2009-03-26T18:07:12","modified_gmt":"2009-03-27T01:07:12","slug":"quickies-flash-64-fixing-skipping-audio-mapping-keys-to-applications","status":"publish","type":"post","link":"https:\/\/www.graphics-muse.org\/wp\/?p=486","title":{"rendered":"Quickies: Flash 64, fixing skipping audio, mapping keys to applications"},"content":{"rendered":"<p>I&#8217;ve been having problems playing flash video on my new system at home.\u00a0 The system is a 64bit AMD running F10.\u00a0 Flash video plays but the audio skips a lot.\u00a0 I had similar problems with other applications but was able to get around it by using the right audio setup, such as using -A alsa when running Xine.\u00a0 But the flash plugin doesn&#8217;t allow that sort of setting (at least not that I can find).<\/p>\n<p>A little digging found a <a href=\"https:\/\/fedoraproject.org\/wiki\/Flash\">Fedora posting on using Flash<\/a>.\u00a0 This led to the <a href=\"http:\/\/labs.adobe.com\/downloads\/flashplayer10.html\">Alpha version of a 64-bit Flash Player plugin for Linux<\/a>.\u00a0 This replaces the flash-plugin RPM (which you&#8217;ll need to remove using yum).\u00a0 I installed the alpha plugin and it seems to work fine, but the audio skipping is still there.<\/p>\n<p>A little more digging and I found that <a href=\"http:\/\/forums.fedoraforum.org\/showthread.php?t=207415\">Pulse Audio needs a minor tweek<\/a> (or complete removal if you want to go that route).\u00a0 I edited <span style=\"color: #000080;\"><span style=\"font-family: verdana,geneva;\"><span style=\"font-size: small;\">\/etc\/pulse\/default.pa<\/span><\/span><\/span> and changed this line<\/p>\n<p style=\"padding-left: 30px;\"><span style=\"color: #000080;\">load-module module-hal-detect<\/span><\/p>\n<p>to this<\/p>\n<p style=\"padding-left: 30px;\"><span style=\"color: #000080;\">load-module module-hal-detect tsched=0<\/span><\/p>\n<p>and then rebooted.\u00a0 Viola!\u00a0 The audio skipping is gone in flash video.\u00a0 Pulse Audio still has a way to go before it&#8217;s an ideal solution.\u00a0 It sure seems to get in the way more than it helps.<\/p>\n<p>The other thing I finally uncovered was mapping all those extra keys on my Logitech Internet Navigator keyboard to something useful.\u00a0 Turns out that this keyboard is supported under Linux, specifically GNOME if you go to <em>System-&gt;Preferences-&gt;Hardware-&gt;Keyboard<\/em>.\u00a0 That gets some of the keys working, like audio up and down, but most of the keys still don&#8217;t do anything even if you use the Keyboard Shortcuts option (<em>System-&gt;Preferences-&gt;Personal-&gt;Keyboard Shortcuts<\/em>).<\/p>\n<p>What you need to do is find out they <em>keycode<\/em> for each key using <a href=\"http:\/\/www.xfree86.org\/current\/xev.1.html\">xev<\/a> (which comes in the xorg-x11-utils package). Once you have the keycode you use <a href=\"http:\/\/cweiske.de\/howto\/xmodmap\/allinone.html\">xmodmap<\/a> (which comes in xorg-x11-server-utils) to map the keycodes to a key recognized by the X.org server (see <span style=\"color: #000080;\"><span style=\"font-family: verdana,geneva;\"><span style=\"font-size: small;\">\/usr\/include\/X11\/keysymdefs.h<\/span><\/span><\/span>).\u00a0 With the keycodes mapped to a key, you then have to map the key to an application using <a href=\"http:\/\/hocwp.free.fr\/xbindkeys\/xbindkeys.html\">xbindkeys<\/a>.\u00a0\u00a0 This is a little program that reads a configuration file, <a href=\"https:\/\/www.graphics-muse.org\/source\/xbindkeysrc\">$HOME\/.xbindkeysrc<\/a>, which specifies what command to run when the key is hit.\u00a0 To get this all working, I wrote a little <a href=\"https:\/\/www.graphics-muse.org\/source\/LogitechIntenetNavigator.sh\">script that I added to my startup session<\/a> (see <em>System-&gt;Preferences-&gt;Personal-&gt;Session<\/em>) which runs xmodmap and xbindkeys for me.\u00a0 Now when I log in I can use keys to launch a gnome-terminal, MythTV and various other applications.<\/p>\n<p>You can find a little more detail on this process from this <a href=\"http:\/\/www.astahost.com\/info.php\/Hotkeys-Keyboard-Quick-Launch-Keys-Linux_t1813.html\">hotkey tutorial<\/a>.<\/p>\n<p>I haven&#8217;t checked but I&#8217;m pretty sure that if you update the .xbindkeysrc file to add new key-to-application mappings you&#8217;ll have to log out and log back in to have the mappings picked up for the current session.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;ve been having problems playing flash video on my new system at home.\u00a0 The system is a 64bit AMD running F10.\u00a0 Flash video plays but the audio skips a lot.\u00a0 I had similar problems with other applications but was able to get around it by using the right audio setup, such as using -A alsa [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ngg_post_thumbnail":0,"jetpack_post_was_ever_published":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false},"version":2}},"categories":[12,35,5,206,202],"tags":[225,102,634,222,48,224,226,223,621,622,160,227],"class_list":{"0":"post-486","1":"post","2":"type-post","3":"status-publish","4":"format-standard","6":"category-audio","7":"category-fedora","8":"category-linux","9":"category-pulseaudio","10":"category-x86-64","11":"tag-64bit-amd","12":"tag-f10","13":"tag-fedora","14":"tag-flash-player-plugin","15":"tag-gnome","16":"tag-keyboard-shortcuts","17":"tag-keycodes","18":"tag-logitech-internet-navigator","19":"tag-mythtv","20":"tag-x11","21":"tag-xine","22":"tag-xmodmap","23":"czr-hentry"},"jetpack_publicize_connections":[],"aioseo_notices":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/pe9t8-7Q","jetpack_sharing_enabled":true,"jetpack-related-posts":[],"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/www.graphics-muse.org\/wp\/index.php?rest_route=\/wp\/v2\/posts\/486","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.graphics-muse.org\/wp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.graphics-muse.org\/wp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.graphics-muse.org\/wp\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.graphics-muse.org\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=486"}],"version-history":[{"count":2,"href":"https:\/\/www.graphics-muse.org\/wp\/index.php?rest_route=\/wp\/v2\/posts\/486\/revisions"}],"predecessor-version":[{"id":488,"href":"https:\/\/www.graphics-muse.org\/wp\/index.php?rest_route=\/wp\/v2\/posts\/486\/revisions\/488"}],"wp:attachment":[{"href":"https:\/\/www.graphics-muse.org\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=486"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.graphics-muse.org\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=486"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.graphics-muse.org\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=486"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}