Skip to content
This repository was archived by the owner on May 3, 2026. It is now read-only.
This repository was archived by the owner on May 3, 2026. It is now read-only.

[BUG] Autologin not working with sddm #236

Description

@MikeSesketcharba

Envycontrol when switching to nvidia mode and after rebooting, disables the autologin function of sddm

To Reproduce
Steps to reproduce the behavior:

  1. Run sudo envycontrol -s nvidia
  2. Reboot
  3. I have to manually write the password on login

Expected behavior
Sddm should autologin normally, like in intel mode.

Screenshots
If applicable, add screenshots to help explain your problem.

System Information:

                  -`                     francisco@gigabyte
                 .o+`                    ------------------
                `ooo/                    OS: Arch Linux x86_64
               `+oooo:                   Host: G5 KF5
              `+oooooo:                  Kernel: Linux 6.19.10-arch1-1
              -+oooooo+:                 Shell: bash 5.3.9
            `/:-:++oooo+:                Display (CMN1521): 1920x1080 in 15", 144 Hz [Built-in]
           `/++++/+++++++:               DE: labwc:wlroots
          `/++++++++++++++:              WM: labwc 0.9.6 (Wayland)
         `/+++ooooooooooooo/`            Terminal: alacritty 0.16.1
        ./ooosssso++osssssso+`           CPU: 13th Gen Intel(R) Core(TM) i7-13620H (16) @ 3.60 GHz
       .oossssso-````/ossssss+`          GPU 1: NVIDIA GeForce RTX 4060 Max-Q / Mobile [Discrete]
      -osssssso.      :ssssssso.         GPU 2: Intel UHD Graphics @ 1.50 GHz [Integrated]
     :osssssss/        osssso+++.        Memory: 2.56 GiB / 15.32 GiB (17%)
    /ossssssss/        +ssssooo/-        Swap: 0 B / 7.66 GiB (0%)
  `/ossssso+/:-        -:/+osssso+-      Disk (/): 74.02 GiB / 952.87 GiB (8%) - btrfs
 `+sso+:-`                 `.-/+oso:     Battery (BAT): 60% [AC Connected]
`++:.                           `-/+/    Locale: en_US.UTF-8
  • Model: gigabyte g5 kf5 2024
  • EnvyControl version: 3.5.2
  • Nvidia driver version: 580.142
  • lspci output:
00:00.0 Host bridge: Intel Corporation Device a715
00:01.0 PCI bridge: Intel Corporation Raptor Lake PCI Express 5.0 Graphics Port (PEG010)
00:02.0 VGA compatible controller: Intel Corporation Raptor Lake-P [UHD Graphics] (rev 04)
00:04.0 Signal processing controller: Intel Corporation Raptor Lake Dynamic Platform and Thermal Framework Processor Participant
00:06.0 PCI bridge: Intel Corporation Raptor Lake PCI Express 4.0 Graphics Port
00:08.0 System peripheral: Intel Corporation GNA Scoring Accelerator module
00:0a.0 Signal processing controller: Intel Corporation Raptor Lake Crashlog and Telemetry (rev 01)
00:0d.0 USB controller: Intel Corporation Raptor Lake-P Thunderbolt 4 USB Controller
00:14.0 USB controller: Intel Corporation Alder Lake PCH USB 3.2 xHCI Host Controller (rev 01)
00:14.2 RAM memory: Intel Corporation Alder Lake PCH Shared SRAM (rev 01)
00:14.3 Network controller: Intel Corporation Raptor Lake PCH CNVi WiFi (rev 01)
00:15.0 Serial bus controller: Intel Corporation Alder Lake PCH Serial IO I2C Controller #0 (rev 01)
00:16.0 Communication controller: Intel Corporation Alder Lake PCH HECI Controller (rev 01)
00:1d.0 PCI bridge: Intel Corporation Alder Lake PCI Express Root Port #9 (rev 01)
00:1d.2 PCI bridge: Intel Corporation Alder Lake PCI Express x1 Root Port #11 (rev 01)
00:1f.0 ISA bridge: Intel Corporation Raptor Lake LPC/eSPI Controller (rev 01)
00:1f.3 Audio device: Intel Corporation Raptor Lake-P/U/H cAVS (rev 01)
00:1f.4 SMBus: Intel Corporation Alder Lake PCH-P SMBus Host Controller (rev 01)
00:1f.5 Serial bus controller: Intel Corporation Alder Lake-P PCH SPI Controller (rev 01)
01:00.0 VGA compatible controller: NVIDIA Corporation AD107M [GeForce RTX 4060 Max-Q / Mobile] (rev a1)
01:00.1 Audio device: NVIDIA Corporation AD107 High Definition Audio Controller (rev a1)
02:00.0 Non-Volatile memory controller: Phison Electronics Corporation PS5021-E21 PCIe4 NVMe Controller (DRAM-less) (rev 01)
03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8211/8411 PCI Express Gigabit Ethernet Controller (rev 15)
04:00.0 SD Host controller: O2 Micro, Inc. OZ711 SD/MMC Card Reader Controller (rev 01)

