You are not logged in.

#1 2024-07-20 13:24:37

ADeadCrow
Member
Registered: 2024-07-20
Posts: 1

Lenovo 15ARH05 (Wayland Hyprland - Bios limited Work Around)

Issue: I can't set my laptop to use discrete graphics in the BIOS due to limitations with my Lenovo laptop 15ARH05. This work around is almost bullet proof but my laptop screen is frozen with the display manager,

Setup:

    Arch Linux with Wayland and Hyprland.
    VA-API hardware acceleration works with NVIDIA.

Current Workaround:
Files below are: |Startup Script|XSetup|sddm.conf|hyprland.desktop|

Startup Script (/usr/local/bin/start_hyprland.sh):
    # Set environment variables and start Hyprland
    env WLR_DRM_DEVICES=/dev/dri/card0:/dev/dri/card1 \
    LIBVA_DRIVER_NAME=nvidia \
    XDG_SESSION_TYPE=wayland \
    GBM_BACKEND=nvidia-drm \
    __GLX_VENDOR_LIBRARY_NAME=nvidia \
    WLR_NO_HARDWARE_CURSORS=1 \
    NVD_BACKEND=direct \
    Hyprland

Xsetup (/usr/share/sddm/scripts/Xsetup):
# Xsetup - run as root before the login dialog appears
# Source environment variables
if [ -d /etc/environment.d ]; then
    for file in /etc/environment.d/*; do
        source "$file"
    done
fi

sddm.conf (/etc/sddm.conf):     
[General]
Session=/usr/local/bin/start_hyprland.sh (just calls the startup script)

hyprland.desktop (/usr/share/wayland-sessions/hyprland.desktop):
[Desktop Entry]
Name=Hyprland
Comment=An intelligent dynamic tiling Wayland compositor
Exec=/usr/local/bin/start_hyprland.sh
Type=Application

Problems:
    The laptop screen is frozen and will not work despite it being registered in $ hyprctl monitors:
Monitor HDMI-A-1 (ID 0):
    2560x1440@143.99899 at 1280x0
    description: HP Inc. HP X27q 6CM2471Y72
    make: HP Inc.
    model: HP X27q
    serial: 6CM2471Y72
    active workspace: 1 (1)
    special workspace: 0 ()
    reserved: 0 0 0 0
    scale: 1.00
    transform: 0
    focused: yes
    dpmsStatus: 1
    vrr: 0
    activelyTearing: false
    disabled: false
    currentFormat: XBGR2101010
    availableModes: 2560x1440@59.95Hz 2560x1440@144.00Hz 2560x1440@120.00Hz 2560x1440@74.97Hz 2560x1080@59.94Hz 1920x1200@59.88Hz 1920x1080@119.88Hz 1920x1080@100.00Hz 1920x1080@60.00Hz 1920x1080@59.94Hz 1680x1050@59.95Hz 1600x900@60.00Hz 1280x1024@60.02Hz 1440x900@59.89Hz 1280x800@59.81Hz 1280x720@60.00Hz 1280x720@59.94Hz 1024x768@60.00Hz 800x600@60.32Hz 720x480@59.94Hz 640x480@59.94Hz 640x480@59.93Hz

Monitor eDP-1 (ID 1):
    1920x1080@120.21300 at 0x720
    description: AU Optronics 0xD1ED
    make: AU Optronics
    model: 0xD1ED
    serial:
    active workspace: 2 (2)
    special workspace: 0 ()
    reserved: 0 0 0 0
    scale: 1.50
    transform: 0
    focused: no
    dpmsStatus: 1
    vrr: 0
    activelyTearing: false
    disabled: false
    currentFormat: Invalid
    availableModes: 1920x1080@120.21Hz 1680x1050@120.21Hz 1280x1024@120.21Hz 1440x900@120.21Hz 1280x800@120.21Hz 1280x720@120.21Hz 1024x768@120.21Hz 800x600@120.21Hz 640x480@120.21Hz


Goal: Find a solution to use hardware acceleration with both external and laptop monitors functioning.

Need: Guidance on configuring Wayland and Hyprland to ensure both monitors are recognized and hardware acceleration is functional.  Thank you in advance for reading and taking your time to aid.

Last edited by ADeadCrow (2024-07-20 13:27:02)

Offline

Board footer

Powered by FluxBB