Dell Dock Multiple Displays https://askubuntu.com/questions/1565945/dell-dock-multiple-displays

I'm new to the world of Ubuntu / Linux in general and wanted to switch over from windows. I have a Dell Thunderbolt WD22TB4 130W dock, with 3 external displays connected so that will be 4 in total (including the laptop). Does anyone know if this will work or is it a case of create a bootable usb and try?

Ubuntu 25.10 Nvidia 580 not accelerated https://askubuntu.com/questions/1565944/ubuntu-25-10-nvidia-580-not-accelerated

Ubuntu 25.10

Nvidia 580.126.09-0ubuntu0.25.10.2

Stable system. Latest Ubuntu. Latest Nvidia (from Additional Drivers).

Selecting the nvidia accelerated mode, no acceleration except for gnome-shell.

nvtop doesn't show any Nvidia activity.

Any ideas for what to check why other apps/processes aren't accelerated?

$ sudo lshw -c video

  *-display                 
       description: VGA compatible controller
       product: TigerLake-LP GT2 [Iris Xe Graphics]
       vendor: Intel Corporation
       physical id: 2
       bus info: pci@0000:00:02.0
       logical name: /dev/fb0
       version: 01
       width: 64 bits
       clock: 33MHz
       capabilities: pciexpress msi pm vga_controller bus_master cap_list rom fb
       configuration: depth=32 driver=i915 latency=0 mode=1920x1080 resolution=1920,1080 visual=truecolor xres=1920 yres=1080
       resources: iomemory:600-5ff iomemory:400-3ff irq:164 memory:6012000000-6012ffffff memory:4000000000-400fffffff ioport:5000(size=64) memory:c0000-dffff memory:4010000000-4016ffffff memory:4020000000-40ffffffff
  *-display
       description: 3D controller
       product: GP108M [GeForce MX330]
       vendor: NVIDIA Corporation
       physical id: 0
       bus info: pci@0000:02:00.0
       version: a1
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress bus_master cap_list rom
       configuration: driver=nvidia latency=0
       resources: iomemory:600-5ff iomemory:600-5ff irq:166 memory:61000000-61ffffff memory:6000000000-600fffffff memory:6010000000-6011ffffff ioport:4000(size=128) memory:62000000-6207ffff

$ sudo prime-select query

nvidia

$ nvidia-smi

Thu Apr 23 09:13:25 2026       
+-----------------------------------------------------------------------------------------+
| NVIDIA-SMI 580.126.09             Driver Version: 580.126.09     CUDA Version: 13.0     |
+-----------------------------------------+------------------------+----------------------+
| GPU  Name                 Persistence-M | Bus-Id          Disp.A | Volatile Uncorr. ECC |
| Fan  Temp   Perf          Pwr:Usage/Cap |           Memory-Usage | GPU-Util  Compute M. |
|                                         |                        |               MIG M. |
|=========================================+========================+======================|
|   0  NVIDIA GeForce MX330           Off |   00000000:02:00.0 Off |                  N/A |
| N/A   42C    P8            N/A  / 5001W |       4MiB /   2048MiB |      0%      Default |
|                                         |                        |                  N/A |
+-----------------------------------------+------------------------+----------------------+

+-----------------------------------------------------------------------------------------+
| Processes:                                                                              |
|  GPU   GI   CI              PID   Type   Process name                        GPU Memory |
|        ID   ID                                                               Usage      |
|=========================================================================================|
|    0   N/A  N/A            4738      G   /usr/bin/gnome-shell                      0MiB |
+-----------------------------------------------------------------------------------------+
Startx <program> doesn't work in Ubuntu CLI https://askubuntu.com/questions/1565942/startx-program-doesnt-work-in-ubuntu-cli

I tried switching from the desktop to the CLI and starting an app with startx. It didn't work.

So, I changed the boot mode to ONLY boot into terminal, I changed the target to multi.user.

Then I tried again. Still didn't work.

The X server starts, and then I get a screen that says: "something went wrong."

Or it doesn't start at all.

For your information, I am using Ubuntu 24.04.4 with the cinnamon desktop environment. Originally it has GNOME but I took that off and put cinnamon on.

I want to run in CLI mode and invoke GUI apps one at a time with startx only and no DE. Why won't it work.

Why does nm-connection-editor ignore priority? https://askubuntu.com/questions/1565940/why-does-nm-connection-editor-ignore-priority

In my workplace we have many wireless networks. We have an anonymous visitor network (logged-in with phone number), a customer network (unauthenticated, logged with customer or worker credentials), a worker network (authenticated and logged with worker credentials) and a printer network.

Using the priority at nm-connection-editor, I gave the following priorities:

  • -90 anonymous network (last resource).
  • 10 printer network (I use to need the printer)
  • 5 worker, not printer, network.
  • 4 customer network

But everytime ubuntu starts up, I find myself into the anonymous network.

What am I doing wrong?

network-manager-applet 1.8.24 , Ubuntu 20.04.1

Migrate from Windows 11 to Ubuntu [duplicate] https://askubuntu.com/questions/1565939/migrate-from-windows-11-to-ubuntu

I’m thinking of moving my main laptop from Windows 11 to Ubuntu and wanted to check compatibility first.

