trying to install ubuntu 26.4 and apparently something is stuck https://askubuntu.com/questions/1567495/trying-to-install-ubuntu-26-4-and-apparently-something-is-stuck

The spinning wheel above the Ubuntu logo has been spinning for hours. So my question is what do to drop that screen so that I can see what's going on behind it?

How to run a .bat file? https://askubuntu.com/questions/1567493/how-to-run-a-bat-file

I'm on Ubuntu 24.04 and I have the 9.something version of Wine installed. I have a few games which require running a .bat file (since it wasn't made for Linux) in order to work. When I try to right-click -> Open with wine installer, nothing happens. Then I tried this:

~$ wine cmd.exe /c /home/me/somewhere/wherethefileis/Start.bat

I got this result:

007c:err:ntoskrnl:ZwLoadDriver failed to create driver L"\\Registry\\Machine\\System\\CurrentControlSet\\Services\\winebth": c0000135
Can't recognize '/home/me/somewhere/wherethefileis/Start.bat' as 
an internal or external command, or batch script.

What is the problem and how can I get this to work?

I also tried to make a .sh copy of the file (with #!/bin/bash instead of @echo off), but the terminal tells me command not found for every line.

Computer is responding slowly since the recent upgrade https://askubuntu.com/questions/1567492/computer-is-responding-slowly-since-the-recent-upgrade

I'm running Ubuntu Studio 26.04, and have had a problem with the keyboard and mouse responding very slowly. Also when playing video on Firefox the picture is very jerky and appears to be running at a very low frame rate, 2 or 3 fps.

I think the hardware is OK as I can run Firefox from a live USB stick, and everything runs as it should.

While I was running the live distro I checked the filesystem using fsck -f /dev/sda5. It found a couple of errors with an inode (something about a wide tree) which I fixed. When I rebooted into Ubuntu it was just as slow.

I haven't seen any similar faults reported. Where should I start looking?

Automatically swtiched from interim release to LTS https://askubuntu.com/questions/1567490/automatically-swtiched-from-interim-release-to-lts

I have installed Ubuntu 23.10, not LTS, but recently when I updated, I see that I have the LTS version installed. Was this release upgrade done on purpose by Ubuntu? What is the deal with this?

trying to set up multiple IP on a bond , getting a deprecation message https://askubuntu.com/questions/1567489/trying-to-set-up-multiple-ip-on-a-bond-getting-a-deprecation-message

I have a netplan below with a bond and 2 IP addresses I was looking on how to handle the default route and the route for the real routable

network:
  version: 2
  renderer: networkd
  ethernets:
    eno12399np0:
      dhcp4: no
    eno12409np1:
      dhcp4: no
    enp160s0f0np0:
      dhcp4: no
    enp160s0f1np1:
      dhcp4: no
  bonds:
    bond0:
      interfaces: [eno12399np0, eno12409np1, enp160s0f0np0, enp160s0f1np1]
      addresses:
        - 10.221.163.75/24
        - 142.165.6.7/26
      gateway4: 142.165.6.1
        #      gateway4: 10.221.163.1
      nameservers:
              addresses: [8.8.8.8,142.165.21.5]
                # routes:
                #- to: "default"
                #via: 10.221.163.1
      parameters:
        mode: 802.3ad  # Or 'active-backup'
        mii-monitor-interval: 100

  vlans:
    vlan.163:
        id: 163
        link: bond0
        addresses: [10.221.163.75/24]
        nameservers:
              addresses: [142.165.21.5, 8.8.8.8]
        routes:
        - to: "default"
          via: 10.221.163.1
          #      parameters:
          #mode: 802.3ad
          #mii-monitor-interval: 100

when I apply it I get deprecation warnings

custadmin@gpurafay-1:~$ sudo netplan apply

** (generate:3966219): WARNING **: 16:12:25.535: `gateway4` has been deprecated, use default routes instead.
See the 'Default routes' section of the documentation for more details.

** (generate:3966219): WARNING **: 16:12:25.535: Problem encountered while validating default route consistency.Please set up multiple routing tables and use `routing-policy` instead.
Error: Conflicting default route declarations for IPv4 (table: main, metric: default), first declared in bond0 but also in vlan.163

** (process:3966217): WARNING **: 16:12:26.023: `gateway4` has been deprecated, use default routes instead.
See the 'Default routes' section of the documentation for more details.

** (process:3966217): WARNING **: 16:12:26.023: Problem encountered while validating default route consistency.Please set up multiple routing tables and use `routing-policy` instead.
Error: Conflicting default route declarations for IPv4 (table: main, metric: default), first declared in bond0 but also in vlan.163

** (process:3966217): WARNING **: 16:12:26.635: `gateway4` has been deprecated, use default routes instead.
See the 'Default routes' section of the documentation for more details.

** (process:3966217): WARNING **: 16:12:26.635: Problem encountered while validating default route consistency.Please set up multiple routing tables and use `routing-policy` instead.
Error: Conflicting default route declarations for IPv4 (table: main, metric: default), first declared in bond0 but also in vlan.163

googling around I can't see how to properly enter routes in UBUNTU 24.04

here is the more complicated routing and vlaning

  vlans:
    vlan.163:
        id: 163
        link: bond0
        addresses: [10.221.163.75/24]
        nameservers:
              addresses: [142.165.21.5, 8.8.8.8]
        routes:
        - to: "default"
          via: 10.221.163.1

    vlan.209:
        id: 209
        link: bond0
        addresses: [142.165.6.7/25]
        nameservers:
              addresses: [142.165.21.5, 8.8.8.8]
        routes:
        - to: 142.165.6.0/25
          via: 142.165.6.1
Trial of Lubuntu running from USB stick but MacBook wireless is not working https://askubuntu.com/questions/1567486/trial-of-lubuntu-running-from-usb-stick-but-macbook-wireless-is-not-working

I have found that the correct wireless driver for my MacBook is broadcom-sta-dkms. I followed advice about installing it, but nothing had changed after rebooting. I suspect this is because I'm booting from a USB as 'Try Lubuntu' rather than running an installed version. Is it possible to get the driver to load after/during booting from a USB stick? MacBook Air does not have an Ethernet port, but I managed to run via a USB tether to my phone and the installation of the correct driver seems to have succeeded.

Pro issue with LTS version https://askubuntu.com/questions/1567484/pro-issue-with-lts-version

I believe this is an issue. My 26.04 LTS says it not available for this Pro LTS version.

enter image description here

How to set up windows to have fixed positions in GNOME/Wayland? https://askubuntu.com/questions/1567483/how-to-set-up-windows-to-have-fixed-positions-in-gnome-wayland

There are similar questions (e.g. this one), but solutions for Wayland will be different than for X11, for example because in Wayland one app cannot modify another app's window geometry.

Here is what I would like to achieve:

  • open a file in a terminal with nvim (or another text editor)
  • place it on the given position on the screen with the given size.
  • cherry on top: always on the same workspace

Always the same for the given terminal + file combination. How do you do that? Can it be done?

(rationale: I always have two files with a kind of general log / todo opened on one of the workspaces)

One solution that I came up with was to have a single full size terminal and then do the "window management" from within nvim. But it is uglier, I would prefer two separate terminals.

Invalid autoinstall file https://askubuntu.com/questions/1567482/invalid-autoinstall-file

I am trying to install Ubuntu 26.04 Desktop using an autoinstall file (autoinstall.yaml). I boot the installer from a Ventoy SSD Drive. Ventoy SSD > Laptop NVMe

I started with a working autoinstall file that was generated during a successful installation and stored under /var/log/installer/. (I got the idea for this approach from the following Ask Ubuntu answer:Ubuntu 20.04 autoinstallation LUKS)

I am now trying to make this file more generic so that I can reuse it on different laptops. This worked fine so far, but I am now having trouble with the storage section.

This storage configuration works:

storage:
  config:
    - transport: pcie
      preserve: true
      id: nvme-controller-nvme0
      type: nvme_controller
    - ptable: gpt
      nvme_controller: nvme-controller-nvme0
      path: /dev/nvme0n1
      wipe: superblock-recursive
      preserve: false
      name: ''
      grub_device: false
      id: disk-nvme0n1
      type: disk
    - device: disk-nvme0n1
      size: 1127219200
      wipe: superblock
      flag: boot
      number: 1
      preserve: false
      grub_device: true
      offset: 1048576
      path: /dev/nvme0n1p1
      id: partition-0
      type: partition
    - fstype: fat32
      volume: partition-0
      preserve: false
      id: format-0
      type: format
    - device: disk-nvme0n1
      size: 510980521984
      wipe: superblock
      number: 2
      preserve: false
      offset: 1128267776
      path: /dev/nvme0n1p2
      id: partition-1
      type: partition
    - fstype: ext4
      volume: partition-1
      preserve: false
      id: format-1
      type: format
    - path: /
      device: format-1
      id: mount-1
      type: mount
    - path: /boot/efi
      device: format-0
      id: mount-0
      type: mount

However, this simplified storage configuration does not work:

storage:
  layout:
    name: lvm
    sizing-policy: all
    password: "test"
    match:
      size: smallest

The installer UI only shows that the autoinstall file is invalid, but it does not give me a detailed reason. UI massage

My questions are:

  1. Is there a log file on the target machine where I can see why the autoinstall file is considered invalid?
  2. Is there something wrong with my storage.layout syntax?
  3. What would be the recommended way to create a generic storage configuration for laptops where I want to use LVM with full-disk encryption?

Any hints would be appreciated.

Keyboard and mouse stops working after awakening my computer https://askubuntu.com/questions/1567479/keyboard-and-mouse-stops-working-after-awakening-my-computer

Lately my desktop computer has had issues with regards to the keyboard and mouse not working when awakening my computer from its sleep forcing me to disconnect the keyboard and mouse usb in order for it to work.

This doesn't always happen to be the case, but its happening too frequently that I need to address it.

An odd glitch, but surely there's a recommendation on what to do here. Your thoughts?

How to use the Raspicam on a Raspberry Pi 4B with Ubuntu 24 Server https://askubuntu.com/questions/1567475/how-to-use-the-raspicam-on-a-raspberry-pi-4b-with-ubuntu-24-server

enter image description here

I'm encountering difficulties running the Raspicam on Ubuntu 24.04.4 LTS Server

I got the raspicam working by compiling libcamera from source, then using MJPG webserver streaming. latency is good at less than 150ms but is CPU heavy. it's 350mA idle, and 700mA when streaming.. So ?m sure the pipeline can work.

I ought to be using the hardware h264 encoder and stream h264

I attempted to do it with OpenCV. My plan is to use the V4L2 linux driver without libcamera, and open the media sources with opencv. Get a stream from /dev/video0 feed it to the transcoder /dev/video10 take the frames and send the stream this way.

(.venv) sona@rpi4-orso-sdbh:~/HowTo-Ubuntu24S-Raspicam-Webserver-Streaming$ v4l2-ctl --list-devices
bcm2835-codec-decode (platform:bcm2835-codec):
        /dev/video10
        /dev/video11
        /dev/video12
        /dev/video18
        /dev/video31
        /dev/media3

bcm2835-isp (platform:bcm2835-isp):
        /dev/video13
        /dev/video14
        /dev/video15
        /dev/video16
        /dev/video20
        /dev/video21
        /dev/video22
        /dev/video23
        /dev/media1
        /dev/media4

unicam (platform:fe801000.csi):
        /dev/video0
        /dev/media2

rpivid (platform:rpivid):
        /dev/video19
        /dev/media0

OpenCV does open the camera, but I only get black frames, and I don't understand why...

"""
uv pip install opencv-python-headless
python demo-opencv-snap-still.py
"""

import subprocess
import cv2
import numpy as np

DEVICE = "/dev/video0"
#DEVICE = "/dev/media0"
NUM_FRAMES = 10

print(f"\n=== Inspecting {DEVICE} ===\n")

# --- 1. Device info ---------------------------------------------------------
def print_device_info(dev):
    print("Device info:")
    try:
        out = subprocess.check_output(
            ["v4l2-ctl", "-d", dev, "--info"],
            stderr=subprocess.STDOUT
        ).decode()
        print(out)
    except Exception as e:
        print("  Could not read device info:", e)

# --- 2. Supported resolutions -----------------------------------------------
def print_resolutions(dev):
    print("Supported formats & resolutions:")
    try:
        out = subprocess.check_output(
            ["v4l2-ctl", "-d", dev, "--list-formats-ext"],
            stderr=subprocess.STDOUT
        ).decode()
        print(out)
    except Exception as e:
        print("  Could not list resolutions:", e)

# --- 3. OpenCV capture + brightness test ------------------------------------
def test_capture(dev):
    print(f"\nOpening {dev} with OpenCV...\n")
    cap = cv2.VideoCapture(dev)

    if not cap.isOpened():
        print("ERROR: OpenCV cannot open device")
        return

    # --- Show what OpenCV actually selected ---
    w = cap.get(cv2.CAP_PROP_FRAME_WIDTH)
    h = cap.get(cv2.CAP_PROP_FRAME_HEIGHT)
    fourcc = int(cap.get(cv2.CAP_PROP_FOURCC))
    fmt = "".join([chr((fourcc >> 8*i) & 0xFF) for i in range(4)])

    print(f"OpenCV selected resolution: {int(w)}x{int(h)}")
    print(f"OpenCV selected pixel format: {fmt}")

    brightness_values = []
    last_frame = None

    for i in range(NUM_FRAMES):
        ret, frame = cap.read()
        if not ret:
            print(f"Frame {i}: FAILED")
            continue

        print("Frame shape:", frame.shape, "dtype:", frame.dtype)
        print("First 32 bytes:", frame.flatten()[:32])


        last_frame = frame

        gray = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY)
        brightness = float(np.mean(gray))
        brightness_values.append(brightness)

        print(f"Frame {i}: brightness={brightness:.2f}")

    cap.release()

    if brightness_values:
        avg = sum(brightness_values) / len(brightness_values)
        print(f"\nAverage brightness: {avg:.2f}")
    else:
        print("No valid frames captured.")

    if last_frame is not None:
        cv2.imwrite("test.jpg", last_frame)
        print("Saved test.jpg")


