Bitcoin Forum
May 03, 2024, 10:36:37 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1] 2 »  All
  Print  
Author Topic: OpenCL only seeing one GPU whilst using Multi-Desktop  (Read 4698 times)
leshow (OP)
Newbie
*
Offline Offline

Activity: 48
Merit: 0


View Profile
June 28, 2011, 02:48:38 PM
Last edit: June 28, 2011, 05:42:48 PM by leshow
 #1

I followed this guide: http://forum.bitcoin.org/?topic=7514.0

aticonfig shows both of my cards.

this is the issue i seem to be having:

I can clone displays(single desktop), in which case both GPU's work for mining. this is the xorg.conf for that:

Code:
Section "ServerLayout"
Identifier     "aticonfig Layout"
Screen      0  "aticonfig-Screen[0]-0" 0 0
Screen         "aticonfig-Screen[1]-0" LeftOf "aticonfig-Screen[0]-0"
EndSection

Section "Module"
EndSection

Section "Monitor"
Identifier   "aticonfig-Monitor[0]-0"
Option    "VendorName" "ATI Proprietary Driver"
Option    "ModelName" "Generic Autodetecting Monitor"
Option    "DPMS" "true"
EndSection

Section "Monitor"
Identifier   "aticonfig-Monitor[1]-0"
Option    "VendorName" "ATI Proprietary Driver"
Option    "ModelName" "Generic Autodetecting Monitor"
Option    "DPMS" "true"
EndSection

Section "Device"
Identifier  "aticonfig-Device[0]-0"
Driver      "fglrx"
BusID       "PCI:1:0:0"
EndSection

Section "Device"
Identifier  "aticonfig-Device[1]-0"
Driver      "fglrx"
BusID       "PCI:2:0:0"
EndSection

Section "Screen"
Identifier "aticonfig-Screen[0]-0"
Device     "aticonfig-Device[0]-0"
Monitor    "aticonfig-Monitor[0]-0"
DefaultDepth     24
SubSection "Display"
Viewport   0 0
Depth     24
EndSubSection
EndSection

Section "Screen"
Identifier "aticonfig-Screen[1]-0"
Device     "aticonfig-Device[1]-0"
Monitor    "aticonfig-Monitor[1]-0"
DefaultDepth     24
SubSection "Display"
Viewport   0 0
Depth     24
EndSubSection
EndSection


I can have a multi-desktop (xinerama still disabled). but only one GPU is seen by the miner. Here's the xorg.conf for the this scenario:


Code:
Section "ServerLayout"
Identifier     "aticonfig Layout"
Screen      0  "aticonfig-Screen[0]-0" 0 0
EndSection

Section "Module"
EndSection

Section "Monitor"
Identifier   "aticonfig-Monitor[0]-0"
Option    "VendorName" "ATI Proprietary Driver"
Option    "ModelName" "Generic Autodetecting Monitor"
Option    "DPMS" "true"
EndSection

Section "Monitor"
Identifier   "aticonfig-Monitor[1]-0"
Option    "VendorName" "ATI Proprietary Driver"
Option    "ModelName" "Generic Autodetecting Monitor"
Option    "DPMS" "true"
EndSection

Section "Monitor"
Identifier   "0-DFP3"
Option    "VendorName" "ATI Proprietary Driver"
Option    "ModelName" "Generic Autodetecting Monitor"
Option    "DPMS" "true"
Option    "PreferredMode" "1920x1080"
Option    "TargetRefresh" "60"
Option    "Position" "1920 0"
Option    "Rotate" "normal"
Option    "Disable" "false"
EndSection

Section "Monitor"
Identifier   "0-DFP4"
Option    "VendorName" "ATI Proprietary Driver"
Option    "ModelName" "Generic Autodetecting Monitor"
Option    "DPMS" "true"
Option    "PreferredMode" "1920x1080"
Option    "TargetRefresh" "60"
Option    "Position" "0 0"
Option    "Rotate" "normal"
Option    "Disable" "false"
EndSection

Section "Device"
Identifier  "aticonfig-Device[0]-0"
Driver      "fglrx"
Option    "Monitor-DFP3" "0-DFP3"
Option    "Monitor-DFP4" "0-DFP4"
BusID       "PCI:1:0:0"
EndSection

Section "Device"
Identifier  "aticonfig-Device[1]-0"
Driver      "fglrx"
BusID       "PCI:2:0:0"
EndSection

