Monday, June 10, 2019

Fix bug: no high fidelity setting for bluetooth headphones

I have experienced this in Mint 19.1 Xfce.

Bad audio in bluetooth headphones as  high fdidelity is not selected automatically. If `pavucontrol` is installed that setting is absent.

Edit as root

 /etc/bluetooth/audio.conf

add the line

Disable=Headset
 
Another line needed as an alternative or as a completion to the above seems to be:

AutoConnect=true
 
 
sudo service bluetooth restart
 
or reboot
 

Oddly, sometimes after adding these lines, they can be eliminated / commented and the problem doesn't appear anymore.

Fix bug: video not playing

Sometimes local or internet video stops playing: it is accessed, scrolling works, but it is stopped and cannot be started; this seems related to bluetooth connectivity, afaikt.

The solution is oddly to reset pulseaudio:

killall pulseaudio; rm -r ~/.config/pulse/*

To add a launcher for that:

 [Desktop Entry]
Version=1.0
Type=Application
Name=Fix video plays
Comment=Fixes bug where local and online video stops playing by resetting pulsasudio
#Exec=xfce4-terminal -e 'killall pulseaudio; rm -r ~/.config/pulse/*' --hold
Exec=sh -c 'killall pulseaudio; rm -r ~/.config/pulse/*'
Icon=ubuntustudio-video
Path=
Terminal=false
StartupNotify=false

Tuesday, June 4, 2019

Find the process that has created a window

  1. Start a terminal
  2. Run xwininfo and click in the window you are interested in, note the "Window id"
  3. Run xprop -id XXXX | grep PID where XXXX is from xwininfo, note the PID
  4. Run ps aux | grep XXXX where XXXX is the PID from xprop

Command to create launcher (behind the Xfce/Thunar GUI)

For a Thunar action in order to create a launcher in the current directory: open Thunar, select 'Edit - Configure custom actions', add the command:

sh -c 'exo-desktop-item-edit --create-new --type Application .' 
 
The last dot (.) specifies the current directory as location for the creation of the file. (Source link.)
Under "Appearance conditions" check 'Directories'.
 
 
 https://unix.stackexchange.com/q/407758/341192

Sunday, March 31, 2019

How to completely install all aspects of the Vertex Dark theme

SOURCE: https://erikdubois.be/how-to-completely-install-all-aspects-of-the-vertex-dark-theme-on-linux-mint-17-3/

Tested in Mint Xfce 19.1 in case of some errors with normal install.

If you ever tried to install the vertex theme, Horst 3180 advises to uninstall it first by copy/pasting these 3 lines one by one in the terminal.


sudo rm -rf /usr/share/themes/{Vertex,Vertex-Dark,Vertex-Light,Vertex-Gnome-Shell,Vertex-Gnome-Shell-3.16,Vertex-Cinnamon} 
rm-rf~/.local/share/themes/{Vertex,Vertex-Dark,Vertex-Light,Vertex-Gnome-Shell,Vertex-Gnome-Shell-3.16,Vertex-Cinnamon}
rm -rf ~/.themes/{Vertex,Vertex-Dark,Vertex-Light,Vertex-Gnome-Shell,Vertex-Gnome-Shell-3.16,Vertex-Cinnamon}

sudo apt-get install git
git clone https://github.com/horst3180/vertex-theme
Go inside the folder vertex-theme and look around.
We are going to use the following script to run .autogen.sh.
But we will need some programs to be able to run it. So let us install them.


sudo apt-get install autoconf automake pkg-config libgtk-3-dev


./autogen.sh --prefix=/usr
sudo make install

Tuesday, December 11, 2018

Fix Wifi problems in Ubuntu and other Linux systems

This seems to solve the problem of WIFI DISCONNECTION (mostly random, but somewhat more often when downloading at full speed):

 Run in terminal

sudo tee /etc/modprobe.d/iwlwifi-opt.conf <<< "options iwlwifi 11n_disable=1"

then reboot.

You can revert it by

sudo rm /etc/modprobe.d/iwlwifi-opt.conf.

To keep the 802.11n, you can try the 11n_disable=8 option.

---

Source:
https://askubuntu.com/questions/663315/unreliable-wireless-connection-with-an-intel-centrino-advanced-n-6230/663328#663328

Wednesday, October 17, 2018

Use Disks (gnome-disks) to format and create a live usb

If the usb has a live linux on it it is more difficult to format than expected.

sudo apt install gnome-disk-utility
 
First, select "Format Disk" from the top right corner (NOT "Format partition" ), 


then select "Partitioning: No partitioning".
And only then select Additional partitioning options - "Format partition" , FAT, Next, Format.




 "Disks" (gnome-disk-utility) can also write an iso to the usb: after having formatted the usb as said above: go to Additional partitioning options as before, and select "Restore partition image", then select the Linux iso.