Skip to content

Instantly share code, notes, and snippets.

View rafwell's full-sized avatar

Rafael Souza rafwell

  • Brazil
View GitHub Profile
<p>
</p>
@rafwell
rafwell / fix_mic_lenovo320.md
Created April 12, 2021 22:39 — forked from Therises/fix_mic_lenovo320.md
Fix microphone on Lenovo IdeaPad 320 on Ubuntu 18.04

In /usr/share/pulseaudio/alsa-mixer/paths/analog-input-internal-mic.conf and /usr/share/pulseaudio/alsa-mixer/paths/analog-input-mic.conf:

  • Under [Element Internal Mic Boost] set volume to zero.
  • Under [Element Int Mic Boost] set volume to zero.
  • Under [Element Mic Boost] set volume to zero

Find your source name from the following command; mine is alsa_input.pci-0000_00_1f.3.analog-stereo

  $ pacmd list-sources | grep 'name:.*input'

Edit /etc/pulse/default.pa and add the following lines, where INPUT_NAME is name of the input source from above step:

@rafwell
rafwell / location-provider-old.ts
Created June 22, 2018 19:16
Bugged mauron85/cordova-plugin-background-geolocation 3.x with Ionic
import { Injectable } from '@angular/core';
import { ApiProvider } from '../../providers/api/api';
import { BackgroundGeolocation, BackgroundGeolocationConfig, BackgroundGeolocationResponse } from '@ionic-native/background-geolocation';
import { NativeStorage } from '@ionic-native/native-storage';
import { UserProvider } from '../user/user';
import { Device } from '@ionic-native/device';
import moment from 'moment';
/*
Generated class for the LocationProvider provider.
@rafwell
rafwell / location-provider.ts
Last active June 22, 2018 19:14
Working with mauron85/cordova-plugin-background-geolocation 3.x with Ionic 3
import { Injectable } from '@angular/core';
import { ApiProvider } from '../../providers/api/api';
import { NativeStorage } from '@ionic-native/native-storage';
import { UserProvider } from '../user/user';
import { Device } from '@ionic-native/device';
import { ENV } from '../../config/environment';
import { AppVersion } from '@ionic-native/app-version';
/*
Generated class for the LocationProvider provider.