Categories
Ubuntu

Enable 2.5G and 10G network in Ubuntu 24.10

I have ASUS motherboard that support both 2.5G and 10G LAN Network. Connected with CAT6 with 10Gbps capacity. However, the default Ubuntu limit the transfer speed into 100Mbps.

To solve this problem, here are few steps to do

  1. Edit Grub /etc/default/grub and add this example
GRUB_CMDLINE_LINUX_DEFAULT="usbcore.autosuspend=-1 quiet splash pcie_aspm=off ipv6.disable=1"

Make sure to reboot your Ubuntu OS.

2. Check your network speed using sudo lshw -c network

sudo lshw -c network
  *-network                 
       description: Ethernet interface ...
       size: 1Gbit/s
       capacity: 1Gbit/s
  *-network
      ...
       size: 100Mbit/s
       capacity: 1Gbit/s
       

Its showed here that my second LAN being capped by 100Mbit/s

3.Here is what I’ve learned. Your LAN will follow the other-side LAN speed. In my case, my PC is 2,500 mbps while my another side is 10,000 mbps. So, instead of make changes on my PC, actually go to another side and adjust it to follow yours!

I got to my workstation

sudo ethtool -s enp36s0f0 speed 2500 duplex full autoneg on

Then, I disconnect and re-connect. Finally the speed is changed. The biggest learning here is to change another side configuration, not your own 2.5G

Categories
Ubuntu

Fix stutter and nvidia-smi Ubuntu 24.10 Wayland

I found issue where stutter and nvidia-smi took long time to print, which is unusual. After digging more, apparently this is caused by service of persistence mode.

To solve this, you can disable by comment /lib/systemd/system/nvidia-persistenced.service

sudo vim /lib/systemd/system/nvidia-persistenced.service
systemctl edit nvidia-persistenced.service

To run persistence on your session

sudo nvidia-smi -pm 1 
Categories
Ubuntu

Fix Flameshot bug Ubuntu 24.10 Wayland issue

When using Flameshot in Ubuntu Oracular Oriole, its return error : “Unable to capture the screen” Flameshot error. This is persistent whether you are using APT, snap or flatpak.

The quick solution is to modify the launcher and add a simple command. I’m using APT, so I will edit the launcher from ehre

sudo vim /usr/share/applications/org.flameshot.Flameshot.desktop

Then edit the execution

[Desktop Entry]
...
Keywords[es]=flameshot;screenshot;capture;shutter;captura;
Keywords[de]=flameshot;screenshot;Bildschirmfoto;Aufnahme;
Keywords[pt_BR]=flameshot;screenshot;captura de tela;captura;shutter;
Exec=flameshot
Icon=org.flameshot.Flameshot
Terminal=false
Type=Application
....

Change the execution to be

Exec=sh -c -- "flameshot"

This shall fix your problem without any need to disable Wayland and others things. Enjoy!