My hardware is:

  • Dell XPS 15 9520

  • Intel Core i9-12900HK

  • NVIDIA GeForce RTX 3050 Ti Laptop GPU, 4 GB GDDR6, 40W

  • 64 GB RAM (2 x 32 GB Kingston Fury Impact DDR5-4800)

  • 2 x 1 TB NVMe SSD

  • Dell Thunderbolt WD22TB4 dock, 130W

  • 3 external monitors connected via the dock

My main usage is:

  • software development

  • VS Code as my main IDE

  • occasional Visual Studio on Windows

  • Docker and .NET development

  • Microsoft 365 mainly in the browser

  • OneDrive mainly for document storage

  • 1Password

I’d really like to hear from anyone using Ubuntu on this exact model, especially around:

  • NVIDIA driver stability

  • WD22TB4 dock support

  • 3 external monitor support through the dock

  • suspend/resume

  • battery life

  • Wi-Fi/Bluetooth

  • general daily-driver stability

I’m also considering keeping Windows on one NVMe and installing Ubuntu on the second one, rather than replacing Windows completely.

Any advice or known issues would be appreciated. Thanks.

Inconsistence dconf versus gsettings https://askubuntu.com/questions/1565936/inconsistence-dconf-versus-gsettings

Why gsettings returns different value from the one stored in dconf?

$ dconf read /org/gnome/desktop/input-sources/sources
[('xkb', 'cz+coder')]
$ gsettings get org.gnome.desktop.input-sources sources 
@a(ss) []

Ubuntu 26.04.

Got an error with apt update - Unknown error executing apt-key https://askubuntu.com/questions/1565935/got-an-error-with-apt-update-unknown-error-executing-apt-key

Suddenly I've got an error executing apt update. After days of searching in internet impossible to solve the problem. The error is:

W: An error occured during the signature verification. The repository is not updated and the previous index files will be used. GPG error: <URL> : Unknown error executing apt-key.

version: Ubuntu server 24.04.2

I have another server with the same keys and the same version and everything is fine. Listed with apt-key list.

I am really stuck with this do you have an idea on how to solve this?

System freeze when wifi turned on https://askubuntu.com/questions/1565932/system-freeze-when-wifi-turned-on

I am currently using Kubuntu 25.10.

The problem is that when I turn on Wi-Fi and connect to a Wi-Fi network, after 2–5–10–15 (random) minutes, my system freezes (keyboard + touchpad + mouse + screen) with a fullscreen message "KERNEL PANIC", and then I have to force shutdown to restart the system.

So I thought there was a problem with Kubuntu 25.10. Then I tried using the latest Linux Mint (through a live USB) without connecting to a Wi-Fi network, and the moment I tried to connect to a Wi-Fi network, the system froze again. Then I became sure that the issue is not with Kubuntu 25.10.

So now I am still using Kubuntu 25.10 and using the internet with USB tethering through my mobile phone, and the issue is gone. I haven’t checked with Ethernet. So if I unplug the USB cable and turn on Wi-Fi, it automatically connects to an available network, and I can use the internet for a maximum of 2–5 minutes. Then the Wi-Fi automatically disconnects, but in the panel (Wi-Fi connected icon) it still looks like it is connected, and then the system freezes, displaying a message: “KERNEL PANIC.”

There are some outputs of useful commands:
~ >👉 lspci -k | grep -A 3 -i network

03:00.0 Network controller: MEDIATEK Corp. MT7921 802.11ax PCI Express Wireless Network Adapter
        Subsystem: AzureWave Device 4680
        Kernel driver in use: mt7921e
        Kernel modules: mt7921e

~ >👉 sudo dmesg | grep -iE "wifi|wlan|firmware|error|fail"

[    0.107998] Spectre V2 : Enabling Speculation Barrier for firmware calls
[    0.401026] ACPI: [Firmware Bug]: BIOS _OSI(Linux) query ignored
[    0.481295] acpi PNP0A08:00: [Firmware Info]: ECAM [mem 0xf0000000-0xf7ffffff] for domain 0000 [bus 00-7f] only partially covers this bridge
[    0.786612] ACPI BIOS Error (bug): Could not resolve symbol [\_TZ.THRM._SCP.CTYP], AE_NOT_FOUND (20250404/psargs-332)
[    0.786690] ACPI Error: Aborting method \_TZ.THRM._SCP due to previous error (AE_NOT_FOUND) (20250404/psparse-529)
[    0.972368] RAS: Correctable Errors collector initialized.
[    3.207731] systemd[1]: systemd-hibernate-clear.service - Clear Stale Hibernate Storage Info was skipped because of an unmet condition check (ConditionPathExists=/sys/firmware/efi/efivars/HibernateLocation-8cf2644b-4b0b-428f-9387-6d876050dc67).
[    3.736750] asus_wmi: fan_curve_get_factory_default (0x00110024) failed: -61
[    3.737274] asus_wmi: fan_curve_get_factory_default (0x00110025) failed: -61
[    3.738119] asus_wmi: fan_curve_get_factory_default (0x00110032) failed: -19
[    4.297054] mt7921e 0000:03:00.0: WM Firmware Version: ____010000, Build Time: 20250625153703
[    5.130770] mt7921e 0000:03:00.0 wlp3s0: renamed from wlan0
[    7.212071] amdgpu 0000:05:00.0: amdgpu: [drm] Loading DMUB firmware via PSP: version=0x0101002B
[    7.215706] amdgpu 0000:05:00.0: amdgpu: Found VCN firmware Version ENC: 1.24 DEC: 8 VEP: 0 Revision: 5
[    7.336409] amdgpu 0000:05:00.0: amdgpu: psp gfx command LOAD_TA(0x1) failed and response status is (0x7)
[  324.199152] mt7921e 0000:03:00.0: driver own failed
[  349.733906] mt7921e 0000:03:00.0: chip reset failed
[  384.621992] mt7921e 0000:03:00.0: driver own failed
[  385.897674] mt7921e 0000:03:00.0: chip reset failed
[  393.014445] mt7921e 0000:03:00.0: driver own failed
[  416.230338] mt7921e 0000:03:00.0: chip reset failed
[  423.400296] mt7921e 0000:03:00.0: driver own failed
[  447.381789] mt7921e 0000:03:00.0: chip reset failed
[  454.494451] mt7921e 0000:03:00.0: driver own failed
[  478.587588] mt7921e 0000:03:00.0: chip reset failed
[  485.775037] mt7921e 0000:03:00.0: driver own failed
[  514.710676] mt7921e 0000:03:00.0: chip reset failed
[  527.792213] mt7921e 0000:03:00.0: driver own failed

