Sunday, June 14, 2026

iTead DAC+ Version 2 Pihat PIFI

 Review and Measurements of PiFi DAC+ Pi Sound Card

This is a review and detailed measurements of itead's PiFi DAC+ Version 2 Raspberry Pi sound card (DAC). It was kindly purchased by a member and drop shipped to me. It costs US $40 but company has it on sale for US $36.50. It competes with the HifiBerry DAC+ whose pro version I recently reviewed. Unlike that unit, the PiFi DAC+ does not have independent clock source and must be using I^2 S clock. It is said that this clock has more jitter so will be interesting to see if that is the case in measurements.

Here is what it looks like:




The common TI PMC5122 DAC chip is used which retails for $2.40. So not hard to imagine how these things sell so cheaply. There are a few extra bits on this such as a post regulator an IR input port and a 3.5 mm jack. The latter is just mirroring RCA connectors and as such, has high impedance. While it will make sound, don't be tempted to use it as a headphone jack as it will likely have anemic bass and low power levels.

DAC Audio Measurements
As with the other Pi DACs I have tested, I used Ropieee OS image to stream content to the DAC over the network using Roon media player. Here is our dashboard view when playing a 24-bit, 1 kHz tone:

Conclusions
Using the same recipe as the HifiBerry DAC+, the itead PiFi DAC+ falls short in measurements. We were barely good enough with Hifiberry but now are behind the game with some 7 dB higher amount of distortion. Seeing how itead PiFi DAC+ is more expensive anyway, I see no reason to recommend it over HifiBerry offerings.

----------------------------------------------------
My I2S DAC (P1F1 DAC+ v2.0) works perfectly with RuneAudio release version: 0.4 (build: beta-20141216) with the audio output setting as HiFiBerry DAC+ (I2S). The sound is astonishing and better than most of USBDAC interface.

Only trusted workaround that can be found for your DAC or AMP is on the following link.


first find your DAC that are listed on the link and follow the steps to make your DAC
work properly. I have PiFi DAC+ (AliExpress) and it worked after I followed the steps given
under the section of

----------------------------------------------------



Note that this card has an IR receiver built in. The IR receiver is connected to GPIO26. Remove JP2 to disable the IR receiver.

