Linux

Personal reports

Silvermoon

HW Probe

Blender benchmark

Geekbench

dell Inspiron 15 3520
benchmark+ win11+ high temp

just installed arch Linux and ran benchmark with battery power

on battery 🔋

on direct line 😁

Arafats

Autostart

directory (user) = ~/.config/autostart/
directory (system) = /etc/xdg/autostart/

To remove autostart for a program, delete the .desktop file in the appropriate directory.
To hide system autostart programs, copy the .desktop file to the user directory and add Hidden=true to the file.
An example, to hide octopi-notifier.desktop:

[Desktop Entry]
Name=Octopi Notifier
Icon=octopi
Exec=/usr/bin/octopi-notifier
Terminal=false
Type=Application
Categories=GNOME;GTK;System;
#NotShowIn=GNOME;XFCE;LXDE;KDE;
StartupNotify=true
X-LXQt-Need-Tray=true
Version=1.5
SingleMainWindow=true
Hidden=true

Desktop Entry

Desktop entry directory (user) = ~/.local/share/applications/

To add a program to the pro, create a .desktop file in the appropriate directory.
An example, to add tlauncher:

[Desktop Entry]
Categories=Game;
Comment[en_US]=A Minecraft launcher
Comment=A Minecraft launcher
Exec=java -jar /home/sharafat/Games/TLauncher.v10/TLauncher.jar
GenericName[en_US]=A Minecraft Launcher
GenericName=A Minecraft Launcher
Keywords=minecraft;
MimeType=
Name[en_US]=TLauncher
Name=TLauncher
Path=
Icon=minecraft
StartupNotify=true
Terminal=false
TerminalOptions=
Type=Application
X-KDE-SubstituteUID=false
X-KDE-Username=

\

You may need to set executable permission to the .desktop file.

Battery

āϏāĻ°ā§āĻŦāĻĒā§āϰāĻĨāĻŽā§‡āχ āĻœā§‡āύ⧇ āύāĻŋāύ āφāĻĒāύāĻžāϰ āĻĄāĻŋāĻ­āĻžāχāϏ⧇ āĻāϟāĻž āϏāĻžāĻĒā§‹āĻ°ā§āϟ āĻ•āϰāĻŦ⧇ āĻ•āĻŋāύāĻžāĨ¤ āύāĻŋāĻšā§‡āϰ āĻ•āĻŽāĻžāĻ¨ā§āĻĄā§‡āϰ āĻŽāĻžāĻ§ā§āϝāĻŽā§‡,

cat /sys/power/state

āφāϰ āϤāĻžāϰāĻĒāϰ⧇,

sudo dmesg | grep -i "acpi.*(supports"\

āĻāĻŦāĻžāϰ āϖ⧁āρāĻœā§‡ āĻĻ⧇āϖ⧇āύ S3 āφāϛ⧇ āĻ•āĻŋāύāĻž āĻ…āĻĒāĻļāύ⧇āĨ¤

Note from Alif bro

