Skip to main content


No bluetooh headphone mic on Ubuntu 18.04

 Recently I purchased the  realme Buds Wireless in-Ear Bluetooth  headphone for my work from home setup, when I setup the headphone I found that Ubuntu is not able to detect the headphone mic, after installing APTX, ophone and doing numerous tweaks I;m not able to connect to mic. Then I came to know about its limitation of PulseAudio and there is new audio lib PipeWire which is better than PulseAudio. Follow below steps in order to get you mic back. sudo add-apt-repository ppa:pipewire-debian/pipewire-upstream sudo apt update sudo apt install pipewire gstreamer1.0-pipewire libspa-0.2-bluetooth sudo apt install pipewire-audio-client-libraries  sudo touch /etc/pipewire/media-session.d/with-pulseaudio sudo sed -i 's/.*bluez5.msbc-support.*/    bluez5.msbc-support = true/' /etc/pipewire/media-session.d/bluez-monitor.conf sudo sed -i 's/.*bluez5.sbc-xq-support.*/    bluez5.sbc-xq-support = true/' /etc/pipewire/media-session.d/bluez-monitor.conf systemctl --user daemon-reload
Recent posts

Login Loop in Ubuntu 18.04

If you are like me frustrated and pulling hairs for fixing login loop in Ubuntu GNOME DE, and you tried everything that's written their on internet like purging nvidia, removing .Xauthority file, chmod/chown /tmp folder and so on... then let me tell you my friends what really works for me :) First of all there is something kicking out us from spawning DE and in order to see that we must see the logs and understand if anything not happening right, for that just scroll the logs ctrl + alt + f1 $ journalctl -xe | less and here my friends after closer look I found that gnome-shell extension are messing up with my DE boot, and just simply removing extension dir, voila I can login 💃 $ rm -rf ~/.local/share/gnome-shell/extensions $ reboot I hope this solves your issue too..

Installing i3lock-color on Ubuntu

i3lock is fancy lock screen for Linux. There is i3lock dep available on Ubuntu but its not what I was looking for; I was more interested in i3lock-color . Lets see how we can install the same on ubuntu. PS: I'm using Ubuntu 16.04 Get source code for i3lock-color $ git clone  $ cd i3lock-color Install required packages to build i3lock  $ apt install libev-dev $ apt install libxcb-composite0 libxcb-composite0-dev libxcb-xinerama0 libxcb-randr0  $ apt install libxcb-xinerama0-dev  $ apt install libxcb-xkb-dev  $ apt install libxcb-image0-dev  $ apt install libxcb-util-dev $ apt install libxkbcommon-x11-dev $ apt install libjpeg-turbo8-dev  $ apt install libpam0g-dev Build  $ autoreconf -i && ./configure && make Execute $ ./ Assign Shortcut In order to assign shortcut, install compizconfig $ sudo apt-get install compizconfig-settings-manager compiz-plugins-extra and then go

Ubuntu 16.04: Office WiFI not connecting

I recently changed my office login password and after messing with my current wifi settings am not able to connect to wifi given credentials and all other expected settings are correct. This happens on Ubuntu 16.04 and found out that you need to manually enter settings into a disk file and make changes there.. Strangely, you wont find this settings in network manager UI, you have to manually enter this settings into file.. Open your wifi network file at below location and add/edit below properties. $ /etc/NetworkManager/system-connections/< > [802-1x] eap=peap; identity=< > phase2-auth=mschapv2 password-flags=0 password=< > system-ca-certs=false

Ubuntu Setup

I just moved to Ubuntu from Windows for numerous reasons and as I'm setting up my Ubuntu I have listed few points for future me. Here it goes.. Update Java Ubuntu 14.04 comes default with Java 7, I need Java 8 for new projects and Java 6 for some legacy projects. Clean existing JDK sudo apt-get purge openjdk* sudo apt-get purge icedtea-* openjdk-* sudo dpkg --list | grep -i jdk java -version javac -version which javaws Update sudo add-apt-repository ppa:webupd8team/java sudo apt-get update sudo apt-get install oracle-java8-installer java -version sudo apt-get install oracle-java6-installer java -version sudo apt-get install oracle-java8-set-default java -version Update GIT sudo add-apt-repository ppa:git-core/ppa sudo apt-get update sudo apt-get install git git --version Eclipse - Install Neon

Serlizing JSON polymorphically when type field is in parent JSON using Jackson

Today, I came across a json parsing situation where the sub-type field is outside the type json. Genrally we seen a situation like this @JsonTypeInfo(use=JsonTypeInfo.Id.CLASS, include=JsonTypeInfo.As.PROPERTY, property="@class") class Animal{} class Dog extends Animal{ } class Cat extends Animal{ } and it de-serialize to json like this: {      "@class" : "x.y.z.Cat", ... } In my project I need to parse json like this { "status": "OK", "messageName": "x.y.z.Success", "messagePayload": { "foo": "cd3a5697", "bar": 224 } } { "status": "ERROR", "messageName": "x.y.z.Error", "messagePayload": { "errorCode": "APPLICATION_ERROR", "errorInstanceId": "b292b864", "errorDetailedMessage": "Invalid UUID string (Length mismatch)" } }

My first C program: now and then

I was searching for some documents in gmail and found a mail that I sent to company X for their hiring process. It was a c program for searching word in file. I do not know how much time I have taken for it but it was basic search utility function. The point of this blog is not discuss that program but to discuss how time makes you better programmer. Here are the few things I would like to share myself - It takes some learning to write clean code.  Reed books like clean code. You need mentor to learn from his experience. Get a github account and see how experts are writing code. This is not the complete list, there are many things you will acquire over a period of time which make you better programmer. PS: If you are wondering how that program used to look like, then see this  repo.