How to save settings on second screen

Hi I'ma new to Manjaro.

I would like to ask how to save the settings on second screen (connected by HDMI).

It is originally copy of the first screen, but I would like to make the second monitor "right of" the origin screen.

I tried "nvidia-settings", but once unplugged and plugged, it would return to copy of the first screen. (But will keep after reboot.......)

I'm using "Lxrandr" and "nvidia-prime" driver.

Thanks a lot!

1 Like

:+1:Welcome to Manjaro!:+1:

Please read this:


and post some more information so we can see what's really going on. Now we know the symptom of the disease, but we need some more probing to know where the origin lies...

:wink: :+1: :innocent:

P.S. If you enter a bit more details in your profile, we can also see which Desktop Environment you're using, which CPU/GPU you have, ...

If you run "Display" you should be able to set where the monitors are in regards to each other. I have a 3 monitor layout, but I keep them all plugged in, so I'm not sure if the settings are saved when they are disconnected/reconnected.

Hi really thanks for the replay and sorry for missing important information.

Basic info here:

System: Manjaro 18.1.5
Desktop: Xfce
GPU: Nvidia GTX 1060 & Intel
Driver: Video-hybrid-intel-nvidia-440xx-prime

I followed this link to configure the driver.

The following are from "inxi -Fxxxza --no-host":

System:
  Kernel: 5.5.2-1-MANJARO x86_64 bits: 64 compiler: gcc v: 9.2.0 
  parameters: BOOT_IMAGE=/boot/vmlinuz-5.5-x86_64 
  root=UUID=6af0b398-1d9e-43bf-a243-0f8345574cc7 rw quiet 
  udev.log_priority=3 
  Desktop: Xfce 4.14.2 tk: Gtk 3.24.13 info: xfce4-panel wm: xfwm4 
  dm: LightDM 1.30.0 Distro: Manjaro Linux 
Machine:
  Type: Laptop System: Alienware product: Alienware 15 R3 v: 1.6.0 
  serial: <filter> Chassis: type: 10 serial: <filter> 
  Mobo: Alienware model: Alienware 15 R3 v: 000 serial: <filter> 
  UEFI: Alienware v: 1.6.0 date: 11/15/2018 
Battery:
  ID-1: BAT1 charge: 19.9 Wh condition: 19.9/68.0 Wh (29%) volts: 16.8/15.2 
  model: COMPAL PABAS0241231 type: Li-ion serial: <filter> status: Full 
CPU:
  Topology: Quad Core model: Intel Core i7-6700HQ bits: 64 type: MT MCP 
  arch: Skylake-S family: 6 model-id: 5E (94) stepping: 3 microcode: D6 
  L2 cache: 6144 KiB 
  flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx 
  bogomips: 41621 
  Speed: 900 MHz min/max: 800/3500 MHz Core speeds (MHz): 1: 900 2: 900 
  3: 900 4: 901 5: 900 6: 900 7: 900 8: 900 
  Vulnerabilities: Type: itlb_multihit status: KVM: Split huge pages 
  Type: l1tf 
  mitigation: PTE Inversion; VMX: conditional cache flushes, SMT vulnerable 
  Type: mds mitigation: Clear CPU buffers; SMT vulnerable 
  Type: meltdown mitigation: PTI 
  Type: spec_store_bypass 
  mitigation: Speculative Store Bypass disabled via prctl and seccomp 
  Type: spectre_v1 
  mitigation: usercopy/swapgs barriers and __user pointer sanitization 
  Type: spectre_v2 mitigation: Full generic retpoline, IBPB: conditional, 
  IBRS_FW, STIBP: conditional, RSB filling 
  Type: tsx_async_abort mitigation: Clear CPU buffers; SMT vulnerable 
Graphics:
  Device-1: Intel HD Graphics 530 vendor: Dell driver: i915 v: kernel 
  bus ID: 00:02.0 chip ID: 8086:191b 
  Device-2: NVIDIA GP106M [GeForce GTX 1060 Mobile] vendor: Dell 
  driver: nvidia v: 440.59 bus ID: 01:00.0 chip ID: 10de:1c20 
  Display: x11 server: X.Org 1.20.7 driver: modesetting,nvidia 
  resolution: 1920x1080~60Hz, 1920x1080~60Hz 
  OpenGL: renderer: GeForce GTX 1060/PCIe/SSE2 v: 4.6.0 NVIDIA 440.59 
  direct render: Yes 
Audio:
  Device-1: Intel 100 Series/C230 Series Family HD Audio vendor: Dell 
  driver: snd_hda_intel v: kernel bus ID: 00:1f.3 chip ID: 8086:a170 
  Sound Server: ALSA v: k5.5.2-1-MANJARO 
Network:
  Device-1: Qualcomm Atheros Killer E2400 Gigabit Ethernet vendor: Dell 
  driver: alx v: kernel port: d000 bus ID: 3d:00.0 chip ID: 1969:e0a1 
  IF: enp61s0 state: down mac: <filter> 
  Device-2: Qualcomm Atheros QCA6174 802.11ac Wireless Network Adapter 
  vendor: Bigfoot Networks driver: ath10k_pci v: kernel port: d000 
  bus ID: 3e:00.0 chip ID: 168c:003e 
  IF: wlp62s0 state: up mac: <filter> 
  Device-3: Qualcomm Atheros type: USB driver: btusb bus ID: 1-5:4 
  chip ID: 0cf3:e300 
Drives:
  Local Storage: total: 1.14 TiB used: 23.98 GiB (2.0%) 
  ID-1: /dev/nvme0n1 vendor: Toshiba model: THNSN5256GPUK NVMe 256GB 
  size: 238.47 GiB block size: physical: 512 B logical: 512 B 
  speed: 31.6 Gb/s lanes: 4 serial: <filter> rev: 5KDA4101 scheme: GPT 
  ID-2: /dev/sda vendor: HGST (Hitachi) model: HTS721010A9E630 
  size: 931.51 GiB block size: physical: 4096 B logical: 512 B 
  speed: 6.0 Gb/s rotation: 7200 rpm serial: <filter> rev: A3W0 scheme: GPT 
Partition:
  ID-1: / raw size: 930.89 GiB size: 915.27 GiB (98.32%) 
  used: 23.98 GiB (2.6%) fs: ext4 dev: /dev/sda2 
Sensors:
  System Temperatures: cpu: 48.0 C mobo: N/A gpu: nvidia temp: 59 C 
  Fan Speeds (RPM): N/A 
Info:
  Processes: 260 Uptime: 5h 50m Memory: 15.51 GiB used: 3.46 GiB (22.3%) 
  Init: systemd v: 242 Compilers: gcc: 9.2.0 Shell: bash v: 5.0.11 
  running in: xfce4-terminal inxi: 3.0.37

I also installed "lxrandr 0.3.2-1" for dual screen display, and when connected, for "xrandr" command:

Screen 0: minimum 8 x 8, current 3840 x 1080, maximum 32767 x 32767
HDMI-0 connected 1920x1080+1920+0 (normal left inverted right x axis y axis) 527mm x 296mm
   1920x1080     59.93*+  60.00    59.94    50.00    60.00    50.04    50.04  
   1680x1050     59.95  
   1600x900      75.00    60.00  
   1440x900      59.89  
   1280x1024     75.02    70.00    60.02  
   1280x720      59.94    50.00  
   1152x864      75.00  
   1024x768      75.03    70.07    60.00  
   800x600       75.00    72.19    60.32    56.25  
   720x576       50.00  
   720x480       59.94  
   640x480       75.00    72.81    59.94    59.93  
DP-0 disconnected (normal left inverted right x axis y axis)
DP-1 disconnected (normal left inverted right x axis y axis)
eDP-1-1 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 344mm x 194mm
   1920x1080     60.00*+  59.96    59.93  
   1680x1050     59.95    59.88  
   1400x1050     59.98  
   1600x900      59.95    59.82  
   1280x1024     60.02  
   1400x900      59.96    59.88  
   1280x960      60.00  
   1368x768      59.88    59.85  
   1280x800      59.81    59.91  
   1280x720      59.86    59.74  
   1024x768      60.00  
   896x672       60.01  
   1024x576      59.95    59.96    59.90    59.82  
   960x600       59.93    60.00  
   960x540       59.96    59.99    59.63    59.82  
   800x600       60.00    60.32    56.25  
   840x525       60.01    59.88  
   864x486       59.92    59.57  
   700x525       59.98  
   800x450       59.95    59.82  
   640x512       60.02  
   700x450       59.96    59.88  
   640x480       60.00    59.94  
   720x405       59.51    58.99  
   684x384       59.88    59.85  
   640x400       59.88    59.98  
   640x360       59.86    59.83    59.84    59.32  
   512x384       60.00  
   512x288       60.00    59.92  
   480x270       59.63    59.82  
   400x300       60.32    56.34  
   432x243       59.92    59.57  
   320x240       60.05  
   360x202       59.51    59.13  
   320x180       59.84    59.32  
DP-1-2 disconnected (normal left inverted right x axis y axis)
HDMI-1-2 disconnected (normal left inverted right x axis y axis)
DP-1-3 disconnected (normal left inverted right x axis y axis)
HDMI-1-3 disconnected (normal left inverted right x axis y axis)
  1920x1080 (0x1be) 138.500MHz +HSync -VSync
        h: width  1920 start 1968 end 2000 total 2080 skew    0 clock  66.59KHz
        v: height 1080 start 1083 end 1088 total 1111           clock  59.93Hz
  1680x1050 (0x1c5) 146.250MHz -HSync +VSync
        h: width  1680 start 1784 end 1960 total 2240 skew    0 clock  65.29KHz
        v: height 1050 start 1053 end 1059 total 1089           clock  59.95Hz
  1280x1024 (0x1cb) 108.000MHz +HSync +VSync
        h: width  1280 start 1328 end 1440 total 1688 skew    0 clock  63.98KHz
        v: height 1024 start 1025 end 1028 total 1066           clock  60.02Hz
  1024x768 (0x1d1) 65.000MHz -HSync -VSync
        h: width  1024 start 1048 end 1184 total 1344 skew    0 clock  48.36KHz
        v: height  768 start  771 end  777 total  806           clock  60.00Hz
  800x600 (0x1d4) 40.000MHz +HSync +VSync
        h: width   800 start  840 end  968 total 1056 skew    0 clock  37.88KHz
        v: height  600 start  601 end  605 total  628           clock  60.32Hz
  800x600 (0x1d5) 36.000MHz +HSync +VSync
        h: width   800 start  824 end  896 total 1024 skew    0 clock  35.16KHz
        v: height  600 start  601 end  603 total  625           clock  56.25Hz
  640x480 (0x1da) 25.175MHz -HSync -VSync
        h: width   640 start  656 end  752 total  800 skew    0 clock  31.47KHz
        v: height  480 start  490 end  492 total  525           clock  59.94Hz

Sorry for the late reply, any info I missed, please let me know. Thanks!!!

I know that the hybrid drivers have some issues in multi-monitor mode.

  1. Have you tried with nVidia only?
  2. Have you tried the hardware switch on your laptop? (I don't have an Alienware, please refer to the manufacturer's hardware manual)

:sob:

That alters your /etc/X11/xorg.conf settings and so overrides any DE settings and display autodetection.

If you want to dynamically reconfigure your displays then stick to the DE's display configuration (which should be using xrandr as its backend).

You'll likely have to remove the xorg.conf you created in order to use X's display autodetection.

Thanks again for the replay and sorry for my late response (due to busy work......)

I followed the tutorial and I believe the tutorial made nvidia as the graphic hardware:

[shore@shore-pc ~]$ glxinfo | grep -i vendor
server glx vendor string: NVIDIA Corporation
client glx vendor string: NVIDIA Corporation
OpenGL vendor string: NVIDIA Corporation

And hardware switch, I do not really know what is it......

Probably due to I'm new, I may need some more instruction for that ..........

Hi, thanks for the reply.

I tried to remove the files, it will keep settings after plug and unplug.

However, after reboot, it will back to copy screen......

So using nvidia setting will reset the setting after replug-in, not using it will reset after reboot T T

There is no hardware switch: just a software one.

To remove the hybrid driver:

  1. Print off these instructions

  2. Reboot

  3. Do not log on!

  4. Before you do the next step, remember that Ctrl+Alt+F1 is your friend! (to switch back to the GUI and why you needed to print off these instructions)

  5. switch to tty2 by pressing Ctrl+Alt+F2

  6. Log on

  7. Execute this command to remove the hybrid driver:

    mhwd --remove pci video-hybrid-intel-nvidia-440xx-prime
    
  8. Install the nVidia proprietary driver

    mhwd --install pci video-nvidia-440xx
    
  9. sudo reboot

  10. Done!

Thanks a lot. I'll try later in this weekend~~~ lol

Thx lol. Worked :grinning:

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.

Forum kindly sponsored by