Author Archives: pjw

BCM43142 driver setup on ASUS notebook with Devuan

Had a hard time getting Bluetooth to work on my ASUS notebook under Devuan. My notebook, ASUS X550ZA have on board Broadcom hybrid controller BCM43142 for wireless and bluetooth connectivity. Since Broadcom’s stance toward open software is rather unwelcoming – drivers for their products are by default not included in Linux distributions. On top of it there are many versions of the same Broadcom product requiring different drivers. Knowing that – some fun was to be expected, but after walking circles for a while it boils down to:

1. See what controller we have

# inxi -nxxx
Network: Card-1: Broadcom and subsidiaries BCM43142 802.11b/g/n driver: wl
IF: wlan0 state: down mac: ac:e0:10:xx:xx:xx
Card-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller driver: r81699
IF: eth0 state: up speed: 100 Mbps duplex: full mac: 1c:b7:2c:xx:xx:xx

lspci for some more details

# lspci -nn | grep -i net
03:00.0 Network controller [0280]: Broadcom Inc. and subsidiaries BCM43142 802.11b/g/n [14e4:4365] (rev 01)
04:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 0c)

OK, so for the wireless we need drivers for BCM43142 [14e4:4365] controller

Note: If your have a different version of BCM43* controller – you may want to check if you find a corresponding driver HERE

2. Add non-free and contrib to /etc/apt/sources.list

deb ascii main non-free contrib
deb-src ascii main non-free contrib

3. Update and install headers, image, and broadcom-sta-dkms package:. It will build wl kernel module

# apt update
# apt install linux-image-$(uname -r|sed 's,[^-]*-[^-]*-,,') linux-headers-$(uname -r|sed 's,[^-]*-[^-]*-,,') broadcom-sta-dkms

4. Unload conflicting modules, then load wl module, or just reboot

# modprobe -r b44 b43 b43legacy ssb brcmsmac bcma
# modprobe wl

5. Confirm if wireless is working as expected

# iwconfig
wlan0 IEEE 802.11 ESSID:off/any
Mode:Managed Access Point: Not-Associated Tx-Power=200 dBm
Retry short limit:7 RTS thr:off Fragment thr:off
Encryption key:off
Power Management:off

Initially, made somewhat optimistic assumption that Network Controller BCM43142 is a blanket name for both wireless and Bluetooth and will get all the necessary drivers from a single package. After getting wireless to work, I found that bluetooth sort of worked, but in fact it did not. Upper layers functionality looked OK, bluetoothctl, hciconfig, et all worked without errors, but scan could not detect any devices around. After banging my head for a while, came to senses and asked simple question:

# dmesg | grep blu
[ 9.093970] bluetooth hci0: firmware: failed to load brcm/BCM.hcd (-2)
[ 9.094031] bluetooth hci0: Direct firmware load for brcm/BCM.hcd failed with error -2

And then another one

# lsusb | grep BCM
Bus 006 Device 002: ID 04ca:2006 Lite-On Technology Corp. Broadcom BCM43142A0 Bluetooth Device

As much as I wanted to believe that BCM43142 was sitting on PCI bus only – clearly it wasn’t the case. Since it wasn’t loading the driver properly despite the fact that broadcom-bt-firmware was already present as package was installed – took more direct action

6. Find the correct driver from the list on on the github of broadcom-bt-firmware and download it

# wget -c

7. Copy downloaded driver to replace the wrong one

# cp BCM43142A0-04ca-2006.hcd /lib/firmware/brcm/BCM.hcd

8. Reinsert module, or reboot

# modprobe -r btusb
# modprobe btusb

9. Check modules

lsmod | grep bt
btusb 45056 0
btrtl 16384 1 btusb
btbcm 16384 1 btusb
btintel 16384 1 btusb
bluetooth 552960 26 btrtl,btintel,bnep,btbcm,btusb
usbcore 253952 11 uvcvideo,usbhid,usb_storage,ehci_hcd,ohci_pci,xhci_pci,btusb,uas,ohci_hcd,xhci_hcd, ehci_pci

