I paint again! ;-)

I paint again! ;-)

0 notes

Remap stereo to mono (pulse audio)

Imagine you have only one ear or one speaker. In either case:

Find out your standard audio sink:

pacmd list-sinks

Actually, this gives you a long list of details. Pick the name behind “name:" - See below for full output. For me it is alsa_output.pci-0000_00_1b.0.analog-stereo.

Then add to your /etc/pulse/default.pa (of course as root):

load-module module-remap-sink master=alsa_output.pci-0000_00_1b.0.analog-stereo sink_name=mono channels=2 channel_map=mono,mono
set-default-sink mono

That’s it and it should give you a virtual mono sink you can switch your player to.

.config/pulse » pacmd list-sinks
Welcome to PulseAudio! Use "help" for usage information.
>>> 2 sink(s) available.
    index: 0
    name: 
    driver: 
    flags: HARDWARE DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
    state: SUSPENDED
    suspend cause: IDLE 
    priority: 9950
    volume: 0: 100% 1: 100%
            0: 0,00 dB 1: 0,00 dB
            balance 0,00
    base volume: 100%
                 0,00 dB
    volume steps: 65537
    muted: no
    current latency: 0,00 ms
    max request: 0 KiB
    max rewind: 0 KiB
    monitor source: 0
    sample spec: s16le 2ch 44100Hz
    channel map: front-left,front-right
                 Stereo
    used by: 0
    linked by: 0
    configured latency: 0,00 ms; range is 0,50 .. 371,52 ms
    card: 0 
    module: 4
    properties:
        alsa.resolution_bits = "16"
        device.api = "alsa"
        device.class = "sound"
        alsa.class = "generic"
        alsa.subclass = "generic-mix"
        alsa.name = "HDMI 0"
        alsa.id = "HDMI 0"
        alsa.subdevice = "0"
        alsa.subdevice_name = "subdevice #0"
        alsa.device = "3"
        alsa.card = "0"
        alsa.card_name = "HDA Intel HDMI"
        alsa.long_card_name = "HDA Intel HDMI at 0xf0620000 irq 62"
        alsa.driver_name = "snd_hda_intel"
        device.bus_path = "pci-0000:00:03.0"
        sysfs.path = "/devices/pci0000:00/0000:00:03.0/sound/card0"
        device.bus = "pci"
        device.vendor.id = "8086"
        device.vendor.name = "Intel Corporation"
        device.product.id = "0a0c"
        device.form_factor = "internal"
        device.string = "hdmi:0"
        device.buffering.buffer_size = "65536"
        device.buffering.fragment_size = "32768"
        device.access_mode = "mmap+timer"
        device.profile.name = "hdmi-stereo"
        device.profile.description = "Digital Stereo (HDMI)"
        device.description = "Built-in Audio Digital Stereo (HDMI)"
        alsa.mixer_name = "Intel Haswell HDMI"
        alsa.components = "HDA:80862807,80860101,00100000"
        module-udev-detect.discovered = "1"
        device.icon_name = "audio-card-pci"
    ports:
        hdmi-output-0: HDMI / DisplayPort (priority 5900, latency offset 0 usec, available: no)
            properties:
                device.icon_name = "video-display"
    active port: 
  * index: 1
    name: 
    driver: 
    flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
    state: RUNNING
    suspend cause: 
    priority: 9959
    volume: 0:  80% 1:  80%
            0: -5,81 dB 1: -5,81 dB
            balance 0,00
    base volume: 100%
                 0,00 dB
    volume steps: 65537
    muted: no
    current latency: 11,22 ms
    max request: 2 KiB
    max rewind: 64 KiB
    monitor source: 1
    sample spec: s16le 2ch 44100Hz
    channel map: front-left,front-right
                 Stereo
    used by: 2
    linked by: 2
    configured latency: 11,61 ms; range is 0,50 .. 371,52 ms
    card: 1 
    module: 5
    properties:
        alsa.resolution_bits = "16"
        device.api = "alsa"
        device.class = "sound"
        alsa.class = "generic"
        alsa.subclass = "generic-mix"
        alsa.name = "ALC3232 Analog"
        alsa.id = "ALC3232 Analog"
        alsa.subdevice = "0"
        alsa.subdevice_name = "subdevice #0"
        alsa.device = "0"
        alsa.card = "1"
        alsa.card_name = "HDA Intel PCH"
        alsa.long_card_name = "HDA Intel PCH at 0xf0624000 irq 63"
        alsa.driver_name = "snd_hda_intel"
        device.bus_path = "pci-0000:00:1b.0"
        sysfs.path = "/devices/pci0000:00/0000:00:1b.0/sound/card1"
        device.bus = "pci"
        device.vendor.id = "8086"
        device.vendor.name = "Intel Corporation"
        device.product.id = "9c20"
        device.product.name = "Lynx Point-LP HD Audio Controller"
        device.form_factor = "internal"
        device.string = "front:1"
        device.buffering.buffer_size = "65536"
        device.buffering.fragment_size = "32768"
        device.access_mode = "mmap+timer"
        device.profile.name = "analog-stereo"
        device.profile.description = "Analog Stereo"
        device.description = "Built-in Audio Analog Stereo"
        alsa.mixer_name = "Realtek ALC3232"
        alsa.components = "HDA:10ec0292,17aa220c,00100001"
        module-udev-detect.discovered = "1"
        device.icon_name = "audio-card-pci"
    ports:
        analog-output-speaker: Speakers (priority 10000, latency offset 0 usec, available: unknown)
            properties:
                device.icon_name = "audio-speakers"
        analog-output-headphones: Headphones (priority 9000, latency offset 0 usec, available: no)
            properties:
                device.icon_name = "audio-headphones"
    active port: 