# --- Run all diagnostics ----------------------------------------------------
print_device_info(DEVICE)
print_resolutions(DEVICE)
test_capture(DEVICE)
(.venv) sona@rpi4-orso-sdl:~/HowTo-Ubuntu24S-Raspicam-Webserver-Streaming$ python demo-opencv-snap-still.py

=== Inspecting /dev/video0 ===

Device info:
Driver Info:
        Driver name      : unicam
        Card type        : unicam
        Bus info         : platform:fe801000.csi
        Driver version   : 6.8.12
        Capabilities     : 0xa5a00001
                Video Capture
                Metadata Capture
                I/O MC
                Read/Write
                Streaming
                Extended Pix Format
                Device Capabilities
        Device Caps      : 0x25200001
                Video Capture
                I/O MC
                Read/Write
                Streaming
                Extended Pix Format
Media Driver Info:
        Driver name      : unicam
        Model            : unicam
        Serial           : 
        Bus info         : platform:fe801000.csi
        Media version    : 6.8.12
        Hardware revision: 0x00000000 (0)
        Driver version   : 6.8.12
Interface Info:
        ID               : 0x03000005
        Type             : V4L Video
Entity Info:
        ID               : 0x00000003 (3)
        Name             : unicam-image
        Function         : V4L2 I/O
        Flags            : default
        Pad 0x01000004   : 0: Sink
          Link 0x02000007: from remote pad 0x1000002 of entity 'ov5647 10-0036' (Camera Sensor): Data, Enabled, Immutable

