{"id":1535,"date":"2013-04-10T02:01:18","date_gmt":"2013-04-10T00:01:18","guid":{"rendered":"http:\/\/raftaman.net\/?p=1535"},"modified":"2021-05-15T11:46:38","modified_gmt":"2021-05-15T09:46:38","slug":"fixing-hp-elitebook-ambient-button","status":"publish","type":"post","link":"https:\/\/possiblelossofprecision.net\/?p=1535","title":{"rendered":"Fixing HP EliteBook ambient button"},"content":{"rendered":"<p>The button that is supposed to toggle the ambient light sensor on HP EliteBooks 8440p and 8460p per default switches off the touch pad. That is because <code>Fn+F11<\/code> (scancode <code>0x33<\/code>), which is the ambient light button, is incorrectly mapped to <code>KEY_TOUCHPAD_OFF<\/code> (keycode 193) in kernel.<\/p>\n<p>To remap the scancode to another keycode, you can use <code>setkeycodes<\/code>. An appropriate choice for a target keycode could be <code>KEY_PROG1<\/code> (<code>XF86Launch1<\/code>, keycode 148) which can be easily reconfigured in KDE or any other desktop environment to run any custom command.<\/p>\n<p>Run the following command as root to remap <code>Fn+F11<\/code> to <code>KEY_PROG1<\/code>:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n# setkeycodes e033 148\r\n<\/pre>\n<p>Resources:<br \/>\n<a href=\"http:\/\/www.linlap.com\/hp_elitebook_8460p\">http:\/\/www.linlap.com\/hp_elitebook_8460p<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>The button that is supposed to toggle the ambient light sensor on HP EliteBooks 8440p and 8460p per default switches off the touch pad. That is because Fn+F11 (scancode 0x33), which is the ambient light button, is incorrectly mapped to KEY_TOUCHPAD_OFF (keycode 193) in kernel. To remap the scancode to another keycode, you can use setkeycodes. An appropriate choice for&#8230; <a href=\"https:\/\/possiblelossofprecision.net\/?p=1535\">Read more &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[58,45,14],"class_list":["post-1535","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-hardware","tag-kde","tag-x"],"_links":{"self":[{"href":"https:\/\/possiblelossofprecision.net\/index.php?rest_route=\/wp\/v2\/posts\/1535","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/possiblelossofprecision.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/possiblelossofprecision.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/possiblelossofprecision.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/possiblelossofprecision.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1535"}],"version-history":[{"count":5,"href":"https:\/\/possiblelossofprecision.net\/index.php?rest_route=\/wp\/v2\/posts\/1535\/revisions"}],"predecessor-version":[{"id":1540,"href":"https:\/\/possiblelossofprecision.net\/index.php?rest_route=\/wp\/v2\/posts\/1535\/revisions\/1540"}],"wp:attachment":[{"href":"https:\/\/possiblelossofprecision.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1535"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/possiblelossofprecision.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1535"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/possiblelossofprecision.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1535"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}