enter image description here

My system info:

Operating System: Kubuntu 25.10
KDE Plasma Version: 6.4.5
KDE Frameworks Version: 6.17.0
Qt Version: 6.9.2
Kernel Version: 6.17.0-22-generic (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 4800H with Radeon Graphics
Memory: 8 GiB of RAM (7.2 GiB usable)
Graphics Processor 1: AMD Radeon Graphics
Graphics Processor 2: NVIDIA GeForce RTX 3050 Laptop GPU
Manufacturer: ASUSTeK COMPUTER INC.
Product Name: ASUS TUF Gaming A15 FA506ICB_FA506ICB
System Version: 1.0

Can you please tell me how to fix this issue?

Cannot start a virtual machine https://askubuntu.com/questions/1565930/cannot-start-a-virtual-machine

I installed an Virtual Machine Manager but then got no connection to Qemu. I got the message that I should look, if an adequate libvirt daemon is running. What can I do? This is the full message:

Verbindung zu libvirt qemu:///system kann nicht hergestellt werden.

Verify that an appropriate libvirt daemon is running.

Libvirt URI is: qemu:///system

Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/connection.py", line 940, in _do_open
    self._backend.open(cb, data)
    ~~~~~~~~~~~~~~~~~~^^^^^^^^^^
  File "/usr/share/virt-manager/virtinst/connection.py", line 173, in open
    conn = libvirt.openAuth(self._open_uri, [valid_auth_options, authcb, cbdata], open_flags)
  File "/usr/lib/python3/dist-packages/libvirt.py", line 147, in openAuth
    raise libvirtError('virConnectOpenAuth() failed')
libvirt.libvirtError: Socket-Erstellung zu '/var/run/libvirt/libvirt-sock' fehlgeschlagen: Datei oder Verzeichnis nicht gefunden

What can I do.

repartition and expand a disk in Ubuntu that runs in a vm https://askubuntu.com/questions/1565927/repartition-and-expand-a-disk-in-ubuntu-that-runs-in-a-vm

I'm running Ubuntu in a VmWare VM. I have eliminated all snapshots and increased the size of the disk in the VM. What do I need to do to use the additional space?

Install Pop-Up appears when logging in after a reboot https://askubuntu.com/questions/1565920/install-pop-up-appears-when-logging-in-after-a-reboot

Authentication Prompts to Install Unknown Software:

enter image description here

An icon appears on my hotbar (KDE/Kubuntu) when I first log in after rebooting my computer. It looks like a speech bubble with an ellipsis in it. Clicking on this brings up this pop-up asking for authentication to install... something. I have no idea what it is, but have been worried it might be malware (thus I always cancel, and it goes away). I've been using Kubuntu for several years, and Linux for longer, but have never seen anything like this. It doesn't seem related to Dolphin or the normal updates.

Does anyone know what it is? If it is a threat, anyone know how to get rid of it (I'm tired of seeing it every time I restart my computer)?

linux server password authentication failure [duplicate] https://askubuntu.com/questions/1565919/linux-server-password-authentication-failure

In one linux server we have changed the password configuration and not able to login with same password and username

Trouble connecting to wifi https://askubuntu.com/questions/1565914/trouble-connecting-to-wifi

I'm new to linux, my hotspot for net gets the failed to connect to network etc. Searched and found wifi- p2p disconnected

DEVICE             TYPE      STATE                   CONNECTION 
wlp0s20f3          wifi      connected               Hotspot    
lo                 loopback  connected (externally)  lo         
p2p-dev-wlp0s20f3  wifi-p2p  disconnected            --         
enp0s31f6          ethernet  unavailable             --         
paul@paul-Latitude-5520:~$ 

HOW do do I fix this please...I do not wont to be tethered by a USB cable !

Netplan: Message "WARNING:root:Unknown device type: vlan" https://askubuntu.com/questions/1565906/netplan-message-warningrootunknown-device-type-vlan

My netplan

version: 2
renderer: NetworkManager

ethernets:
    enp0s3:                
        link-local: []
vlans:
    vlan201:  
        id: 201
        link: enp0s3
        dhcp4: no
        dhcp6: no
        addresses:
        - 192.168.20.206/24 

After applying

sudo netplan --debug apply
** (generate:12130): DEBUG: 08:48:22.171: starting new processing pass
** (generate:12130): DEBUG: 08:48:22.171: We have some netdefs, pass them through a final round of validation
** (generate:12130): DEBUG: 08:48:22.171: enp0s3: setting default backend to 2
** (generate:12130): DEBUG: 08:48:22.171: Configuration is valid
** (generate:12130): DEBUG: 08:48:22.171: vlan201: setting default backend to 2
** (generate:12130): DEBUG: 08:48:22.171: Configuration is valid
** (generate:12130): DEBUG: 08:48:22.172: Generating output files..
** (generate:12130): DEBUG: 08:48:22.172: networkd: definition enp0s3 is not for us (backend 2)
** (generate:12130): DEBUG: 08:48:22.172: Open vSwitch: definition enp0s3 is not for us (backend 2)
** (generate:12130): DEBUG: 08:48:22.172: networkd: definition vlan201 is not for us (backend 2)
** (generate:12130): DEBUG: 08:48:22.172: Open vSwitch: definition vlan201 is not for us (backend 2)
** (process:12128): DEBUG: 08:48:22.809: starting new processing pass
** (process:12128): DEBUG: 08:48:22.814: We have some netdefs, pass them through a final round of validation
** (process:12128): DEBUG: 08:48:22.815: enp0s3: setting default backend to 2
** (process:12128): DEBUG: 08:48:22.815: Configuration is valid
** (process:12128): DEBUG: 08:48:22.815: vlan201: setting default backend to 2
** (process:12128): DEBUG: 08:48:22.815: Configuration is valid
** (process:12128): DEBUG: 08:48:23.049: starting new processing pass
** (process:12128): DEBUG: 08:48:23.050: We have some netdefs, pass them through a final round of validation
** (process:12128): DEBUG: 08:48:23.050: enp0s3: setting default backend to 2
** (process:12128): DEBUG: 08:48:23.050: Configuration is valid
** (process:12128): DEBUG: 08:48:23.050: vlan201: setting default backend to 2
** (process:12128): DEBUG: 08:48:23.050: Configuration is valid
** (process:12128): DEBUG: 08:48:23.050: starting new processing pass
** (process:12128): DEBUG: 08:48:23.050: We have some netdefs, pass them through a final round of validation
** (process:12128): DEBUG: 08:48:23.050: enp0s3: setting default backend to 2
** (process:12128): DEBUG: 08:48:23.050: Configuration is valid
** (process:12128): DEBUG: 08:48:23.050: vlan201: setting default backend to 2
** (process:12128): DEBUG: 08:48:23.050: Configuration is valid

But i see: tripple WARNING:root:Unknown device type: vlan

sudo netplan status
WARNING:root:Unknown device type: vlan
WARNING:root:Unknown device type: vlan
WARNING:root:Unknown device type: vlan
     Online state: offline
    DNS Addresses: 127.0.0.53 (stub)
       DNS Search: .

●  1: lo ethernet UNKNOWN/UP (unmanaged)
      MAC Address: 00:00:00:00:00:00
        Addresses: 127.0.0.1/8
                   ::1/128
           Routes: ::1 metric 256

●  2: enp0s3 ethernet UP (NetworkManager: enp0s3)
      MAC Address: 08:00:27:e8:60:74 (Intel Corporation)
        Addresses: 169.254.218.23/16 (link)
    DNS Addresses: 10.165.134.101
                   fd17:625c:f037:2::3
           Routes: 169.254.0.0/16 from 169.254.218.23 metric 100 (link)
                   224.0.0.0/4 metric 100 (static, link)

●  7: vlan201 other UP (NetworkManager: vlan201)
      MAC Address: 08:00:27:e8:60:74
        Addresses: 192.168.20.206/24
                   fe80::a00:27ff:fee8:6074/64 (link)
           Routes: 169.254.0.0/16 metric 1000 (boot, link)
                   192.168.20.0/24 from 192.168.20.206 metric 400 (link)
                   fe80::/64 metric 256

Everything works fine—the VLAN is functioning as it should.

Perhaps this isn't a problem, but I'd like to understand the reason for the warning messages.

I tried removing the renderer: the warning messages remain.

nmcli -t -f DEVICE,NAME,UUID,FILENAME,TYPE,AUTOCONNECT con show

enp0s3:netplan-enp0s3:1eef7e45-3b9d-3043-bee3-fc5925c90273:/run/NetworkManager/system-connections/netplan-enp0s3.nmconnection:802-3-ethernet:yes

vlan201:netplan-vlan201:ef9b06f4-4d33-3dfd-981d-e775699c3fe2:/run/NetworkManager/system-connections/netplan-vlan201.nmconnection:vlan:yes

Wired connection 1:1a70dcf0-f7ad-3231-ae76-375134ed638e:/run/NetworkManager/system-connections/Wired connection 1.nmconnection:802-3-ethernet:yes
All my Dell Optiplexes have stuttering, poor performance after update https://askubuntu.com/questions/1565879/all-my-dell-optiplexes-have-stuttering-poor-performance-after-update

I'm not sure what happened, but I am running 4 Dell Optiplex machines and they all have the same problems going back several weeks. General slowness, choppyness, high CPU, slow load times on web pages and so on. The telltale sign is choppy mouse that freezes momentarily when a tooltip pops over the GUI or when the machine is processing.

All machines are from the Dell Optiplex series. They all have integrated, Intel video cards. They're all running 24.04. I've tried rolling back the kernel, switching from Wayland to Xorg, and disabling Gnome extensions. I have not read of others having this specific problem but it can't be a coincidence if it happened to all my machines at the same time. Any ideas how to fix this?

Output of lshw - class display:

  *-display                 
       description: VGA compatible controller
       product: HD Graphics 530
       vendor: Intel Corporation
       physical id: 2
       bus info: pci@0000:00:02.0
       logical name: /dev/fb0
       version: 06
       width: 64 bits
       clock: 33MHz
       capabilities: pciexpress msi pm vga_controller bus_master cap_list rom fb
       configuration: depth=32 driver=i915 latency=0 mode=1920x1080 resolution=1920,1080 visual=truecolor xres=1920 yres=1080
       resources: irq:142 memory:ee000000-eeffffff memory:d0000000-dfffffff ioport:f000(size=64) memory:c0000-dffff

inxi -Gx:

Graphics:
  Device-1: Intel HD Graphics 530 vendor: Dell driver: i915 v: kernel
    arch: Gen-9 bus-ID: 00:02.0
  Display: server: X.Org v: 23.2.6 with: Xwayland v: 23.2.6 driver: X:
    loaded: modesetting unloaded: fbdev,vesa dri: iris gpu: i915 resolution:
    1: 1920x1080~60Hz 2: 1080x1920~60Hz
  API: EGL v: 1.5 drivers: iris,swrast platforms:
    active: gbm,x11,surfaceless,device inactive: wayland
  API: OpenGL v: 4.6 compat-v: 4.5 vendor: intel mesa
    v: 25.2.8-0ubuntu0.24.04.1 glx-v: 1.4 direct-render: yes renderer: Mesa
    Intel HD Graphics 530 (SKL GT2)

data recovery software [closed] https://askubuntu.com/questions/1565874/data-recovery-software

Can anyone recommend some good disk data recovery software for Linux? I have a 4 Tb disk that was my primary Ubuntu 22.04 drive about 3/4 full that has a damaged GRUB and wouldn't boot. I spent about 2 weeks trying every repair command line strategy Google could come up with without any success. As a last resort I re-installed Grub from the installation USB. Now it boots but doesn't access any of the 257,410 items that 'properties' describes as unavailable. I presume that means I have overwritten some or all of my root directory. I have a new installation of Ubuntu 24.04 on a different computer with a larger drive so I have a safe place to put any recovered files. All the recovery software that Google comes up with seems to be for Mac and Windows and runs on Mac or Windows. I have 5 different flavors of Linux but no Mac or Windows. Any suggestions would be welcome.

User68187 asked what flavors of Linux. Ubuntu22.04 and 24.04, Mint 22, and LMDE7; all in desktop PC's. LinuxCNC (Debian 14) and BeagleBone black (Debian 12.13),in two dedicated non-PC machine controllers.

How to robustly connect to Android phone with KDEConnect/GSConnect when travelling between different networks, just like Apple ecosystem? https://askubuntu.com/questions/1565782/how-to-robustly-connect-to-android-phone-with-kdeconnect-gsconnect-when-travelli

I use KDE Connect between my phone and laptop on my University WiFi. Very often, the IP address changes and the connection stops working. I have to manually find the IP of the computer with the command ip address and put it in my phone and connect manually. The same thing happens when I connect to a different network.

Is there any way to automate the connection process? AFAIK know Apple's computers have some robust connection procedure with iOS devices.

I want to be able to do this for multiple computers with the same phone.

Thinkpad Lenovo P40 Yoga not turning off after shutdown https://askubuntu.com/questions/1565471/thinkpad-lenovo-p40-yoga-not-turning-off-after-shutdown

I have my computer with the following settings:

UEFI

Sleep set to S2Idle (if it's on "deep" it never wakes up from sleep)

It sleeps fine, but it shuts down incompletely: the screen is off, yet they keyboard still operates and the power indicator is still on. What went wrong?

I'll have to stop using ubuntu if this isn't fixed soon. There's no way forced shutdowns every day is good for the computer.

How to disable HDMI output sinks in Pipewire? https://askubuntu.com/questions/1557133/how-to-disable-hdmi-output-sinks-in-pipewire

I want to do that for two reasons:

Firstly, in the workplace setting I never need or indeed tolerate HDMI output to broadcast my sounds at large. Secondly, there seems to be a bug in Ubuntu where when I plug in headphones, the system correctly re-routes sound from HDMI to laptop, but towards speaker not headphone - still broadcasting at large; I hope disabling HDMI will get rid of that. So I need to disable specific sinks instead, because of integrated chipset.

It looks like not only Pipewire has new bugs Pulseaudio didn't, but it also has no GUI or even command-line tuning (wireplumber exists but has laughable cmdline and no GUI), instead user is expected to write json files to their dot dirs to configure. I would prefer a console or GUI tool, but JSON writing recipe is not off limits.

I've reviewed existing popular answers:

  • Disabling port switch looks wrong because I still want switching between headphones and speakers, just never HDMI;
  • Blacklisting snd_hda_codec_hdmi does not work - upon reboot the module is still loaded and HDMI sinks present; even if it worked, I believe it would disable the entirety of Meteor Lake controller, including speaker/headphone.
  • I am using Meteor Lake super integrated chipset, meaning there's not two separate audio controllers but a single one - so there is no option to disable separate HDMI controller entirely: pavucontrol controllers
Using WPS office after upgrade to 24.04 creates ghost icons https://askubuntu.com/questions/1532214/using-wps-office-after-upgrade-to-24-04-creates-ghost-icons

After the upgrade I have noticed that dragging a file to WPS office window in order to open it leaves behind a ghost icon stuck on the screen above all windows:

Ghost icon:

Ghost icon

Using nautilus -q solves the problem, but it is generally annoying and I have no clue how to debug this behavior.

Wifi card rtw89 8851BE not detected by Ubuntu 22.04.4 LTS Jammy Jellyfish https://askubuntu.com/questions/1526371/wifi-card-rtw89-8851be-not-detected-by-ubuntu-22-04-4-lts-jammy-jellyfish

##Please see output at this link https://termbin.com/nru6.

I have looked at https://github.com/lwfinger/rtw89 and tried it but it doesn't work. It also says this in the description.

"This code will build on any kernel 6.10 and newer as long as the distro has not modified any of the kernel APIs. IF YOU RUN UBUNTU, YOU CAN BE ASSURED THAT THE APIs HAVE CHANGED. NO, I WILL NOT MODIFY THE SOURCE FOR YOU. YOU ARE ON YOUR OWN!!!!!"

Any help will be appreciated. Thanks

Ubuntu is not opening after removing Windows from laptop https://askubuntu.com/questions/1447232/ubuntu-is-not-opening-after-removing-windows-from-laptop

Ubuntu is not opening after removing Windows from the laptop.

I cannot see grub and a black screen, and the only thing on this screen is: Reset System. Please help me with this.

Showing total CPU usage by using htop https://askubuntu.com/questions/1321793/showing-total-cpu-usage-by-using-htop

Online I found the following figure where you can see "CPU" as first row, and it should represent the total amount of the used CPU.

screenshot

Amongst the options of the htop I run on my PC there isn't the above CPU option. Where can I find it?

screenshot

please append a correct root= ... end Kernel panic - not syncing: VFS: Unable to mount rootfs on unknown block(0,0) [closed] https://askubuntu.com/questions/1301444/please-append-a-correct-root-end-kernel-panic-not-syncing-vfs-unable-to

Boot menu:

enter image description here

Boot error: (end Kernel panic - not syncing: VFS: Unable to mount rootfs on unknown block(0,0)):

6
[    1.630799] Please append a correct "root=" boot option; here are the availab
le partitions:
[    1.630905] Kernel panic - not syncing: VFS: Unable to mount root fs on unkno
wn-block(0,0)
[    1.631012] CPU: 1 PID: 1 Comm: swapper/0 Not tainted 5.4.0-42-generic #46~18
.04.1-Ubuntu
[    1.631115] Hardware name: Acer                      A0532h          /A0532h
, BIOS V1.21 03/17/2010
[    1.631221] Call Trace:
[    1.631294]  dump_stack+0x6d/0x95
[    1.631362]  panic+0xfe/0x2e4
[    1.631429]  mount_block_root+0x1f4/0x2db
[    1.631500]  ? set_debug_rodata+0x17/0x17
[    1.631567]  mount_root+0x38/0x3a
[    1.631633]  prepare_namespace+0x139/0x18e
[    1.631700]  kernel_init_freeable+0x245/0x26d
[    1.631773]  ? rest_init+0xb0/0xb0
[    1.631839]  kernel_init+0xe/0x110
[    1.631905]  ret_from_fork+0x1f/0x40
[    1.632000] Kernel Offset: 0x19400000 from 0xffffffff81000000 (relocation ran
ge: 0xffffffff80000000-0xffffffffbfffffff)
[    1.632117] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs
on unknown-block(0,0) ]---

I was trying to update and I got to this. I'm not sure what to do.

Ubuntu 20.04 cannot reach resolution 21:9 with an ultrawide monitor https://askubuntu.com/questions/1250491/ubuntu-20-04-cannot-reach-resolution-219-with-an-ultrawide-monitor

I've just bought an LG 25UM58 ultrawide monitor and set it to work with Windows (dual booting with Ubuntu 20.04). However, in Ubuntu, as I tried to add mode using the following process:

$ cvt 2560 1080 50
# 2560x1080 49.95 Hz (CVT) hsync: 55.65 kHz; pclk: 188.75 MHz
Modeline "2560x1080_50.00"  188.75  2560 2712 2976 3392  1080 1083 1093 1114 -hsync +vsync
$ xrandr --newmode "2560x1080_50.00"  188.75  2560 2712 2976 3392  1080 1083 1093 1114 -hsync +vsync
$ xrandr --addmode DP-0 2560x1080_50.00
X Error of failed request:  BadMatch (invalid parameter attributes)
  Major opcode of failed request:  140 (RANDR)
  Minor opcode of failed request:  18 (RRAddOutputMode)
  Serial number of failed request:  37
  Current serial number in output stream:  38

My GPU is Nvidia Quadro K420 with 1 DP (ultrawide monitor) and 1 DVI (normal monitor). I have tried different ways (even using the noveau driver which leads to messed up resolution for DVI screen and DP screen became undetected) but the error persists.

UPDATED: Per codlord's suggestion, this is the result when I ran lshw -c video:

  *-display                 
       description: VGA compatible controller
       product: GK107GL [Quadro K420]
       vendor: NVIDIA Corporation
       physical id: 0
       bus info: pci@0000:01:00.0
       version: a1
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress vga_controller bus_master cap_list rom
       configuration: driver=nvidia latency=0
       resources: irq:128 memory:de000000-deffffff memory:c0000000-cfffffff memory:d0000000-d1ffffff ioport:e000(size=128) memory:c0000-dffff

Also, the result of xrandr:

Screen 0: minimum 8 x 8, current 3840 x 1162, maximum 16384 x 16384
DVI-I-0 connected 1920x1080+1920+82 (normal left inverted right x axis y axis) 598mm x 336mm
   1920x1080     60.00*+
   1680x1050     59.95  
   1600x900      60.00  
   1440x900      59.89  
   1280x1024     75.02    60.02  
   1280x800      59.81  
   1280x720      60.00  
   1152x864      75.00  
   1024x768      75.03    70.07    60.00  
   800x600       75.00    72.19    60.32    56.25  
   640x480       75.00    72.81    59.94  
DVI-I-1 disconnected (normal left inverted right x axis y axis)
DP-0 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 673mm x 284mm
   1920x1080     60.00*+  59.94    50.00    60.05    60.00    50.04  
   1680x1050     59.95  
   1600x900      60.00  
   1280x1024     75.02    60.02  
   1280x720      60.00    59.94    50.00  
   1152x864      75.00  
   1024x768      75.03    60.00  
   800x600       75.00    60.32  
   720x576       50.00  
   720x480       59.94  
   640x480       75.00    59.94    59.93  
DP-1 disconnected (normal left inverted right x axis y axis)
  2560x1080_60.00 (0x31c) 230.000MHz -HSync +VSync
        h: width  2560 start 2720 end 2992 total 3424 skew    0 clock  67.17KHz
        v: height 1080 start 1083 end 1093 total 1120           clock  59.98Hz
  2560x1080_50.00 (0x326) 188.750MHz -HSync +VSync
        h: width  2560 start 2712 end 2976 total 3392 skew    0 clock  55.65KHz
        v: height 1080 start 1083 end 1093 total 1114           clock  49.95Hz

Any help is much appreciated.

Run python script in virtual environment on startup https://askubuntu.com/questions/1227142/run-python-script-in-virtual-environment-on-startup

I would like to start a python script from a virtual environment on startup. I have searched the whole forum and other sources but have not been able to make it work.

The script should run at the scripts directory as working directory and also the terminal that started the script should be kept visible.

I have mainly used the "Startup Applications" and different configurations of .desktop files in ~/user/.config/autostart

I have tried with running shell files that work on their own as the below:

[Desktop Entry]
Type=Application
Terminal=true
Exec=/home/user/autostart.sh
Hidden=false
NoDisplay=false
X-GNOME-Autostart-enabled=True
Name=autostart_shell
Comment=

And the .sh-file

#!/usr/bin/env bash
sleep 10
cd /home/user/environment
bin/python3 main.py
bash

or something like this

#!/usr/bin/env bash
sleep 10
cd /home/user/environment
source bin/activate 
python3 main.py
bash

However the environment never gets activated.

I have also tried other .desktop-configurations as below without success

[Desktop Entry]
Type=Application
Path=/home/user/env/
Terminal=true
Exec=gnome-terminal --command 'bash -ec "sleep 10;cd /home/user/env;source bin/activate;python3 main.py;bash"'
Hidden=false
NoDisplay=false
X-GNOME-Autostart-enabled=true

I've spent most of the day on this without any success, does anyone have any ideas?

UPDATE Ok, after some more work the problem is related to activating the virtual environment.

I'm using the "Startup Applications" to run a shell script. I have tried both the gnome-terminal and xterm with the same result. Below is the command in the *.desktop jobs

gnome-terminal --command '/home/user/folder/startup.sh'

and

xterm /home/user/folder/startup.sh

The shell script looks as follows:

#!/bin/bash
# Give it some time to make sure everything is loaded
sleep 5

# Logging to make sure it is run
TIMESTAMP=`date "+%Y-%m-%d %H:%M:%S"`
echo "$TIMESTAMP - program was run " >> /home/user/folder/log.txt

# Switching working directory
cd /home/user/folder

# Alternative 1 
# Run python script with virtual envirnments python binary
/home/user/folder/bin/python3 /home/user/folder/main.py

# Alternative 2
# Activate environment and then run 
source /home/user/folder/bin/activate
python3 /home/user/folder/main.py

# Keep the terminal open
bash

On boot and login the terminal is launched but a python error is displayed about a missing module. If the shell script is run standalone it works without a problem, but launched from the "Startup applications" it is not.

This is nagging me so hard, is it really not possible to start a terminal in a python virtual environment?

Problem on LTSP thin client startup with Edubuntu 14.04 https://askubuntu.com/questions/886836/problem-on-ltsp-thin-client-startup-with-edubuntu-14-04

I am working on a project where we have built (for free of course) some computing labs on middle-high schools by the use of some old computers running Edubuntu via LTSP software framework. The LTSP clients are thin clients.

Everything worked fine until we upgraded our server from Edubuntu 12.04 to 14.04. Then some thin client stopped working going on a sort of kernel panic during bootstrap. The strange thing is that a live of Edubuntu 14.04 booted via USB works fine on these clients. The problem involves just a subset of our computers, in particular the ones who share the same architecture(you can see the lshw next).

In particular, the error messages are the following:

[    10.735917]  [<c10bbe19>] ? tick_program_event+0x29/0x30
[    10.735970]  [<c166a1e0>] ? __do_page_fault+0x520/0x520
[    10.736005]  [<c166a1ed>] do_page_fault+0xd/0x10
[    10.736005]  [<c16671f3>] error_code+0x67/0x6c
[    10.736005]  [<c10900d8>] ? load_balance+0x658/0x7a0
[    10.736005]  [<c166517d>] ? __mutex_lock_slowpath+0xed/0x171
[    10.736005]  [<c16646cc>] mutex_lock+0x1c/0x28
[    10.736005]  [<f88a3fc2>] radeon_hotplug_work_func+0x22/0x70 [radeon]
[    10.736005]  [<c1070aca>] process_one_work+0x11a/0x3c0
[    10.736005]  [<c106ea45>] ? start_worker+0x25/0x30
[    10.736005]  [<c107121d>] ? manage_workers.isra.28+0x1ad/0x270
[    10.736005]  [<c1071759>] worker_thread+0xf9/0x380
[    10.736005]  [<c1071660>] ? rescuer_thread+0x380/0x380
[    10.736005]  [<c1076fdb>] kthread+0x9b/0xb0
[    10.736005]  [<c166dbb7>] ret_from_kernel_thread+0x1b/0x28
[    10.736005]  [<c1076f40>] ? kthread_create_on_node+0x140/0x140
[    10.736005] Code: 8d 74 26 00 64 a1 54 f0 a9 c1 8b 80 98 02 00 00 5d 8b 40 e4
c1 e8 02 83 e0 01 c3 90 55 89 e5 3e 8d 74 26 00 8b 80 98 02 00 00 5d <8b> 40 ec
c3 8d b6 00 00 00 00 8d bc 27 00 00 00 00 55 89 e5 83
[    10.736005] EIP: [<c107757f>] kthread_data+0xf/0x20 SS:ESP 0068:f4623c80
[    10.736005] CR2: 00000000ffffffec
[    10.736005] ---[ end trace ff76155728d9b4ea ]---
[    10.736005] Fixing recursive fault but reboot is needed!
[    10.736005]  [<c10bbe19>] ? tick_program_event+0x29/0x30
[    10.736005]  [<c166a1e0>] ? __do_page_fault+0x520/0x520
[    10.736005]  [<c166aled>] do_page_fault+0xd/0x10
[    10.736005]  [<c16671f3>] error_code+0x67/0x6c
[    10.736005]  [<c10900d8>] ? load_balance+0x658/0x7a0
[    10.736005]  [<c166517d>] ? mutex_lock_slowpath+0xed/0x171
[    10.736005]  [<c16646cc>] mutex_lock+0x1c/0x28
[    10.736005]  [<f88a3fc2>] radeon_hotplug_work_func+0x22/0x70 [radeon]
[    10.736005]  [<c1070aca>] process_one_work+0x11a/0x3c0
[    10.736005]  [<c106ea45>] ? start_worker+0x25/0x30
[    10.736005]  [<c107121d>] ? manage_workers.isra.28+0x1ad/0x270
[    10.736005]  [<c1071759>] worker_thread+0xf9/0x380
[    10.736005]  [<c1071660>] ? rescuer_thread+0x380/0x380
[    10.736005]  [<c1076fdb>] kthread+0x9b/0xb0
[    10.736005]  [<c166dbb7>] ret_from_kernel_thread+0x1b/0x28
[    10.736005]  [<c1076f40>] ? kthread_create_on_node+0x140/0x140
[    10.736005] ---[ end trace ff76155728d9b4eb ]---
[    10.736005] perf samples too long (59717 > 2500), lowering kernel.perf_event
max_sample_rate to 50000
[    10.736005] INFO: NMI handler (perf_event_nmi_handler) took too long to run:
7.698 msecs
[    10.736005] perf samples too long (59272 > 5000), lowering kernel.perf_event
max_sample_rate to 25000

Does anyone have some tips or had the same problem? Tell me if you need other information about the problem.

Fix XPad Driver https://askubuntu.com/questions/502782/fix-xpad-driver

I followed the first answer here: How do I get an XBOX 360 controller working?, and ended up screwing with my XPad drivers. How can I reverse all of the commands and restore my XPad Driver?

I used these commands:

sudo apt-get install --install-recommends jstest* joystick xboxdrv
echo "blacklist xpad" | sudo tee -a /etc/modprobe.d/blacklist.conf
sudo rmmod xpad  # unload module if already loaded
xboxdrv --silent
jstest-gtk

Then I edited /etc/init/xboxdrv.conf and added

start on filesystem
exec xboxdrv -D
expect fork
bindfs in fstab https://askubuntu.com/questions/493195/bindfs-in-fstab

I am struggling to get this to work properly.

This works in terminal

sudo bindfs -u dave /media/dave/Documentary2Lin/RAIDMain/Documentary2 ~/shares/Documentary2

How do I get this to work in fstab?

I've tried

/media/dave/Documentary2Lin/RAIDMain/Documentary2 ~/shares/Documentary2 fuse.bindfs force-user=dave perms=a=rX 0 0

It gives an error in fstab

How can a script check if it's being run as root? https://askubuntu.com/questions/15853/how-can-a-script-check-if-its-being-run-as-root

I'm writing a simple bash script, but I need it to check whether it's being run as root or not. I know there's probably a very simple way to do that, but I have no idea how.

Just to be clear:
What's a simple way to write a script foo.sh, so that the command ./foo.sh outputs 0, and the command sudo ./foo.sh outputs 1?