Supported formats & resolutions:
ioctl: VIDIOC_ENUM_FMT
        Type: Video Capture

        [0]: 'YUYV' (YUYV 4:2:2)
                Size: Stepwise 16x16 - 16376x16376 with step 1/1
        [1]: 'UYVY' (UYVY 4:2:2)
                Size: Stepwise 16x16 - 16376x16376 with step 1/1
        [2]: 'YVYU' (YVYU 4:2:2)
                Size: Stepwise 16x16 - 16376x16376 with step 1/1
        [3]: 'VYUY' (VYUY 4:2:2)
                Size: Stepwise 16x16 - 16376x16376 with step 1/1
        [4]: 'RGBP' (16-bit RGB 5-6-5)
                Size: Stepwise 16x16 - 16376x16376 with step 1/1
        [5]: 'RGBR' (16-bit RGB 5-6-5 BE)
                Size: Stepwise 16x16 - 16376x16376 with step 1/1
        [6]: 'RGBO' (16-bit A/XRGB 1-5-5-5)
                Size: Stepwise 16x16 - 16376x16376 with step 1/1
        [7]: 'RGBQ' (16-bit A/XRGB 1-5-5-5 BE)
                Size: Stepwise 16x16 - 16376x16376 with step 1/1
        [8]: 'RGB3' (24-bit RGB 8-8-8)
                Size: Stepwise 16x16 - 16376x16376 with step 1/1
        [9]: 'BGR3' (24-bit BGR 8-8-8)
                Size: Stepwise 16x16 - 16376x16376 with step 1/1
        [10]: 'RGB4' (32-bit A/XRGB 8-8-8-8)
                Size: Stepwise 16x16 - 16376x16376 with step 1/1
        [11]: 'BA81' (8-bit Bayer BGBG/GRGR)
                Size: Stepwise 16x16 - 16376x16376 with step 1/1
        [12]: 'GBRG' (8-bit Bayer GBGB/RGRG)
                Size: Stepwise 16x16 - 16376x16376 with step 1/1
        [13]: 'GRBG' (8-bit Bayer GRGR/BGBG)
                Size: Stepwise 16x16 - 16376x16376 with step 1/1
        [14]: 'RGGB' (8-bit Bayer RGRG/GBGB)
                Size: Stepwise 16x16 - 16376x16376 with step 1/1
        [15]: 'pBAA' (10-bit Bayer BGBG/GRGR Packed)
                Size: Stepwise 16x16 - 16376x16376 with step 1/1
        [16]: 'BG10' (10-bit Bayer BGBG/GRGR)
                Size: Stepwise 16x16 - 16376x16376 with step 1/1
        [17]: 'pGAA' (10-bit Bayer GBGB/RGRG Packed)
                Size: Stepwise 16x16 - 16376x16376 with step 1/1
        [18]: 'GB10' (10-bit Bayer GBGB/RGRG)
                Size: Stepwise 16x16 - 16376x16376 with step 1/1
        [19]: 'pgAA' (10-bit Bayer GRGR/BGBG Packed)
                Size: Stepwise 16x16 - 16376x16376 with step 1/1
        [20]: 'BA10' (10-bit Bayer GRGR/BGBG)
                Size: Stepwise 16x16 - 16376x16376 with step 1/1
        [21]: 'pRAA' (10-bit Bayer RGRG/GBGB Packed)
                Size: Stepwise 16x16 - 16376x16376 with step 1/1
        [22]: 'RG10' (10-bit Bayer RGRG/GBGB)
                Size: Stepwise 16x16 - 16376x16376 with step 1/1
        [23]: 'pBCC' (12-bit Bayer BGBG/GRGR Packed)
                Size: Stepwise 16x16 - 16376x16376 with step 1/1
        [24]: 'BG12' (12-bit Bayer BGBG/GRGR)
                Size: Stepwise 16x16 - 16376x16376 with step 1/1
        [25]: 'pGCC' (12-bit Bayer GBGB/RGRG Packed)
                Size: Stepwise 16x16 - 16376x16376 with step 1/1
        [26]: 'GB12' (12-bit Bayer GBGB/RGRG)
                Size: Stepwise 16x16 - 16376x16376 with step 1/1
        [27]: 'pgCC' (12-bit Bayer GRGR/BGBG Packed)
                Size: Stepwise 16x16 - 16376x16376 with step 1/1
        [28]: 'BA12' (12-bit Bayer GRGR/BGBG)
                Size: Stepwise 16x16 - 16376x16376 with step 1/1
        [29]: 'pRCC' (12-bit Bayer RGRG/GBGB Packed)
                Size: Stepwise 16x16 - 16376x16376 with step 1/1
        [30]: 'RG12' (12-bit Bayer RGRG/GBGB)
                Size: Stepwise 16x16 - 16376x16376 with step 1/1
        [31]: 'pBEE' (14-bit Bayer BGBG/GRGR Packed)
                Size: Stepwise 16x16 - 16376x16376 with step 1/1
        [32]: 'BG14' (14-bit Bayer BGBG/GRGR)
                Size: Stepwise 16x16 - 16376x16376 with step 1/1
        [33]: 'pGEE' (14-bit Bayer GBGB/RGRG Packed)
                Size: Stepwise 16x16 - 16376x16376 with step 1/1
        [34]: 'GB14' (14-bit Bayer GBGB/RGRG)
                Size: Stepwise 16x16 - 16376x16376 with step 1/1
        [35]: 'pgEE' (14-bit Bayer GRGR/BGBG Packed)
                Size: Stepwise 16x16 - 16376x16376 with step 1/1
        [36]: 'GR14' (14-bit Bayer GRGR/BGBG)
                Size: Stepwise 16x16 - 16376x16376 with step 1/1
        [37]: 'pREE' (14-bit Bayer RGRG/GBGB Packed)
                Size: Stepwise 16x16 - 16376x16376 with step 1/1
        [38]: 'RG14' (14-bit Bayer RGRG/GBGB)
                Size: Stepwise 16x16 - 16376x16376 with step 1/1
        [39]: 'BYR2' (16-bit Bayer BGBG/GRGR)
                Size: Stepwise 16x16 - 16376x16376 with step 1/1
        [40]: 'GB16' (16-bit Bayer GBGB/RGRG)
                Size: Stepwise 16x16 - 16376x16376 with step 1/1
        [41]: 'GR16' (16-bit Bayer GRGR/BGBG)
                Size: Stepwise 16x16 - 16376x16376 with step 1/1
        [42]: 'RG16' (16-bit Bayer RGRG/GBGB)
                Size: Stepwise 16x16 - 16376x16376 with step 1/1
        [43]: 'GREY' (8-bit Greyscale)
                Size: Stepwise 16x16 - 16376x16376 with step 1/1
        [44]: 'Y10P' (10-bit Greyscale (MIPI Packed))
                Size: Stepwise 16x16 - 16376x16376 with step 1/1
        [45]: 'Y10 ' (10-bit Greyscale)
                Size: Stepwise 16x16 - 16376x16376 with step 1/1
        [46]: 'Y12P' (12-bit Greyscale (MIPI Packed))
                Size: Stepwise 16x16 - 16376x16376 with step 1/1
        [47]: 'Y12 ' (12-bit Greyscale)
                Size: Stepwise 16x16 - 16376x16376 with step 1/1
        [48]: 'Y14P' (14-bit Greyscale (MIPI Packed))
                Size: Stepwise 16x16 - 16376x16376 with step 1/1
        [49]: 'Y14 ' (14-bit Greyscale)
                Size: Stepwise 16x16 - 16376x16376 with step 1/1
        [50]: 'Y16 ' (16-bit Greyscale)
                Size: Stepwise 16x16 - 16376x16376 with step 1/1


