Ubuntu 16.04 LTS freeze problem:Freeze while after playing audio or video problem: qjackctl, pulseaudio

OS update wasn’t effective.

Killing qjackctl was effective to solve GUI freeze.

To start from the result upgrade to the latest one solved this.
It involved package manager repository error maybe…

Came back after a while

pulseaudio dependency programs upgrade and low latency kernel upgrade

pulseaudio dependency programs upgrade and low latency kernel upgrade to 4.15.0-47-lowlatency solved the problem finally. to 4.4.0-145-lowlatency is better. 4.15 version has error, jack sound clipping error.


I tried

sudo apt-get remove --purge qjackctl
sudo apt-get update
sudo apt-get install qjackctl

This made elapse time to freeze longer perhaps but not solved.
My case version not upgraded upper than 0.4.5.


masa@em-p:~$ qjackctl -v
Qt: 4.8.7
QjackCtl: 0.4.5

Latest is 0.5.5

I tried to install latest one but not upgraded.

tried download the source and ./configure, make install, but still 0.4.5.

After reboot, upgraded to 0.5.5.

This removed the problem so far…

Case closed!!!

Killing process launching console by

ctrl + alt + F2


ps x | grep qjackctl

kill PID(qjackctl)

and back to the GUI by

ctrl + alt + F7

was very plentiful study source for me…

I will write a post about this …

#apt-get #repository #Xdesktop #process



error has came back….

When Tried to driver update, apt-get error found.

tried kill pulseaudio

masa@em-p:~$ pulseaudio --kill
masa@em-p:~$ ps x |grep pulse
4512 ? S<l 0:00 /usr/bin/pulseaudio --start --log-target=syslog
4517 pts/17 S+ 0:00 grep --color=auto pulse

Before kill pulseaudio, check the grep result

masa@em-p:~$ pulseaudio --start
masa@em-p:s x |grep pulse
4535 ? S<l 0:00 pulseaudio --start
4541 pts/17 S+ 0:00 grep --color=auto pulse

Checked pulseaudio version

masa@em-p:~$ pulseaudio --version
pulseaudio 8.0


Tried to upgrade pulseaudio. Xenial’s latest is 8.0 but dependency library were upgraded. Also low-latency kernel latest one added.

masa@em-p:~$ sudo apt-get upgrade pulseaudio
[sudo] password for masa: 
Reading package lists... Done
Building dependency tree 
Reading state information... Done
pulseaudio is already the newest version (1:8.0-0ubuntu3.10+kxstudio1).
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
linux-headers-4.15.0-43 linux-headers-4.15.0-43-generic
linux-image-4.15.0-43-generic linux-modules-4.15.0-43-generic
Use 'sudo apt autoremove' to remove them.
The following packages have been kept back:
linux-generic-hwe-16.04 linux-headers-generic
linux-headers-generic-hwe-16.04 linux-headers-lowlatency
linux-image-generic-hwe-16.04 linux-image-lowlatency linux-lowlatency
The following packages will be upgraded:
apache2-bin busybox-initramfs busybox-static google-chrome-stable
grub-common grub-efi-amd64-bin grub-pc grub-pc-bin grub2-common
kodi-inputstream-adaptive libpam-systemd libpolkit-agent-1-0
libpolkit-backend-1-0 libpolkit-gobject-1-0 libsmbclient libsystemd0
libsystemd0:i386 libudev1 libudev1:i386 libwbclient0 linux-libc-dev
linux-libc-dev:i386 policykit-1 python-samba rsyslog samba samba-common
samba-common-bin samba-dsdb-modules samba-libs samba-vfs-modules
systemd systemd-sysv udev
34 upgraded, 0 newly installed, 0 to remove and 7 not upgraded.
Need to get 77.0 MB/80.0 MB of archives.
After this operation, 66.6 kB of additional disk space will be used.
Do you want to continue? [Y/n]


