Xfce Forum

Sub domains
 

You are not logged in.

#1 2022-10-21 07:37:38

jt1122
Member
Registered: 2021-03-26
Posts: 240

Switching between a single and dual monitor

HI,

I have 2 monitors installed but most of the time I use only 1.

xfce4-display-settings supports multiple "profiles".

Can I switch between a single- & dual- monitor profile from the CL?.

Thanks

Offline

#2 2022-10-21 11:06:20

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,032

Re: Switching between a single and dual monitor

Have a read through this thread. Ignore the part about xfce4-panel-profiles.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#3 2022-10-21 12:07:43

jt1122
Member
Registered: 2021-03-26
Posts: 240

Re: Switching between a single and dual monitor

Thanks.

I've followed that thread but it's not working.

I've defined a profile for a single display (ID  356...)
and for a dual display (ID da4...)

Running from the CL:

 xfconf-query -c displays -p /ActiveProfile -s 356...  

or

 xfconf-query -c displays -p /ActiveProfile -s da4..  

doesn't change anything.

Any suggestions?.

Thanks

Last edited by jt1122 (2022-10-21 12:15:51)

Offline

#4 2022-10-21 16:49:32

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,032

Re: Switching between a single and dual monitor

Can you post back you displays channel:

 xfconf-query -c displays -lv

Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#5 2022-10-21 20:12:21

jt1122
Member
Registered: 2021-03-26
Posts: 240

Re: Switching between a single and dual monitor

Thanks, here it is:

/356a192b7913b04c54574d18c28d46e6395428ab                     1
/356a192b7913b04c54574d18c28d46e6395428ab/HDMI-2              Dell Inc. 22"
/356a192b7913b04c54574d18c28d46e6395428ab/HDMI-2/Active       true
/356a192b7913b04c54574d18c28d46e6395428ab/HDMI-2/EDID         643b265305fe6d141b7ee8ce609d06333141280f
/356a192b7913b04c54574d18c28d46e6395428ab/HDMI-2/Position/X   0
/356a192b7913b04c54574d18c28d46e6395428ab/HDMI-2/Position/Y   0
/356a192b7913b04c54574d18c28d46e6395428ab/HDMI-2/Primary      true
/356a192b7913b04c54574d18c28d46e6395428ab/HDMI-2/Reflection   0
/356a192b7913b04c54574d18c28d46e6395428ab/HDMI-2/RefreshRate  59.954250
/356a192b7913b04c54574d18c28d46e6395428ab/HDMI-2/Resolution   1680x1050
/356a192b7913b04c54574d18c28d46e6395428ab/HDMI-2/Rotation     0
/356a192b7913b04c54574d18c28d46e6395428ab/HDMI-2/Scale/X      1.000000
/356a192b7913b04c54574d18c28d46e6395428ab/HDMI-2/Scale/Y      1.000000
/356a192b7913b04c54574d18c28d46e6395428ab/VGA-1               Siemens Computers GmbH 22"
/356a192b7913b04c54574d18c28d46e6395428ab/VGA-1/Active        false
/356a192b7913b04c54574d18c28d46e6395428ab/VGA-1/EDID          05947493eeee5db26045fd930e59e9739408711f
/356a192b7913b04c54574d18c28d46e6395428ab/VGA-1/Position/X    1680
/356a192b7913b04c54574d18c28d46e6395428ab/VGA-1/Position/Y    0
/356a192b7913b04c54574d18c28d46e6395428ab/VGA-1/Primary       false
/356a192b7913b04c54574d18c28d46e6395428ab/VGA-1/Reflection    0
/356a192b7913b04c54574d18c28d46e6395428ab/VGA-1/RefreshRate   59.954250
/356a192b7913b04c54574d18c28d46e6395428ab/VGA-1/Resolution    1680x1050
/356a192b7913b04c54574d18c28d46e6395428ab/VGA-1/Rotation      0
/356a192b7913b04c54574d18c28d46e6395428ab/VGA-1/Scale/X       1.000000
/356a192b7913b04c54574d18c28d46e6395428ab/VGA-1/Scale/Y       1.000000
/ActiveProfile                                                Default
/AutoEnableProfiles                                           false
/b78f576611ec06f96af3ca654c22172a5d746c40                     p1
/b78f576611ec06f96af3ca654c22172a5d746c40/HDMI-1              Altec Corporation 15"
/b78f576611ec06f96af3ca654c22172a5d746c40/HDMI-1/Active       true
/b78f576611ec06f96af3ca654c22172a5d746c40/HDMI-1/EDID         6aada2d40b15e66f75e568f1a12a43f9b2184ac9
/b78f576611ec06f96af3ca654c22172a5d746c40/HDMI-1/Position/X   0
/b78f576611ec06f96af3ca654c22172a5d746c40/HDMI-1/Position/Y   0
/b78f576611ec06f96af3ca654c22172a5d746c40/HDMI-1/Primary      false
/b78f576611ec06f96af3ca654c22172a5d746c40/HDMI-1/Reflection   0
/b78f576611ec06f96af3ca654c22172a5d746c40/HDMI-1/RefreshRate  59.951083
/b78f576611ec06f96af3ca654c22172a5d746c40/HDMI-1/Resolution   1366x768
/b78f576611ec06f96af3ca654c22172a5d746c40/HDMI-1/Rotation     0
/b78f576611ec06f96af3ca654c22172a5d746c40/HDMI-1/Scale/X      1.000000
/b78f576611ec06f96af3ca654c22172a5d746c40/HDMI-1/Scale/Y      1.000000
/b78f576611ec06f96af3ca654c22172a5d746c40/VGA-1               Monitor
/b78f576611ec06f96af3ca654c22172a5d746c40/VGA-1/Active        true
/b78f576611ec06f96af3ca654c22172a5d746c40/VGA-1/EDID          
/b78f576611ec06f96af3ca654c22172a5d746c40/VGA-1/Position/X    1367
/b78f576611ec06f96af3ca654c22172a5d746c40/VGA-1/Position/Y    0
/b78f576611ec06f96af3ca654c22172a5d746c40/VGA-1/Primary       false
/b78f576611ec06f96af3ca654c22172a5d746c40/VGA-1/Reflection    0
/b78f576611ec06f96af3ca654c22172a5d746c40/VGA-1/RefreshRate   60.003840
/b78f576611ec06f96af3ca654c22172a5d746c40/VGA-1/Resolution    1024x768
/b78f576611ec06f96af3ca654c22172a5d746c40/VGA-1/Rotation      0
/b78f576611ec06f96af3ca654c22172a5d746c40/VGA-1/Scale/X       1.000000
/b78f576611ec06f96af3ca654c22172a5d746c40/VGA-1/Scale/Y       1.000000
/da4b9237bacccdf19c0760cab7aec4a8359010b0                     2
/da4b9237bacccdf19c0760cab7aec4a8359010b0/HDMI-2              Dell Inc. 22"
/da4b9237bacccdf19c0760cab7aec4a8359010b0/HDMI-2/Active       true
/da4b9237bacccdf19c0760cab7aec4a8359010b0/HDMI-2/EDID         643b265305fe6d141b7ee8ce609d06333141280f
/da4b9237bacccdf19c0760cab7aec4a8359010b0/HDMI-2/Position/X   0
/da4b9237bacccdf19c0760cab7aec4a8359010b0/HDMI-2/Position/Y   0
/da4b9237bacccdf19c0760cab7aec4a8359010b0/HDMI-2/Primary      true
/da4b9237bacccdf19c0760cab7aec4a8359010b0/HDMI-2/Reflection   0
/da4b9237bacccdf19c0760cab7aec4a8359010b0/HDMI-2/RefreshRate  59.954250
/da4b9237bacccdf19c0760cab7aec4a8359010b0/HDMI-2/Resolution   1680x1050
/da4b9237bacccdf19c0760cab7aec4a8359010b0/HDMI-2/Rotation     0
/da4b9237bacccdf19c0760cab7aec4a8359010b0/HDMI-2/Scale/X      1.000000
/da4b9237bacccdf19c0760cab7aec4a8359010b0/HDMI-2/Scale/Y      1.000000
/da4b9237bacccdf19c0760cab7aec4a8359010b0/VGA-1               Siemens Computers GmbH 22"
/da4b9237bacccdf19c0760cab7aec4a8359010b0/VGA-1/Active        false
/da4b9237bacccdf19c0760cab7aec4a8359010b0/VGA-1/EDID          05947493eeee5db26045fd930e59e9739408711f
/da4b9237bacccdf19c0760cab7aec4a8359010b0/VGA-1/Position/X    1680
/da4b9237bacccdf19c0760cab7aec4a8359010b0/VGA-1/Position/Y    0
/da4b9237bacccdf19c0760cab7aec4a8359010b0/VGA-1/Primary       false
/da4b9237bacccdf19c0760cab7aec4a8359010b0/VGA-1/Reflection    0
/da4b9237bacccdf19c0760cab7aec4a8359010b0/VGA-1/RefreshRate   59.954250
/da4b9237bacccdf19c0760cab7aec4a8359010b0/VGA-1/Resolution    1680x1050
/da4b9237bacccdf19c0760cab7aec4a8359010b0/VGA-1/Rotation      0
/da4b9237bacccdf19c0760cab7aec4a8359010b0/VGA-1/Scale/X       1.000000
/da4b9237bacccdf19c0760cab7aec4a8359010b0/VGA-1/Scale/Y       1.000000
/Default/HDMI-1                                               Dell Inc. 22"
/Default/HDMI-1/Active                                        true
/Default/HDMI-1/EDID                                          643b265305fe6d141b7ee8ce609d06333141280f
/Default/HDMI-1/Position/X                                    0
/Default/HDMI-1/Position/Y                                    0
/Default/HDMI-1/Primary                                       true
/Default/HDMI-1/Reflection                                    0
/Default/HDMI-1/RefreshRate                                   59.954250
/Default/HDMI-1/Resolution                                    1680x1050
/Default/HDMI-1/Rotation                                      0
/Default/HDMI-1/Scale/X                                       1.000000
/Default/HDMI-1/Scale/Y                                       1.000000
/Default/HDMI-2                                               Dell Inc. 22"
/Default/HDMI-2/Active                                        true
/Default/HDMI-2/EDID                                          643b265305fe6d141b7ee8ce609d06333141280f
/Default/HDMI-2/Position/X                                    0
/Default/HDMI-2/Position/Y                                    0
/Default/HDMI-2/Primary                                       true
/Default/HDMI-2/Reflection                                    0
/Default/HDMI-2/RefreshRate                                   59.954250
/Default/HDMI-2/Resolution                                    1680x1050
/Default/HDMI-2/Rotation                                      0
/Default/HDMI-2/Scale/X                                       1.000000
/Default/HDMI-2/Scale/Y                                       1.000000
/Default/VGA-0                                                
/Default/VGA-0/Active                                         false
/Default/VGA-0/Position/X                                     0
/Default/VGA-0/Position/Y                                     0
/Default/VGA-0/Primary                                        false
/Default/VGA-0/Reflection                                     0
/Default/VGA-0/RefreshRate                                    59.999749
/Default/VGA-0/Resolution                                     1920x1200
/Default/VGA-0/Rotation                                       0
/Default/VGA-1                                                Siemens Computers GmbH 22"
/Default/VGA-1/Active                                         false
/Default/VGA-1/EDID                                           05947493eeee5db26045fd930e59e9739408711f
/Default/VGA-1/Position/X                                     1680
/Default/VGA-1/Position/Y                                     0
/Default/VGA-1/Primary                                        false
/Default/VGA-1/Reflection                                     0
/Default/VGA-1/RefreshRate                                    59.954250
/Default/VGA-1/Resolution                                     1680x1050
/Default/VGA-1/Rotation                                       0
/Default/VGA-1/Scale/X                                        1.000000
/Default/VGA-1/Scale/Y                                        1.000000
/Fallback/HDMI-1                                              Dell Inc. 22"
/Fallback/HDMI-1/Active                                       true
/Fallback/HDMI-1/EDID                                         643b265305fe6d141b7ee8ce609d06333141280f
/Fallback/HDMI-1/Position/X                                   0
/Fallback/HDMI-1/Position/Y                                   0
/Fallback/HDMI-1/Primary                                      true
/Fallback/HDMI-1/Reflection                                   0
/Fallback/HDMI-1/RefreshRate                                  59.954250
/Fallback/HDMI-1/Resolution                                   1680x1050
/Fallback/HDMI-1/Rotation                                     0
/Fallback/HDMI-1/Scale/X                                      1.000000
/Fallback/HDMI-1/Scale/Y                                      1.000000
/Fallback/HDMI-2                                              Dell Inc. 22"
/Fallback/HDMI-2/Active                                       true
/Fallback/HDMI-2/EDID                                         643b265305fe6d141b7ee8ce609d06333141280f
/Fallback/HDMI-2/Position/X                                   0
/Fallback/HDMI-2/Position/Y                                   0
/Fallback/HDMI-2/Primary                                      true
/Fallback/HDMI-2/Reflection                                   0
/Fallback/HDMI-2/RefreshRate                                  59.954250
/Fallback/HDMI-2/Resolution                                   1680x1050
/Fallback/HDMI-2/Rotation                                     0
/Fallback/HDMI-2/Scale/X                                      1.000000
/Fallback/HDMI-2/Scale/Y                                      1.000000
/Fallback/VGA-1                                               Siemens Computers GmbH 22"
/Fallback/VGA-1/Active                                        false
/Fallback/VGA-1/EDID                                          05947493eeee5db26045fd930e59e9739408711f
/Fallback/VGA-1/Position/X                                    1680
/Fallback/VGA-1/Position/Y                                    0
/Fallback/VGA-1/Primary                                       false
/Fallback/VGA-1/Reflection                                    0
/Fallback/VGA-1/RefreshRate                                   59.954250
/Fallback/VGA-1/Resolution                                    1680x1050
/Fallback/VGA-1/Rotation                                      0
/Fallback/VGA-1/Scale/X                                       1.000000
/Fallback/VGA-1/Scale/Y                                       1.000000
/IdentityPopups                                               true
/Notify                                                       true

