You are not logged in.

#1 2020-08-13 17:28:02

alfanobot
Member
Registered: 2020-08-13
Posts: 10

When im connect second monitor, display message "no signal"

Hi! Im want use 2 monitors.

My system
- AMD PC with integrated video
- monitor1 - vga
- monitor2 - vga/dvi-d connector (vga on monitor, dvi-d on PC)
- xorg.conf: https://pastebin.com/D9EgnuZC
- dwm, xinit

problem
when im connect second monitor and power on my pc, both monitors display BIOS and arch boot. Next, both monitors display "no signal" (xrandr output on this time: https://pastebin.com/kZrAkHQt)

when im connect single monitor when vga/dvi connector, im run PC and login, next im connect second display and configure this with xrandr and both monitors correct work (https://pastebin.com/5ZkhgX4H). when im restart my PC im have a problem from previous paragraph

question
how to configure system for correct work two monitors?

Last edited by alfanobot (2020-08-13 17:32:01)

Offline

#2 2020-08-13 17:32:42

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,529
Website

Re: When im connect second monitor, display message "no signal"

You can put the xrandr command in your xinitrc.

But why do you have that xorg.conf?


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#3 2020-08-13 17:37:55

alfanobot
Member
Registered: 2020-08-13
Posts: 10

Re: When im connect second monitor, display message "no signal"

Trilby, xinitrc run after input username and password in console. Monitors print "no signal" before show username prompt. How to run command before login?

console hide on both monitors

Last edited by alfanobot (2020-08-13 17:40:51)

Offline

#4 2020-08-13 17:44:39

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,529
Website

Re: When im connect second monitor, display message "no signal"

Oh, sorry, I misunderstood the problem.  How can you have xrandr output from when x isn't running?

If this is in the console before X starts, X configuration and xrandr information is not relevant.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#5 2020-08-13 17:54:05

alfanobot
Member
Registered: 2020-08-13
Posts: 10

Re: When im connect second monitor, display message "no signal"

Trilby wrote:

How can you have xrandr output from when x isn't running?

1. im create script with lines "xrandr ... >> log" and line "shutdown now"
2. im poweroff PC
3. im connect second monitor and run PC
4. monitors show message "no signal"
5. im print "myusername <ENTER> mypassword <ENTER> <terminal_emulator_hotkey> ./script <ENTER> (monitors is disablen, but keyboard is enabled)
6. script is execute, this print xrandr output in file and poweroff pc
7. im disconnect second monitor, run PC and read file

Trilby wrote:

If this is in the console before X starts, X configuration and xrandr information is not relevant.

what is relevant then?

Last edited by alfanobot (2020-08-13 17:58:54)

Offline

#6 2020-08-13 18:51:14

seth
Member
Registered: 2012-09-03
Posts: 51,213

Offline

#7 2020-08-13 19:36:28

alfanobot
Member
Registered: 2020-08-13
Posts: 10

Re: When im connect second monitor, display message "no signal"

seth, im read your doc. i need change resolution in modedb?

Offline

#8 2020-08-13 19:38:34

seth
Member
Registered: 2012-09-03
Posts: 51,213

Re: When im connect second monitor, display message "no signal"

Those are kernel parameters and I assume you're mostly interested in the

You can additionally specify which output the options matches to.
To force the VGA output to be enabled and drive a specific mode say::

part.

https://wiki.archlinux.org/index.php/Kernel_parameters

Offline

#9 2020-08-13 23:24:18

alfanobot
Member
Registered: 2020-08-13
Posts: 10

Re: When im connect second monitor, display message "no signal"

Also, if after login with 2 monitors, xrandrs --listactivemonitors print "Monitors: 2", why monitors no signal?

Offline

#10 2020-08-14 05:01:13

seth
Member
Registered: 2012-09-03
Posts: 51,213

Re: When im connect second monitor, display message "no signal"

Because of reasons…
https://bbs.archlinux.org/viewtopic.php?id=57855

Please post the actual and complete output of

xrandr --listactivemonitors
xrandr -q

and also your xorg log.

Offline

#11 2020-08-14 17:49:56

alfanobot
Member
Registered: 2020-08-13
Posts: 10

Re: When im connect second monitor, display message "no signal"

seth wrote:

Those are kernel parameters and I assume you're mostly interested in the...

im read archwiki:uvesafb and install it, in this article:

First edit /etc/default/grub Comment the GRUB_GFXPAYLOAD_LINUX=keep line in /etc/default/grub, and GRUB#Generate the main configuration file.

in archwiki:GRUB:

Use the grub-mkconfig tool to generate /boot/grub/grub.cfg:

# grub-mkconfig -o /boot/grub/grub.cfg

im execute:

$ sudo grub-mkconfig -o /grub/grub.cfg
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-linux
Found initrd image: /boot/initramfs-linux.img
Found fallback initrd image(s) in /boot: initramfs-linux-fallback.img
mv: cannot move '/grub/grub.cfg.new' to '/grub/grub.cfg': Operation not permitted

how to fix it?

Offline

#12 2020-08-14 19:06:15

seth
Member
Registered: 2012-09-03
Posts: 51,213

Re: When im connect second monitor, display message "no signal"

i read archwiki:uvesafb and install it

Why?
What about the video kernel parameter? What about the xrandr outputs?

mv: cannot move '/grub/grub.cfg.new' to '/grub/grub.cfg': Operation not permitted

Post the outputs of

stat /boot/grub/grub.cfg
sudo lsattr /boot/grub/grub.cfg
mount

Offline

#13 2020-08-15 10:25:07

alfanobot
Member
Registered: 2020-08-13
Posts: 10

Re: When im connect second monitor, display message "no signal"

seth

Why?
What about the video kernel parameter?

Im press 'e' in grub and print 'video=DVI-0:1024x768@60me' in editor. Nothing has changed, everything is the same. I assumed it was because of the missing package uvesafb. It looks like I'm doing something wrong.

What about the xrandr outputs?

When connected 1 monitor: pastebin

When connected 2 monitors:

Next, both monitors display "no signal" (xrandr output on this time: https://pastebin.com/kZrAkHQt)

When connected 2 monitors and run:

xrandr --output VGA-0 --auto
xrandr --output VGA-0 --auto --right-of DVI-0

Both monitors print "no signal" and xrandr output: pastebin

$ stat /grub/grub.cfg
  File: /grub/grub.cfg
  Size: 5358            Blocks: 16         IO Block: 4096   regular file
Device: 821h/2081d      Inode: 4718920     Links: 1
Access: (0600/-rw-------)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2020-02-24 14:56:04.325201043 +0300
Modify: 2020-02-24 14:56:04.321868053 +0300
Change: 2020-02-24 14:56:10.497902998 +0300
 Birth: 2020-02-24 14:56:01.968776852 +0300
# lsattr /grub/grub.cfg
----i---------e----- /grub/grub.cfg

Last edited by alfanobot (2020-08-15 10:26:52)

Offline

#14 2020-08-15 12:48:33

seth
Member
Registered: 2012-09-03
Posts: 51,213

Re: When im connect second monitor, display message "no signal"

grub.conf is immutable - for whatever reason

# lsattr /grub/grub.cfg
----i---------e----- /grub/grub.cfg

man chattr

Both outputs are active and driven w/ their default modelines.
The sumo GPU is a bit old-ish, what happens if you boot w/ the "nomodeset" kernel parameter? (Graphical environments like X11 won't work, see the 2nd link in my signature)

Offline

#15 2020-08-15 16:39:56

alfanobot
Member
Registered: 2020-08-13
Posts: 10

Re: When im connect second monitor, display message "no signal"

seth, with nomodeset, both monitors is work

Offline

#16 2020-08-15 19:26:21

seth
Member
Registered: 2012-09-03
Posts: 51,213

Offline

#17 2020-08-16 14:46:00

alfanobot
Member
Registered: 2020-08-13
Posts: 10

Re: When im connect second monitor, display message "no signal"

seth, im do it:
1. input "amdgpu" in MODULES in /etc/mkinitcpio.conf (for early KMS start)
2. Nothing has changed
3. set GRUB_TERMINAL_OUTPUT=console
4. Nothing has changed
5. GRUB_GFXPAYLOAD_LINUX=text
6. this change resolution in console
7. before username prompt, both monitors print "no signal"

usually, resolution has change in moment, when console show message "arch start", next display message about number of blocks on disk, next show username prompt.

probably, in moment of resolution change when show message "arch start" there was problem.

I use the kernel parameters to specify the resolution at the early boot stage, but the error probably occurs later when the resolution changes again

Offline

#18 2020-08-16 14:48:41

seth
Member
Registered: 2012-09-03
Posts: 51,213

Re: When im connect second monitor, display message "no signal"

Did you only edit mkinitcpio.conf or also run mkinitcpio?
https://wiki.archlinux.org/index.php/Mk … generation

Offline

#19 2020-08-16 15:31:35

alfanobot
Member
Registered: 2020-08-13
Posts: 10

Re: When im connect second monitor, display message "no signal"

seth, run mkinitcpio

Offline

Board footer

Powered by FluxBB