Fedora āϚāĻžāϞāĻŋāϤ Acer travelmate TMP214-53 āϤ⧇ āϏāĻžāϏāĻĒ⧇āĻ¨ā§āĻĄ (āĻ¸ā§āϞāĻŋāĻĒ) āχāĻ¸ā§āϝ⧁ āĻ›āĻŋāϞ⧋āĨ¤
āϏāĻŽāĻ¸ā§āϝāĻžāϟāĻž āĻ›āĻŋāϞ⧋ āϏāĻžāϏāĻĒ⧇āĻ¨ā§āĻĄ āĻ•āϰ⧇ āϰāĻžāĻ–āϞ⧇āĻ“ āĻŦā§āϝāĻžāϟāĻžāϰāĻŋ āĻĄā§āϰ⧇āύ āĻšā§Ÿā§‡ āϝ⧇āϤ āφāϰ āĻŦā§āϝāĻžāϗ⧇ āϰāĻžāĻ–āϞ⧇ āĻ—āϰāĻŽ āĻšā§Ÿā§‡ āϝ⧇āϤ⧋āĨ¤ āĻ…āĻ°ā§āĻĨāĻžā§Ž āϏāĻžāϏāĻĒ⧇āĻ¨ā§āĻĄ āϟ⧁ āĻ°â€Œā§āϝāĻžāĻŽ āĻšāϤ⧋ āύāĻž; āĻĒā§āϰāϏ⧇āϏāϰ āϚāĻžāϞ⧁ āĻĨāĻžāĻ•āϤ⧋āĨ¤ āĻāχ āϧāϰāύ⧇āϰ āϏāĻžāϏāĻĒ⧇āĻ¨ā§āĻĄāϕ⧇ āĻŦāϞ⧇ s2idle āϝ⧇āϟāĻžāϤ⧇ āĻĒā§āϰāϏ⧇āϏāϰ āϚāĻžāϞ⧁ āĻĨāĻžāϕ⧇āĨ¤ āĻ•āĻŋāĻ¨ā§āϤ⧁ āφāĻŽāĻžāϰ āϝ⧇āϟāĻž āĻĻāϰāĻ•āĻžāϰ āϏ⧇āϟāĻž āĻšāϞ⧋ deep sleep āϝ⧇āϟāĻžāϤ⧇ āĻļ⧁āϧ⧁ ram āĻ āĻšāĻžāϞāĻ•āĻž āĻĒāĻžāĻ“ā§ŸāĻžāϰ āĻĻā§‡ā§ŸāĻž āĻšā§Ÿ āφāϰ āĻĒāĻžāĻ“ā§ŸāĻžāϰ āϞāĻžāχāϟ āĻŦā§āϞāĻŋāĻ‚āĻ•āĻŋāĻ‚ āĻšā§ŸāĨ¤ āϏ⧇āϟāĻž āϕ⧇āύ āϝ⧇ āĻĄāĻŋāĻĢāĻ˛ā§āϟ āĻšāĻŋāϏ⧇āĻŦ⧇ āϏāĻŋāϞ⧇āĻ•ā§āϟ āĻ•āϰāĻž āĻ›āĻŋāϞ⧋ āύāĻž, āϭ⧇āĻŦ⧇ āφāĻŽāĻŋ āĻ…āĻŦāĻžāĻ• āĻšāχāĨ¤

āĻāχ āϏāĻŽāĻ¸ā§āϝāĻž āĻĨāĻžāĻ•āĻžāϰ āĻĒā§āϰāĻŽāĻžāĻŖ āĻšāϞ⧋: cat /sys/power/mem_sleep āĻāϰ āφāωāϟāĻĒ⧁āϟ āφāϏāĻŦ⧇ [s2idle] deep
āϝ⧇āĻ­āĻžāĻŦ⧇ āϏāĻŽāĻžāϧāĻžāύ āĻ•āϰāϞāĻžāĻŽ:
/etc/default/grub āϖ⧁āϞāϞāĻžāĻŽ sudo nano /etc/dafault/grub āĻ•āĻŽāĻžāĻ¨ā§āĻĄ āĻĻāĻŋā§Ÿā§‡āĨ¤

āϝāĻĻāĻŋ āύāĻž āĻ–ā§‹āϞ⧇ āϤāĻžāĻšāϞ⧇: cd /etc/default āĻ•āĻŽāĻžāĻ¨ā§āĻĄ āĻĻāĻŋāϝāĻŧ⧇ āĻ“āĻ–āĻžāύ⧇ āĻ—āĻŋāϝāĻŧ⧇ sudo nano grub āĻ•āĻŽāĻžāĻ¨ā§āĻĄ āĻĻāĻŋāϝāĻŧ⧇ āĻ“āϟāĻž āϖ⧁āϞ⧁āύāĨ¤