Offline

#6 2022-10-21 20:43:32

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,032

Re: Switching between a single and dual monitor

You seem to have a number of profiles:
- 356a192b7913b04c54574d18c28d46e6395428ab  = Dell 22" on HDMI + Seimens 22" on VGA
- b78f576611ec06f96af3ca654c22172a5d746c40  = Altec 15" on HDMI + unknown monitor on VGA
- da4b9237bacccdf19c0760cab7aec4a8359010b0  = Dell 22" on HDMI + Seimens 22" on VGA
- Default = Dell 22" on HDMI + Dell 22" on HDMI
- Fallback = Seimens 22" on VGA

Your currently active profile is "Default".

Assuming you hook up the Dell 22" in HDMI and the Siemens 22" on VGA, you should be able to:

xfconf-query -c displays -p /ActiveProfile -s 356a192b7913b04c54574d18c28d46e6395428ab 

...and the profile should kick in.

Can you confirm that the proper devices are hooked up when you run the command (assuming xfce4-settings doesn't automatically switch the profiles).


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#7 2022-10-22 09:08:45

jt1122
Member
Registered: 2021-03-26
Posts: 240

Re: Switching between a single and dual monitor

Thanks.

I tried that command with both profiles but nothing happens.

Last edited by jt1122 (2022-10-22 12:20:57)

Offline

#8 2022-10-22 15:42:18

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,032

Re: Switching between a single and dual monitor

Can you try the following:

xfconf-query -c displays -p /Schemes/Apply -t string -s 356a192b7913b04c54574d18c28d46e6395428ab -n

Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#9 2022-10-22 16:14:09

jt1122
Member
Registered: 2021-03-26
Posts: 240

Re: Switching between a single and dual monitor

The new version works, thanks.

Is the 1st version incorrect or is it a bug?.

Cheers

Last edited by jt1122 (2022-10-22 16:27:42)

Offline

#10 2022-10-22 16:51:33

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,032

Re: Switching between a single and dual monitor

I think something changed between the original post and this method. Good that this new command works though.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

Board footer

Powered by FluxBB