Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 167248 Details for
Bug 239840
>=x11-base/xorg-server-1.5 looks for fb info in non-existent sysfs path
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Teach xserver to look in both possible sysfs locations for framebuffer information
1.5.1-sysfs-fb-path.patch (text/plain), 750 bytes, created by
Ron MacNeil
on 2008-10-05 06:08:53 UTC
(
hide
)
Description:
Teach xserver to look in both possible sysfs locations for framebuffer information
Filename:
MIME Type:
Creator:
Ron MacNeil
Created:
2008-10-05 06:08:53 UTC
Size:
750 bytes
patch
obsolete
>--- xorg-server-1.5.1/hw/xfree86/fbdevhw/fbdevhw.c.old 2008-10-04 21:37:38.000000000 -0700 >+++ xorg-server-1.5.1/hw/xfree86/fbdevhw/fbdevhw.c 2008-10-04 21:40:39.000000000 -0700 >@@ -314,11 +314,20 @@ > */ > > for (i = 0; i < 8; i++) { >+ > sprintf(filename, > "/sys/bus/pci/devices/%04x:%02x:%02x.%d/graphics/fb%d", > pPci->domain, pPci->bus, pPci->dev, pPci->func, i); >- > fd = open(filename, O_RDONLY, 0); >+ >+ if (fd == -1) { >+ close(fd); >+ sprintf(filename, >+ "/sys/bus/pci/devices/%04x:%02x:%02x.%d/graphics:fb%d", >+ pPci->domain, pPci->bus, pPci->dev, pPci->func, i); >+ fd = open(filename, O_RDONLY, 0); >+ } >+ > if (fd != -1) { > close(fd); > sprintf(filename, "/dev/fb%d", i);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 239840
: 167248