Opening /dev/video0 with OpenCV...

OpenCV selected resolution: 640x480
OpenCV selected pixel format: BGR3
Frame shape: (480, 640, 3) dtype: uint8
First 32 bytes: [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0]
Frame 0: brightness=0.00
Frame shape: (480, 640, 3) dtype: uint8
First 32 bytes: [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0]
Frame 1: brightness=0.00
Frame shape: (480, 640, 3) dtype: uint8
First 32 bytes: [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0]
Frame 2: brightness=0.00
Frame shape: (480, 640, 3) dtype: uint8
First 32 bytes: [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0]
Frame 3: brightness=0.00
Frame shape: (480, 640, 3) dtype: uint8
First 32 bytes: [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0]
Frame 4: brightness=0.00
Frame shape: (480, 640, 3) dtype: uint8
First 32 bytes: [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0]
Frame 5: brightness=0.00
Frame shape: (480, 640, 3) dtype: uint8
First 32 bytes: [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0]
Frame 6: brightness=0.00
Frame shape: (480, 640, 3) dtype: uint8
First 32 bytes: [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0]
Frame 7: brightness=0.00
Frame shape: (480, 640, 3) dtype: uint8
First 32 bytes: [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0]
Frame 8: brightness=0.00
Frame shape: (480, 640, 3) dtype: uint8
First 32 bytes: [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0]
Frame 9: brightness=0.00

Average brightness: 0.00
Saved test.jpg

I added some diagnostics, and it seems to be imx219 V4L2 but I only grab black, and I don't understand why.

Frame snapped by the libcamera webserver streaming based script to test that hardware works enter image description here

Frame snapped by the opencv based still script that is black. It seems to open the camera, but it just grabs black.

enter image description here

I'd like help understand what I'm doing wrong here.

