Re: xrandr 1600x900 (ThinkPad X220T VGA-port) becomes 1440x900 (Samsung SyncMaster S20A300B)

2023-10-20 Thread Max Nikulin

On 20/10/2023 20:13, Anssi Saari wrote:

Max Nikulin writes:


A decade ago I used a HDMI to DVI adapter plugged into the monitor (a
case a bit larger than a DVI male connector having a HDMI slot). I
would check if DP to DVI or DP to HDMI converters exist and have no
compatibility issues (e.g. I have heard of bugs related to support of
USB-C to DP chips).


[...] It would only
display its native resolution of 2560x1600 via dual link DVI, just
connecting via HDMI to DVI cable got me a quarter resolution 1280x800
which was quite grainy on a 30" display. I found some converter boxes
existed. From memory I think you could go from DP to DL-DVI directly,
from HDMI you needed to convert to DP first. [...]

BTW, considering the resolution and monitor in question, 1600x900 is
single link DVI territory so easier conversion and cables.


In my case it was a cheap adapter to connect HDMI (laptop) to DVI 
(monitor). It worked perfectly with a LG monitor having 1600x1200 
resolution. By the way, this monitor worked reliably with an even older 
laptop that had VGA connector only. Of course, it was necessary to 
regularly run autoadjustment.


As for DP, my current laptop has "DP" label next to a USB-C connector. I 
am unsure if X220T has real DP connector.




Re: xrandr 1600x900 (ThinkPad X220T VGA-port) becomes 1440x900 (Samsung SyncMaster S20A300B)

2023-10-20 Thread Anssi Saari
Max Nikulin  writes:

> A decade ago I used a HDMI to DVI adapter plugged into the monitor (a
> case a bit larger than a DVI male connector having a HDMI slot). I
> would check if DP to DVI or DP to HDMI converters exist and have no 
> compatibility issues (e.g. I have heard of bugs related to support of
> USB-C to DP chips).

I looked into this some time ago, we had a giveaway of some old monitors
at work, mostly awful stuff but there was one 30" monitor. It would only
display its native resolution of 2560x1600 via dual link DVI, just
connecting via HDMI to DVI cable got me a quarter resolution 1280x800
which was quite grainy on a 30" display. I found some converter boxes
existed. From memory I think you could go from DP to DL-DVI directly,
from HDMI you needed to convert to DP first. I decided it was too much
hassle and money (converter box and cables) for a free display.

BTW, considering the resolution and monitor in question, 1600x900 is
single link DVI territory so easier conversion and cables. Well, going
from DP to HDMI/DVI is still a bear but if the laptop has a HDMI
transmitter then the "conversion" is a matter of plugging in an adapter
which tells the video transmitter to switch to HDMI mode.



Re: xrandr 1600x900 (ThinkPad X220T VGA-port) becomes 1440x900 (Samsung SyncMaster S20A300B)

2023-10-20 Thread Dan Ritter
Max Nikulin wrote: 
> On 20/10/2023 07:46, riveravaldez wrote:
> > Certainly, but it hasn't. It has only VGA and DVI-D (Dual Link) inputs,
> > and the laptop has only DP and VGA outputs, so, VGA is the first
> > option...
> 
> A decade ago I used a HDMI to DVI adapter plugged into the monitor (a case a
> bit larger than a DVI male connector having a HDMI slot). I would check if
> DP to DVI or DP to HDMI converters exist and have no compatibility issues
> (e.g. I have heard of bugs related to support of USB-C to DP chips).

DP to DVI and DP to HDMI both exist, and are reasonably cheap.
There are a couple of quality grades, but they only make a
difference at 4K or high refresh rates.

-dsr-



Re: xrandr 1600x900 (ThinkPad X220T VGA-port) becomes 1440x900 (Samsung SyncMaster S20A300B)

2023-10-19 Thread Felix Miata
riveravaldez composed on 2023-10-19 21:46 (UTC-0300):

> Felix Miata wrote:

>> riveravaldez composed on 2023-10-18 16:05 (UTC-0300):

>>> Hi everybody, I'm having a resolution issue trying to connect an
>>> external monitor to a laptop.
>> ...

> Hi, Felix, thanks a lot for your very detailed reply and help, it's most
> appreciated.

>> Using DP instead of VGA would likely solve this if your display had a DP
>> input. :p

> Certainly, but it hasn't. It has only VGA and DVI-D (Dual Link) inputs, and
> the laptop has only DP and VGA outputs, so, VGA is the first option...

