Используйте printf вместо:
printf "lollipop\nlollipo\nlollip\nlolli\nloll\nlol\nlo\nl"
Вы можете перенастроить xOrg. Я сделал это, создав файл в моем каталоге /usr/share/X11/xorg.conf.d.
Я сделал это с помощью vim:
sudo vim /usr/share/X11/xorg.conf.d/5-monitor.conf
Вот пример моего файла.
Section "Monitor"
Identifier "Monitor0"
Modeline "1920x1080_60.00" 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync
Modeline "3840x2160_30.0" 297.00 3840 4016 4104 4400 2160 2168 2178 2250 +hsync +vsync
Modeline "4096x2160_24.0" 297.00 4096 5116 5204 5500 2160 2168 2178 2250 +hsync +vsync
EndSection
Section "Device"
Identifier "Device0"
Driver "intel"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Device0"
Monitor "Monitor0"
DefaultDepth 24
SubSection "Display"
Depth 24
Modes "3840x2160" "1920x1080"
EndSubSection
EndSection
Для инструкций о том, как это сделать, вы можете следовать этому руководству: https://wiki.gentoo.org/wiki/Xorg/Multiple_monitors
Я немного наткнулся на эту проблему.
Так будет выглядеть вывод xrandr (я сократил список):
willem@TP420XU1604:~$ xrandr
Screen 0: minimum 320 x 200, current 1600 x 900, maximum 8192 x 8192
LVDS-1 connected 1600x900+0+0 (normal left inverted right x axis y axis) 309mm x 174mm
1600x900 60.01*+ 40.00
1440x900 59.89
1360x768 59.80 59.96
.
.
400x300 60.32 56.34
320x240 60.05
VGA-1 disconnected (normal left inverted right x axis y axis)
HDMI-1 disconnected (normal left inverted right x axis y axis)
DP-1 disconnected (normal left inverted right x axis y axis)
HDMI-2 disconnected (normal left inverted right x axis y axis)
HDMI-3 disconnected (normal left inverted right x axis y axis)
DP-2 disconnected (normal left inverted right x axis y axis)
DP-3 disconnected (normal left inverted right x axis y axis)
willem@TP420XU1604:~$
Как я уже сказал в своем комментарии, если у вас нет вывода вообще, я думаю у вас есть проблема с вашим графическим драйвером. Используйте lshw -c video для получения информации из системы. Для устранения неполадок используйте следующую запись: https://askubuntu.com/questions/23238/how-can-i-find-what-video-driver-is-in-use-on-my-system
Вы можете перенастроить xOrg. Я сделал это, создав файл в моем каталоге /usr/share/X11/xorg.conf.d.
Я сделал это с помощью vim:
sudo vim /usr/share/X11/xorg.conf.d/5-monitor.conf
Вот пример моего файла.
Section "Monitor"
Identifier "Monitor0"
Modeline "1920x1080_60.00" 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync
Modeline "3840x2160_30.0" 297.00 3840 4016 4104 4400 2160 2168 2178 2250 +hsync +vsync
Modeline "4096x2160_24.0" 297.00 4096 5116 5204 5500 2160 2168 2178 2250 +hsync +vsync
EndSection
Section "Device"
Identifier "Device0"
Driver "intel"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Device0"
Monitor "Monitor0"
DefaultDepth 24
SubSection "Display"
Depth 24
Modes "3840x2160" "1920x1080"
EndSubSection
EndSection
Для инструкций о том, как это сделать, вы можете следовать этому руководству: https://wiki.gentoo.org/wiki/Xorg/Multiple_monitors
Я немного наткнулся на эту проблему.
Так будет выглядеть вывод xrandr (я сократил список):
willem@TP420XU1604:~$ xrandr
Screen 0: minimum 320 x 200, current 1600 x 900, maximum 8192 x 8192
LVDS-1 connected 1600x900+0+0 (normal left inverted right x axis y axis) 309mm x 174mm
1600x900 60.01*+ 40.00
1440x900 59.89
1360x768 59.80 59.96
.
.
400x300 60.32 56.34
320x240 60.05
VGA-1 disconnected (normal left inverted right x axis y axis)
HDMI-1 disconnected (normal left inverted right x axis y axis)
DP-1 disconnected (normal left inverted right x axis y axis)
HDMI-2 disconnected (normal left inverted right x axis y axis)
HDMI-3 disconnected (normal left inverted right x axis y axis)
DP-2 disconnected (normal left inverted right x axis y axis)
DP-3 disconnected (normal left inverted right x axis y axis)
willem@TP420XU1604:~$
Как я уже сказал в своем комментарии, если у вас нет вывода вообще, я думаю у вас есть проблема с вашим графическим драйвером. Используйте lshw -c video для получения информации из системы. Для устранения неполадок используйте следующую запись: https://askubuntu.com/questions/23238/how-can-i-find-what-video-driver-is-in-use-on-my-system