āĻ¨ā§āϝāĻžāύ⧋ āĻŸā§‡āĻ•ā§āϏāϟ āĻāĻĄāĻŋāϟāϰ āϖ⧁āϞāϞ⧇ āϏ⧇āĻ–āĻžāύ āĻĨ⧇āϕ⧇ GRUB_CMDLINE_LINUX_DEFAULT āĻāϰāĻ•āĻŽ āĻŦāĻž āĻāϰ āĻ•āĻžāĻ›āĻžāĻ•āĻžāĻ›āĻŋ āĻ•āĻŋāϛ⧁ āĻĻāĻŋā§Ÿā§‡ āĻļ⧁āϰ⧁ āĻšā§Ÿ āĻāĻŽāύ āϞāĻžāχāύ āϖ⧁āρāĻœā§‡ āĻŦ⧇āϰ āĻ•āϰāĻŋāĨ¤
āϞāĻžāχāύ⧇āϰ quotation mark āĻāϰ āĻ­āĻŋāϤāϰ⧇ āϝāĻžāχ āĻĨāĻžāĻ• āύāĻž āϕ⧇āύ⧋ āϏ⧇āϟāĻžāϰ āĻĒāϰ⧇ āĻāĻ•āϟāĻž āĻ¸ā§āĻĒ⧇āϏ āĻĻāĻŋā§Ÿā§‡ mem_sleep_default=deep āϞāĻŋāϖ⧇ āĻĻ⧇āχāĨ¤
āωāĻĻāĻžāĻšāϰāĻŖāĻ¸ā§āĻŦāϰ⧂āĻĒ: āφāϗ⧇ āϝāĻĻāĻŋ GRUB_CMDLINE_LINUX_DEFAULT=“quiet splash” āĻĨāĻžāϕ⧇ āϤāĻŦ⧇ āĻĒāϰ⧇ āĻšāϞ⧋: GRUB_CMDLINE_LINUX_DEFAULT=“quiet splash mem_sleep_default=deep”
āĻāϟāĻž āĻ•āϰāĻžāϰ āĻĒāϰ⧇ āĻĢāĻžāχāϞāϟāĻž āϏ⧇āĻ­ āĻ•āϰāĻŋāĨ¤

āϤāĻžāϰāĻĒāϰ⧇ grub update āĻ•āϰāϤ⧇ āĻšāĻŦ⧇āĨ¤ grub update āĻ•āϰāĻžāϰ āĻĒāĻĻā§āϧāϤāĻŋ āϏāĻŦāĻžāϰ āĻāĻ•āχ āύāĻžāĻ“ āĻšāϤ⧇ āĻĒāĻžāϰ⧇ āϤāĻŦ⧇ sudo update-grub āĻ•āĻŋāĻ‚āĻŦāĻž sudo grub-mkconfig -o /boot/grub/grub.cfg āĻ•āĻŋāĻ‚āĻŦāĻž sudo grub2-mkconfig -o /boot/grub2/grub.cfg āĻāϰāĻ•āĻŽ āϕ⧋āύ⧋ āĻāĻ•āϟāĻž āĻ•āĻŽāĻžāĻ¨ā§āĻĄ āĻĻāĻŋā§Ÿā§‡ āφāĻĒāύāĻžāϰ āĻ•āĻžāϜ āĻšā§Ÿā§‡ āϝāĻžāĻŦāĻžāϰ āĻ•āĻĨāĻžāĨ¤ āφāϰ āϤāĻžāĻšāϞ⧇āχ āĻ•āĻžāϜ āĻļ⧇āώāĨ¤
reboot āĻ•āϰāϤ⧇ āĻĒāĻžāϰ⧇āύāĨ¤
āϏāĻŽāĻ¸ā§āϝāĻž āϏāĻŽāĻžāϧāĻžāύ āĻšāĻŦāĻžāϰ āĻĒā§āϰāĻŽāĻžāĻŖ āĻšāϞ⧋: cat /sys/power/mem_sleep āĻāϰ āφāωāϟāĻĒ⧁āϟ āφāϏāĻŦ⧇ s2idle [deep]

Wireless mouse/ keyboard

Here’s a kool link,

Bash Script

A systemd service will run the script /usr/local/bin/reset-input-devices.sh after waking from sleep. What will be inside the script? Here’s a demo,

# Reset the keyboard driver and USB mouse
 
rmmod usbhid
modprobe usbhid
echo "Finished resetting the keyboard."

Since it has to be run as root, you should be careful with permissions, i.e.:

sudo chown root:root reset-input-devices.sh
sudo chmod 744 reset-input-devices.sh

Systemd service

And a sample systemd file, located at /etc/systemd/system/reset-input-devices.service,

# This service is used to work around an apparent bug that freezes
# keyboard and mouse inputs after waking from sleep.
 
[Unit]
Description=Reset the keyboard and mouse after waking from sleep
After=suspend.target hibernate.target hybrid-sleep.target suspend-then-hibernate.target
 
[Service]
ExecStart=/usr/local/bin/reset-input-devices.sh
CPUWeight=500
 
[Install]
WantedBy=suspend.target hibernate.target hybrid-sleep.target suspend-then-hibernate.

Then enable the service so that it is ready to respond to a return-from-suspend event both now and after every new boot:

systemctl enable --now reset-input-devices-after-sleep.service

HW-Probe

Install libxcrypt-compat first if you are on Arch based distro. Then use appimage or whatever you may feel like :)

sudo hw-probe -all -upload