>>> %                                                                                                                 .config/pulse » 
Actually, I like the fork. Especially, when it comes to eating certain types of food. :-)

Actually, I like the fork. Especially, when it comes to eating certain types of food. :-)

0 notes

The K is dead, long live the K!

Yepp, finally too much annoyance with yum. Moving back to LinuxMint and my favored Cinnamon. Couldn’t get Cinnamon running under Fedora. Furthermore LinuxMint seems to churn out 1-2h more of my laptop battery.

0 notes

Polar Loop-ing

Probably due to lack of customers using Linux (Guess what Mac OSX runs under its hood…), Polar doesn’t offer any piece of explicit Linux software. Obviously commercially motivated and to certain degree understandable.

However, as a 100% Linux machines and FOSS fan, one runs into problems… Luckily, it is possible to get the Flow software to activate and sync the Loop using a VirtualBox with WinXP(32bit). I admit, it’s not 100% free of proprietary software, but I have to use Microsoft PowerPoint now and then because of my project partners, so it doesn’t hurt too much.

After attaching the Loop to the USB port using the cradle, check, if the Loop is seen by your system:

⇒ lsusb

and it will answer with:

Bus 001 Device 005: ID 5986:026a Acer, Inc 
Bus 001 Device 004: ID 8087:07dc Intel Corp. 
Bus 001 Device 003: ID 138a:0017 Validity Sensors, Inc. 
Bus 001 Device 007: ID 125f:a93a A-DATA Technology Co., Ltd. 
Bus 001 Device 006: ID 0da4:0008 Polar Electro OY 
Bus 001 Device 002: ID 8087:8000 Intel Corp. 
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

where Polar Electro OY is the device you want to mount in VirtualBox. The key, to get started with a decent Notebook (Thinkpad 440s here) is: Turn off USB 3.0 support in BIOS/UEFI and let VirtualBox automatically attach the device.

Else this horrible error won’t let the VirtualBox recognize the Loop:

To let VirtualBox attach the Loop automatically, add a filter to it:

If the Loop is not seen, check Polar’s manual and search for the error there. Every USB 2.0 port should be able to see it. If it is seen by your OS, install the Flow software on the VirtualBox and hope for the best.

A happy end, looks like this:

The Loop is seen using Bluetooth (4.0) by my Laptop. However, I’m still struggling with connecting that to wine. The Flow-Software installed flawlessly (Thank you QT!) using wine!

Nevertheless, I am a happy user of the Loop right now and am also able to sync via the setup above, as my smartphone is completely incapable of Bluetooth 4.0.

I have to admit, that @PolarGlobal and the customer service do their best, to help, though from their point of view it must have appeared pretty hopeless.

On a short note: I upped design, by brushing the chrome metal parts with sand paper (grit 150) and painted Polar’s “o” and the furrow white:

0 notes

Androidphone without Google

Actually, I planned this quite a while. Basically not, because I don’t like the Google eco system. Absolutely contrary. But I want to have control of my property. And, as I have a very very low speced device, I need free RAM!

Here the steps to follow, with the expectation that your phone is:

  • rooted
  • modded

In my case that’s a CyanogenMod 11 nightly.

Maybe, a bullet point below or above may raise an eyebrow. Thus you have to type in this bullet point together with the name of your phone into your search engine of choice and see how each and every step is done on your specific device.

  • First, get a nightly/rom from Cyanogen or another group!
  • Get freecyngn (more to that later).
  • Boot into recovery (POWER+VOLUME-UP)
  • Backup your phone using the recovery partition.
  • Wipe the following partitions:
    • data
    • cache
    • dalvik cache
  • Format/wipe your system partition.
  • Install your nightly/rom.
  • Do NOT reboot, yet!

In the end, however, the interesting proprietary residue from Google, which is built in is Google Analytics. If you have a CyanogenMod You can remove it with freecyngn:

  • Install freecyngn as if it is a rom, AFTER you have installed your nightly/rom
  • Make sure the error outputs in /system/freecyngn/log are OK.
  • Use the backup to reinstall your Apps

On a side-note: This is just the beginning. Next, I would recommend to:

0 notes

Your Hearing Aid

0 notes

Flashing a Kernel on your Smartphone

Basically this piece of prose is expecting, that you are sitting in front of a Linux machine and already have CyanogenMod running on your Huawei Y300/u8833 device and replaced your recovery rom. In my case the recovery rom is TWRP 2.7.0.2. Considering the very first point, you might want to try Ubuntu, which is beginner friendly. Considering the latter, please follow the link given above.

First of all make a backup:

  • Shutdown your device
  • Press Power and Volume-Up to boot into recovery
  • Make a backup there on your sd-card
    • Remark: I needed that, as I downloaded the wrong kernel initially!
    • Can’t stress that enough: Do that!

Now we come to the procedure itself. Download Chil360’s kernel adapted for CM11 (as of now) or whatever is the state of the art right now.

Currently Dark Cricket is mainting them here. After download and extraction, cd into the directory where your files are residing. Then fastboot your device, i.e.:

  • Shutdown your device
  • Press Power and Volume-Down until you see the Huawei logo
  • Check if the phone is there with:
⇒ fastboot devices
d2536afb    fastboot

As you see, my device is responding with d2536afb fastboot. Everything is set. Now the magic moment.

⇒ fastboot flash boot boot.img
sending 'boot' (5544 KB)...
OKAY [  0.522s]
writing 'boot'...
OKAY [  1.760s]
finished. total time: 2.282s

⇒ fastboot reboot
rebooting...
finished. total time: 0.001s

Now your device reboots into a faster world. If your device complains like your com.android.phone process stopped working, you flashed the wrong kernel and hopefully made backup. ;-)

0 notes

Improving Specialized’s Evade Helmet

0 notes

I AM DEAF

0 notes