Search This Blog

Showing posts with label Bluetooth. Show all posts
Showing posts with label Bluetooth. Show all posts

20150511

Fixing Bluetooth and Wireless (WiFi) Issues

Disclaimer: This blog article is for experienced Linux users who installed Fedora XFCE - my recommendation is to add the full Cinnamon desktop package or better yet, install Fedora Mate.

***Update for June 28, 2015: Removed WICD since I do not want to alter the DHCP client settings. Unblocked wifi using /usr/sbin/rfkill as desktop session setting.

***Update for June 14, 2015: a full Cinnamon, MATE or XFCE4 Desktop install is the alternate to figuring out GNOME and GNOME Classic. Openbox does not show a panel by default. Fedora is definitely for the experienced Linux user.

***Update for June 13, 2015: Adding the Mate Desktop improved everything. For anyone bold enough to make the jump to Fedora or even Mint Linux, the Mate Desktop installation is recommended. If you depend on Bluetooth and WiFi, then please choose Mate Desktop.

In the following article, I have documented my experience installing and using the XFCE4 Desktop version of Fedora 21. Since May, I have upgraded to Fedora 22 and added Mate Desktop.

Despite adding a script (start_dnsmasq) to enable local DNS, it still has to be run in a terminal. My guess is, Fedora considers such a script to violate security policy and will not run it. I have clicked on System: Preferences: Personal: Startup Applications to add it to the startup applications but Fedora does not run my script. Thus, I will continue to run the script from the terminal.

Wicd was installed, replacing wifi-radar. WiFi is currently detected by the system. My guess is, wifi-radar might have "forgotten" wifi when I opted to use a wired connection rather than WiFi. Perhaps Gnome might have "assumed" that WiFi wasn't needed anymore, resulting in no WiFi.

In any case, the Mate Desktop is much more to my liking than Gnome was.

***UPDATE: I have resisted as far as I could, but now am running Chrome browser, but it still isn't fast as the Firefox. In a new post on my blog, I will tell you how much fun it is to work with Fedora!!

XFCE4 is light, so light that they decided to program Fedora to turn off Bluetooth and eventually the WiFi network via rfkill.

According to the developer of Cinnamon, the workaround is to install these bluedevil packages:

bluedevil.i686
bluedevil-autostart.i686
libbluedevil.i686

For details, see: http://forums.fedoraforum.org/showpost.php?p=1685034&postcount=4
Thank you, leigh123linux, for the suggestion of using bluedevil.
Note: Blueooth does not work with XFCE4, LXDE, LxQT, and Cinnamon.

It only works with Gnome. So upgrade to Gnome.

— SHK 20150517.0320 UDT

After installing Fedora 21 on my EeePC 1000HE last Tuesday (May 5), I could not get Bluetooth to work. By Wednesday, I had lost wireless and only had a LAN connection.

On Sunday (yesterday), I decided to tackle the problem since the only time Fedora would detect WiFi was by plugging in a WiFi USB adapter.

After checking /var/log/messages and /var/log/messages-20150510, I discovered that only the ethernet network adapter worked:

lshw is run showing the Class "network" entry for the Ethernet interface. Even though the Atheros is a Gigabit or Fast Ethernet, my LAN cable is CAT.5E, and thus limits the speed to 100 Mbit/s.

I also discovered that the netbook's WiFi adapter uses the ath9k module for the Qualcomm Atheros AR9280 WiFi chipset:


So I found the solution here: http://forums.fedoraforum.org/showpost.php?p=1729572&postcount=5

> I installed rfkill and lshw
...
> prompted rfkill list = Soft blocked = no and Hard blocked = no

In my case I got the following:

$ rfkill list
0: hci0: Bluetooth
Soft blocked: yes
Hard blocked: no
1: asus-wlan: Wireless LAN
Soft blocked: yes
Hard blocked: no
2: asus-bluetooth: Bluetooth
Soft blocked: yes
Hard blocked: no
3: phy0: Wireless LAN
Soft blocked: yes
Hard blocked: no


and here: http://forums.fedoraforum.org/showpost.php?p=1489711&postcount=2

> rfkill unblock all

Similarly, I unblocked all the soft blocked interfaces (bluetooth and wireless):
$ rfkill unblock all && rfkill list

$ rfkill list
0: hci0: Bluetooth
Soft blocked: no
Hard blocked: no
1: asus-wlan: Wireless LAN
Soft blocked: no
Hard blocked: no
2: asus-bluetooth: Bluetooth
Soft blocked: no
Hard blocked: no
3: phy0: Wireless LAN
Soft blocked: no
Hard blocked: no

After unblocking the netbook's wireless and Bluetooth interfaces, I then used modprobe to install the ath9k module:

$ sudo modprobe ath9k

This loads all the ath9k-related modules - ath, ath9k, ath9k_common and ath9k_hw with the associated 802.11-related modules, cfg80211 and mac80211:

$ lsmod|grep ath
ath9k 112655 0
ath9k_common 29490 1 ath9k
ath9k_hw 433891 2 ath9k_common,ath9k
ath 23507 3 ath9k_common,ath9k,ath9k_hw
mac80211 597573 1 ath9k
cfg80211 461788 4 ath,ath9k_common,ath9k,mac80211


