Happy Hash - Visit haritux.medium.com
Monday, November 9, 2020
AT&T USA | Internet not working | Fix by custom APN
Thursday, November 5, 2020
Use your stand-by Android or iPhone as Webcam and connect from Linux, Windows or Mac PC
Tuesday, May 10, 2016
Youtube and other video issues in Chrome | Ubuntu
Symptoms
Videos won't play properly
VLC may misbehave
Audio and Video decoding may not be in sync
Cause
GPU Hardware acceleration is failing. The GPU acceleration is required by many applications like Chrome, VLC, etc.
Workaround
Go to Advanced Settings of Google Chrome and deselect "Use hardware acceleration when available". Be cautious, by doing this - some other graphics also may stop working.
Solutions
- Reset the Chrome settings
- Clear Cookies and Cache
- Ensure that the Java Script is enabled in Chrome
- Go to chrome://plugins and ensure that the Adobe Flash Player is enabled
- If this doesn't work, try a re-installation of Google Chrome
- Check that you have VDPAU library installed VDPAU is an open-source library and API allows to video programs to offload portions of the video decoding process and video post-processing to the GPU video-hardware.
Install it if not available
$ sudo add-apt-repository ppa:nilarimogard/webupd8
$ sudo apt-get update
$ sudo apt-get install libvdpau-va-gl1
If it's installed, better upgrade it because you have probably upgraded the kernel and so many other packages and you are using it. This may cause problem in communicating with the VDPAU library properly.
Try opening YouTube in chrome. Follow the below steps if it's not working.
$ sudo mkdir -p /etc/adobe
$ echo "EnableLinuxHWVideoDecode=1" | sudo tee /etc/adobe/mms.cfg
$ echo "OverrideGPUValidation=1" | sudo tee -a /etc/adobe/mms.cfg
To enable the driver for system-wide (not recommended):
$ sudo sed -i "s/^# \[/\[/g" /etc/X11/Xsession.d/20vdpau-va-gl
$ sudo sed -i "s/^# export/ export/g" /etc/X11/Xsession.d/20vdpau-va-gl
Wednesday, August 27, 2014
Xperia Z battery backup
Miracle - Battery backup of my Samsung Galaxy Ace Plus has been increased after disabling/removing some unwanted applications including FB. and that of Sony Xperia has been decreased. Busy in fine tuning Xperia. :-) :-P
Able to get some battery life as of today. Actions done so far.
Disabled and enabled Automatic Account sync.
Upgraded Google Play services to version 5
Disabled custom launchers and switched back to native xperia Launcher
Turned off News application sync
Removed 4-5 unwanted applications
Ran Clean master a few times
Removed Viber
Removed corrupted files from internal and external cards.
Kept the USB mode to MTP
# Hari I psychotux.com
Sunday, January 19, 2014
GIMP image conversion from Nikon NEF in Windows and Ubuntu
GIMP - Batch RAW conversion in Windows.... Installed GIMP 2.8, ufraw 0.18 and here we go....
Follow http://registry.gimp.org/node/26260
E:\Personal\Photos\Unix_Outing_17022013>"E:\Programs\GIMP 2\bin\ufraw-batch.exe"
--out-type=jpg --compression=95 *.NEF
Linux - Ubuntu
$ sudo apt-get install gimp
$ sudo apt-get install ufraw
$ sudo apt-get install gimp-ufraw
ufraw-batch --out-type=jpeg --compression=85 *.NEF
OR
ufraw-batch --lensfun=none --out-type=jpeg --compression=85 *.NEF
Saturday, November 30, 2013
Tata photon Huawei and MTS ZTE Blaze in Ubuntu 13.04 Wheezy
Ensure that you have installed wvdial, usbmodeswitch and usbmodeswitch_data
# dpkg -l | grep wvdial
# dpkg -l | grep modeswitch
Install it from your ISO or any other source. Be careful about the proper version is installed.
Be sure that USB driver modules are loaded.
# lsmod | grep usb
This should show that USB Serial driver is loaded
# usbserial 36911 2 option,usb_wwan
Load it if not.
# modprobe usbserial
Tata photon+ Huawei EC1561 Manufacturer ID 12d1 Product ID 1446
$ sudo su -
Connect your dongle
# lsusb
This should show the device as
Bus 003 Device 009: ID 12d1:140b Huawei Technologies Co., Ltd. EC1260 Wireless Data Modem HSD USB Card
# modprobe usbserial vendor=0x12d1 product=0x1446
# usb_modeswitch -I -W -c /etc/usb_modeswitch.d/12d1\:1446
Run wvdialconf. Then make it to look like the one below. This is a simple configuration. I will show you how to add both Tata Huawei EC1561 and MTS ZTE together at the bottom of this document.
[Dialer Defaults]
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Modem Type = Analog Modem
Phone = #777
ISDN = 0
Username = internet
Init1 = ATZ
Password = internet
Modem = /dev/ttyUSB0
Baud = 9600
Now dial to connect...
# wvdial
That's it - you are now connected to the internet. You can create the Connection in GUI through System -> Preference -> Network connection
The file /etc/usb_modeswitch.d/12d1\:1446 may not exist by default depending on your USB ModesSwitch pkg. Create it with the entries as shown below.
DefaultVendor= 0x12d1
DefaultProduct= 0x1446
TargetVendor= 0x12d1
TargetProduct= 0x1446
TargetClass=
TargetProductList="1001,1406,140b,140c,1412,141b,14ac"
DetachStorageOnly=0
HuaweiMode=0
SierraMode=0
SonyMode=0
GCTMode=0
KobilMode=0
MessageEndpoint= not set
MessageContent="55534243123456780000000000000011062000000100000000000000000000"
NeedResponse=0
Create a file called /etc/modprobe.d/usb-storage.conf with the following entries
options usb-storage delay_use=3
MTS Blaze ZTE Manufacturer ID 19d2 Product ID fffe
$ sudo su -
Connect your dongle
# lsusb
This should show something like
Bus 003 Device 009: ID 19d2:fffe ZTE
# modprobe usbserial vendor=0x19d2 product=0xfffe
# usb_modeswitch -v 0x19d2 -p 0xfffe -H -W
Run wvdialconf. Then make it to look like the one below. This is a simple configuration. I will show you how to add both Tata Huawei EC1561 and MTS ZTE together at the bottom of this document.
[Dialer Defaults]
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Modem Type = Analog Modem
Phone = #777
ISDN = 0
Username = internet@internet.mtsindia.in
Init1 = ATZ
Password = mts
Modem = /dev/ttyUSB0
Baud = 115200
Now dial and connect to Internet
# wvdial
Here is the WVDIAL config for both the devices to work together
[Dialer Defaults]
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Stupid Mode = 1
Modem Type = Analog Modem
ISDN = 0
New PPPD = yes
Modem = /dev/ttyUSB0
Baud = 9600
[Dialer mts]
Phone = #777
Modem = /dev/ttyUSB0
Password = mts
Username = internet@internet.mtsindia.in
Baud = 115200
[Dialer tata]
Phone = #777
Modem = /dev/ttyUSB0
Password = internet
Username = internet
Baud = 9600
Now you can dial both the Modems
$ sudo wvdial tata
$ sudo wvdial mts
AT&T USA | Internet not working | Fix by custom APN
If the AT&T Mobile internet is not working on your cellphone, it can be fixed easily by adding an APN configuration. You can read this a...
-
1. Open Applications -> System -> Configuration Editor from the GUI OR Open a terminal, type gconf-editor 2. Go to "...
-
#!/bin/bash # BASH Script to generate $EXTENSION files like FILE_fr.$EXTENSION,FILE_sp.$EXTENSION from existing FILE_$SEARCHSTRING.$EXTENSIO...
-
#!/bin/bash # Script to create a CSV formatted text with a file of a few lines having one entry per line. # This will merge the files line b...