sudo nano /etc/modules
Comment out (#) the following line:

snd_bcm2835
Add the following lines:

bcm2708_dmaengine
snd_soc_pcm512x
snd_soc_hifiberry_dacplus
snd_soc_bcm2708_i2s
Now we need to load the correct device tree file by editing /boot/config.txt:

sudo nano /boot/config.txt
Add the following lines at the end of the file:

dtparam=i2c_arm=on
dtparam=i2s=on
dtoverlay=hifiberry-dacplus
Save the file (Ctrl-X, Y, Enter)

Create the sound.conf file as follows:

sudo nano /etc/asound.conf

pcm.!default  {
 type hw card 0
}
ctl.!default {
 type hw card 0
}
Save the file (Ctrl-X, Y, Enter) and reboot

sudo reboot
After reboot, check if the DAC is selected as your sound card:

aplay -l
You should see this:

card 0: sndrpihifiberry [snd_rpi_hifiberry_dacplus], device 0: HiFiBerry DAC+ HiFi pcm512x-hifi-0
Subdevices: 0/1
Subdevice #0: subdevice #0
Make all changes to /etc/mpd.conf as described in "Build the software".

Install mediaplayer as described in "Build the software".

GPIO Pin Usage:

GPIO2-3 are used for configuration. GPIOs 18-21 are used for the sound interface. You can’t use them for any other purpose.
----------------------------------------------------



iTead PiFi DAC+ Raspberry Pi DAC Audio Measurements.png


The output level is a hair higher than HifiBerry DAC at a little over 2 volt which is fine. What is not so fine is the much lower SINAD (signal over noise and distortion). While the HifiBerry DAC+ PRO achieved 92 dB, we have a shortfall of 7 dB. This places the PiFi in our bottom tier of all DACs tested to date:
Best Audio DACs reviewed and Measured 2019.png


Multitone test likewise shows a step down in performance:

iTead PiFi DAC+ Raspberry Pi DAC 7-tone multitone Audio Measurements.png


I like to see 95+ dB here and we are way short of that at just 78 dB.

Jitter response while again worse that HifiBerry DAC+ Pro, is still quite good:
iTead PiFi DAC+ Raspberry Pi DAC Jitter Audio Measurements.png


So not sure what all the screaming is about regarding the I^S Clock. The DAC chip's PLL is likely cleaning it up good.

Filter response is different flavor of bad from HifiBerry:
iTead PiFi DAC+ Raspberry Pi DAC White Noise Filter Response Audio Measurements.png


As with Jitter, probably not an audible concern though.

--30--


Thursday, June 11, 2026

Change permissions with find command example.

 Basic Example: Find and chmod
To find and delete all .log files in the current directory and its subdirectories, use this command: [1, 2, 3]
bash
find .  -exec chmod 777 {} \;
Use code with caution.
Understanding the Syntax Breakdown
  • find .: Starts the search in the current directory.
  • options follow
  • -type f: Restricts the search specifically to files, ignoring folders.
  • -name "*.log": Matches files with a .log extension.
  • -exec: Tells find to run a command on every match.
  • chmod 777: The external command you want to run.
  • {}: A placeholder that find dynamically replaces with the filename of each match.
  • \;: Terminates the -exec sequence. The backslash escapes the semicolon so your shell does not process it first.

Thursday, June 4, 2026

intel cpu temp sensor and general sensors

 
https://askubuntu.com/questions/15832/how-do-i-get-the-cpu-temperature

sudo apt-get install lm-sensors 
After installation type the following in terminal

sudo sensors-detect
You may also need to run

sudo service kmod start
It will ask you few questions. Answer Yes for all of them. Finally to get your CPU temperature type sensors in your terminal.

sensors


--30--

Monday, May 4, 2026

Raspberry Pi display 7" install

The display orientation needs to be rotated for the display port attached display on the pi os.

This is done thru a preference setting with the pi os.


Rotate screen without a desktop

To set the screen orientation on a device that lacks a desktop environment, edit the /boot/firmware/cmdline.txt configuration file to pass an orientation to the system. Add the following line to cmdline.txt:

video=DSI-1:800x480@60,rotate=<rotation-value>

Replace the <rotation-value> placeholder with one of the following values, which correspond to the degree of rotation relative to the default on your display:

  • 0

  • 90

  • 180

  • 270

For example, a rotation value of 90 rotates the display 90 degrees to the right. 180 rotates the display 180 degrees, or upside-down.

Note
It is not possible to rotate the DSI display separately from the HDMI display with cmdline.txt. When you use DSI and HDMI simultaneously, they share the same rotation value.

Rotate touch input

Warning
Rotating touch input via device tree can cause conflicts with your input library. Whenever possible, configure touch event rotation in your input library or desktop.

Rotation of touch input is independent of the orientation of the display itself. To change this you need to manually add a dtoverlay instruction in /boot/firmware/config.txt. Add the following line at the end of config.txt:

dtoverlay=vc4-kms-dsi-7inch,invx,invy

Then, disable automatic display detection by removing the following line from config.txt, if it exists:

display_auto_detect=1

Touch Display device tree option reference

The vc4-kms-dsi-7inch overlay supports the following options:

DT parameterAction

sizex

Sets X resolution (default 800)

sizey

Sets Y resolution (default 480)

invx

Invert X coordinates

invy

Invert Y coordinates

swapxy

Swap X and Y coordinates

disable_touch

Disables the touch overlay totally

To specify these options, add them, separated by commas, to your dtoverlay line in /boot/firmware/config.txt. Boolean values default to true when present, but you can set them to false using the suffix "=0". Integer values require a value, e.g. sizey=240. For instance, to set the X resolution to 400 pixels and invert both X and Y coordinates, use the following line:

dtoverlay=vc4-kms-dsi-7inch,sizex=400,invx,invy

Installation on Compute Module based devices.

All Raspberry Pi SBCs auto-detect the official Touch Displays as the circuitry connected to the DSI connector on the Raspberry Pi board is fixed; this autodetection ensures the correct Device Tree entries are passed to the kernel. However, Compute Modules are intended for industrial applications where the integrator can use any and all GPIOs and interfaces for whatever purposes they require. Autodetection is therefore not feasible, and hence is disabled on Compute Module devices. This means that the Device Tree fragments required to set up the display need to be loaded via some other mechanism, which can be either with a dtoverlay entry in config.txt as described above, via a custom base DT file, or if present, a HAT EEPROM.



--30-- 

Wednesday, April 22, 2026

vnc server install ubuntu

tight vnc server install
apt -y install  tightvncserver
 
service file for tightvnc 
https://gist.github.com/spinxz/1692ff042a7cfd17583b
 
tutorial ubuntu 20 tightvnc
https://www.youtube.com/watch?v=oHm7B3hRSP0 

vnc on ubuntu 24
https://www.reddit.com/r/Ubuntu/comments/1i45x1u/how_to_set_up_vnc_server_on_ubuntu_2404_with/
 
various vnc on ubuntu 22
https://help.ubuntu.com/community/VNC/Servers