Section "Screen"
Identifier "aticonfig-Screen[0]-0"
Device     "aticonfig-Device[0]-0"
DefaultDepth     24
SubSection "Display"
Viewport   0 0
Virtual   3840 1920
Depth     24
EndSubSection
EndSection

Section "Screen"
Identifier "aticonfig-Screen[1]-0"
Device     "aticonfig-Device[1]-0"
Monitor    "aticonfig-Monitor[1]-0"
DefaultDepth     24
SubSection "Display"
Viewport   0 0
Depth     24
EndSubSection
EndSection

what i would like to be able to do is have a multi-desktop (2 monitors where I can drag windows between them, not cloned) and have the miner recognize both GPUs. i'm willing to try anything guys. thanks!
1714775797
Hero Member
*
Offline Offline

Posts: 1714775797

View Profile Personal Message (Offline)

Ignore
1714775797
Reply with quote  #2

1714775797
Report to moderator
1714775797
Hero Member
*
Offline Offline

Posts: 1714775797

View Profile Personal Message (Offline)

Ignore
1714775797
Reply with quote  #2

1714775797
Report to moderator
1714775797
Hero Member
*
Offline Offline

Posts: 1714775797

View Profile Personal Message (Offline)

Ignore
1714775797
Reply with quote  #2

1714775797
Report to moderator
Every time a block is mined, a certain amount of BTC (called the subsidy) is created out of thin air and given to the miner. The subsidy halves every four years and will reach 0 in about 130 years.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714775797
Hero Member
*
Offline Offline

Posts: 1714775797

View Profile Personal Message (Offline)

Ignore
1714775797
Reply with quote  #2

1714775797
Report to moderator
1714775797
Hero Member
*
Offline Offline

Posts: 1714775797

View Profile Personal Message (Offline)

Ignore
1714775797
Reply with quote  #2

1714775797
Report to moderator
1714775797
Hero Member
*
Offline Offline

Posts: 1714775797

View Profile Personal Message (Offline)

Ignore
1714775797
Reply with quote  #2

1714775797
Report to moderator
Reikoku
Full Member
***
Offline Offline

Activity: 140
Merit: 100


firstbits: 1kwc1p


View Profile
June 28, 2011, 05:12:09 PM
 #2

You should probably correct the title of your thread as Linux is quite clearly seeing both GPUs.

Your issue is more like 'OpenCL only seeing one GPU whilst using Multi-Desktop'. Whilst I don't know the fix, using the correct title will probably attract the attention of the people who will know and/or be able to test solutions for you.

Rei | 1Kwc1pqv54jCg8jvnm3Gu1dqFQYhS34Bow
Trades So Far: 7
leshow (OP)
Newbie
*
Offline Offline

Activity: 48
Merit: 0


View Profile
June 28, 2011, 05:43:16 PM
 #3

thanks for the response, you're right, changed!
drawoc
Full Member
***
Offline Offline

Activity: 168
Merit: 100

Firstbits: 175wn


View Profile
June 29, 2011, 02:40:10 AM
 #4

Umm, in your post, you say that the first config is cloned mode, but reading the configs, it looks like the second is cloned mode...

Anyway, in that guide, are you doing the part where he types:
export DISPLAY=:0.1; aticonfig --pplib-cmd "get fanspeed 0"
to get the fanspeed? Or changing the DISPLAY variable at all for that matter?
If you are, you need to make sure you set DISPLAY back to :0 before mining, or only one card will show. You can do this like:
export DISPLAY=:0
Does that help?

Donate: 175WNXmJ1WVhFgVGKUqEhYtAQGRYAvqPA
leshow (OP)
Newbie
*
Offline Offline

Activity: 48
Merit: 0


View Profile
June 29, 2011, 04:17:48 AM
 #5

[note these were executed using the SECOND xorg configuration (dual monitor, not cloned)]

leshow@crunchdesk:~$ export DISPLAY=:0.1
leshow@crunchdesk:~$ sudo aticonfig --pplib-cmd "get fanspeed 0"
[sudo] password for leshow:
ati_pplib_cmd: Unable to open display `:0.1'.
aticonfig: parsing the command-line failed.
leshow@crunchdesk:~$ export DISPLAY=:0
leshow@crunchdesk:~$ cd miners/poclbm/
leshow@crunchdesk:~/miners/poclbm$ ./poclbm.py
No device specified or device not found, use -d to specify one of the following

  •    Cypress
  • [1]   AMD Phenom(tm) II X4 955 Processor
    leshow@crunchdesk:~/miners/poclbm$



    am i supposed to be sudo when i export the display?


    i know the xorg.conf's look deceiving, but I assure you the first setup is cloned and the second one is dual-display. They were both generated using

    aticonfig --initial -f --adapter=all     (this gives me the first one)
    then if i reboot, and go
    sudo amdcccle
    and set it up to be multi-display, I get the second one. Both GPU's are only seen in the first xorg. I followed so many guides and got to the same conclusion with everything, tried all different version of OpenCL.

    I'm convinced it's something I'm missing in the xorg.conf. so anybody on linux with more than one GPU and a dual-monitor setup please take a look and help me out, I'd really appreciate it.
leshow (OP)
Newbie
*
Offline Offline

Activity: 48
Merit: 0


View Profile
June 29, 2011, 04:25:39 AM
Last edit: June 29, 2011, 05:09:03 AM by leshow
 #6

OK this is weird. I added:

Screen         "aticonfig-Screen[1]-0" LeftOf "aticonfig-Screen[0]-0"

to my dual-head xorg (in the ServerLayout section) and I get a single BIG desktop stretched across 2 monitors. WITH BOTH GPUS RECOGNIZED BY OPENCL

it's closer to what I was hoping for, but when I maximize a window it doesn't behave separately, the window stretches across 2 monitors.

any ideas on having them both be separate screens, but connected, like it would be in windows with multi-display?
drawoc
Full Member
***
Offline Offline

Activity: 168
Merit: 100

Firstbits: 175wn


View Profile
June 29, 2011, 05:51:43 AM
 #7

any ideas on having them both be separate screens, but connected, like it would be in windows with multi-display?
You could try turning on Xinerama, by adding this line to ServerLayout:
Option "Xinerama"

Might help.

Donate: 175WNXmJ1WVhFgVGKUqEhYtAQGRYAvqPA
leshow (OP)
Newbie
*
Offline Offline

Activity: 48
Merit: 0


View Profile
June 29, 2011, 11:58:35 AM
 #8

i added

Option "Xinerama" "on"

in server layouts, it creates the 'desktop' I was looking for (though for some reason my wallpaper disappeared)

except now only one miner is seen by openCL,

  • Cypress
  • [1] AMD ......

drawoc
Full Member
***
Offline Offline

Activity: 168
Merit: 100

Firstbits: 175wn


View Profile
June 29, 2011, 05:05:34 PM
 #9

Remove the xinerama option.

I assume you're using Unity?
If you install the package compizconfig-settings-manager and then open the settings manager (themes and tweaks -> CompizConfig Settings Manager), you can go to:
Window Management->Place Windows
Try playing with the multi output mode option - see if you can get the effect you want.

Donate: 175WNXmJ1WVhFgVGKUqEhYtAQGRYAvqPA
leshow (OP)
Newbie
*
Offline Offline

Activity: 48
Merit: 0


View Profile
June 29, 2011, 06:23:49 PM
 #10

no i'm using Openbox. I'm on crunchbang, it's a debian based distribution so most ubuntu settings will work, however I don't have gnome or any of the fancy gui's.
drawoc
Full Member
***
Offline Offline

Activity: 168
Merit: 100

Firstbits: 175wn


View Profile
June 29, 2011, 07:43:53 PM
 #11

Hmm... Openbox should maximize to one screen by default.

What's the output of this command?
xdpyinfo -ext XINERAMA | grep head

Donate: 175WNXmJ1WVhFgVGKUqEhYtAQGRYAvqPA
leshow (OP)
Newbie
*
Offline Offline

Activity: 48
Merit: 0


View Profile
June 29, 2011, 07:52:43 PM
 #12

let you know as soon as i get home. there's a single taskbar across the entire 2 screens, which leads me to believe openbox doesn't know there are actually 2 monitors, it's behaving like one big screen.
Grinder
Legendary
*
Offline Offline

Activity: 1284
Merit: 1001


View Profile
June 29, 2011, 08:11:47 PM
 #13

Probably not the solution you prefer, but... http://forums.amd.com/forum/messageview.cfm?catid=390&threadid=146804
leshow (OP)
Newbie
*
Offline Offline

Activity: 48
Merit: 0


View Profile
June 29, 2011, 10:02:44 PM
 #14

I have openbox, so I could enable the compiz extension and try but it won't be compiz-fusion like you get in gnome.
leshow (OP)
Newbie
*
Offline Offline

Activity: 48
Merit: 0


View Profile
June 29, 2011, 10:08:17 PM
 #15

Hmm... Openbox should maximize to one screen by default.

What's the output of this command?
xdpyinfo -ext XINERAMA | grep head

returns nothing. if i leave out grep head



Code:
name of display:    :0.0
version number:    11.0
vendor string:    The X.Org Foundation
vendor release number:    10707000
X.Org version: 1.7.7
maximum request size:  16777212 bytes
motion buffer size:  256
bitmap unit, bit order, padding:    32, LSBFirst, 32
image byte order:    LSBFirst
number of supported pixmap formats:    7
supported pixmap formats:
    depth 1, bits_per_pixel 1, scanline_pad 32
    depth 4, bits_per_pixel 8, scanline_pad 32
    depth 8, bits_per_pixel 8, scanline_pad 32
    depth 15, bits_per_pixel 16, scanline_pad 32
    depth 16, bits_per_pixel 16, scanline_pad 32
    depth 24, bits_per_pixel 32, scanline_pad 32
    depth 32, bits_per_pixel 32, scanline_pad 32
keycode range:    minimum 8, maximum 255
focus:  window 0x3200005, revert to Parent
number of extensions:    32
    AMDXVBA
    AMDXVOPL
    ATIFGLEXTENSION
    ATIFGLRXDRI
    BIG-REQUESTS
    Composite
    DAMAGE
    DOUBLE-BUFFER
    DPMS
    DRI2
    GLX
    Generic Event Extension
    MIT-SCREEN-SAVER
    MIT-SHM
    RANDR
    RECORD
    RENDER
    SECURITY
    SGI-GLX
    SHAPE
    SYNC
    X-Resource
    XC-MISC
    XFIXES
    XFree86-DGA
    XFree86-VidModeExtension
    XINERAMA
    XInputExtension
    XKEYBOARD
    XTEST
    XVideo
    glesx
default screen number:    0
number of screens:    2

screen info on screen #0 and #1 follows, it's very long. then

Code:
XINERAMA version 1.1 opcode: 128
  Xinerama is inactive.


really appreciate all the help so far guys. I feel like there is a workaround close but I can't quite get it.
drawoc
Full Member
***
Offline Offline

Activity: 168
Merit: 100

Firstbits: 175wn


View Profile
June 29, 2011, 10:28:56 PM
 #16

Try adding this to your xorg.conf:
Code:
Section "ServerFlags"
        Option "RandR" "on"
EndSection

Donate: 175WNXmJ1WVhFgVGKUqEhYtAQGRYAvqPA
leshow (OP)
Newbie
*
Offline Offline

Activity: 48
Merit: 0


View Profile
June 29, 2011, 10:38:34 PM
 #17

if I turn Randr on it makes no difference, tried:


xrandr --output DFP3 --auto --left-of DFP4


(proper names of the displays according to xrandr)

but it does nothing, so does trying to do it with grandr, the GUI front-end
leshow (OP)
Newbie
*
Offline Offline

Activity: 48
Merit: 0


View Profile
June 29, 2011, 10:40:19 PM
 #18

I think the problem is it is only making one display, i see all these examples of exporting DISPLAY=:0 to get to miner to work or exporting DISPLAY=:0.1 to get access to a different display. However my setup seems to only have one display 0.0, I dont have to export for the miners to work and I can't switch to any other one.
drawoc
Full Member
***
Offline Offline

Activity: 168
Merit: 100

Firstbits: 175wn


View Profile
June 29, 2011, 11:12:42 PM
 #19

I think the problem is it is only making one display, i see all these examples of exporting DISPLAY=:0 to get to miner to work or exporting DISPLAY=:0.1 to get access to a different display. However my setup seems to only have one display 0.0, I dont have to export for the miners to work and I can't switch to any other one.

You could try changing:
Screen         "aticonfig-Screen[1]-0" LeftOf "aticonfig-Screen[0]-0"
to
Screen    1   "aticonfig-Screen[1]-0" LeftOf "aticonfig-Screen[0]-0"
It should force your second screen to be identified as :0.1

What's the output of "xdpyinfo -ext XINERAMA | grep head" now?
Openbox needs the screen geometry to be exported in the XINERAMA extension's protocol for the maximize on one screen thing to work. RandR provides this functionality, which is why I suggested turning it on. When the command above doesn't show anything, that suggests that there's no Xinerama information available.

Donate: 175WNXmJ1WVhFgVGKUqEhYtAQGRYAvqPA
leshow (OP)
Newbie
*
Offline Offline

Activity: 48
Merit: 0


View Profile
June 29, 2011, 11:15:47 PM
 #20

i added a 0 and a 1 to the screen lines. the xdpyinfo line doesn't output anything
Pages: [1] 2 »  All
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!