Setting up google-chrome-stable (73.0.3683.103-1) ...
Setting up grub-common (2.02~beta2-36ubuntu3.21) ...
update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults
Setting up grub-efi-amd64-bin (2.02~beta2-36ubuntu3.21) ...
Setting up grub2-common (2.02~beta2-36ubuntu3.21) ...
Setting up grub-pc-bin (2.02~beta2-36ubuntu3.21) ...
Setting up grub-pc (2.02~beta2-36ubuntu3.21) ...
cp: cannot remove '/var/lib/ucf/hashfile.7': Read-only file system
rm: cannot remove '/tmp/grub.UniXufaHIw': Read-only file system
debconf: DbDriver "config": could not write /var/cache/debconf/config.dat-new: Read-only file system
dpkg: error processing package grub-pc (--configure):
subprocess installed post-installation script returned error exit status 1
Setting up libwbclient0:amd64 (2:4.3.11+dfsg-0ubuntu0.16.04.19) ...
dpkg: unrecoverable fatal error, aborting:
unable to flush updated status of 'libc-bin': Read-only file system
touch: cannot touch '/var/lib/update-notifier/dpkg-run-stamp': Read-only file system
E: Sub-process /usr/bin/dpkg returned an error code (2)
W: Problem unlinking the file /var/cache/apt/pkgcache.bin - pkgDPkgPM::Go (30: Read-only file system)
masa@em-p:~$ pulseaudio --version
pulseaudio 8.0
masa@em-p:~$ sudo apt-get upgrade pulseaudio
W: Not using locking for read only lock file /var/lib/dpkg/lock-frontend
W: Not using locking for read only lock file /var/lib/dpkg/lock
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.

next time upgrade seemed successful.

New kernel added.

check the kernel version.

masa@em-p:~$ uname -r

check available kernel versions

sudo apt-cache search linux-image

download latest one from this deb file.


reboot and select the new one

masa@em-p:~$ uname -r

This solved the problem!!!

Next grub configuration to set to default the new kernel.




And another problem. dbus-send error problem. Is this have any relation to freeze error?

masa@em-p:~$ dbus-send --system /org/rncbc/qjackctl org.rncbc.qjackctl.stop
Failed to open connection to "system" message bus: Failed to connect to socket /opt/anaconda2/var/run/dbus/system_bus_socket: No such file or directory

under /opt/anaconda2/var directory only has cache directory, no run directory in my environment.



Samba: gvfsd-smb-browse crashed with SIGABRT in _talloc_get_type_a …

Google result not friendly


But after a while, this error not generated.

And this time I could connect to Vaio Windows 7 and copy files through the network on File Browser.

At first I couldn’t establish connection after entered password for workgroup.








英語の本のリソース 日本語版も有る



Android Studio:Wifi sample build error

Error message tried to build wifi sample code from Android Studio “File > import samples” maybe lol.

No toolchains found in the NDK toolchains folder for ABI with prefix: mips64el-linux-android


Starting from the result, download NDK and copy file to SDK directory solved this.
But the latest NDK hasn’t “mips64el-linux-android” any longer.


is maybe the last one which has “mips64el-linux-android”

Copied to the file to “Sdk > ndk-bundle > toolchains” solved this…



Eclipse error:Editor does not contain a main type or cannot be resolved to a type

eclipse error.jpeg


To begin from the cause and solve method…


This statement causes all errors which eclipse said “cannot be resolved to a type” or something like that error.

It highlighted as red circle X, and the others are red light objects.
It said all of my original objects in the class are “cannot be resolved to a type” or something wrong.

From terminal (command line), I tried to compile and error occurred, it pointed

masa@em-p:~/Public/git/jaydle-project/jaydle-project$ javac src/jaydle/JaydlePrototype.java 
src/jaydle/JaydlePrototype.java:61: error: <identifier> expected

So commented out the line,

all of errors disappeared and Mose came. lol.


I tried configure “Java build path” but it wasn’t effective.

Eclipse configuration is hard. And error detective system this case reverse effected….

See you!

Installing Qtractor: Made a lots errors

qtractor installing a lots errros.

My case it needed

sai means “sudo apt-get install”

