Posted in Uncategorized

Fix OpenSUSE missing grub boot menu in dual boot with Windows

The condition is :
I have dual boot Opensuse Tumbleweed and Windows 11,

in windows 11,
i have joined to a Domain Controller (Active Directory) of Windows Server,

when i change back the domain to workgroup and restart my laptop,
the grub boot menu is missing,
it directly boot to windows.

Here are the steps to fix it (shows the grub dual boot menu again) :

boot with ubuntu 24 installer,|
choose – try ubuntu,
in terminal,
sudo bash

Try:
First mount your root partition (includes use of cryptsetup) at โ€œ/mntโ€
ex:
mount /dev/nvme0n1p7 /mnt
change nvme0n1p7 with sda7,
or check it in your ssd/hdd partition with fdisk -l

Then:
mount –bind /dev /mnt/dev
mount –bind /proc /mnt/proc
mount –rbind /sys /mnt/sys
chroot /mnt
mount -a ### mount everything else needed
shim-install
exit ### exit from chroot
reboot

Then i have my dual boot menu Opensuse and Windows back,
enjoy ๐Ÿ™‚

source :
https://forums.opensuse.org/t/grub2-reinstallation-from-rescue-system/165648

Posted in Uncategorized

EndeavourOS Arch Lenovo laptop internal microphone volume not working (solution: must change internal mic config from stereo to mono) [update – solved]

Update :

I have found the new solution for this issue,
and the option 1 is worked for me,
but you can try the option 2 or option 3, maybe one of those will work for you,
you can only choose one option, do not use more than one option, or it will cause conflict in your pipewire configuration.

Don’t forget to change the internal microphone as default (click checklist v beside keylock icon) if you have other webcam + mic mono like me.

And if all these 3 options are not working for you,
maybe you should just buy USB Logitech webcam + mic C270 mono like me to get it done ๐Ÿ™‚

Oh and one thing, in my laptop, i must pin pavucontrol to task manager, because if open pavucontrol, it will show only a second then it will closed automatically,
so when it shows, you must click the menu tab at the top (ex: Input Devices) to stop it to closed automatically,
this is because the added config pipewire.conf below, if we remove it, then the pavucontrol will be back to normal,
yeah i know, this is the cons, but still can be tolerated.

Option 1 (worked for me, if you try by yourself and look it closely, this option is similar with option 3, except that the internal microphone, the original one not the mono, display a horizontal graphic volume, while the option 1 is not, that’s why option 1 is truly mono input for the internal microphone, and its front left – front right channels cannot get balanced together anymore).

sudo vim /etc/pipewire/pipewire.conf

context.objects = [
    # Other objects...

    { factory = adapter
        args = {
            factory.name     = api.alsa.pcm.source
            node.name        = "alsa_input.pci-0000_00_1f.3.analog-stereo"
            node.description = "Built-in Audio Analog Stereo (Mono)"
            media.class      = "Audio/Source"
            audio.channels   = 1
            audio.position   = "MONO"
        }
    }
]

systemctl –user restart wireplumber pipewire pipewire-pulse

And here’s my working pavucontrol

Option 2 (not worked for me, because if i use google meet, the internal microphone front left and front right are still get balanced together, even when the os start with saved config front left 100 and front right 0).

The idea is to make the right side of internal mic volume to zero, and the left side volume to 100 (or min 80% high), or vice versa (left – right),
and then save/store the config in .desktop file, so it can auto restart the stored config when the laptop gets rebooted.

For Arch or EndeavourOS, you can install qasmixer with this :
sudo pacman -S qastools

—–

Yes, of course @ASSahasranamam.
The method mentioned above I consider obsolete. Here I bring you a new method.

MOD to fix internal microphone

Step 1 – Install QasMixer
It has a graphical interface that facilitates the manipulation of AlsaMixer.

This is the command for the installation:

sudo apt install qasmixer

Step 2 – Run QasMixer

This is the command to execute it:

qasmixer

Step 3 – Select in the box “”Mixer device” -> hw”

Step 4 – Press the [R] key and set all settings of the mixer as shown in the following picture

Step 5 – Select “Capture” and press the [S] key

Step 6 – Configure the panels as best suits your hearing
The rule is: L and R panels should not be at the same dB level.
I chose 18.75 dB and 21.75 dB since for me that configuration sounds better.

TIPS: You can test the microphone on Discord or somewhere where you can listen to it live.

Step 7 – Store the AlsaMixer configuration

This is the command:

alsactl --file ~/.config/asound.state store

Step 8 – The creation of a .desktop for the autostart restore command

This is the command to create the .desktop:

nano ~/.config/autostart/alsarestore.desktop

The contents of the .desktop file should be the following:

