Linux - Laptop and NetbookHaving a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am using an XPS13 9300 with xubuntu 20.04 and Xfce desktop. The laptop is connected to the monitor on HDMI1 via a Dell adaptor (See below), which connects to one of the USB C ports on the laptop. The adaptor has an HDMI output.
Using xubuntu Display settings I select the monitor as primary display on the right of the laptop. This tells me that the panel and icons are passed through to the primary display, the monitor but they are not.
I can drag from the panel as expected but that is all.
I am trying to be able to set this up correctly, close the laptop lid (set to turn off the display only) and after final shutdown keep all the settings as they were set. ie open the laptop, sign in, close the lid and work only on the monitor.
To do this I need the laptop display 'permanently' passed to the monitor in total, not just using it as a screen extension.
At the moment I can only use it with screen mirroring and even then the monitor screen width is incorrect, leaving unused screen either side.
Maybe this is not possible? If not can anyone guide or point to a guide where I can set it up as close as possible?
Dell Adapter: USB-C to HDMI/DP with Power Pass-Through
Let's see if xrandr can work around what appears to be a failure of XFCE display settings. See if this helps at least initially:
Code:
xrandr --output DP-1 --primary --mode 1920x1080
In the meantime, prior to your reply, I found how to move the panel and desktop icons to the 'primary' monitor using the settings in ubuntu.
The monitor had a setting for 16:9. This stretched the screen to fill the full monitor screen but circles became egg shaped.
When I used the command you suggest the laptop was open with a blank screen and the icons and panel were on the monitor together with an open web page, thunderbird email and discord. After issuing your command:
1. The monitor screen was repeated on the laptop. effectively mirroring what had been on the monitor, except that the items now on the laptop were available to drag from the right side of the monitor.
2. The resolution was 1920 x 1080 but the circles were still egg shaped.
I hope my explanation makes sense to you.
Edit: After a reboot the monitor did not have a signal
With a monitor which does not have a signal at this time the below commands were run on the XPS13:
Code:
makem@XPS-13-9300:~$ xrandr --output DP-1 --primary --mode 1920x1080
xrandr: cannot find mode 1920x1080
makem@XPS-13-9300:~$ inxi -U
Error 20: Option: U has been disabled by the inxi distribution maintainer.
makem@XPS-13-9300:~$ inxi -SGIay
Error 10: Unsupported value: 0 for option: y
Check -h for correct parameters.
makem@XPS-13-9300:~$
The mode shown by the display setting is 1920 x 1200
Edit: Disconnecting the HDMI adaptor and replacing it brought back the monitor display.
I find prior to that instruction: inxi version 3.0.38-1-0ubuntu1 is already installed
3.0.38 is an ancient, broken, antique missing many options, incapable of many things, including -y switch, and correct interpretations of data collected for -G.
3.0.38 is an ancient, broken, antique missing many options, incapable of many things, including -y switch, and correct interpretations of data collected for -G.
First let me outline where I am at today after starting the system:
1. The monitor does not get a signal - the display manager shows only the laptop - disconnect & reconnect HDMI brings it to life.
2. The check box for choosing mirroring has a line through it and the display icons are overlaid.
3. The panel and the desktop icons are now missing from the monitor.
4. The only usable option is extend to the right and drag everything over to the right.
Code:
makem@XPS-13-9300:~$ sudo cd /usr/local/bin && wget -O inxi smxi.org/inxi && chmod +x inxi
[sudo] password for makem:
sudo: cd: command not found
makem@XPS-13-9300:~$ cd /usr/local/bin
makem@XPS-13-9300:/usr/local/bin$ sudo wget -O inxi smxi.org/inxi && chmod +x inxi
--2021-05-08 11:26:03-- http://smxi.org/inxi
Resolving smxi.org (smxi.org)... 216.92.30.83
Connecting to smxi.org (smxi.org)|216.92.30.83|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://smxi.org/inxi [following]
--2021-05-08 11:26:03-- https://smxi.org/inxi
Connecting to smxi.org (smxi.org)|216.92.30.83|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://github.com/smxi/inxi/raw/master/inxi [following]
--2021-05-08 11:26:04-- https://github.com/smxi/inxi/raw/master/inxi
Resolving github.com (github.com)... 140.82.121.3
Connecting to github.com (github.com)|140.82.121.3|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://raw.githubusercontent.com/smxi/inxi/master/inxi [following]
--2021-05-08 11:26:04-- https://raw.githubusercontent.com/smxi/inxi/master/inxi
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 185.199.110.133, 185.199.109.133, 185.199.108.133, ...
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|185.199.110.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 919588 (898K) [text/plain]
Saving to: ‘inxi’
inxi 100%[==================================>] 898.04K --.-KB/s in 0.1s
2021-05-08 11:26:04 (7.76 MB/s) - ‘inxi’ saved [919588/919588]
chmod: changing permissions of 'inxi': Operation not permitted
makem@XPS-13-9300:/usr/local/bin$ sudo chmod +x inxi
makem@XPS-13-9300:/usr/local/bin$
You may want to add this to /etc/default/grub on the GRUB_CMDLINE_LINUX_DEFAULT= line instead of having to add it to each of the next unknown number of boots while troubleshooting. Once on the GRUB_CMDLINE_LINUX_DEFAULT= line, grub-mkconfig will need to be run to incorporate it in /boot/grub/grub.cfg. Or, you could manually add it to the default linu line in /boot/grub/grub.cfg (the first one following the first instance of menuentry). This will be overwritten with the next kernel upgrade or other cause of execution of grub-mkconfig, unless added in /etc/default/grub first. When editing, note that the linu line typically wraps, so in such case, visibly it would need to be on the end of the following line.
Next, create the file /etc/X11/Xsession.d/95-setup, containing:
Code:
xrandr --output DP-1 --primary
This should put the menubar on the external display always.
Once this is done and tested in your default user, report back if everything is as you wish. If not, try creating a new user to see if results match. In it, don't touch display settings, so that only defaults plus the above configurations via kernel command line and xrandr are in play.
If that doesn't help either, try logging in with the test user, but using some X session type other than the one you're accustomed to, preferably a simple one, such as IceWM.
Whether any of this can work if the external display is not powered up when the laptop is powered on and lid is raised I do not know. My two laptops are too old and feeble to attempt your scenario. If still no joy, try bringing this to the laptop forum, as this scenario is unique to them.
You may want to add this to /etc/default/grub on the GRUB_CMDLINE_LINUX_DEFAULT= line instead of having to add it to each of the next unknown number of boots while troubleshooting. Once on the GRUB_CMDLINE_LINUX_DEFAULT= line, grub-mkconfig will need to be run to incorporate it in /boot/grub/grub.cfg. Or, you could manually add it to the default linu line in /boot/grub/grub.cfg (the first one following the first instance of menuentry). This will be overwritten with the next kernel upgrade or other cause of execution of grub-mkconfig, unless added in /etc/default/grub first. When editing, note that the linu line typically wraps, so in such case, visibly it would need to be on the end of the following line.
Next, create the file /etc/X11/Xsession.d/95-setup, containing:
Code:
xrandr --output DP-1 --primary
This should put the menubar on the external display always.
Once this is done and tested in your default user, report back if everything is as you wish. If not, try creating a new user to see if results match. In it, don't touch display settings, so that only defaults plus the above configurations via kernel command line and xrandr are in play.
If that doesn't help either, try logging in with the test user, but using some X session type other than the one you're accustomed to, preferably a simple one, such as IceWM.
Whether any of this can work if the external display is not powered up when the laptop is powered on and lid is raised I do not know. My two laptops are too old and feeble to attempt your scenario. If still no joy, try bringing this to the laptop forum, as this scenario is unique to them.
Getting a bit unsure here
The current GRUB_CMDLINE_LINUX_DEFAULT= line contains:
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
I am unsure of the syntax to add the 'video=DP-1:1920x1080@60D'
video=DP-1:1920x1080@60D is exactly what you type after you type a space, following splash, before the quote mark. Or put it in between quiet and splash, or before quiet, anywhere between the quotes, as long as whitespace separates it from what's already there, or you remove what's already there. Without quiet and splash, and with plymouth=0 additionally added, you'll automatically see boot messages instead of the Windows-ese graphic curtain hiding the boot messages that might suggest there is a problem with the init process, as well as indicating init is progressing.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.