But official site introduced way to dependency programs install at once…


*checking for Qt library version >= 5.1… no; Qt 5.1 or greater is required

-> sudo apt-get install qt5-default


*configure: error: *** SNDFILE library not found.

-> sai -libsndfile-dev


checking for qmake-qt5… no
configure: error: qmake-qt5 not found in current PATH. Maybe QT development environment isn’t available. (qt5-devel)

->sudo apt-get install qt5-qmake

Next I tried below commands but don’t know was necessary.

{-> sai qtchooser

->export QT_SELECT=5}


-> sudo apt-get install qt5-default



checking for sndfile… no
configure: error: *** SNDFILE library not found.

-> sai -libsndfile-dev



Project ERROR: Unknown module(s) in QT: x11extras


->apt-cache search libqt5x11extras

->sai libqt5x11extras5-dev

And then, did
“sudo make” and “sudo make install”
lupdate: could not exec ‘/usr/lib/x86_64-linux-gnu/qt5/bin/lupdate’: No such file or directory

->sudo apt-get install qttools5-dev-tools





Writing “sleep or suspend script” for JACK and qjackctl

JACK is weak for suspend because it needs to be stopped and restarted when come back from suspend. So I’m trying to write suspend script which stop JACK before go to suspend mode and start after come back from sleep.

First stop and start qjackctl command is below.

dbus-send --system /org/rncbc/qjackctl org.rncbc.qjackctl.stop


dbus-send --system /org/rncbc/qjackctl org.rncbc.qjackctl.start


Now I have very simple script that very useful when come back from suspend mode because it stop and restart qjackctl automatically. That is

dbus-send --system /org/rncbc/qjackctl org.rncbc.qjackctl.stop && dbus-send --system /org/rncbc/qjackctl org.rncbc.qjackctl.start

Actually this is enough useful. Lol. But I will try to make better one.

It use

sudo pm-suspend

command. The problem is needs sudoers configuration to use pm-suspend command.
Without this “sudo pm-suspend” in bash shell script won’t do anything.

sudo -S pm-suspend

will work, it receives password from a terminal and will suspend.
And this is almost perfect except for security problem

password='Hacker\'s password'
echo $password | sudo -S pm-suspend

It won’t require to input password interactively.

#Suspend script for JACK(qjackctl)
#First stop JACK and go to suspend
dbus-send --system /org/rncbc/qjackctl org.rncbc.qjackctl.stop
echo $password | sudo -S pm-suspend

Then, this should be assigned with hot key on GUI manager on Ubuntu.

And I guess restart script is harder because I should research mechanism and the script path which automatically done when return from suspend mode.

My plan was logging about sudoers configuration but now I think i can go with this.

I will write again soon. Bye.😀




Run Gauche Interpreter on Eclipse with SchemeScript Plugin

First you supposed to have Gauche interpreter on your system.


And install Eclipse plugin from

Help > Install New Software

Work with:


And configure from

Window > Preferences > Scheme > Interpreter > External Interpreter

Command line:

gosh -i
Window > Perspective > Open Perspective > Scheme

and launch Scheme perspective.

Menu > Scheme > Select Interpreter > External Interpreter

And start interpreter.

Good luck😂

Gauche Eclipse



Git push error:Gitでプッシュできなかった件