[Desktop Entry]
Type=Application
Terminal=true
Name=alsarestore
Exec=bash -c "sleep 10 && alsactl --file ~/.config/asound.state restore"

Step 9 – Turn off or restart the computer to see that our configuration still remains.
If everything goes as described. CONGRATULATIONS! you have got your internal microphone working.

TIPS: You can see in the sound settings that the microphone is low if you have followed my settings. This happens because it gets louder when you modify the dB of “Internal Mic Boost“. I do not recommend turning this panel up as in my case it sounds saturated.

Source :
https://github.com/pop-os/pipewire/issues/8
https://forum.garudalinux.org/t/internal-microphone-not-working-on-lenovo-ideapad-330/18348/5
https://wiki.archlinux.org/title/PulseAudio/Troubleshooting#Another_Possible_Cause

Option 3 (not worked for me, because if i use google meet, the internal microphone front left – front right are still get balanced together, even it creates new “UR22 Microphone”, it will not produce sound anymore after the balanced happens, and the horizontal graphic volume will stop at 0).

User r/wellenkopf made a good suggestion, I have another one that uses loopback instead. Based on https://gitlab.freedesktop.org/pipewire/pipewire/-/wikis/Virtual-devices
Replace the name of your card in node.target by the one that you get when you run pw-dump | grep alsa_input
This goes under context.modules, and there’s no need to run any scripts

โžœ ~ pw-dump | grep alsa_input

      { "subject": 0, "key": "default.configured.audio.source", "type": "Spa:String:JSON", "value": { "name": "alsa_input.pci-0000_00_1f.3.3.analog-stereo" } },
      { "subject": 0, "key": "default.audio.source", "type": "Spa:String:JSON", "value": { "name": "alsa_input.pci-0000_00_1f.3.analog-stereo" } }
        "node.name": "alsa_input.usb-046d_C270_HD_WEBCAM_B86B8070-02.mono-fallback",
        "node.name": "alsa_input.pci-0000_00_1f.3.analog-stereo",

โžœ ~ sudo vim /usr/share/pipewire/pipewire.conf

context.modules = [
    # plenty of existing { ... } blocks, then paste this:
    # Alternate microphone-only mono source
    {   name = libpipewire-module-loopback
        args = {
            node.description = "UR22 Microphone"
            capture.props = {
                node.name = "capture.UR22_Mic"
                audio.position = [ FL ]
                stream.dont-remix = true
                node.target = "alsa_input.pci-0000_00_1f.3.analog-stereo"
                node.passive = true
            }
            playback.props = {
                node.name = "capture.UR22_Mic"
                media.class = "Audio/Source"
                audio.position = [ MONO ]
            }
        }
    }
] #end of context.modules

โžœ ~ systemctl –user restart wireplumber pipewire pipewire-pulse

– from your endeavouros kde plasma,
open pavucontrol (pulseaudio volume control) – input devices – UR22 Microphone

– done, enjoy ๐Ÿ™‚

Source : https://www.reddit.com/r/linuxaudio/comments/v2ztic/how_to_reroute_permanently_a_microphone_to_make/

Posted in Uncategorized

Ubuntu 22.04 Lenovo laptop Nvidia Intel Display Card Flicker

1. Check and install you nvidia display card :

– ubuntu-drivers devices
== /sys/devices/pci0000:00/0000:00:1d.0/0000:03:00.0 ==
modalias : pci:v000010DEd0000134Fsv000017AAsd000039F1bc03sc02i00
vendor : NVIDIA Corporation
model : GM108M [GeForce 920MX]
driver : nvidia-driver-390 – distro non-free
driver : nvidia-driver-470-server – distro non-free
driver : nvidia-driver-510-server – distro non-free
driver : nvidia-driver-450-server – distro non-free
driver : nvidia-driver-515 – distro non-free recommended
driver : nvidia-driver-418-server – distro non-free
driver : nvidia-driver-510 – distro non-free
driver : nvidia-driver-470 – distro non-free
driver : nvidia-driver-515-server – distro non-free
driver : xserver-xorg-video-nouveau – distro free builtin

== /sys/devices/pci0000:00/0000:00:14.0/usb1/1-7/1-7:1.1 ==
modalias : usb:v0BDAp0821d0200dcE0dsc01dp01icE0isc01ip01in01
vendor : Realtek Semiconductor Corp.
model : RTL8821A Bluetooth
driver : rtl8812au-dkms – distro free

– apt install nvidia-driver-515 nvidia-dkms-515

– prime-select query
nvidia

– prime-select nvidia

– nvidia-smi

– run your – nvidia x server settings – from your ubuntu dashboard


2. And this is the important things to remove the flickers