Laptop does not shut down when powering off https://askubuntu.com/questions/1567474/laptop-does-not-shut-down-when-powering-off

My laptop does not completely shut down when powering off, both with poweroff/shutdown in terminal or clicking power off -> power off in the top right corner of the screen.

I have to force shut down by holding down the power button.

OS: Ubuntu 24.04.4 LTS

Model: Lenovo ThinkPad T460s

This issue might be related to the issue I'm having with the machine not waking up from suspend.

Production GUI recommendation for Ubuntu Server 24.04 – XRDP issues causing application downtime https://askubuntu.com/questions/1567472/production-gui-recommendation-for-ubuntu-server-24-04-xrdp-issues-causing-appl

I have an Ubuntu 24.04 server running on IBM Cloud. I need a GUI environment because server startup and the application management tasks require desktop access.

I installed:

XRDP
XFCE Desktop Environment

Initially, the setup works, but after some time I experience issues where:

The XRDP session becomes unresponsive or gets stuck. When I try to reconnect, the session disconnects immediately after login. To regain access, I have to restart XRDP or terminate the user session.

The major concern is that some application servers are started from the user session. When the XRDP session is terminated or restarted, those application servers also stop, causing downtime.

This server is intended for a production deployment, so I am looking for a stable and production-ready solution.

My questions are:

  • What GUI/remote desktop solution is recommended for Ubuntu 24.04 in a production environment?

  • Is XRDP + XFCE considered reliable for long-term production use?

  • Are there known stability issues with XRDP on Ubuntu 24.04?

  • How do administrators typically provide GUI access to production Ubuntu servers?

  • Is there a way to reconnect to a broken XRDP session without terminating the session?

  • What is the recommended approach to ensure application servers continue running even if the GUI session crashes or disconnects?

Laptop does not wake up from suspend https://askubuntu.com/questions/1567470/laptop-does-not-wake-up-from-suspend

My laptop does not wake up from suspend, both when closing the lid or when clicking power off -> suspend in the top right corner of the screen.

I'm aware that this has been asked a lot of times before here, but most of these threads are 10+ years old and the most common fix of editing grub didn't work for me.

I have tried adding acpi=force apm=power_off reboot=bios to /etc/default/grub and updating with sudo update-grub:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash intel_iommu=igfx_off acpi=force apm=power_off reboot=bios"

to no avail.

OS: Ubuntu 24.04.4 LTS Model: Lenovo ThinkPad T460s

The issue might be related to the machine not powering off correctly either

Evolution 3.56 - calendar import from EWS no longer works https://askubuntu.com/questions/1567468/evolution-3-56-calendar-import-from-ews-no-longer-works

This looks like a regression, but maybe something changed and I need to configure that differently, hence my question.

In recent releases of Evolution, I no longer can import and see calendars of other users. Our mail server is Exchange, and mail works without any issues, and so does my personal calendar. The way to see the calendars of other people used to be this:

  • File -> Subscribe to folder of another user
  • Find the user, select "Calendar" or "Free / Busy as calendar", hit OK
  • Presto, the calendar appears.

When I do it now, the calendar does not appear on the left hand side. If I do it again in a session, an error message appears: "Cannot add folder, folder already exists as "N., N. - Availability" or similar. I don't see anything changed in ~/.config/evolution, though. Calendar cannot be seen. Questions:

  • is this a regression / bug, or am I doing it incorrectly?
  • how can I debug the issue?

EDIT: I first noticed this issue on Ubuntu 24.04. A fresh installation of Ubuntu 26.04 with version 3.56 of Evolution did not resolve the issue.

Ubuntu 26.04 - window positions not remembered https://askubuntu.com/questions/1567465/ubuntu-26-04-window-positions-not-remembered

In Ubuntu 24.04 with GNOME / X11, the WM was pretty good at remembering window positions. After installing 26.04 with GNOME / Weyland, every time I connect to the second monitor the windows all group on the current dekstop. This is annoying to say the least, I have a carefully populated half a dozen of desktops and it really breaks my work. Windows jumping around monitors or desktops did happen sporadically in previous Ubuntu versions, but it appeared to be just buggy behavior, whereas now the behavior is utterly predictable: every time I connect to the external monitor, all windows land on the same desktop. It is a very different behavior from any problems I had on previous Ubuntu versions.

  • is this a known behavior of a) new GNOME or b) Weyland?
  • is this maybe a "feature" that can be changed with a setting somewhere (like the primary clipboard paste with third mouse button disabled by default in new GNOME)?
  • is it possible to repair the problem with a GNOME extension?

In short, can someone shed any light on the problem?

kernel not found on boot https://askubuntu.com/questions/1567456/kernel-not-found-on-boot

When I open my machine it boots to grub menu, I have to pick advanced, then there are two kernels, if I select the kernel I want, it boots to Ubuntu, all fine.

But I have to go through this sequence each time I wish to use my computer

The problem started when Ubuntu updated kernel 6.14.0 to 6.17.0.

6.17.0 did not recognize wifi, so I followed some internet suggestions to role back to 6.14.0. Role back works fine BUT it doesn't do so automatically, I have to pick the kernel at every boot.

I've checked grub.cfg, it has only 4 lines:

0 Ubuntu

1 Advanced options for Ubuntu

2 memtest86+

3 Memory test (memtest86+x64.efi, serial console)

My machine boots with UEFI

I've tried installing a new kernel with the Mainline Kernels app, installs them but they aren't used/seen

What should I do?

My OS is Ubuntu 24.04. Screen opens to error: prohibited by secure boot policy error: bad shim signature, I bypass this by going to Ubuntu Advanced, then pick my former kernel from a list of 2 kernels displayed.

How to kill a running snapd instance? [duplicate] https://askubuntu.com/questions/1567450/how-to-kill-a-running-snapd-instance

Edit:

My question is different from How to remove snap from Ubuntu? because I am asking how to kill the daemon snapd, not how to remove snap.

I have re-arranged rant/question to try to make this clearer.


Question

After eventually getting a terminal up, and running top, each time I kill snapd another one immediately takes it's place! It's a monster.

Should I have used a systemd command?
If so, which one?


Rant

Is there a campaign to have snap removed from Ubuntu?

If so, I'd like to join it, sign it, wear the tee shirt, and bang the ruddy drum!

It's a reasonable idea, but it's not production ready!

