Posts

Showing posts with the label Linux

GNU Emacs Gestures

Image
 Use multi-touch gestures in GNU Emacs.   - Install touchegg https://github.com/JoseExposito/touchegg - Create a copy of touchegg.conf $ mkdir -p ~/.config/touchegg && cp -n /usr/share/touchegg/touchegg.conf ~/.config/touchegg/touchegg.conf   - Add a section for Emacs (pinch to zoom) before closing <touchegg> tag.    <application name="Emacs">     <gesture type="PINCH" fingers="2" direction="IN">       <action type="SEND_KEYS">         <repeat>true</repeat>         <modifiers>Control_L</modifiers>         <keys>x+KP_Subtract</keys>         <decreaseKeys>KP_Add</decreaseKeys>       </action>     </gesture>     <gesture type="PINCH" fingers...

Rabbit hole: Windows + Linux + Emacs + Vim

Image
A computing Rabbit hole!!! Windows 10 running WSL2 (debian) and VcXsrv X server GNU Emacs compiled under WSL2 with XWidget support GNU Emacs running embedded Vim using XWidget's XEMBED protocol

Android Marshmallow on Mi Red 2 Prime

Image
Mi Red 2 Prime is an excellent phone with 2 GB RAM and 1.2 GHz quad-core processor. Xiaomi is leaving no stone unturned to make it a smooth experience both in terms of UI and ease of upgrade via upgrade app. However, if you want a feel of stock Android Marshmallow using standard Android upgrade process, this post will help you. It assumes you have a Linux computer. Note: Take a backup of your data before you start. Recovery, android ROM and google apps packages can be downloaded from internet. Tools You'd need some tools on your computer to help you with the upgrade. viz, adb and fastboot . Run the following command as root. # bash <(curl -s https://raw.githubusercontent.com/corbindavenport/nexus-tools/master/install.sh) Fastboot If you have a computer, it's easier to upgrade the ROM via Fastboot . Also, if you are unable to boot into recovery mode, fastboot allows you to recover from this situation. Connect the phone to computer using USB cable. Press low...

RF remote in Linux HTPC

Image
If you are setting up a Linux based media center PC, sooner or later you would stumble upon a remote which is not completely supported out-of-the-box. More so, if you have an RF remote like me. I spent couple of days scanning through multiple posts to figure it out. This post outlines the steps to get your remote working as you'd like. Most remotes are Infra-red (IR) devices. However, radio-frequency (RF) remotes allow you flexibility and better control as line of sight is not mandatory. I have an RF remote that came with ATI TV Wonder HD 250. ATI Theater remote (source: http://tv.manualsonline.com/manuals/mfg/amd/ati_theater.html?p=11) Good news is that most of the buttons work out-of-the-box, i.e. the Linux kernel recognizes the device. However, it was annoying that some single key functions like TV or radio were not working. There are total nine buttons that don't work. The first step is to figure out the scancodes of these keys. Run evtest  as root and press the ...