– vi /etc/default/grub
#GRUB_CMDLINE_LINUX_DEFAULT=”quiet splash”
GRUB_CMDLINE_LINUX_DEFAULT=”quiet splash i915.enable_dc=0 intel_idle.max_cstate=2″

– reboot

Posted in Uncategorized

Python Extract Speech From Video

Alhamdulillaahi rabbil ‘aalamiin sudah berhasil long video chunk nya,
ternyata secara tidak sengaja saya sudah mengutak-atik program machine learning (ml) ๐Ÿ™‚ ,

termasuk salah satu impian saya ini program translate/subtitle speech/video to text,

i’m not a developer software, because i don’t build it (from start),
and i’m not a programmer too, because i’m not making any program (from start),
maybe i’m just a modifier ๐Ÿ™‚ ,

next to do lists :
– make the program to be more precise in subtitle/transliterate/translate
– make the converted file (wav) to become more tiny size (ex: mp3)
– make the .srt or embed (hardcode) it to the video, but i think this is a video editing work ๐Ÿ™‚ .

https://github.com/halilintar8/python_extract_speech_from_video

**
Ternyata github code saya yang ini, sudah dilihat oleh teman (web dev) kantor lama saya, qa engineer yang sekarang, dan it manager suatu perusahaan startup ๐Ÿ™‚ .

Posted in Uncategorized

Ubuntu 22.04 Lenovo laptop internal microphone not working in Gmeet Google Chrome browser

This workaround has been tested and worked in Ubuntu 22.04, and should be working too for Ubuntu 20.04, 18.04, and a few earlier.

No microphone input on Acer Aspire One and Lenovo Ideapad 310-15ISK/330-15ARR

Install pavucontrol, unlink the microphone channels and turn down the left one to 0.

  • apt install pavucontrol
    run pavucontrol (pulse audio volume control) from terminal or applications

Some applications (e.g. chromium) can change microphone levels causing the same issue, a workaround is to remap stereo input to mono and use the remapped device as default.

Another Possible Cause

Another possible cause is that your mic has two channels but only one channel can provide a valid sound signal. Some information can be found here. The solution is to remap the stereo input to a mono input:

1. Find your source name from the following command; mine is alsa_input.pci-0000_00_1f.3.analog-stereo

pacmd list-sources | grep 'name:.*input'

2. Edit /etc/pulse/default.pa and add the following lines, where INPUT_NAME is name of the input source from above step:

load-module module-remap-source source_name=record_mono master=INPUT_NAME master_channel_map=front-left channel_map=mono
set-default-source record_mono

3. Restart PulseAudio:

$ pulseaudio -k
$ pulseaudio --start

Now arecord hopefully works. You may still need to change the RecordStream from setting to Remapped Built-in Audio Analog Stereo of a specific application in the Recording tab of pavucontrol.

Source :

Posted in Uncategorized

Belajar Bahasa Inggris (Learn English for Indonesian)

Sumber : dari facebook saya, yang saya tulis sendiri sebagian demi sebagian ๐Ÿ™‚

 

#1 belajar bahasa inggris, buat ngelancarin aja
๐Ÿ™‚
.
kata kerja (verb) terbagi 2 :
– regular verb (kata kerja beraturan)
– irregular verb (kata kerja tidak beraturan)

kata kerja (verb) terbagi 3 :
v1, v2, v3 (past participle), contoh :
go, went, gone —> irregular verb
study, studied, studied —> regular verb

tenses (tata bahasa menurut waktu) :
yg utama terbagi 4, yaitu :
1) past (waktu lampau)
2) present (sekarang)
3) future (akan datang)
4) past future (masa lalu dan yang akan datang)

dan masing-masing nya terbagi 4 juga, yaitu :
a) simple
b) continuous
c) perfect
d) perfect continuous

jadi total semuanya adalah 16.

Continue reading “Belajar Bahasa Inggris (Learn English for Indonesian)”

Posted in Uncategorized

Ubuntu 18.04 install Zekr

  • Di ubuntu 18.04 belum bisa langsung apt install zekr, jadi ini caranya :

– add-apt-repository ppa:webupd8team/java
apt install oracle-java8-set-default
(jangan pakai oracle java10, karena masih ada error ketika running zekr nya)

– cek java instalasi
java -version
javac -version

– download dan extract Zekr 1.1.0 for Linux x64 (7.6MB)
http://zekr.org/download.html

jalankan zekr.sh (jangan lupa chmod 755 ๐Ÿ™‚ )

– kalau ada error, coba jalankan ini :
apt-get install libwebkitgtk-1.0-0
apt-get install libjlayer-java

– semangat (soalnya di tempat saya sudah jalan zekr nya) ๐Ÿ™‚

  • Dan ini cara membuat shortcut (add to favorite) nya :

Continue reading “Ubuntu 18.04 install Zekr”