Additional context
Add any other context about the problem here. If possible try to reproduce the problem with --verbose flag and attach its output.

francisco@gigabyte:~$ sudo envycontrol -s nvidia --verbose
[sudo] password for francisco:
Switching to nvidia mode
Enable ForceCompositionPipeline: False
Enable Coolbits: False
Created symlink '/etc/systemd/system/multi-user.target.wants/nvidia-persistenced.service' → '/usr/lib/systemd/system/nvidia-persistenced.service'.
Successfully enabled nvidia-persistenced.service
INFO: Removed file /etc/modprobe.d/blacklist-nvidia.conf
INFO: Removed file /etc/udev/rules.d/50-remove-nvidia.rules
INFO: Found Intel iGPU
INFO: Created file /etc/X11/xorg.conf
# Automatically generated by EnvyControl

Section "ServerLayout"
    Identifier "layout"
    Screen 0 "nvidia"
    Inactive "intel"
EndSection

Section "Device"
    Identifier "nvidia"
    Driver "nvidia"
    BusID "PCI:1:0:0"
EndSection

Section "Screen"
    Identifier "nvidia"
    Device "nvidia"
    Option "AllowEmptyInitialConfiguration"
EndSection

Section "Device"
    Identifier "intel"
    Driver "modesetting"
EndSection

Section "Screen"
    Identifier "intel"
    Device "intel"
EndSection

INFO: Created file /etc/modprobe.d/nvidia.conf
# Automatically generated by EnvyControl

options nvidia-drm modeset=1
options nvidia NVreg_UsePageAttributeTable=1 NVreg_InitializeSystemMemoryAllocations=0

INFO: Found sddm Display Manager
INFO: Creating Xsetup backup
INFO: Created file /usr/share/sddm/scripts/Xsetup.bak
#!/bin/sh
# Xsetup - run as root before the login dialog appears


INFO: Created file /usr/share/sddm/scripts/Xsetup
#!/bin/sh
# Automatically generated by EnvyControl

current=""

xrandr --setprovideroutputsource "modesetting" NVIDIA-0
xrandr --auto

for next in $(xrandr --listmonitors | grep -E " *[0-9]+:.*" | cut -d" " -f6); do
  [ -z "$current" ] && current=$next && continue
  xrandr --output "$current" --auto --output "$next" --auto --right-of "$current"
  current=$next
done

INFO: Added execution privilege to file /usr/share/sddm/scripts/Xsetup
Rebuilding the initramfs...
==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'default'
==> Using default configuration file: '/etc/mkinitcpio.conf'
  -> -k /boot/vmlinuz-linux -g /boot/initramfs-linux.img
==> Starting build: '6.19.10-arch1-1'
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [autodetect]
  -> Running build hook: [microcode]
  -> Running build hook: [modconf]
  -> Running build hook: [kms]
  -> Running build hook: [keyboard]
  -> Running build hook: [keymap]
  -> Running build hook: [consolefont]
  -> Running build hook: [block]
  -> Running build hook: [filesystems]
  -> Running build hook: [fsck]
==> Generating module dependencies
==> Creating zstd-compressed initcpio image: '/boot/initramfs-linux.img'
  -> Early uncompressed CPIO image generation successful
==> Initcpio image generation successful
Successfully rebuilt the initramfs!
Operation completed successfully
Please reboot your computer for changes to take effect!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions