Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
USB monitor with modesetting driver
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
erzapito
n00b
n00b


Joined: 02 Feb 2007
Posts: 72

PostPosted: Fri Jul 05, 2013 8:33 am    Post subject: USB monitor with modesetting driver Reply with quote

Hi, I want to configure a machine with dual monitors, one of them a usb one. Until now I was able to do it using the "xf86-video-displaylink" driver from the X11 overlay.

Now that driver is obsolete and they have deleted it while they recomend to switch to the "xf86-video-modesetting" driver.

The problem is that I don't know how to tell that driver to use the usb monitor as it always loads the VGA one. I've tried to use the "kmsdev" option but it looks like it ignores it.

Has anyone any idea about how to use this driver?

Regards.
Back to top
View user's profile Send private message
chithanh
Developer
Developer


Joined: 05 Aug 2006
Posts: 1559
Location: Berlin, Germany

PostPosted: Fri Jul 05, 2013 8:54 am    Post subject: Reply with quote

xf86-video-modesetting will be used as fallback driver if no other driver matches the hardware.

So if you do not specify any driver in xorg.conf then the VGA will be driven by whatever driver is automatically loaded for it.
Back to top
View user's profile Send private message
erzapito
n00b
n00b


Joined: 02 Feb 2007
Posts: 72

PostPosted: Fri Jul 05, 2013 9:03 am    Post subject: Reply with quote

Just to provide more details:

The main monitor is configured like this:
Code:
Section "Device"
        Identifier  "DeviceHDMI"
        Driver      "radeon"
        Option      "Monitor-DFP1" "0-DFP1"
        BusID       "PCI:1:0:0"
EndSection


And the usb one:
Code:
Section "Device"
        Identifier  "DeviceDisplayLink"
        Driver      "modesetting"
        Option      "fbdev"  "/dev/fb_dl"
        Option      "kmsdev" "/dev/fb_dl"
        Option      "ShadowFB" "off"
EndSection


The thing is that it first loads the modesetting driver (that configures the VGA) and then unloads the radeon driver.
Back to top
View user's profile Send private message
chithanh
Developer
Developer


Joined: 05 Aug 2006
Posts: 1559
Location: Berlin, Germany

PostPosted: Fri Jul 05, 2013 9:36 am    Post subject: Reply with quote

Code:
      Option      "kmsdev" "/dev/fb_dl"
That doesn't look right to me.It should refer to some device in /dev/dri if at all.
Back to top
View user's profile Send private message
erzapito
n00b
n00b


Joined: 02 Feb 2007
Posts: 72

PostPosted: Fri Jul 05, 2013 9:38 am    Post subject: Reply with quote

I though that it should link to the framebuffer default.

In the /dev/dri folder I only have these elements:
card0
controlD64

I thought those were for the radeon card, not the usb monitor.
Back to top
View user's profile Send private message
chithanh
Developer
Developer


Joined: 05 Aug 2006
Posts: 1559
Location: Berlin, Germany

PostPosted: Fri Jul 05, 2013 9:41 am    Post subject: Reply with quote

All modesetting drivers will create a device node in /dev/dri

This can mean one of the following:
* Kernel modesetting is disabled for your radeon card
* Kernel modesetting is disabled for your displaylink adapter (possibly because you have CONFIG_FB_UDL enabled in your kernel)
Back to top
View user's profile Send private message
erzapito
n00b
n00b


Joined: 02 Feb 2007
Posts: 72

PostPosted: Fri Jul 05, 2013 10:02 am    Post subject: Reply with quote

You were right that I had the framebuffer enabled for the displaylink. Now I have card0 and card1 in the dri folder.

I've changed the configuration of the kmsdev to use both devices but the result is always the same, the radeon driver gets unloaded and the X only uses the VGA output.
Back to top
View user's profile Send private message
chithanh
Developer
Developer


Joined: 05 Aug 2006
Posts: 1559
Location: Berlin, Germany

PostPosted: Fri Jul 05, 2013 11:54 am    Post subject: Reply with quote

Please show your Xorg.0.log when starting without any xorg.conf at all.
Back to top
View user's profile Send private message
erzapito
n00b
n00b


Joined: 02 Feb 2007
Posts: 72

PostPosted: Fri Jul 05, 2013 12:07 pm    Post subject: Reply with quote

Here it is:

http://pastebin.com/T26RuKfz
Back to top
View user's profile Send private message
chithanh
Developer
Developer


Joined: 05 Aug 2006
Posts: 1559
Location: Berlin, Germany

PostPosted: Fri Jul 05, 2013 12:45 pm    Post subject: Reply with quote

Code:
[  7338.850] (II) modesetting(G0): using drv /dev/dri/card1
[  7338.850] (--) RADEON(0): Chipset: "ATI Radeon HD 5450" (ChipID = 0x68f9)
According to that Xorg.0.log, the radeon driver is used for the Radeon 5450 and the modesetting driver is used for your Displaylink device. I see no unload statement there for radeon.

"xrandr --listproviders" (needs >=x11-apps/xrandr-1.4.0) should confirm.
Back to top
View user's profile Send private message
erzapito
n00b
n00b


Joined: 02 Feb 2007
Posts: 72

PostPosted: Fri Jul 05, 2013 1:00 pm    Post subject: Reply with quote

Yes, listprovides show 2 providers. But xrandr only shows one screen, how can i enable the second one?
Back to top
View user's profile Send private message
chithanh
Developer
Developer


Joined: 05 Aug 2006
Posts: 1559
Location: Berlin, Germany

PostPosted: Fri Jul 05, 2013 1:18 pm    Post subject: Reply with quote

If radeon is primary, adding the displaylink device is done with the xrandr --setprovideroutputsource command (see man xrandr).
Back to top
View user's profile Send private message
erzapito
n00b
n00b


Joined: 02 Feb 2007
Posts: 72

PostPosted: Fri Jul 05, 2013 2:26 pm    Post subject: Reply with quote

This did the trick:

Code:
xrandr --auto


Now everything works perfectly. Thank you very much!!

I'm thinking in updating the wiki page about displaylink to include all this information.
Back to top
View user's profile Send private message
erzapito
n00b
n00b


Joined: 02 Feb 2007
Posts: 72

PostPosted: Mon Jul 08, 2013 7:31 am    Post subject: Reply with quote

Hi, one last thing.

I'm not capable of setting the modesetting monitor as the primary one:

Code:
xrandr --output DVI-1 --primary
X Error of failed request:  BadMatch (invalid parameter attributes)
  Major opcode of failed request:  139 (RANDR)
  Minor opcode of failed request:  30 (RRSetOutputPrimary)
  Serial number of failed request:  41
  Current serial number in output stream:  43


Can this be configured in any other way?

Regards.
Back to top
View user's profile Send private message
chithanh
Developer
Developer


Joined: 05 Aug 2006
Posts: 1559
Location: Berlin, Germany

PostPosted: Mon Jul 08, 2013 5:23 pm    Post subject: Reply with quote

Try with xorg-server-1.14.2

If that doesn't help, the Inactive keyword in the xorg.conf ServerLayout section can determine that the DisplayLink adapter becomes the primary one. But things get complicated there quickly.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum