You are not logged in.

#1 2022-12-22 02:34:43

sevk
Member
From: CN
Registered: 2017-02-09
Posts: 37

how to set "HDMI-1-1" as default , on boot (dmesg log) and xdm sddm ?

➜  ~ xrandr -q    
           
Screen 0: minimum 320 x 200, current 3200 x 1080, maximum 16384 x 16384
VGA-1 connected 1280x1024+1920+0 (normal left inverted right x axis y axis) 338mm x 270mm
   1280x1024     60.02*+  75.02  
   1280x960      60.00  
HDMI-1-1 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 527mm x 296mm
   1920x1080     60.00*+  59.96    50.00    59.94    59.93  
   1920x1080i    60.00    50.00    59.94  


➜  ~ sudo lshw -c display

  *-display                 
       description: VGA compatible controller
       product: GT218 [GeForce 210]
       vendor: NVIDIA Corporation
       physical id: 0
       bus info: pci@0000:01:00.0
       version: a2
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress vga_controller bus_master cap_list rom
       configuration: driver=nouveau latency=0
  *-display
       description: VGA compatible controller
       product: Xeon E3-1200 v3/4th Gen Core Processor Integrated Graphics Controller
       vendor: Intel Corporation
       physical id: 2
       bus info: pci@0000:00:02.0
       version: 06
       width: 64 bits
       clock: 33MHz
       capabilities: msi pm vga_controller bus_master cap_list rom
       configuration: driver=i915 latency=0



➜  ~ lsmod | grep -E "i915|nou"
nouveau              2752512  1
i915                 3149824  15
mxm_wmi                16384  1 nouveau
wmi                    45056  2 mxm_wmi,nouveau
drm_ttm_helper         16384  1 nouveau
drm_buddy              20480  1 i915
ttm                    94208  3 drm_ttm_helper,i915,nouveau
drm_display_helper    180224  2 i915,nouveau
cec                    81920  2 drm_display_helper,i915
video                  65536  2 i915,nouveau
intel_gtt              28672  1 i915

before sddm login or xdm loginn , HDMI is blank . how to set HDMI as default before sddm login ?

can disable i915 module ?

Last edited by sevk (2022-12-22 03:06:05)

Offline

#2 2022-12-22 02:49:44

usualrise
Member
From: Chandigarh, India
Registered: 2022-12-21
Posts: 12
Website

Re: how to set "HDMI-1-1" as default , on boot (dmesg log) and xdm sddm ?

Install arandr (gui) and from there you can set your primary screen and after that there is a option to save configuration in a file. Use that and store file in your home directory -> yourfilename.sh
then use cmd : chmod +x yourfilename.sh
and add the cmd to your default shell -> sh yourfilename.sh

Offline

#3 2022-12-22 03:07:49

sevk
Member
From: CN
Registered: 2017-02-09
Posts: 37

Re: how to set "HDMI-1-1" as default , on boot (dmesg log) and xdm sddm ?

usualrise wrote:

Install arandr (gui) and from there you can set your primary screen and after that there is a option to save configuration in a file. Use that and store file in your home directory -> yourfilename.sh
then use cmd : chmod +x yourfilename.sh
and add the cmd to your default shell -> sh yourfilename.sh

#!/bin/sh
xrandr --output VGA-1 --off --output HDMI-1-1 --primary --mode 1920x1080 --pos 0x0 --rotate normal --output DVI-I-1-1 --off --output VGA-1-2 --off

this is the file , how to run it with sddm ?

Offline

#4 2022-12-22 03:22:22

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,259

Re: how to set "HDMI-1-1" as default , on boot (dmesg log) and xdm sddm ?

Add it to /usr/share/sddm/scripts/Xsetup -- https://wiki.archlinux.org/title/SDDM#L … ed_display

Offline

#5 2022-12-22 05:00:30

sevk
Member
From: CN
Registered: 2017-02-09
Posts: 37

Re: how to set "HDMI-1-1" as default , on boot (dmesg log) and xdm sddm ?

V1del wrote:

Add it to /usr/share/sddm/scripts/Xsetup -- https://wiki.archlinux.org/title/SDDM#L … ed_display

sddm is OK SOLVED .

Then , how to set grub and kernel boot splash to HDMI ?

➜  ~ sudo fbset -fb /dev/fb0 --info

mode "1280x1024"
    geometry 1280 1024 1280 1024 32
    timings 0 0 0 0 0 0 0
    accel true
    rgba 8/16,8/8,8/0,0/0
endmode

Frame buffer device information:
    Name        : i915drmfb
    Address     : (nil)
    Size        : 5242880
    Type        : PACKED PIXELS
    Visual      : TRUECOLOR
    XPanStep    : 1
    YPanStep    : 1
    YWrapStep   : 0
    LineLength  : 5120
    Accelerator : No

when I press ctrl+alt+f2 ,  the HDMI is blank , VGA-1 is active , how to set HDMI-1-1 active in tty ?

Last edited by sevk (2022-12-23 01:01:40)

Offline

#6 2022-12-24 15:13:41

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,411

Re: how to set "HDMI-1-1" as default , on boot (dmesg log) and xdm sddm ?

Then , how to set grub and kernel boot splash to HDMI ?

For grub, you don't. Unless there's an option in your UEFI settings/BIOS, there's no way to impact where grub shows up.

For the kernel you can try https://www.kernel.org/doc/Documentation/fb/modedb.txt - specifically "e" and "D"
The output names are the ones you find in the xrandr output.
If the desired output is on the other GPU (Possible? Likely?), you can utilize "fbcon=map" to make sure that the console is bound to the desired framebuffer device
https://raw.githubusercontent.com/torva … /fbcon.rst

Offline

Board footer

Powered by FluxBB