masa@lve-imac2:~/Desktop/git/masa-examples$ git push https://github.com/iamaturtle113/masa-examples.git master
Username for 'https://github.com': iamaturtle113
Password for 'https://iamaturtle113@github.com': 
To https://github.com/iamaturtle113/masa-examples.git
! [rejected] master -> master (non-fast-forward)
error: failed to push some refs to 'https://github.com/iamaturtle113/masa-examples.git'
hint: Updates were rejected because the tip of your current branch is behind
hint: its remote counterpart. Integrate the remote changes (e.g.
hint: 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.



git pull https://github.com/iamaturtle113/masa-examples.git master


masa@lve-imac2:~/Desktop/git/masa-examples$ git pull https://github.com/iamaturtle113/masa-examples.git master
remote: Enumerating objects: 8, done.
remote: Counting objects: 100% (8/8), done.
remote: Compressing objects: 100% (4/4), done.
remote: Total 6 (delta 1), reused 0 (delta 0), pack-reused 0
Unpacking objects: 100% (6/6), done.
From https://github.com/iamaturtle113/masa-examples
* branch master -> FETCH_HEAD
Adding practice/testImport.java
Adding practice/testImport.class
Adding practice/candelTestdir/IOMethods.java
Adding practice/candelTestdir/IOMethods.class
Adding practice/candelTestdir/.IOMethods.java.swp
Auto-merging practice/Thread1.java
CONFLICT (content): Merge conflict in practice/Thread1.java
Adding practice/Thread1.class
Adding practice/Thread1$ImpleRunnable2.class
Adding practice/Thread1$ImpleRunnable.class
Adding practice/RegexPractice01.java
Adding practice/RegexPractice01.class
Adding practice/IOMethods.class
Adding practice/.testImport.java.swp
CONFLICT (directory/file): There is a directory with name practice in HEAD. Adding practice as practice~b343e0c4b8b3b437105f2e8e535e69781941291c
Automatic merge failed; fix conflicts and then commit the result.
masa@lve-imac2:~/Desktop/git/masa-examples$ git push https://github.com/iamaturtle113/masa-examples.git master



To https://github.com/iamaturtle113/masa-examples.git
! [rejected] master -> master (non-fast-forward)
error: failed to push some refs to 'https://github.com/iamaturtle113/masa-examples.git'
hint: Updates were rejected because the tip of your current branch is behind
hint: its remote counterpart. Integrate the remote changes (e.g.
hint: 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.


git remote add origin https://github.com/iamaturtle113/masa-examples.git



masa@lve-imac2:~/Desktop/git/masa-examples$ git fetch && git merge origin/master
From https://github.com/iamaturtle113/masa-examples
* [new branch] master -> origin/master
error: 'practice' appears as both a file and as a directory
error: practice: cannot drop to stage #0
error: merge is not possible because you have unmerged files.
hint: Fix them up in the work tree, and then use 'git add/rm <file>'
hint: as appropriate to mark resolution and make a commit.
fatal: Exiting because of an unresolved conflict.


masa@lve-imac2:~/Desktop/git/masa-examples$ git merge origin/master
error: 'practice' appears as both a file and as a directory
error: practice: cannot drop to stage #0
error: merge is not possible because you have unmerged files.
hint: Fix them up in the work tree, and then use 'git add/rm <file>'
hint: as appropriate to mark resolution and make a commit.
fatal: Exiting because of an unresolved conflict.


masa@lve-imac2:~/Desktop/git/masa-examples$ git status
On branch master
You have unmerged paths.
(fix conflicts and run "git commit")

Unmerged paths:
(use "git add <file>..." to mark resolution)

added by them: practice
both modified: practice/Thread1.java

Untracked files:
(use "git add <file>..." to include in what will be committed)


no changes added to commit (use "git add" and/or "git commit -a")


git add .
git status で確認すると、エラー消えた。
git merge origin/master -> commitしてからマージしてくれと

masa@lve-imac2:~/Desktop/git/masa-examples$ git merge origin/master
fatal: You have not concluded your merge (MERGE_HEAD exists).
Please, commit your changes before you merge.
masa@lve-imac2:~/Desktop/git/masa-examples$ git merge origin/master
Already up-to-date.

masa@lve-imac2:~/Desktop/git/masa-examples$ git push https://github.com/iamaturtle113/masa-examples.git masterUsername for 'https://github.com': iamaturtle113
Password for 'https://iamaturtle113@github.com': 
Counting objects: 21, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (20/20), done.
Writing objects: 100% (21/21), 7.34 KiB | 0 bytes/s, done.
Total 21 (delta 6), reused 0 (delta 0)
remote: Resolving deltas: 100% (6/6), done.
To https://github.com/iamaturtle113/masa-examples.git
b343e0c..b442916 master -> master