Yet again, I fire up my Virtualbox instance only to have it hang because snapd is hammering my processor and gobbling up all my RAM causing kswapd0 to also hammer my CPU.

How do I get the `usg` (Ubuntu Security Guide) tooling in Ubuntu 26.04? https://askubuntu.com/questions/1567430/how-do-i-get-the-usg-ubuntu-security-guide-tooling-in-ubuntu-26-04

I ran USG under earlier version of Ubuntu but it does not appear to be available on 26.04. Is there a replacement? I see there is a compliance section on the security center but there is a big splash screen that says it is only recommended for certain hardneing requirements and everything is greyed out.

When I try to print while using VPN, the system says "Printing", but nothing is happening https://askubuntu.com/questions/1567344/when-i-try-to-print-while-using-vpn-the-system-says-printing-but-nothing-is

On Ubuntu 24.04.4, with a Brother MFC-L2700DW printer and Proton VPN. I used to be able to print without any issues. Then I started having a problem where, when I initiate a print job, I get system messages every few minutes that say "Printing", but the printer is not doing anything.

Searching around online, I found the suggestion to use systemctl restart cups-browsed which did solve the problem once or twice (maybe with some restarting, I don't remember anymore that was a while ago).

But now I'm trying to print something and getting this "Printing" hang problem and I've tried the above command and restarting and nothing has helped. No idea what to try next. Thanks.

Update: I just tried a new thing which is turning off my Proton VPN. I do not remember exactly when I installed that vs. when this problem began, but maybe it was about the same time! So maybe restarting cups-browsed did nothing, but maybe restarting the computer helped because Proton doesn't come on automatically, so if I restarted and then went straight to printing, the VPN would have been off.

Yes, this is relevant. VPN off, I can print. VPN on, the printing hangs in the way I described above. No restart needed to get printing going again, just turn off the VPN, cancel the job that is hanging, and initiate a new print job and it works. I went back and forth several times.

I am leaving this question active because it would be awesome to be able to just print and not have to worry about thinking about is my VPN on or not. Added VPN to the title and tags.

Update: I reached out to Proton support and they said that I need to add the printer by ip address rather than hostname. I got the printer to print a network configuration page and it shows the ip address. I follow these steps to add the printer

  1. Settings
  2. Printers
  3. Click Add printer
  4. In the search box labeled "Enter a network address or search for a printer", I put the ip address of the printer
  5. More printers are found (but they are all the same printer, I just have the one). My choices of name are "JetDirect-Printer" "LPD-printer" and "MFC-L2700DW" (there are also two more "MFC-L2700DW" choices but they show up even without entering they ip address, so I don't think these are added by ip)
  6. I pick one.
  7. It prompts me to pick a driver. I pick the one that looks appropriate (has "MFC-L2700DW" in the name. there are two choices, the only difference is one says "Fax" in the description and the other doesn't. Both drivers have "driverless" in the description though which is odd.)

But now, I tried to print something to the "ip address printer" while having the VPN on. The printer was activated! And it started just spewing blank pages like a maniac. I pressed cancel on the printer, and tried some variations of the "printer name" and "driver" but the result is the same.

So the new question is: how do I add a printer by ip address on my setup? Particularly, it seems like the driver may be an issue? Thanks if you can help. (Meta question: should I create a whole new question?)

RTL8723de or RTL88x2B USB drivers for Ubuntu 26.04 LTS https://askubuntu.com/questions/1567309/rtl8723de-or-rtl88x2b-usb-drivers-for-ubuntu-26-04-lts

I am experiencing persistent issues with the Realtek RTL8723DE WiFi driver on Ubuntu 26.04 LTS. The main problems are that the wireless signal is very slow, and after suspending the laptop, the WiFi adapter stops working entirely—no networks are detected until a reboot.

I have tried installing multiple drivers, including different versions and community-supported alternatives, but none have resolved the issue. I also configured the system to prevent the WiFi adapter from being disabled during suspension, but this did not help.

Additionally, I downgraded to Ubuntu 22.04 LTS to test compatibility with an older kernel version, but the problem persisted. As a potential hardware solution, I researched replacing the internal WiFi card with an Intel model. However, based on available information, Intel cards are not compatible with my laptop model (HP 14-dq1003la).

As an alternative, I considered purchasing a USB WiFi adapter, specifically the TP-Link Archer T3U Nano (RTL88x2B USB). However, I found reports indicating that it may also have similar driver or compatibility issues on Linux systems.

What can I do in this situation?

Cannot enable Bluetooth anymore after upgrade to 26.04 https://askubuntu.com/questions/1567280/cannot-enable-bluetooth-anymore-after-upgrade-to-26-04

It might be due to the upgrade to Ubuntu 26.04 (from 25.10) or to a recent UEFI firmware update (0.1.63) on my Lenovo Thinkpad P14s, but I cannot activate Bluetooth anymore. It appears in the system menu as switched off, turning it on does not do anything.

Tried:

$ rfkill list
0: tpacpi_bluetooth_sw: Bluetooth
    Soft blocked: no
    Hard blocked: no
1: phy0: Wireless LAN
    Soft blocked: no
    Hard blocked: no
~$ sudo /etc/init.d/bluetooth restart
[sudo: authenticate] Wachtwoord:               
Restarting bluetooth (via systemctl): bluetooth.service.
~$ service bluetooth status
○ bluetooth.service - Bluetooth service
     Loaded: loaded (/usr/lib/systemd/system/bluetooth.service; enabled; preset>
     Active: inactive (dead)
       Docs: man:bluetoothd(8)

mei 29 02:00:36 thinkpad-p14s systemd[1]: bluetooth.service - Bluetooth service skipped, unmet condition check ConditionPathIsDirectory=/sys/class/bluetooth
mei 29 02:12:33 thinkpad-p14s systemd[1]: bluetooth.service - Bluetooth service skipped, unmet condition check ConditionPathIsDirectory=/sys/class/bluetooth

There is no /sys/class/bluetooth... Should there be?

sudo apt update
sudo apt install --reinstall bluez linux-firmware -y
sudo reboot

But no dice...

Also tried, as suggested in many other forum threads:

  • disabling LAN, WAN and Bluetooth in UEFI settings then rebooting and re-enabling them again

  • a factory reset of UEFI settings

  • disabling Secure Boot

Sadly, there is no option to boot into a kernel version pre 7 on Ubuntu 26.04 anymore...

Does anyone know what can be done to get Bluetooth back up and running again?

DMESG:

$ sudo dmesg | grep -i bluetooth
[    3.076099] thinkpad_acpi: rfkill switch tpacpi_bluetooth_sw: radio is unblocked
Problem with the CH341 driver in Ubuntu 26.04 https://askubuntu.com/questions/1567194/problem-with-the-ch341-driver-in-ubuntu-26-04

I recently upgraded my PI to 26.04 and I have an arduino with radio (MySensors.org) serial gateway that stopped receiving data though it worked ofr years before.

Hardware settings explanation :

  • Emitter radio NRF24L (arduino)
  • Receiver NRF24L (Arduino) plugged in USB to a PI

CH341 device may be concerned, though port is here

[    3.650112] usbcore: registered new interface driver usbserial_generic
[    3.650134] usbserial: USB Serial support registered for generic
[    3.654453] usbcore: registered new interface driver ftdi_sio
[    3.654492] usbserial: USB Serial support registered for FTDI USB Serial Device
[    3.654576] ftdi_sio 2-1:1.0: FTDI USB Serial Device converter detected
[    3.654630] usb 2-1: Detected FT232R
[    3.661753] usb 2-1: FTDI USB Serial Device converter now attached to ttyUSB0
...
[    4.823701] usbserial: USB Serial support registered for ch341-uart
[    4.823729] ch341 4-1:1.0: ch341-uart converter detected
[    4.836575] usb 4-1: ch341-uart converter now attached to ttyUSB0
lsusb:
Bus 004 Device 006: ID 1a86:7523 QinHeng Electronics CH340 serial converter
usb-serial-rules:
SUBSYSTEM=="tty", ATTRS{idVendor}=="1a86", ATTRS{idProduct}=="7523",SYMLINK+="ttyUSB23"
lsmod |grep ch341
ch341                  24576  1
usbserial              65536  6 ftdi_sio,ch341
 dmesg|grep ch341
[    3.617532] usbcore: registered new interface driver ch341
[    3.617583] usbserial: USB Serial support registered for ch341-uart
[    3.617633] ch341 4-1:1.0: ch341-uart converter detected
[    3.634225] usb 4-1: ch341-uart converter now attached to ttyUSB0
$ sudo ls -al /dev/ttyUSB0
crw-rw---- 1 root dialout 188, 0 May 27 16:27 /dev/ttyUSB0
$ sudo ls -al /dev/ttyUSB23
lrwxrwxrwx 1 root root 7 May 26 18:04 /dev/ttyUSB23 -> ttyUSB0
$ udevadm test $(udevadm info -q path -n /dev/ttyUSB0) 2>1 | grep creat
$ udevadm test $(udevadm info -q path -n /dev/ttyUSB23) 2>1 | grep creat

When I launch the device on the Intel ubuntu 24.04 or windows, it works fine as reporting all messages.

Monitor mode captures 0 packets on QCN9274(ath12k) with Ubuntu 22.04 https://askubuntu.com/questions/1567141/monitor-mode-captures-0-packets-on-qcn9274ath12k-with-ubuntu-22-04

I am currently using QCN9274(compex WLE7002E25) to test monitor mode, according to ‘iw phy’, it does support monitor mode. It appears I have successfully set it up, but I haven't been able to capture any data packages with tcpdump.

jack@jack-pc:~/Desktop$ iw dev
phy#1
    Interface mon12
        ifindex 5
        wdev 0x100000002
        addr 04:f0:21:c5:1b:99
        type monitor
    Interface wlan1
        ifindex 4
        wdev 0x100000001
        addr 04:f0:21:c5:1b:99
        type managed
        multicast TXQ:
            qsz-byt qsz-pkt flows   drops   marks   overlmt hashcoltx-bytes tx-packets
            0   0   0   0   0   0   0   00
phy#0
    Interface wlp1s0
        ifindex 3
        wdev 0x1
        addr 04:f0:21:c5:1b:98
        type managed
        multicast TXQ:
            qsz-byt qsz-pkt flows   drops   marks   overlmt hashcoltx-bytes tx-packets
            0   0   0   0   0   0   0   00

jack@jack-pc:~/Desktop$ sudo tcpdump -i mon12 -w ath12k.pcap
tcpdump: listening on mon12, link-type IEEE802_11_RADIO (802.11 plus radiotap header), snapshot length 262144 bytes
^C0 packets captured
0 packets received by filter
0 packets dropped by kernel

jack@jack-pc:~/Desktop$ uname -a
Linux jack-pc 6.18.7-061807-generic #202601231045 SMP PREEMPT_DYNAMIC Fri Jan 23 11:25:00 UTC 2026 x86_64 x86_64 x86_64 GNU/Linux

Does anyone know why?

I need bluetooth help setting up a keychron K2 HE on Ubuntu 24 https://askubuntu.com/questions/1560099/i-need-bluetooth-help-setting-up-a-keychron-k2-he-on-ubuntu-24

Edited* I recently purchased a nice quiet Keychron K2 HE keyboard because I am learning Linux/Ubuntu and spend a lot of time typing. I was told that the Keychron K2 HE was a good choice by a rep at my local tech store. I did specifically mention I was purchasing it for use with Ubuntu 24.04.3 I was told that they work really well. HOWEVER.. Once I tried to set it up I was VERY disappointed that I could not connect the most basic of interfaces straight away. Especially after my conversation with the Store rep. I can use it with the wire attached, but I purchased a Bluetooth keyboard for a reason. Also It does work fine on my Win11 OS computer. I have tried using some command line to verify that the Bluetooth is enabled and running. It is running in dual mode, however I did try to run Legacy only and switched it back and forth to see if I could get it to run. NO GO. I also tried the dongle that comes in the package and it doesn't seem to work either. When I try to pair it tells me it failed to pair. Grok Ai told me that it is because of the sampling frequency of the keyboard but I tried to hook up with both 'types' of Bluetooth. In my search I could find very little helpful information to overcome this issue.

Edit I see now that the bluetooth firmware is not correct. IMC networks bluetooth module (realtek) is known to fail HID-over-GATT (HOGP) on Ubuntu 24.04 so it needs to be updated.

ZSTD-compressed data is corrupt. --System halted https://askubuntu.com/questions/1480044/zstd-compressed-data-is-corrupt-system-halted

When I try to boot Ubuntu 22.04.2 LTS. After selecting "ubuntu" from a list. It gives me

ZSTD-compressed data is corrupt. --System halted_ (error).

And it does not go any further.
I tried changing hard drives where I have Windows OS and that is also not working, maybe some other issue, I guess. Using Windows hard drive, it gives me an error of 0xc0000098 Kernel is missing or corrupt. I think maybe the problem is not related to any Ubuntu and Windows OS but with my CPU or any internal hardware or software idk for sure.

I've tried other kernels under "advance" option, that'll just reboot my PC and then same again. Also tried installing new Ubuntu using bootable USB, but no luck. That will take me to a screen where an underscore is blinking continuously and then give the same error mentioned above.

How do I troubleshoot this?

How should I rebuild MuPDF from official focal source avoiding "lcms2mt.h: No such file or directory" message? https://askubuntu.com/questions/1380832/how-should-i-rebuild-mupdf-from-official-focal-source-avoiding-lcms2mt-h-no-su

I was trying to update my own answer here at AskUbuntu because of a comment below it.

What I have done:

  1. Created fresh 20.04.3 LTS VM with all updates

  2. Enabled all deb-src repositories in /etc/apt/sources.list by

    sudo sed -i "s/# deb-src/deb-src/g" /etc/apt/sources.list
    sudo apt-get update
    
  3. Installed all needed build-dependencies by

    sudo apt-get build-dep mupdf
    
  4. Downloaded source code of MuPDF by

    cd ~/Downloads
    apt-get source mupdf
    
  5. Tried to compile the sources by

    cd mupdf-1.16.1+ds1/
    make
    

    and here I get the following error message

         ...
         CC build/release/source/fitz/color-lcms.o
     source/fitz/color-lcms.c:36:10: fatal error: lcms2mt.h: No such file or directory
     36 | #include "lcms2mt.h"
     |          ^~~~~~~~~~~
     compilation terminated.
     make: *** [Makefile:126: build/release/source/fitz/color-lcms.o] Error 1
    

And what is interesting:

  1. the mentioned lcms2mt.h is not contained in any deb-package.
  2. on the same system apt-get source -b mupdf succeeds.
SSH freezes at pledge: network https://askubuntu.com/questions/1141206/ssh-freezes-at-pledge-network

I setup passwordless ssh login. I could connect through ssh and also used sftp. suddenly I could not connect any more and ssh freezed.

  • Server: Ubuntu 16.04
  • Client: Ubuntu 18.04

ssh --vvv user@host freezes at pledge: network

...
debug2: we sent a publickey packet, wait for reply
debug3: receive packet: type 60
debug1: Server accepts key: pkalg rsa-sha2-512 blen 279
debug2: input_userauth_pk_ok: fp SHA256:w7sj+s08FJPpL09IVtmXmGZOUgxVHGcgpjCL3vxzSaQ
debug3: sign_and_send_pubkey: RSA SHA256:w7sj+s08FJPpL09IVtmXmGZOUgxVHGcgpjCL3vxzSaQ
debug3: send packet: type 50
debug3: receive packet: type 52
debug1: Authentication succeeded (publickey).
Authenticated to <host> ([<IP>]:22).
debug1: channel 0: new [client-session]
debug3: ssh_session2_open: channel_new: 0
debug2: channel 0: send open
debug3: send packet: type 90
debug1: Requesting no-more-sessions@openssh.com
debug3: send packet: type 80
debug1: Entering interactive session.
debug1: pledge: network
debug3: send packet: type 80
debug3: send packet: type 80
debug3: send packet: type 80
Timeout, server <host> not responding.

Before this happens, I started another ssh on the same host with same user and it freezed at sign_and_send_pubkey so I started the previously said ssh.

...
debug2: we sent a publickey packet, wait for reply
debug3: receive packet: type 60
debug1: Server accepts key: pkalg rsa-sha2-512 blen 279
debug2: input_userauth_pk_ok: fp SHA256:w7sj+s08FJPpL09IVtmXmGZOUgxVHGcgpjCL3vxzSaQ
debug3: sign_and_send_pubkey: RSA SHA256:w7sj+s08FJPpL09IVtmXmGZOUgxVHGcgpjCL3vxzSaQ
debug3: send packet: type 50
Connection to <IP> port 22 timed out
  • I tried reinstalling openssh-server from server and ssh from client. also restarted both of them (Server and client computer).

  • Also tried to force connecting by password. It just changed the line Authentication succeeded (password) at output.

  • Somebody said set UsePAM no, It did not work.

  • Tried by -o IPQoS=0 and had the same output.

At server recorded these at syslog:

...
May  7 07:26:10 host systemd[1]: Started Session c103 of user <user>.
May  7 07:26:10 host systemd[1]: Started Session c104 of user <user>.
May  7 07:26:26 host systemd[1]: Started Session 47 of user <user>.
May  7 07:26:33 host systemd[1]: Started Session 48 of user <user>.

I think this problem is from client. Because my friend could connect to server from his own computer.

Can't use Ubuntu after opening laptop lid https://askubuntu.com/questions/970501/cant-use-ubuntu-after-opening-laptop-lid

I am running Xubuntu 17.10, I upgraded from 17.04. When I open laptop lid, it stays in blank screen. Power is on, wired mouse doesn't get power, it doesn't respond to anything. I tried pressing keys and pressing power button. I always have to restart my laptop to use it. Xfce Power Manager says that it locks screen when lid is closed.

How to access a /media folder that has been mounted from a external hardrive? https://askubuntu.com/questions/316783/how-to-access-a-media-folder-that-has-been-mounted-from-a-external-hardrive

I'm using Ubuntu 13.04 x64. I have installed Apache, php5.

I have configured two sites folders in the /etc/apache2/sites-available/default One is the in /home/me/www and the other is on the external disk let's say /media/me/www.

I think the problem is that /media is owned by root and all files had restrictive permissions, so I can only see my files in my computer, or with sftp or samba, login with my username.

What I want is to view those files in apache from another computer, but the server always gave me the 403 Forbidden message.

I was thinking of changing the owner of the media folder, and to change the files permissions. Or I found I could mount the drive in another path, but that would be more problematic because I already have some apps using that path.

My question what do I have to do to allow access to apache to show the media folder?

The hard drive is NTFS format. Also I'm not an expert in linux, but knows the basics.