>> ..., give us something to work from:

>> 1-copy & paste input/output from
>>  inxi -GSaz
>> run from an GUI terminal.

> $ inxi -GSaz
> System:
>   Kernel: 5.10.0-26-amd64 x86_64 bits: 64 compiler: gcc v: 10.2.1
>   parameters: BOOT_IMAGE=/boot/vmlinuz-5.10.0-26-amd64
>   root=UUID=f80500ac-b2c4-4b08-b123-7dc04b22ea33 ro quiet
>   Desktop: IceWM 2.7.0 dm: LightDM 1.26.0 Distro: Debian GNU/Linux 
> bookworm/sid
> Graphics:
>   Device-1: Intel 2nd Generation Core Processor Family Integrated Graphics
>   vendor: Lenovo driver: i915 v: kernel bus ID: 00:02.0 chip ID: 8086:0126
>   class ID: 0300
>   Device-2: Chicony Lenovo Integrated Camera (0.3MP) type: USB driver: 
> uvcvideo
>   bus ID: 1-1.6:3 chip ID: 04f2:b217 class ID: 0e02
>   Display: x11 server: X.Org 1.20.11 driver: loaded: modesetting
>   unloaded: fbdev,vesa display ID: :0 screens: 1
>   Screen-1: 0 s-res: 1366x768 s-dpi: 96 s-size: 361x203mm (14.2x8.0")
>   s-diag: 414mm (16.3")
>   Monitor-1: LVDS-1 res: 1366x768 hz: 60 dpi: 125 size: 277x156mm (10.9x6.1")
>   diag: 318mm (12.5")
>   OpenGL: renderer: Mesa DRI Intel HD Graphics 3000 (SNB GT2) v: 3.3
> Mesa 20.3.5
>   compat-v: 3.0 direct render: Yes

>> 2-pastebin Xorg.0.log from either /var/log/ or ~/.local/share/xorg/ and
>> provide
>> its URL.

> /var/log/Xorg.0.log
> https://paste.debian.net/plain/1295616
https://paste.debian.net/1295628
>> Below in file named /etc/X11/xorg.conf.d/50-monitor.conf could be part of a
>> solution, with more information the above request would supply.

> Thanks a lot for the proposed solutions. I'm gonna check them and read what's
> needed about X to try to put them at work. Hope there's more help I can get
> with the info just added.

The only clue I see in either log is the very last line of the newer, where X
allocates a 1600x900 space, but there's nothing more.

Check your VGA cable. If it doesn't have 15 pins on both ends, try one that 
does.
Have you checked BIOS to ensure there isn't anything in it that could block the
VGA output?

What follows is from a laptop older than yours:
# xdriinfo
Screen 0: crocus
# inxi -GSaz --vs --zl --hostname
inxi 3.3.30-00 (2023-09-25)
System:
  Host: e6400 Kernel: 6.1.0-13-amd64 arch: x86_64 bits: 64 compiler: gcc
v: 12.2.0 clocksource: hpet available: acpi_pm
parameters: BOOT_IMAGE=/vmlinuz root=LABEL= resume=LABEL=
ipv6.disable=1 net.ifnames=0 consoleblank=0 preempt=full mitigations=off
no_console_suspend
  Desktop: Trinity v: R14.1.0 tk: Qt v: 3.5.0 info: kicker wm: Twin v: 3.0
vt: 7 dm: 1: TDM 2: XDM Distro: Debian GNU/Linux 12 (bookworm)
Graphics:
  Device-1: Intel Mobile 4 Series Integrated Graphics vendor: Dell
driver: i915 v: kernel arch: Gen-5 process: Intel 45nm built: 2008 ports:
active: HDMI-A-1,LVDS-1 empty: DP-1, DP-2, DP-3, HDMI-A-2, VGA-1
bus-ID: 00:02.0 chip-ID: 8086:2a42 class-ID: 0300
  Display: x11 server: X.Org v: 1.21.1.7 driver: X: loaded: modesetting
unloaded: fbdev,vesa dri: crocus gpu: i915 display-ID: :0 screens: 1
  Screen-1: 0 s-res: 3200x1080 s-dpi: 109 s-size: 749x253mm (29.49x9.96")
s-diag: 791mm (31.13")
  Monitor-1: HDMI-A-1 mapped: HDMI-1 pos: primary,left model: Acer K272HUL
serial:  built: 2018 res: 1920x1080 hz: 60 dpi: 82 gamma: 1.2
size: 598x336mm (23.54x13.23") diag: 686mm (27") ratio: 16:9 modes:
max: 1920x1080 min: 720x400
  Monitor-2: LVDS-1 pos: right model: Seiko Epson 0x5441 built: 2008
res: 1280x800 hz: 60 dpi: 107 gamma: 1.2 size: 303x190mm (11.93x7.48")
diag: 358mm (14.1") ratio: 16:10 modes: 1280x800
  API: EGL v: 1.5 hw: drv: intel crocus platforms: device: 0 drv: crocus
device: 1 drv: swrast gbm: drv: crocus surfaceless: drv: crocus x11:
drv: crocus inactive: wayland
  API: OpenGL v: 2.1 vendor: intel mesa v: 22.3.6 glx-v: 1.4 es-v: 2.0
direct-render: yes renderer: Mesa Mobile Intel GM45 Express (CTG)
device-ID: 8086:2a42 memory: 1.46 GiB unified: yes
#
While it reports HDMI and LVDS (internal) connected displays, in fact the 
external
is connected to the laptop's DisplayPort, while the input to the display is a 
DVI
port. DP-to-DVI cables and adapters on eBay go for as little as under USD$10. I
suggest you try one if a 15 pin cable doesn't suffice.

Other than that one line mentioned, I see nothing helpful in the two logs. It's
possible there might be something useful in the journal. First, try:

journalctl -b |

Re: xrandr 1600x900 (ThinkPad X220T VGA-port) becomes 1440x900 (Samsung SyncMaster S20A300B)

2023-10-19 Thread Max Nikulin

On 20/10/2023 07:46, riveravaldez wrote:
Certainly, but it hasn't. It has only VGA and DVI-D (Dual Link) inputs, 
and the laptop has only DP and VGA outputs, so, VGA is the first option...


A decade ago I used a HDMI to DVI adapter plugged into the monitor (a 
case a bit larger than a DVI male connector having a HDMI slot). I would 
check if DP to DVI or DP to HDMI converters exist and have no 
compatibility issues (e.g. I have heard of bugs related to support of 
USB-C to DP chips).


Was external monitor connected and turned on when you were collecting 
logs? I assume that your monitor may report supported modes. May it 
happen that the VGA cable lacks wires related to the digital link for 
DDC communication and allowing to get EDID info?


I would try to get list of modes in a more direct way (adjust card-port 
path component)


   edid-decode /sys/class/drm/card0-eDP-1/edid

or

   parse-edid < /sys/class/drm/card0-HDMI-A-1/edid

from read-edid and edid-decode packages.

P.S. Do not neglect screws on VGA connectors.



Re: xrandr 1600x900 (ThinkPad X220T VGA-port) becomes 1440x900 (Samsung SyncMaster S20A300B)

2023-10-19 Thread riveravaldez
On 10/19/23, Stefan Monnier  wrote:
>> /var/log/Xorg.0.log https://paste.debian.net/plain/1295616
>
> IIUC this is an `Xorg.0.log` from when the external monitor was
> not connected.
>
> I suspect a more useful one would be when the external monitor was
> connected as well.

Certainly, Stefan, sounds pretty logic to me... Sorry.

/var/log/Xorg.0.log
https://paste.debian.net/1295628

There it goes.

Thanks a lot!



Re: xrandr 1600x900 (ThinkPad X220T VGA-port) becomes 1440x900 (Samsung SyncMaster S20A300B)

2023-10-19 Thread Stefan Monnier
> /var/log/Xorg.0.log https://paste.debian.net/plain/1295616

IIUC this is an `Xorg.0.log` from when the external monitor was
not connected.

I suspect a more useful one would be when the external monitor was
connected as well.


Stefan



Re: xrandr 1600x900 (ThinkPad X220T VGA-port) becomes 1440x900 (Samsung SyncMaster S20A300B)

2023-10-19 Thread riveravaldez
On 10/18/23, Felix Miata  wrote:
> riveravaldez composed on 2023-10-18 16:05 (UTC-0300):
>
>> Hi everybody, I'm having a resolution issue trying to connect an
>> external monitor to a laptop.
> ...

Hi, Felix, thanks a lot for your very detailed reply and help, it's most
appreciated.

> Using DP instead of VGA would likely solve this if your display had a DP
> input. :p

Certainly, but it hasn't. It has only VGA and DVI-D (Dual Link) inputs, and
the laptop has only DP and VGA outputs, so, VGA is the first option...

> ..., give us something to work from:
>
> 1-copy & paste input/output from
>   inxi -GSaz
> run from an GUI terminal.

$ inxi -GSaz
System:
  Kernel: 5.10.0-26-amd64 x86_64 bits: 64 compiler: gcc v: 10.2.1
  parameters: BOOT_IMAGE=/boot/vmlinuz-5.10.0-26-amd64
  root=UUID=f80500ac-b2c4-4b08-b123-7dc04b22ea33 ro quiet
  Desktop: IceWM 2.7.0 dm: LightDM 1.26.0 Distro: Debian GNU/Linux bookworm/sid
Graphics:
  Device-1: Intel 2nd Generation Core Processor Family Integrated Graphics
  vendor: Lenovo driver: i915 v: kernel bus ID: 00:02.0 chip ID: 8086:0126
  class ID: 0300
  Device-2: Chicony Lenovo Integrated Camera (0.3MP) type: USB driver: uvcvideo
  bus ID: 1-1.6:3 chip ID: 04f2:b217 class ID: 0e02
  Display: x11 server: X.Org 1.20.11 driver: loaded: modesetting
  unloaded: fbdev,vesa display ID: :0 screens: 1
  Screen-1: 0 s-res: 1366x768 s-dpi: 96 s-size: 361x203mm (14.2x8.0")
  s-diag: 414mm (16.3")
  Monitor-1: LVDS-1 res: 1366x768 hz: 60 dpi: 125 size: 277x156mm (10.9x6.1")
  diag: 318mm (12.5")
  OpenGL: renderer: Mesa DRI Intel HD Graphics 3000 (SNB GT2) v: 3.3
Mesa 20.3.5
  compat-v: 3.0 direct render: Yes

> 2-pastebin Xorg.0.log from either /var/log/ or ~/.local/share/xorg/ and
> provide
> its URL.

/var/log/Xorg.0.log
https://paste.debian.net/plain/1295616

> Below in file named /etc/X11/xorg.conf.d/50-monitor.conf could be part of a
> solution, with more information the above request would supply.
> ...

Thanks a lot for the proposed solutions. I'm gonna check them and read what's
needed about X to try to put them at work. Hope there's more help I can get
with the info just added.

Kind regards!



Re: xrandr 1600x900 (ThinkPad X220T VGA-port) becomes 1440x900 (Samsung SyncMaster S20A300B)

2023-10-18 Thread Felix Miata
riveravaldez composed on 2023-10-18 16:05 (UTC-0300):

> Hi everybody, I'm having a resolution issue trying to connect an
> external monitor to a laptop.
...
>
https://support.lenovo.com/us/en/solutions/pd015807-detailed-specifications-thinkpad-x220-tablet

That URL covers multiple configurations, so we can't know all that is relevant
from it.

Using DP instead of VGA would likely solve this if your display had a DP input. 
:p
VGA is analog. DP, HDMI, DVI are all digital. So is your CPU, GPU and software.
The conversion to analog from digital typically is worse than flawless.

That said, give us something to work from:

1-copy & paste input/output from
inxi -GSaz
run from an GUI terminal.

2-pastebin Xorg.0.log from either /var/log/ or ~/.local/share/xorg/ and provide
its URL.

Below in file named /etc/X11/xorg.conf.d/50-monitor.conf could be part of a
solution, with more information the above request would supply.

Section "Monitor"
Identifier "ExtMonitor"
VendorName  "Samsung"
ModelName   "S20A300B"
HorizSync   30-83
VertRefresh 56-76
Option  "PreferredMode" "1600x900"
EndSection

This is essentially the information that the EDID from the Samsung should be
supplying that X seems to be mishandling. The numbers for sync and ref are
estimates, simply copied from a 2012 20" Dell 1600x900 I have here. With only 
one
display it would be enough, but it needs to be assigned to the VGA port 
connection
via another file, /etc/X11/xorg.conf.d/50-device.conf. The following might be 
enough:

Section "Device"
Identifier "ExtDevice"
Option  "monitor-VGA-1" "ExtMonitor"
EndSection

I've always been able to use files in /etc/X11/xorg.conf.d/ to manage unruly
displays rather than resorting to CVT or GTF for manual modeline generation. X
knows quite well how to generate appropriate modelines when it has the correct
specifications to work with. EDID is supposed to do that.
-- 
Evolution as taught in public schools is, like religion,
based on faith, not based on science.

 Team OS/2 ** Reg. Linux User #211409 ** a11y rocks!

Felix Miata