Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Using xandr In An SSH Session

Need help with peripherals or devices?
Post Reply
Message
Author
newb2debian
Posts: 32
Joined: 2018-02-11 14:25

Using xandr In An SSH Session

#1 Post by newb2debian »

I've installed Debian 11.2.0 on a Shuttle computer connected to a Dell, 32 inch, 4K monitor (S3221QS). The graphical installation went swimmingly and I was able to get through all of the prompts with no issues. After the installation was complete and I was told to remove the DVD installation media, the computer restarted. After the computer restarted, I could see no video on the monitor. So, I entered the encrypted hard drive password and I could see hard drive activity as the hard drive light was flashing quickly. At least at this point I know I've gotten to the login page for the user I just created. I then used another Linux computer to SSH into the newly installed Debian 11. I then tried the xrandr -q command in the SSH session to see what resolutions were available and I received the following response, "Can't open display." I was going to drop the resolution from 4K to 2K at 2560x1440. Now I've searched around the interwebs but I couldn't find an exact SSH command line entry to use with xandr -q to display what resolutions are available. Anyone have any ideas? Thank you.

As a side note, I connected this Shuttle computer to a brand new Samsung, 24 inch, FT650, monitor and got the same blank screen after the installation went without issue. There's somethin happenin here...What it is ain't exactly clear!

User avatar
bw123
Posts: 4015
Joined: 2011-05-09 06:02
Has thanked: 1 time
Been thanked: 28 times

Re: Using xandr In An SSH Session

#2 Post by bw123 »

for what it's worth...

ssh in again and post lspci on your Shuttle computer
resigned by AI ChatGPT

newb2debian
Posts: 32
Joined: 2018-02-11 14:25

Re: Using xandr In An SSH Session

#3 Post by newb2debian »

@bw123 Here is the lspci output:

00:00.0 Host bridge: Intel Corporation 8th/9th Gen Core 8-core Desktop Processor Host Bridge/DRAM Registers [Coffee Lake S] (rev 0d)
00:01.0 PCI bridge: Intel Corporation 6th-10th Gen Core Processor PCIe Controller (x16) (rev 0d)
00:08.0 System peripheral: Intel Corporation Xeon E3-1200 v5/v6 / E3-1500 v5 / 6th/7th/8th Gen Core Processor Gaussian Mixture Model
00:12.0 Signal processing controller: Intel Corporation Cannon Lake PCH Thermal Controller (rev 10)
00:14.0 USB controller: Intel Corporation Cannon Lake PCH USB 3.1 xHCI Host Controller (rev 10)
00:14.2 RAM memory: Intel Corporation Cannon Lake PCH Shared SRAM (rev 10)
00:16.0 Communication controller: Intel Corporation Cannon Lake PCH HECI Controller (rev 10)
00:17.0 SATA controller: Intel Corporation Cannon Lake PCH SATA AHCI Controller (rev 10)
00:1c.0 PCI bridge: Intel Corporation Cannon Lake PCH PCI Express Root Port #4 (rev f0)
00:1c.4 PCI bridge: Intel Corporation Cannon Lake PCH PCI Express Root Port #5 (rev f0)
00:1f.0 ISA bridge: Intel Corporation H370 Chipset LPC/eSPI Controller (rev 10)
00:1f.3 Audio device: Intel Corporation Cannon Lake PCH cAVS (rev 10)
00:1f.4 SMBus: Intel Corporation Cannon Lake PCH SMBus Controller (rev 10)
00:1f.5 Serial bus controller [0c80]: Intel Corporation Cannon Lake PCH SPI Controller (rev 10)
01:00.0 VGA compatible controller: NVIDIA Corporation GP108 [GeForce GT 1030] (rev a1)
01:00.1 Audio device: NVIDIA Corporation GP108 High Definition Audio Controller (rev a1)
02:00.0 Ethernet controller: Intel Corporation I211 Gigabit Network Connection (rev 03)
03:00.0 Ethernet controller: Intel Corporation I211 Gigabit Network Connection (rev 03)

newb2debian
Posts: 32
Joined: 2018-02-11 14:25

Re: Using xandr In An SSH Session

#4 Post by newb2debian »

After several more tries of just plain installing Linux, attempting hard drive swaps, remove KVM and connect computer direct to monitor, different distro installations, etc., I have no idea what's going on with Linux and this monitor. Debian installs fine to the computer but I can't get to a desktop as the monitor seems to go into standby mode (not sure if Debian has 4K drivers or not in the install); it's as if the monitor is not getting a signal. Installing Fedora Core and Linux Mint, the DVD loads completely for installation but I can't get to these distro desktops to click on the installation icon as the monitor seems to go into standby mode; again, the monitor doesn't seem to be getting a signal. I have no idea what's occurring with Linux and this monitor. It must by a mystery!

reinob
Posts: 1189
Joined: 2014-06-30 11:42
Has thanked: 97 times
Been thanked: 47 times

Re: Using xandr In An SSH Session

#5 Post by reinob »

does it help if you ssh in and check the system logs? (as root, run "journalctl -b" and review it, you may spot something relevant).

also, if you want to use X programs (like xrandr) from a headless session (like ssh), you should set the DISPLAY variable. try with

$ DISPLAY=:0 xrandr
and check (and/or post here) the output, something like:

Code: Select all

Screen 0: minimum 320 x 200, current 2560 x 1440, maximum 16384 x 16384
VGA-1 disconnected (normal left inverted right x axis y axis)
DP-1 connected primary 2560x1440+0+0 (normal left inverted right x axis y axis) 698mm x 392mm
   2560x1440     59.95*+
   ...

Post Reply