Thursday, May 2, 2024
 Popular · Latest · Hot · Upcoming
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 950  / 2 Years ago, sun, september 25, 2022, 12:20:41

I have a ThinkPad X230 with Ubuntu 22.04 and Kernel 5.15.0-46-generic. I want to transform this laptop in a small desktop computer. This means I'll remove the built-in keyboard and monitor. The built-in monitor will be replaced by a HDMI monitor. My setup works when both monitors are connected, i.e the second monitor is recognized and works perfectly. I used it in "single display" mode from the Ubuntu settings.


When I disconnect the built-in monitor, the laptop boots and I can see the boot screen stuff on my second monitor (configured accordingly in BIOS). However once in Ubuntu I see only the wallpaper as if I was screen sharing with another inexistent monitor. How can I set up Ubuntu such that the external monitor is used by Wayland/Gnome even if the built-in display isn’t connected?


Here some information. I used gnome-randr to try to correct the problem (a utility found here https://github.com/maxwellainatchi/gnome-randr-rust)


gnome-randr
supports-mirroring: true
layout-mode: physical
supports-changing-layout-mode: false
global-scale-required: false
renderer: "native"
legacy-ui-scaling-factor: 2

logical monitor 0:
x: 0, y: 0, scale: 2, rotation: normal, primary: yes
associated physical monitors:
HDMI-1 ONX Mira133 202105

HDMI-1 ONX Mira133 202105
[email protected] 2200x1650 38.00*+ [x1.00+, x2.00, x3.00]
[email protected] 1920x1080 37.98 [x1.00+, x2.00]
[email protected] 1600x1200 38.00 [x1.00+, x2.00]
[email protected] 1280x960 38.03 [x1.00+]
[email protected] 1024x768 38.02 [x1.00+]
display-name: "SOMELEC Z.I. Du Vert Galanta 13.3""
is-builtin: false

LVDS-1 LGD 0x02d8 0x00000000
[email protected] 1366x768 60.02+ [x1.00+]
[email protected] 1280x720 59.86 [x1.00+]
[email protected] 1024x768 59.92 [x1.00+]
[email protected] 800x600 59.86 [x1.00+]
is-builtin: true
display-name: "Built-in display"

Thanks for your help.


EDIT: it works when I start the laptop with both screens and then remove the built-in one. Then Ubuntu “keeps” the correct settings and I could have access there to the terminal with only one screen plugged and actually see what I’m writing... can I set it up from there ?


EDIT2: Here's my monitors.xml file


<monitors version="2">
<configuration>
<logicalmonitor>
<x>0</x>
<y>0</y>
<scale>2</scale>
<primary>yes</primary>
<monitor>
<monitorspec>
<connector>HDMI-1</connector>
<vendor>ONX</vendor>
<product>Mira133</product>
<serial>202105</serial>
</monitorspec>
<mode>
<width>2200</width>
<height>1650</height>
<rate>38.002471923828125</rate>
</mode>
</monitor>
</logicalmonitor>
<disabled>
<monitorspec>
<connector>LVDS-1</connector>
<vendor>LGD</vendor>
<product>0x02d8</product>
<serial>0x00000000</serial>
</monitorspec>
</disabled>
</configuration>
</monitors>

More From » display

 Answers
6

With only the second monitor connected, I manage to navigate through the settings menu with the keyboard (without actually seeing what I was doing) and to set the second monitor as Single-Display in Settings > Display. A new configuration showed up in my monitors.xml file:


<monitors version="2">
<configuration>
<logicalmonitor>
<x>0</x>
<y>0</y>
<scale>2</scale>
<primary>yes</primary>
<monitor>
<monitorspec>
<connector>HDMI-1</connector>
<vendor>ONX</vendor>
<product>Mira133</product>
<serial>202105</serial>
</monitorspec>
<mode>
<width>2200</width>
<height>1650</height>
<rate>38.002471923828125</rate>
</mode>
</monitor>
</logicalmonitor>
<disabled>
<monitorspec>
<connector>LVDS-1</connector>
<vendor>unknown</vendor>
<product>unknown</product>
<serial>unknown</serial>
</monitorspec>
</disabled>
</configuration>
</monitors>

As one can see, the difference lies in the "unknown" value of the tags vendor, product and serial. I guess this means Ubuntu recognizes my setup as a two-screens setup and one monitor is "unknown" (because not plugged in). Perhaps this might help other people wanting to do the same.


[#269] Tuesday, September 27, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
gerrin

Total Points: 347
Total Questions: 109
Total Answers: 121

Location: Tanzania
Member since Fri, Oct 29, 2021
3 Years ago
gerrin questions
Sat, Sep 11, 21, 20:11, 3 Years ago
Tue, Jan 11, 22, 22:26, 2 Years ago
Thu, Oct 28, 21, 14:34, 3 Years ago
Sat, Mar 12, 22, 10:03, 2 Years ago
Wed, Mar 15, 23, 21:53, 1 Year ago
;