10. See how things worked out

# bluetoothctl
[NEW] Controller D0:53:49:D7:F3:EB nobo [default]
[bluetooth]# scan on
Discovery started
[CHG] Controller D0:53:49:D7:F3:EB Discovering: yes
[NEW] Device F2:00:7A:05:B3:3F WannaFit-G1D-B33F
[NEW] Device C4:BB:F6:14:B2:59 Braceli5-5657





Devuan FTW!

Being chased to the corner by systemd making inroads to many popular linux distros, just discovered Devuan, and enjoy every moment of it. YES. I did some effort to give a try with other distributions listed on sysdfree but ultimately had fallen for Devuan. Clean, elegant, and does what it says.

To those who fall outside the default mindset model of a sheep flock member – HERE you can find some good explanations why systemd is not good for your health.

If you would like to give it a try – grab live image HERE, burn it to DVD or make bootable USB and have a fun.

Desktop image lifted from

Korg W/01 PSU Mod for New Backlight LCD

Upgrading LCD was described elsewhere on the web, particularly well on those great websites:

Information found there served me as a reference for my venture into replacement of LCD in Korg 01/WFD. Here is the new LCD already converted, ready to install into 01/WFD.

New modified LCD for Korg 01/Wfd

New modified LCD for Korg 01/Wfd

Important part of the upgrade process is to provide 5V supply for backlight on the new LCD. The backlight on old LCD was of EL type and required 100V AC supplied from the inverter. Here is an easy 3-step process to modify PSU to provide 5V supply on the backlight connector for the new LCD.


PSU board before modification.

1. Desolder and remove transformer T1

2. Desolder and remove transistor Q1

3. Solder in 100 ohm resistor as shown on the image below.


PSU board after modification.

That’s it.

There is also a secondary benefit of this upgrade. By removing inverter transformer T1 – you also remove source of high-pitch, annoying noise. So it improves quality of the sound as well. =)

This mod should work fine on any Korg model that uses PSU P/No KLM-1530, like 01/W, 01/Wfd, 01/Wpro, 01/WproX.

Please note, I did test the output after mod to make sure that it really is 5V, and I strongly recommend you to do the same. Just in case. To rephrase – I totally take no any reponsibility whatsoever if you fry your box, or kill yourself in process. Have a fun.


Fixing Roland VS-1880 [Part 2 – Faders]

In the previous part we have disassembled VS-1880 to get access to faders located on the Panel Board. Looking at the faders close-up below can see that most faders are not in the best shape (spill damage ?).

VS-1880 faders on the Panel Board close-up.

VS-1880 faders on the Panel Board close-up.

Decided to replace all faders, but finding replacements turned out to be a bit of a challenge,  Here is original fader pot removed from Panel Board:

Original fader sliding pot removed from VS-1880 Panel Board.

Original fader sliding pot removed from VS-1880 Panel Board.

Approximate measurements gave the following specification:

Slide Potentiometer 50k linear
lever height ~ 10mm
length 75mm
width 8mm
height 7mm
travel 60mm
side A pin distance 64.5 mm
side B pin distance 67.5 mm

It took a while to find replacement parts without paying exorbitant price, but the deal was – minimum quantity 50 pcs. Fine. Now I have enough spare faders for more than 100 years of moderate use. Lucky me.

New faders look real good, have also dust protection layer, and are the exact size of the old one.

Repacement sliding pot for VS-1880

Repacement sliding pot for VS-1880

Having new fader pots on hand, I have replaced all thirteen. Also from reading the schematic of VS-1680 (could not get a hold of VS-1880 service manual) that there are only two ICs 0- IC7 and IC8 responsible for reading the state of all faders. You can see them on Panel Board faders close-up in lower left corner. Both are 74HC4051AP, mux/demux chips. Since access to components on the Panel Board is not easy – I decided to replace them as well. So far so good.

I have assembled back VS-1880, Run diagnostic mode, test faders and… Nothing works. At all. Moving lever on any fader does not cause even slightest change of the output values. Hmm…

