awesomeWM / awesome

awesome window manager
https://awesomewm.org/
GNU General Public License v2.0
6.38k stars 597 forks source link

screen.count() get 1 in 3.5 #761

Closed jinleileiking closed 8 years ago

jinleileiking commented 8 years ago

in 3.4 , it get 5, but in 3.5 it get 1.

my xorg conf:

Section "Device"
  Identifier  "intel_dev0"
  Driver      "intel"
  BusID       "PCI:0:2:0"
  Option    "ZaphodHeads" "VGA1"
  Screen      0
EndSection

Section "Device"
  Identifier  "intel_dev1"
  Driver      "intel"
  BusID       "PCI:0:2:0"
  Option    "ZaphodHeads" "HDMI1"
  Screen      1
EndSection

Section "Device"
  Identifier  "nv_dev2"
  Driver      "nouveau"
  BusID       "PCI:1:0:0"
  Option    "ZaphodHeads" "VGA-2"
  Screen      0
#  Option      "TwinView"            "true"
  Option      "DynamicTwinView"    "FALSE"
  Option          "RenderAccel"   "true"
  Option          "UseEdidFreqs"  "true"

EndSection

Section "Device"
  Identifier  "nv_dev3"
  Driver      "nouveau"
  BusID       "PCI:1:0:0"
  Option    "ZaphodHeads" "DVI-I-1"
  Screen      1
#  Option      "TwinView"            "true"
  Option      "DynamicTwinView"    "FALSE"
  Option          "RenderAccel"   "true"
  Option          "UseEdidFreqs"  "true"
EndSection

Section "Device"
  Identifier  "nv_dev4"
  Driver      "nouveau"
  BusID       "PCI:1:0:0"
  Option    "ZaphodHeads" "HDMI-A-2"
  Option      "TwinView"            "true"
  # Option    "ZaphodHeads" "HDMI-2"
#  Screen      2
  Option      "DynamicTwinView"    "FALSE"
  Option          "RenderAccel"   "true"
  Option          "UseEdidFreqs"  "true"
EndSection

Section "Monitor"
  Identifier "intel_mon0"
  Option "Primary" "false"
EndSection
    Identifier "Default Layout"
    Screen 0   "intel_screen0"
    Screen 1   "nv_screen2"    LeftOf "intel_screen0"
    Screen 2   "nv_screen3"    LeftOf "nv_screen2"
    Screen 3   "nv_screen4"    LeftOf "nv_screen3"
    Screen 4   "intel_screen1" LeftOf "nv_screen4"
 #   Option "Xinerama" "on"
#     Option "Clone" "off"
#    Option "TwinView"    "true"
EndSection
jinleileiking commented 8 years ago

In 3.5 use xineram on is ok. but it refresh slow.

jinleileiking commented 8 years ago

It seems awesome use xrandr api get the wrong screen count number.

Elv13 commented 8 years ago

The Zaphod mode isn't supported in 3.5. It had maintenance issues and was removed years ago. Xinerama and XRandr are supported.

jinleileiking commented 8 years ago

@Elv13 My card is an onboard intel and a nvidia. How can I setup the x to operate ok without zaphod.

jinleileiking commented 8 years ago

xinerama is ok, but the refresh rate is slow.

jinleileiking commented 8 years ago

I have change the x config not use zaphod:

Section "Device"
  Identifier  "intel_dev"
  Driver      "intel"
  BusID       "PCI:0:2:0"
  Screen      0
EndSection

Section "Device"
  Identifier  "nv_dev"
  Driver      "nouveau"
  BusID       "PCI:1:0:0"
  Screen      0
EndSection

Section "Screen"
  Identifier "nv_screen"
  Device "nv_dev"
EndSection

Section "ServerLayout"
    Identifier "Default Layout"
    Screen 0   "intel_screen"
    Screen 1   "nv_screen"    LeftOf "intel_screen"

EndSection

THis is xrandr output.

➜  ~ git:(master) ✗ .xrandr --screen 1                            
Screen 1: minimum 320 x 200, current 3360 x 1050, maximum 8192 x 8192
DVI-I-1 connected 1680x1050+0+0 (normal left inverted right x axis y axis) 477mm x 268mm
   1920x1080     60.00 +
   1680x1050     59.88* 
   1280x1024     75.02    60.02  
   1152x864      75.00  
   1024x768      75.08    60.00  
   800x600       75.00    60.32  
   640x480       75.00    60.00  
   720x400       70.08  
HDMI-2 connected (normal left inverted right x axis y axis)
   1920x1080     60.00 +
   1680x1050     59.88  
   1400x1050     59.95  
   1600x900      59.98  
   1280x1024     75.02    60.02  
   1440x900      59.90  
   1280x800      59.91  
   1152x864      75.00  
   1280x720      59.97  
   1024x768      75.08    60.00  
   832x624       74.55  
   800x600       75.00    60.32    56.25  
   640x480       75.00    60.00  
   720x400       70.08  
VGA-2 connected 1680x1050+1680+0 (normal left inverted right x axis y axis) 474mm x 296mm
   1680x1050     59.95*+
   1280x1024     75.02    60.02  
   1152x864      75.00  
   1024x768      75.08    60.00  
   800x600       75.00    60.32  
   640x480       75.00    60.00  
   720x400       70.08  
➜  ~ git:(master) ✗ xrandr --screen 0
Screen 0: minimum 320 x 200, current 3840 x 1200, maximum 32767 x 32767
VGA1 connected 1920x1080+1920+0 (normal left inverted right x axis y axis) 476mm x 268mm
   1920x1080     60.00*+
   1680x1050     59.95  
   1280x1024     60.02  
   1440x900      59.89  
   1280x720      59.97  
   1024x768      60.00  
   800x600       60.32  
   640x480       60.00  
   720x400       70.08  
HDMI1 connected 1920x1200+0+0 (normal left inverted right x axis y axis) 518mm x 324mm
   1920x1200     59.95*+
   1600x1200     60.00  
   1680x1050     59.88  
   1280x1024     60.02  
   1280x960      60.00  
   1024x768      60.00  
   800x600       60.32  
   640x480       60.00  
   720x400       70.08  
DP1 disconnected (normal left inverted right x axis y axis)
jinleileiking commented 8 years ago
xrandr --screen 1 --output HDMI-2 --mode 1920x1080
xrandr --screen 0 --output HDMI1 --right-of VGA1
xrandr --screen 1 --output HDMI-2 --right-of VGA-2
xrandr --screen 1 --output DVI-I-1 --left-of VGA-2

initrc

Elv13 commented 8 years ago

Given I don't think there is anything more to do here (beside re-implementing Zaphod), I am closing this. Feel free to complain.

jinleileiking commented 8 years ago

@Elv13 No other solotion?

jinleileiking commented 8 years ago

awesome 3.5 only support 1 graphic card ?

Elv13 commented 8 years ago

I got 3 cards and use Xinerama

jinleileiking commented 8 years ago

@Elv13 If I turn xinerama on, the refresh of screen is very slow. Is a awesome bug or xinerama bug?

jinleileiking commented 8 years ago

xinerama with zaphod is ok in 3.5