[{"data":1,"prerenderedAt":315},["ShallowReactive",2],{"i-lucide:menu":3,"i-lucide:arrow-up-right":8,"i-lucide:moon":10,"i-lucide:sun":12,"i-lucide:rss":14,"i-simple-icons:github":16,"i-simple-icons:linkedin":18,"post-\u002F2014\u002Fgetting-razer-naga-to-play-well-with-ubuntu":21,"surround-\u002F2014\u002Fgetting-razer-naga-to-play-well-with-ubuntu":86,"i-lucide:arrow-left":95,"i-lucide:arrow-right":97,"gist-259cdb7c6e28b36ca711":99},{"left":4,"top":4,"width":5,"height":5,"rotate":4,"vFlip":6,"hFlip":6,"body":7},0,24,false,"\u003Cpath fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M4 5h16M4 12h16M4 19h16\"\u002F>",{"left":4,"top":4,"width":5,"height":5,"rotate":4,"vFlip":6,"hFlip":6,"body":9},"\u003Cpath fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M7 7h10v10M7 17L17 7\"\u002F>",{"left":4,"top":4,"width":5,"height":5,"rotate":4,"vFlip":6,"hFlip":6,"body":11},"\u003Cpath fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401\"\u002F>",{"left":4,"top":4,"width":5,"height":5,"rotate":4,"vFlip":6,"hFlip":6,"body":13},"\u003Cg fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\">\u003Ccircle cx=\"12\" cy=\"12\" r=\"4\"\u002F>\u003Cpath d=\"M12 2v2m0 16v2M4.93 4.93l1.41 1.41m11.32 11.32l1.41 1.41M2 12h2m16 0h2M6.34 17.66l-1.41 1.41M19.07 4.93l-1.41 1.41\"\u002F>\u003C\u002Fg>",{"left":4,"top":4,"width":5,"height":5,"rotate":4,"vFlip":6,"hFlip":6,"body":15},"\u003Cg fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\">\u003Cpath d=\"M4 11a9 9 0 0 1 9 9M4 4a16 16 0 0 1 16 16\"\u002F>\u003Ccircle cx=\"5\" cy=\"19\" r=\"1\"\u002F>\u003C\u002Fg>",{"left":4,"top":4,"width":5,"height":5,"rotate":4,"vFlip":6,"hFlip":6,"body":17},"\u003Cpath fill=\"currentColor\" d=\"M12 .297c-6.63 0-12 5.373-12 12c0 5.303 3.438 9.8 8.205 11.385c.6.113.82-.258.82-.577c0-.285-.01-1.04-.015-2.04c-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729c1.205.084 1.838 1.236 1.838 1.236c1.07 1.835 2.809 1.305 3.495.998c.108-.776.417-1.305.76-1.605c-2.665-.3-5.466-1.332-5.466-5.93c0-1.31.465-2.38 1.235-3.22c-.135-.303-.54-1.523.105-3.176c0 0 1.005-.322 3.3 1.23c.96-.267 1.98-.399 3-.405c1.02.006 2.04.138 3 .405c2.28-1.552 3.285-1.23 3.285-1.23c.645 1.653.24 2.873.12 3.176c.765.84 1.23 1.91 1.23 3.22c0 4.61-2.805 5.625-5.475 5.92c.42.36.81 1.096.81 2.22c0 1.606-.015 2.896-.015 3.286c0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12\"\u002F>",{"left":4,"top":4,"width":5,"height":5,"rotate":4,"vFlip":6,"hFlip":6,"body":19,"hidden":20},"\u003Cpath fill=\"currentColor\" d=\"M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037c-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85c3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433a2.06 2.06 0 0 1-2.063-2.065a2.064 2.064 0 1 1 2.063 2.065m1.782 13.019H3.555V9h3.564zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0z\"\u002F>",true,{"id":22,"title":23,"body":24,"category":68,"comments":69,"date":70,"description":71,"excerpt":69,"extension":72,"image":69,"meta":73,"navigation":20,"path":74,"readingTime":75,"seo":76,"stem":77,"subtitle":69,"tags":78,"wordCount":84,"__hash__":85},"posts\u002F2014\u002Fgetting-razer-naga-to-play-well-with-ubuntu.md","Getting Razer Naga To Play Well With Ubuntu",{"type":25,"value":26,"toc":64},"minimark",[27,37,45,52,60],[28,29,30,31,36],"p",{},"I have a ",[32,33,35],"a",{"href":34},"http:\u002F\u002Fwww.razerzone.com\u002Fgaming-mice\u002Frazer-naga\u002F","Razer Naga"," gaming mouse which, unfortunately, doesn't work well out of the box with Linux \u002F Ubuntu. Here's how you can remedy the problem somewhat.",[28,38,39,40,44],{},"Install ",[32,41,43],{"href":42},"http:\u002F\u002Fbues.ch\u002Fcms\u002Fhacking\u002Frazercfg.html","Razer device configuration tool",". The instructions are on the project page, the install is not overly difficult. This gives you the power to tinker with various mouse settings, most importantly the scan resolution (mouse cursor movement speed).",[28,46,47],{},[48,49],"img",{"alt":50,"src":51},"Razer","\u002Fcontent\u002F2014\u002F06\u002Frazer.png",[28,53,54,55,59],{},"I also ran into a problem where the scan resolution would reset itself to 1000 each time I disconnected the mouse (including putting the system to sleep). The default udev rule installed by razercfg did not work, so I modified it to use a custom script. If you're new to udev, read ",[32,56,58],{"href":57},"http:\u002F\u002Fhackaday.com\u002F2009\u002F09\u002F18\u002Fhow-to-write-udev-rules\u002F","How To Write udev Rules",".",[61,62],"gist",{"id":63},"259cdb7c6e28b36ca711",{"title":65,"searchDepth":66,"depth":66,"links":67},"",2,[],"Misc",null,"2014-06-09","I have a Razer Naga gaming mouse which, unfortunately, doesn't work well out of the box with Linux \u002F Ubuntu. Here's how you can remedy the problem somewhat.","md",{},"\u002F2014\u002Fgetting-razer-naga-to-play-well-with-ubuntu","less than 1 minute",{"title":23,"description":71},"2014\u002Fgetting-razer-naga-to-play-well-with-ubuntu",[79,80,81,82,83],"linux","mouse","udev","razer","driver",129,"r5aBnqXz1vO3c_9us2wUfrXRz9IsFVIwXz8hDtvuC5I",[87,91],{"title":88,"path":89,"stem":90,"children":-1},"Military Service – Month #9","\u002F2014\u002Fmilitary-service-month-9-march-2014","2014\u002Fmilitary-service-month-9-march-2014",{"title":92,"path":93,"stem":94,"children":-1},"Kiri Norde Centrumile Veebilehe Kasutatavusest","\u002F2014\u002Fkiri-norde-centrumile-veebilehe-kasutatavusest","2014\u002Fkiri-norde-centrumile-veebilehe-kasutatavusest",{"left":4,"top":4,"width":5,"height":5,"rotate":4,"vFlip":6,"hFlip":6,"body":96},"\u003Cpath fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"m12 19l-7-7l7-7m7 7H5\"\u002F>",{"left":4,"top":4,"width":5,"height":5,"rotate":4,"vFlip":6,"hFlip":6,"body":98},"\u003Cpath fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M5 12h14m-7-7l7 7l-7 7\"\u002F>",{"id":100,"title":101,"body":102,"createdAt":306,"description":65,"extension":72,"files":307,"gistId":63,"meta":308,"navigation":20,"owner":309,"path":310,"seo":311,"stem":312,"url":313,"__hash__":314},"gists\u002Fgists\u002F259cdb7c6e28b36ca711.md","razercfg udev rule to automatically set DPI when the mouse is connected",{"type":25,"value":103,"toc":304},[104,115,300],[105,106,112],"pre",{"className":107,"code":109,"filename":110,"language":111,"meta":65},[108],"language-text","# UDEV rules for razer devices\n# Change script path!\n\nACTION==\"add\", SUBSYSTEM==\"usb\", ATTR{idVendor}==\"1532\", ATTR{idProduct}==\"0015\", RUN+=\"\u002Fhome\u002Fdavid\u002Fbin\u002Frazer-connect.sh\"\nACTION==\"remove\", SUBSYSTEM==\"usb\", RUN+=\"\u002Fusr\u002Flocal\u002Fbin\u002Frazercfg -B -S1 -s\"\n","91-razer-udev.rules","text",[113,114,109],"code",{"__ignoreMap":65},[105,116,121],{"className":117,"code":118,"filename":119,"language":120,"meta":65,"style":65},"language-bash shiki shiki-themes github-light github-dark","#!\u002Fbin\u002Fbash\n\n# This script is run by udev when Razer Naga mouse is connected.\n# Sets the DPI and displays a message on notify-send\n\nexport DISPLAY=:0\n\n# Scan resolution (*1000)\nRES=30\n\n# Show a message via notify-send, including icon\nDIR=\"$( cd \"$( dirname \"${BASH_SOURCE[0]}\" )\" && pwd )\"\nnotify-send 'Razer Naga Connected' \"Resolution set to $RES DPI\" -i \"$DIR\u002Frazer-connect.ico\"\n\n# Set scan resolution\nrazercfg -r \"1:$RES\"\n","razer-connect.sh","bash",[113,122,123,132,137,143,149,154,171,176,182,194,199,205,242,272,277,283],{"__ignoreMap":65},[124,125,128],"span",{"class":126,"line":127},"line",1,[124,129,131],{"class":130},"sJ8bj","#!\u002Fbin\u002Fbash\n",[124,133,134],{"class":126,"line":66},[124,135,136],{"emptyLinePlaceholder":20},"\n",[124,138,140],{"class":126,"line":139},3,[124,141,142],{"class":130},"# This script is run by udev when Razer Naga mouse is connected.\n",[124,144,146],{"class":126,"line":145},4,[124,147,148],{"class":130},"# Sets the DPI and displays a message on notify-send\n",[124,150,152],{"class":126,"line":151},5,[124,153,136],{"emptyLinePlaceholder":20},[124,155,157,161,165,168],{"class":126,"line":156},6,[124,158,160],{"class":159},"szBVR","export",[124,162,164],{"class":163},"sVt8B"," DISPLAY",[124,166,167],{"class":159},"=",[124,169,170],{"class":163},":0\n",[124,172,174],{"class":126,"line":173},7,[124,175,136],{"emptyLinePlaceholder":20},[124,177,179],{"class":126,"line":178},8,[124,180,181],{"class":130},"# Scan resolution (*1000)\n",[124,183,185,188,190],{"class":126,"line":184},9,[124,186,187],{"class":163},"RES",[124,189,167],{"class":159},[124,191,193],{"class":192},"sZZnC","30\n",[124,195,197],{"class":126,"line":196},10,[124,198,136],{"emptyLinePlaceholder":20},[124,200,202],{"class":126,"line":201},11,[124,203,204],{"class":130},"# Show a message via notify-send, including icon\n",[124,206,208,211,213,216,220,223,227,230,233,236,239],{"class":126,"line":207},12,[124,209,210],{"class":163},"DIR",[124,212,167],{"class":159},[124,214,215],{"class":192},"\"$( ",[124,217,219],{"class":218},"sj4cs","cd",[124,221,222],{"class":192}," \"$( ",[124,224,226],{"class":225},"sScJk","dirname",[124,228,229],{"class":192}," \"${",[124,231,232],{"class":163},"BASH_SOURCE",[124,234,235],{"class":192},"[0]}\" )\" && ",[124,237,238],{"class":218},"pwd",[124,240,241],{"class":192}," )\"\n",[124,243,245,248,251,254,257,260,263,266,269],{"class":126,"line":244},13,[124,246,247],{"class":225},"notify-send",[124,249,250],{"class":192}," 'Razer Naga Connected'",[124,252,253],{"class":192}," \"Resolution set to ",[124,255,256],{"class":163},"$RES",[124,258,259],{"class":192}," DPI\"",[124,261,262],{"class":218}," -i",[124,264,265],{"class":192}," \"",[124,267,268],{"class":163},"$DIR",[124,270,271],{"class":192},"\u002Frazer-connect.ico\"\n",[124,273,275],{"class":126,"line":274},14,[124,276,136],{"emptyLinePlaceholder":20},[124,278,280],{"class":126,"line":279},15,[124,281,282],{"class":130},"# Set scan resolution\n",[124,284,286,289,292,295,297],{"class":126,"line":285},16,[124,287,288],{"class":225},"razercfg",[124,290,291],{"class":218}," -r",[124,293,294],{"class":192}," \"1:",[124,296,256],{"class":163},[124,298,299],{"class":192},"\"\n",[301,302,303],"style",{},"html pre.shiki code .sJ8bj, html code.shiki .sJ8bj{--shiki-default:#6A737D;--shiki-dark:#6A737D}html pre.shiki code .szBVR, html code.shiki .szBVR{--shiki-default:#D73A49;--shiki-dark:#F97583}html pre.shiki code .sVt8B, html code.shiki .sVt8B{--shiki-default:#24292E;--shiki-dark:#E1E4E8}html pre.shiki code .sZZnC, html code.shiki .sZZnC{--shiki-default:#032F62;--shiki-dark:#9ECBFF}html pre.shiki code .sj4cs, html code.shiki .sj4cs{--shiki-default:#005CC5;--shiki-dark:#79B8FF}html pre.shiki code .sScJk, html code.shiki .sScJk{--shiki-default:#6F42C1;--shiki-dark:#B392F0}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":65,"searchDepth":66,"depth":66,"links":305},[],"2014-06-09T10:18:01Z",[110,119],{},"anroots","\u002Fgists\u002F259cdb7c6e28b36ca711",{"title":101,"description":65},"gists\u002F259cdb7c6e28b36ca711","https:\u002F\u002Fgist.github.com\u002Fanroots\u002F259cdb7c6e28b36ca711","WQVwMot-jABYitk7w-LPJsAlLNmsRpGzLTcAZF219As",1790886933063]