After some head scratching, when I was going to give up – a question popped out – did you compare pin mapping on old and new pot ? Nope. I didn’t, Apparently I have assume that it is some sort of a standard. Well, assume nothing – it wasn’t, Quick compare test gave the following table:

Mapping sliding pots table.

Mapping old/new sliding pots pins table.

Once mapped, solution became quite obvious. All that was needed was to ‘jump’ pin nr 5 to pin nr 2 on every fader, as in the following picture:

Shown jumper between pin nr 5 and pin nr 2.

Shown close-up of jumpers between pin nr 5 and pin nr 2 on faders 1-3.

This time after assembly all fader tests passed perfect.

VS-1880 diagnostic screen - faders test.

VS-1880 diagnostic screen – faders test.

Conclusion: if faders on VS-1880 (and most likely on VS-1680) start acting up and fail diagnostic test – almost 100% chance is that fader sliding pot need to be replaced. I do not think that there was any problem with 74HC4051AP.


Fixing Roland VS-1880 [Part 1 – Disassembly]

Some time ago I got Roland VS-1880. Great stuff, but had a problem with the faders in the mixer section. Some faders did not work at all, some other worked in a strange and misterious ways. Namely, fader 3 did not work at all, 5 worked sometimes, 7/8 at 127 rise level of channel 3 to 16, 9/10 rise level of channel 3 to 105, 15/16 at 127 rise level of Master channel to 20, 17/18 at 127 rise level of channel 3 to 100, and Master fader did not work at all. I had no time to look into it until lately. Here is the brief account on how I tackled the issue.

Best way to test faders on VS-1880 is to enter the diagnostic mode. To do so, press down Status + Track buttons on channel 5 while powering the unit. To select fader test use page down button (F2) to move down in menu to Faders. Then move faders, full range up and down, one by one. Every fader that passed will have number displayed in inverse.

Once confirmed that have indeed problem with sliders, and it is not because of messed up settings, I had to dissassemble the whole thing.

Word of caution here – disassembly of VS-1880 to replace faders is a major PITA, so unless you are totally desperate (as I was), or you really know what you are doing – better give it to Roland service to deal with it.

To get to faders you need to literally tear down everything. Here is little, sparsely illustrated step by step:

1. Remove all knobs and encoder dial, except transport buttons.

2. Peel off gently left top panel (I removed both because was not sure if there are any extra mounting screws under). When removed stick some soft plastic bag on the sticky side of the panel to aviod contamination, then store it safely aside. As Chris Sherwin pointed out peeling off the top panel is unnecessary. I stand corrected.

VS-1880 panels removed

You can see left and right top panel removed, while it is only necessary to remove left top panel. Notice screws.

3. Unscrew eight flat-head screws as marked on the image above. Yes, Marco got that right, without point nr 2, number 3 does not make sense anymore.

4. Flip the unit up side down, and remove all screws from the bottom

5. Remove three marked screws from the back of the unit.

VS-1880 disassembly back

Do not remove any screws except those marked up.

6. Disconnect four blue ribbon connectors from Main PCB . Do not disconnect the  wide one (to IDE drive).

Markings show quite exact location of screws that need to be removed

Markings show quite exact location of screws that need to be removed

7. Remove all fourteen screws as indicated on the image above. Also remove Air Guide (metal profile between PSU and main PCB). Thanks to that you will be able to remove all necessary elements at once as shown on the image below.

Rear panel + main PCB + drive + PSU assembly together

Rear panel + main PCB + drive + PSU assembly together

8. Now, once we have exposed sub-chassis, we can remove all screws holding it.

Sub chassis of VS-1880

Sub chassis of VS-1880

9. Next remove sub-chassis, to get access to the Panel Board.


VS-1880 Panel Board exposed.

VS-1880 Panel Board exposed.

10. Once the Panel Board is exposed – we can remove it. In my case there was only two screws holding the Panel Board.


VS-1880 Panel Board

VS-1880 Panel Board

11. Panel Board at last. Finally we can take a look at faders.

End of Part 1