Once the Atheros modules are installed, it is trivial to set up the WiFi network using the NetworkManager-applet.

After bluetooth is unblocked and enabled, the solution to enable bluetooth for the plain vanilla Fedora 21 XFCE is to install Cinnamon and its related packages:

cinnamon.i686
cinnamon-control-center.i686
cinnamon-screensaver.i686
cinnamon-session.i686
cinnamon-desktop.i686
cinnamon-menus.i686

Here's a screenshot from my netbook showing the configuration menu in Cinnamon:


By clicking on the Bluetooth and/or Networking icons, the configuration menu may be viewed and can be edited.

Specifically the networking area consists of Wired (LAN), Wi-Fi and Bluetooth. The Nexus 4 entry refers to my smartphone which is a paired device which can be used to provide internet via the phone's data service. The Bluetooth entry shows a connected device (the smartphone) which uses the netbook as an audio device.

After reflection on my original Bluetooth issue with the XFCE version of Fedora 21, I could have saved myself the hassle of this issue by installing Fedora 21 Gnome.

This article would not have happened without the help of Google Search - "Google is your friend!"

Kudos to two members of Fedora Forums:
  1. feihuhotain for providing the tip for installing lshw and rfkill, and using rfkill to list the wireless interface (Bluetooth and WiFi), and
  2. aks for providing the tip for using rfkill to unblock all the software blocks of wireless interfaces.
Fedora Forums: http://forums.fedoraforum.org/

20140111

My Next Music Album (satire)

In this article, I am going to write about the creation of my next music album. With the help of two Android apps on my Nexus 4 smartphone and four Linux programs on my PC, a song is created using two source audio tracks derived from two video files created by one of the apps.

Please note that I have used javascript code to hide and show text depending on the familiarity of my followers with the Android apps and Linux programs mentioned in the rest of this article.

None of the links in the main text of this article will crash your computer and the link at the very end of the references points to the author of the code.

My reason for calling this article satire is that I could have written it without hiding any text at all. Then it would have only made sense to a fellow Linux hobbyist who also owns a smartphone with the same specifications as a Nexus 4, and wants to use the Android apps and Linux programs mentioned in the main text to create song too.

Currently I am using my smartphone to create my next album, Sound of Colors Remixes with the help of the Android app, Color Sounds.

Using the Camera option of Color Sounds, I can create two Flash videos in which the video stream is used to create the audio stream of each video.

Once the videos are made, they are transferred to my PC using Bluetooth.

Once the video files are on my PC, I convert them into MP3 audio files using the audio conversion program Gnac.

After the audio files are created on my PC, I note the time length for each video using the sound editor Audacity.

Then pick one of the audio files to be the main source track and adjust the time length of the remaining file to match the main source track. Next import the remaining audio file and perform "Mix and Render" on both tracks.

Create your song with a time length of between three and six minutes long.

It is feasible to use Color Sounds on your smartphone to create a three to six minute movie if you have the room on your smartphone.

Then you could just convert the videos made to an MP3 audio file and use that as the source audio stream for your song.

However, the larger size of the video file would result in long wait times for the resulting audio file.

Therefore it is recommended to create video files of no longer than a minute at the most. Then convert to audio files, and use them to create your songs.

Reference:

Android Apps at Google Play:

Both apps work on a Nexus 4 smartphone running Android version 4.4.3. Please test them out and see if they work on your smartphone.

Color Sounds: https://play.google.com/store/apps/details?id=org.androidideas.colorsounds
See also at Android Ideas: http://androidideas.org/colorsounds/

Bluetooth File Transfer: https://play.google.com/store/apps/details?id=it.medieval.blueftp
See also at Medieval Software: http://www.medieval.it/blueftp-android/menu-id-68.html


Linux Programs:

I currently use the waldorf version of Crunch Bang Linux. Most of the programs listed below works best on a Debian-based Linux. However, I have not tested any of them on any other system. Windows versions of the follow programs may or may not work as described.

Audacity: fast, cross-platform audio editor; http://audacity.sourceforge.net

Gnac: audio converter for GNOME; http://gnac.sf.net/

Nautilus: file manager and graphical shell for GNOME; http://www.gnome.org/projects/nautilus/

Thunar: File Manager for Xfce; http://www.xfce.org/

Show/hide text code used in this article is from: http://webtechnote.blogspot.ca/2012/09/showhide-text-in-blogger-with-javascript.html - Thank you, Garoner Geoffrey for providing this code.

20130513

Review of Rockfish RF-SPX15-T



Apologies about the poor quality of the video. I was playing around lo-fi special effects, handmade with loving care. :)

Today's review is the Rockfish RF-SPX15-T, a Bluetooth speaker that I got free in a smartphone deal with my Best Buy Mobile dealer.

Here is the speaker bonded to the iPhone 4. I make no money for this video as it has copyrighted content, so Youtube will get its 100%.

It's a great speaker and has some audio distortion at maximum volume due to the form factor. Though, distortion is relative to the environment. A bunch of party-goers won't care about the sound as much as a sober audiophile.

Though I tend to think audiophiles who think good audio can be objectively evaluated forget that psychoacoustic properties are mostly subjective.

YMMV